diff options
author | martin <martin@13f79535-47bb-0310-9956-ffa450edef68> | 2004-06-29 14:10:48 +0000 |
---|---|---|
committer | martin <martin@13f79535-47bb-0310-9956-ffa450edef68> | 2004-06-29 14:10:48 +0000 |
commit | abddb6a7ee161f1f76a8f02e06ef60efedd58d2b (patch) | |
tree | 0660f7011830bc42211ea32b654a10b5c3b2da5a /configure.in | |
parent | b423c50c1a161e1a79153a0784b3907c1e8ce3c7 (diff) | |
download | libapr-abddb6a7ee161f1f76a8f02e06ef60efedd58d2b.tar.gz |
Use libbind/libresolv when available. Check <sys/types.h> before checking other special headers; Substitute INCLUDES
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65233 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 493669abf..7b38ff18c 100644 --- a/configure.in +++ b/configure.in @@ -522,6 +522,8 @@ dnl end up LIBS="-lm -lcrypt -lnsl -ldl" which is an annoyance. AC_SEARCH_LIBS(gethostbyname, nsl) AC_SEARCH_LIBS(gethostname, nsl) AC_SEARCH_LIBS(socket, socket) +dnl Search for -lbind / -lresolv only after having added -lsocket and -lnsl +AC_SEARCH_LIBS(res_init, bind resolv) AC_SEARCH_LIBS(crypt, crypt ufc) AC_CHECK_LIB(truerand, main) AC_SEARCH_LIBS(modf, m) @@ -656,7 +658,7 @@ case $host in #endif";; esac -AC_CHECK_HEADERS([sys/mman.h sys/ipc.h sys/mutex.h sys/shm.h sys/file.h kernel/OS.h os2.h]) +AC_CHECK_HEADERS([sys/types.h sys/mman.h sys/ipc.h sys/mutex.h sys/shm.h sys/file.h kernel/OS.h os2.h]) AC_CHECK_FUNCS([mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \ create_area]) APR_CHECK_DEFINE(MAP_ANON, sys/mman.h) @@ -1944,6 +1946,7 @@ AC_SUBST(NOTEST_INCLUDES) dnl ----------------------------- Construct the files AC_SUBST(LDLIBS) +AC_SUBST(INCLUDES) AC_SUBST(AR) AC_SUBST(RM) AC_SUBST(OSDIR) |