summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac16
1 files changed, 10 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index a294b00..2ddc503 100644
--- a/configure.ac
+++ b/configure.ac
@@ -645,12 +645,16 @@ AC_TRY_COMPILE([#include <sys/time.h>],
645 [struct timeval *tv; 645 [struct timeval *tv;
646 struct timezone *tz;], 646 struct timezone *tz;],
647 AC_DEFINE(HAVE_STRUCT_TIMEVAL,1,[Define if we have a timeval structure]) 647 AC_DEFINE(HAVE_STRUCT_TIMEVAL,1,[Define if we have a timeval structure])
648 AC_TRY_COMPILE([#include <sys/time.h>], 648 FOUND_STRUCT_TIMEVAL="yes")
649 [struct timeval *tv; 649
650 struct timezone *tz; 650if test x$FOUND_STRUCT_TIMEVAL = x"yes"; then
651 gettimeofday(tv, tz);], 651 AC_TRY_COMPILE([#include <sys/time.h>],
652 AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define if gettimeofday is found]), 652 [struct timeval *tv;
653 AC_DEFINE(NEED_GETTIMEOFDAY,1,[Define if gettimeofday is needed]))) 653 struct timezone *tz;
654 gettimeofday(tv, tz);],
655 AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define if gettimeofday is found]),
656 AC_DEFINE(NEED_GETTIMEOFDAY,1,[Define if gettimeofday is needed]))
657fi
654 658
655dnl Checks for library functions. 659dnl Checks for library functions.
656AC_CHECK_FUNCS(memmove select socket strdup strstr strtol strtoul floor) 660AC_CHECK_FUNCS(memmove select socket strdup strstr strtol strtoul floor)