]> granicus.if.org Git - apache/commitdiff
pcre-config --cflags actually emits include paths not cflags, so add it to
authorJustin Erenkrantz <jerenkrantz@apache.org>
Sat, 3 Jan 2009 18:02:36 +0000 (18:02 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Sat, 3 Jan 2009 18:02:36 +0000 (18:02 +0000)
correct variable.  Also, reuse APR_INCLUDES/APU_INCLUDES variables so as to
save an extra invocation of config files.

* configure.in: Add PCRE_CONFIG --cflags to INCLUDES; reuse AP{RU}_INCLUDES
  variables.

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

configure.in

index 2566faf8b6b699ee40c28e9880ba06df2b2c0e61..6c53154d25f4a10936dc1ca77458048c355d8759 100644 (file)
@@ -181,7 +181,7 @@ if test "$PCRE_CONFIG" != "false"; then
     AC_MSG_ERROR([Did not find pcre-config script at $PCRE_CONFIG])
   fi
   AC_MSG_NOTICE([Using external PCRE library from $PCRE_CONFIG])
-  APR_ADDTO(CFLAGS, [`$PCRE_CONFIG --cflags`])
+  APR_ADDTO(PCRE_INCLUDES, [`$PCRE_CONFIG --cflags`])
   APR_ADDTO(PCRE_LIBS, [`$PCRE_CONFIG --libs`])
 else
   AC_MSG_ERROR([pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/])
@@ -207,8 +207,11 @@ APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/
 # 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`)
+APR_ADDTO(INCLUDES, $APR_INCLUDES)
+APR_ADDTO(INCLUDES, $APU_INCLUDES)
+
+dnl Add in path to PCRE includes
+APR_ADDTO(INCLUDES, $PCRE_INCLUDES)
 
 echo $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}"