comparison configure1.in @ 8891:6f72d6c642e3

Add checks to set HAVE_TIMEVAL and HAVE_SELECT.
author Karl Heuer <kwzh@gnu.org>
date Sun, 18 Sep 1994 20:34:21 +0000
parents 289ed00d26a9
children ef81e9d0a532
comparison
equal deleted inserted replaced
8890:30d1c79f19b6 8891:6f72d6c642e3
1207 #endif], [static struct utimbuf x; x.actime = x.modtime;], 1207 #endif], [static struct utimbuf x; x.actime = x.modtime;],
1208 AC_DEFINE(HAVE_STRUCT_UTIMBUF)) 1208 AC_DEFINE(HAVE_STRUCT_UTIMBUF))
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
1215 AC_TIMEZONE 1226 AC_TIMEZONE
1216 1227
1543 1554
1544 # logb and frexp are found in -lm on most systems. 1555 # logb and frexp are found in -lm on most systems.
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=)
1552 if test -n "$ok_so_far"; then 1563 if test -n "$ok_so_far"; then
1553 AC_HEADER_CHECK(netinet/in.h, , ok_so_far=) 1564 AC_HEADER_CHECK(netinet/in.h, , ok_so_far=)