diff options
| -rw-r--r-- | configure.ac | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index a294b00f..2ddc5035 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; | 650 | if 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])) | ||
| 657 | fi | ||
| 654 | 658 | ||
| 655 | dnl Checks for library functions. | 659 | dnl Checks for library functions. |
| 656 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtol strtoul floor) | 660 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtol strtoul floor) |
