diff options
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 78383a6d..6c08626e 100644 --- a/configure.ac +++ b/configure.ac @@ -16,6 +16,7 @@ AC_PROG_CPP_WERROR AC_PROG_YACC AC_OBJEXT AC_EXEEXT +AC_USE_SYSTEM_EXTENSIONS LT_INIT([shared static win32-dll]) AM_PROG_CC_C_O @@ -144,7 +145,7 @@ AC_FIND_FUNC([gmtime_r], [c], [#include <time.h>], [0, 0]) AC_FIND_FUNC([gmtime], [c], [#include <time.h>], [0]) AC_FIND_FUNC([localtime_r], [c], [#include <time.h>], [0, 0]) AC_FIND_FUNC([localtime], [c], [#include <time.h>], [0]) -AC_FIND_FUNC([gettimeofday], [c], [#include <time.h>], [0, 0]) +AC_FIND_FUNC([gettimeofday], [c], [#include <sys/time.h>], [0, 0]) AC_CHECK_MEMBER([struct tm.tm_gmtoff], [AC_DEFINE([HAVE_TM_TM_GMT_OFF],1,[Define to 1 if the system has the tm_gmt_off field in struct tm])], [], [[#include <time.h>]]) AC_CHECK_MEMBER([struct tm.__tm_gmtoff], [AC_DEFINE([HAVE_TM___TM_GMT_OFF],1,[Define to 1 if the system has the __tm_gmt_off field in struct tm])], |