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