]> granicus.if.org Git - apache/commitdiff
* configure.in: Ensure that apr and apr-util exported include
authorJoe Orton <jorton@apache.org>
Fri, 13 Aug 2004 12:35:47 +0000 (12:35 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 13 Aug 2004 12:35:47 +0000 (12:35 +0000)
directories are later than local source directories in INCLUDES.

PR: 18959

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104647 13f79535-47bb-0310-9956-ffa450edef68

configure.in

index 3a6988d6851c1086f725d7b679a1aa88d09a090f..2b4e7015208103d07ad33882bfac8c2265e17f95 100644 (file)
@@ -81,7 +81,6 @@ APR_SETIFNULL(CPP, `$apr_config --cpp`)
 APR_ADDTO(CFLAGS, `$apr_config --cflags`)
 APR_ADDTO(CPPFLAGS, `$apr_config --cppflags`)
 APR_ADDTO(LDFLAGS, `$apr_config --ldflags`)
-APR_ADDTO(INCLUDES, `$apr_config --includes`)
 SHLIBPATH_VAR=`$apr_config --shlib-path-var`
 APR_BINDIR=`$apr_config --bindir`
 APR_INCLUDEDIR=`$apr_config --includedir`
@@ -106,7 +105,6 @@ if test "$apu_found" = "reconfig"; then
 fi
 
 APR_ADDTO(LDFLAGS, `$apu_config --ldflags`)
-APR_ADDTO(INCLUDES, `$apu_config --includes`)
 APU_BINDIR=`$apu_config --bindir`
 APU_INCLUDEDIR=`$apu_config --includedir`
 APU_VERSION=`$apu_config --version`
@@ -140,6 +138,12 @@ fi
 
 APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/filters -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/include -I\$(top_srcdir)/modules/generators -I\$(top_srcdir)/modules/mappers])
 
+# apr/apr-util --includes may pick up system paths for dependent
+# libraries, so ensure these are later in INCLUDES than local source
+# directories.
+APR_ADDTO(INCLUDES, `$apr_config --includes`)
+APR_ADDTO(INCLUDES, `$apu_config --includes`)
+
 echo $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}"
 
 case $host in