summaryrefslogtreecommitdiff
path: root/configure1.in
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-09-18 20:34:21 +0000
committerKarl Heuer <kwzh@gnu.org>1994-09-18 20:34:21 +0000
commit6b44341743ef87a5e589d258f6200dac720bb684 (patch)
treeca9fe7e78905dbc0279d9050c41a54843a06f97e /configure1.in
parentc2c5593d986080313603cbf9d21c4c8b0a949bbe (diff)
downloademacs-6b44341743ef87a5e589d258f6200dac720bb684.tar.gz
Add checks to set HAVE_TIMEVAL and HAVE_SELECT.
Diffstat (limited to 'configure1.in')
-rwxr-xr-xconfigure1.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/configure1.in b/configure1.in
index 175584fabc8..c11f88ac645 100755
--- a/configure1.in
+++ b/configure1.in
@@ -1209,6 +1209,17 @@ AC_COMPILE_CHECK(struct utimbuf, [#ifdef TIME_WITH_SYS_TIME
dnl checks for typedefs
AC_RETSIGTYPE
+AC_COMPILE_CHECK(struct timeval, [#ifdef TIME_WITH_SYS_TIME
+#include <sys/time.h>
+#include <time.h>
+#else
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else
+#include <time.h>
+#endif
+#endif], [static struct timeval x; x.tv_sec = x.tv_usec;],
+ AC_DEFINE(HAVE_TIMEVAL))
dnl checks for structure members
AC_STRUCT_TM
@@ -1545,7 +1556,7 @@ AC_ALLOCA
AC_HAVE_LIBRARY(-lm)
AC_HAVE_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \
random lrand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid \
-strerror fpathconf)
+strerror fpathconf select)
ok_so_far=true
AC_FUNC_CHECK(socket, , ok_so_far=)