Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | --- a/configure.ac 2007-12-02 10:37:06.000000000 -0200 |
| 2 | +++ b/configure.ac 2008-06-05 17:21:42.000000000 -0300 |
| 3 | @@ -127,22 +127,24 @@ |
| 4 | dnl *************************************** |
| 5 | dnl *** Check for strftime() extensions *** |
| 6 | dnl *************************************** |
| 7 | -AC_TRY_RUN([ |
| 8 | - #include <string.h> |
| 9 | - #include <time.h> |
| 10 | - int |
| 11 | - main (int argc, char **argv) |
| 12 | - { |
| 13 | - struct tm tm; |
| 14 | - char buffer[16]; |
| 15 | - tm.tm_year = 81; |
| 16 | - if (strftime (buffer, 16, "%EY", &tm) == 4 && strcmp (buffer, "1981") == 0) |
| 17 | - return 0; |
| 18 | - return 1; |
| 19 | - } |
| 20 | -], [ |
| 21 | - AC_DEFINE([HAVE_STRFTIME_EXTENSION], 1, [Define if strftime supports %E and %O modifiers.]) |
| 22 | -]) |
| 23 | +dnl grrrr... this doesn't work for cross compiling, define it for OE |
| 24 | +AC_DEFINE([HAVE_STRFTIME_EXTENSION], 1, [Define if strftime supports %E and %O modifiers.]) |
| 25 | +dnl AC_TRY_RUN([ |
| 26 | +dnl #include <string.h> |
| 27 | +dnl #include <time.h> |
| 28 | +dnl int |
| 29 | +dnl main (int argc, char **argv) |
| 30 | +dnl { |
| 31 | +dnl struct tm tm; |
| 32 | +dnl char buffer[16]; |
| 33 | +dnl tm.tm_year = 81; |
| 34 | +dnl if (strftime (buffer, 16, "%EY", &tm) == 4 && strcmp (buffer, "1981") == 0) |
| 35 | +dnl return 0; |
| 36 | +dnl return 1; |
| 37 | +dnl } |
| 38 | +dnl ], [ |
| 39 | +dnl AC_DEFINE([HAVE_STRFTIME_EXTENSION], 1, [Define if strftime supports %E and %O modifiers.]) |
| 40 | +dnl ]) |
| 41 | |
| 42 | dnl ****************************** |
| 43 | dnl *** Check for i18n support *** |