blob: 51eaf7cfef00510e98b6a27c16cd16a3b8343c65 [file] [log] [blame]
Brad Bishop0f291cc2019-09-01 15:16:57 -04001From 20bd8946a5c73290d961df151e82033171639c0d Mon Sep 17 00:00:00 2001
Brad Bishop316dfdd2018-06-25 12:45:53 -04002From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Tue, 19 Dec 2017 16:55:13 +0100
Brad Bishop0f291cc2019-09-01 15:16:57 -04004Subject: [PATCH 2/7] CMakeLists.txt: remove CHECK_C_SOURCE_RUNS check
Brad Bishop316dfdd2018-06-25 12:45:53 -04005MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9* TRY_RUN: does not work for OE
10* HAVE_LKSTRFTIME is set by recipe as configure option
11
Patrick Williams8e7b46e2023-05-01 14:19:06 -050012Upstream-Status: Inappropriate [Cross-compile specific]
Brad Bishop316dfdd2018-06-25 12:45:53 -040013Signed-off-by: Andreas MΓΌller <schnitzeltony@gmail.com>
14---
15 CMakeLists.txt | 23 -----------------------
16 1 file changed, 23 deletions(-)
17
18diff --git a/CMakeLists.txt b/CMakeLists.txt
Brad Bishop0f291cc2019-09-01 15:16:57 -040019index ed99904..9a2e99f 100644
Brad Bishop316dfdd2018-06-25 12:45:53 -040020--- a/CMakeLists.txt
21+++ b/CMakeLists.txt
Brad Bishop0f291cc2019-09-01 15:16:57 -040022@@ -579,29 +579,6 @@ CHECK_C_SOURCE_COMPILES("#include <langinfo.h>
Brad Bishop316dfdd2018-06-25 12:45:53 -040023 CHECK_C_SOURCE_COMPILES("#include <langinfo.h>
24 int main(void) { char *detail = nl_langinfo (_NL_ADDRESS_COUNTRY_AB2); return 0; }" HAVE__NL_ADDRESS_COUNTRY_AB2)
25
26-# *******************************************************
27-# Check to see if strftime supports the use of %l and %k
28-# *******************************************************
29-
30-CHECK_C_SOURCE_RUNS("
31- #include <stdlib.h>
32- #include <string.h>
33- #include <time.h>
34- int main(int argc, char **argv) {
35- char buf[10];
36- time_t rawtime;
37- struct tm *timeinfo;
38-
39- time(&rawtime);
40- timeinfo=localtime(&rawtime);
41- buf[0] = 0;
42- strftime(buf, 10, \"%lx%k\", timeinfo);
43-
44- if (!buf[0] || buf[0] == 'x' || strstr(buf, \"l\") || strstr(buf, \"k\"))
45- return 1;
46- return 0;
47- }" HAVE_LKSTRFTIME)
48-
49 # ******************************
50 # system mail stuff
51 # ******************************
52--
Brad Bishop0f291cc2019-09-01 15:16:57 -0400532.21.0
Brad Bishop316dfdd2018-06-25 12:45:53 -040054