1 dnl ## Check for libraries
3 AC_CHECK_LIB(nsl, gethostname, APR_ADDTO(LIBS,-lnsl))
4 AC_CHECK_LIB(socket, socket, APR_ADDTO(LIBS,-lsocket))
5 AC_CHECK_LIB(nsl, gethostbyaddr, APR_ADDTO(LIBS,-lnsl))
7 dnl ## Check for header files
9 AC_CHECK_HEADERS(bstring.h unistd.h)
11 dnl ## Check for typedefs, structures, and compiler characteristics.
13 AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
14 [AC_TRY_COMPILE([#include <sys/types.h>
15 #include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_gmtoff;],
16 ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)])
18 if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
19 AC_DEFINE(HAVE_GMTOFF,,
20 [Define if struct tm has a tm_gmtoff member])
23 dnl ## Check for library functions
25 AC_CHECK_FUNCS(syslog)
27 dnl Obsolete scoreboard code uses this.
28 AC_CHECK_HEADERS(sys/times.h)