diff options
author | Manoj Kasichainula <manoj@apache.org> | 1999-12-01 02:16:23 +0100 |
---|---|---|
committer | Manoj Kasichainula <manoj@apache.org> | 1999-12-01 02:16:23 +0100 |
commit | 04c494c2b5175d094185f00304a17a837c44d810 (patch) | |
tree | 8a4b75dda0649f429f330a05fbd98f1124099586 /configure.in | |
parent | Get rid of ap_check_signals() in all but the prefork MPM, and #define it (diff) | |
download | apache2-04c494c2b5175d094185f00304a17a837c44d810.tar.xz apache2-04c494c2b5175d094185f00304a17a837c44d810.zip |
Eliminate ap_config.h's checks when using autoconf. Now, ap_ac_config.h
is used instead, and autoconf's configure script will check for
everything else.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84200 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/configure.in b/configure.in index c6d9fda73f..7bf349d49c 100644 --- a/configure.in +++ b/configure.in @@ -12,7 +12,8 @@ dnl ## This is the central place where Apache's version should be kept. APACHE_VERSION=$VERSION AC_SUBST(APACHE_VERSION) -dnl XXX - doesn't actually work, because of the APACHE_OUTPUT_FILES error +dnl XXX - make will sometimes die as annoyingly as automake with this option +dnl just remake and continue AM_MAINTAINER_MODE dnl We want this one before the checks, so the checks can modify CFLAGS @@ -43,14 +44,30 @@ dnl I think these are just used all over the place, so just check for dnl them at the base of the tree. If some are specific to a single dnl directory, they should be moved (Comment #Spoon) +AC_HEADER_STDC AC_CHECK_HEADERS( \ unistd.h \ +sys/stat.h \ sys/time.h \ +sys/types.h \ +sys/socket.h \ +netinet/in.h \ +arpa/inet.h \ +netdb.h \ +pwd.h \ +grp.h \ ) +AC_HEADER_SYS_WAIT + +dnl ## Check for C preprocessor symbols + +AC_CHECK_DEFINE(EAGAIN, errno.h) dnl ## Check for typedefs, structures, and compiler characteristics. +AC_C_CONST AC_C_INLINE +AC_TYPE_PID_T dnl ## Check for library functions @@ -67,8 +84,23 @@ waitpid \ difftime \ gettimeofday \ memmove \ +bzero \ ) +AC_CHECK_FUNCS(inet_addr inet_network, break, [ + AC_MSG_ERROR(inet_addr function not found) +]) + +AC_FUNC_SELECT_ARGTYPES + +dnl Check if we'll actually need to cast select args all the time +if test "$ac_cv_func_select_arg1" != "int" \ + -o "$ac_cv_func_select_arg234" != "fd_set *" \ + -o "$ac_cv_func_select_arg5" != "struct timeval *" ; then + + AC_DEFINE(SELECT_NEEDS_CAST) +fi + AM_PROG_LIBTOOL dnl ## Checking command-line options |