diff options
Diffstat (limited to 'm4/mhd_shutdown_socket_trigger.m4')
-rw-r--r-- | m4/mhd_shutdown_socket_trigger.m4 | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/m4/mhd_shutdown_socket_trigger.m4 b/m4/mhd_shutdown_socket_trigger.m4 index 33505d81..d33c4b18 100644 --- a/m4/mhd_shutdown_socket_trigger.m4 +++ b/m4/mhd_shutdown_socket_trigger.m4 | |||
@@ -18,29 +18,14 @@ | |||
18 | # and this notice are preserved. This file is offered as-is, without any | 18 | # and this notice are preserved. This file is offered as-is, without any |
19 | # warranty. | 19 | # warranty. |
20 | 20 | ||
21 | #serial 4 | 21 | #serial 5 |
22 | 22 | ||
23 | AC_DEFUN([MHD_CHECK_SOCKET_SHUTDOWN_TRIGGER],[dnl | 23 | AC_DEFUN([MHD_CHECK_SOCKET_SHUTDOWN_TRIGGER],[dnl |
24 | AC_PREREQ([2.64])dnl | 24 | AC_PREREQ([2.64])dnl |
25 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | 25 | AC_REQUIRE([AC_CANONICAL_HOST])dnl |
26 | AC_REQUIRE([AC_PROG_CC])dnl | 26 | AC_REQUIRE([AC_PROG_CC])dnl |
27 | AC_REQUIRE([AX_PTHREAD])dnl | 27 | AC_REQUIRE([AX_PTHREAD])dnl |
28 | AC_CHECK_HEADERS([sys/time.h time.h])dnl | 28 | AC_REQUIRE([MHD_CHECK_FUNC_GETTIMEOFDAY])dnl |
29 | MHD_CHECK_FUNC([[gettimeofday]], | ||
30 | [[ | ||
31 | #ifdef HAVE_SYS_TIME_H | ||
32 | #include <sys/time.h> | ||
33 | #endif /* HAVE_SYS_TIME_H */ | ||
34 | #ifdef HAVE_TIME_H | ||
35 | #include <time.h> | ||
36 | #endif /* HAVE_TIME_H */ | ||
37 | ]], | ||
38 | [[ | ||
39 | struct timeval tv; | ||
40 | if (0 != gettimeofday (&tv, (void*) 0)) | ||
41 | return 1; | ||
42 | ]] | ||
43 | ) | ||
44 | MHD_CHECK_FUNC([[usleep]], [[#include <unistd.h>]], [[usleep(100000);]]) | 29 | MHD_CHECK_FUNC([[usleep]], [[#include <unistd.h>]], [[usleep(100000);]]) |
45 | MHD_CHECK_FUNC([[nanosleep]], [[#include <time.h>]], [[struct timespec ts2, ts1 = {0, 0}; nanosleep(&ts1, &ts2);]]) | 30 | MHD_CHECK_FUNC([[nanosleep]], [[#include <time.h>]], [[struct timespec ts2, ts1 = {0, 0}; nanosleep(&ts1, &ts2);]]) |
46 | AC_CHECK_HEADERS([string.h sys/types.h sys/socket.h netinet/in.h time.h sys/select.h netinet/tcp.h],[],[], [AC_INCLUDES_DEFAULT]) | 31 | AC_CHECK_HEADERS([string.h sys/types.h sys/socket.h netinet/in.h time.h sys/select.h netinet/tcp.h],[],[], [AC_INCLUDES_DEFAULT]) |