]> granicus.if.org Git - apache/blob - server/config.m4
We now make the decision to USE_MMAP_FILES based on whether or not APR
[apache] / server / config.m4
1 dnl ## Check for libraries
2
3 AC_CHECK_LIB(nsl, gethostname, [
4  AC_ADD_LIBRARY(nsl) ], [])
5
6 AC_CHECK_LIB(socket, socket, [
7  AC_ADD_LIBRARY(socket) ], [])
8
9 AC_CHECK_LIB(nsl, gethostbyaddr, [
10  AC_ADD_LIBRARY(nsl) ], [])
11
12 AC_CHECK_LIB(crypt, crypt, [
13  AC_ADD_LIBRARY(crypt) 
14  AC_DEFINE(HAVE_CRYPT)], [])
15
16 AC_CHECK_LIB(c, crypt, [
17  AC_DEFINE(HAVE_CRYPT)], [])
18
19 dnl ## Check for header files
20
21 AC_HEADER_STDC
22 AC_CHECK_HEADERS(
23 bstring.h \
24 crypt.h \
25 unistd.h \
26 sys/resource.h \
27 sys/select.h \
28 sys/processor.h \
29 )
30
31 dnl ## Check for typedefs, structures, and compiler characteristics.
32
33 AC_TYPE_RLIM_T
34 AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
35 [AC_TRY_COMPILE([#include <sys/types.h>
36 #include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_gmtoff;],
37   ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)])
38
39 if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
40     AC_DEFINE(HAVE_GMTOFF)
41 fi
42
43 dnl ## Check for library functions
44
45 AC_CHECK_FUNCS(
46 difftime \
47 syslog \
48 )