diff options
| author | Karl Heuer | 1994-09-18 20:34:21 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-09-18 20:34:21 +0000 |
| commit | 3622dcd9a0c493d948313cd00a26af1a69d4c405 (patch) | |
| tree | 484f2738faaba4e45dcb69118bb6749ef7374d4a | |
| parent | dbfaa1b1ff1a1eff50a157a723f505a2476c014b (diff) | |
| download | emacs-3622dcd9a0c493d948313cd00a26af1a69d4c405.tar.gz emacs-3622dcd9a0c493d948313cd00a26af1a69d4c405.zip | |
Add checks to set HAVE_TIMEVAL and HAVE_SELECT.
| -rwxr-xr-x | configure1.in | 13 |
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 | |||
| 1209 | 1209 | ||
| 1210 | dnl checks for typedefs | 1210 | dnl checks for typedefs |
| 1211 | AC_RETSIGTYPE | 1211 | AC_RETSIGTYPE |
| 1212 | AC_COMPILE_CHECK(struct timeval, [#ifdef TIME_WITH_SYS_TIME | ||
| 1213 | #include <sys/time.h> | ||
| 1214 | #include <time.h> | ||
| 1215 | #else | ||
| 1216 | #ifdef HAVE_SYS_TIME_H | ||
| 1217 | #include <sys/time.h> | ||
| 1218 | #else | ||
| 1219 | #include <time.h> | ||
| 1220 | #endif | ||
| 1221 | #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], | ||
| 1222 | AC_DEFINE(HAVE_TIMEVAL)) | ||
| 1212 | 1223 | ||
| 1213 | dnl checks for structure members | 1224 | dnl checks for structure members |
| 1214 | AC_STRUCT_TM | 1225 | AC_STRUCT_TM |
| @@ -1545,7 +1556,7 @@ AC_ALLOCA | |||
| 1545 | AC_HAVE_LIBRARY(-lm) | 1556 | AC_HAVE_LIBRARY(-lm) |
| 1546 | AC_HAVE_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \ | 1557 | AC_HAVE_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \ |
| 1547 | random lrand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid \ | 1558 | random lrand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid \ |
| 1548 | strerror fpathconf) | 1559 | strerror fpathconf select) |
| 1549 | 1560 | ||
| 1550 | ok_so_far=true | 1561 | ok_so_far=true |
| 1551 | AC_FUNC_CHECK(socket, , ok_so_far=) | 1562 | AC_FUNC_CHECK(socket, , ok_so_far=) |