]> granicus.if.org Git - apache/commitdiff
Fix PCRE_DUPNAMES check to find the header file for PCRE when PCRE isn't in
authorBen Reser <breser@apache.org>
Mon, 7 Apr 2014 21:26:23 +0000 (21:26 +0000)
committerBen Reser <breser@apache.org>
Mon, 7 Apr 2014 21:26:23 +0000 (21:26 +0000)
the default includes path.

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

configure.in

index 549416b72f2030db150fd0e778a223be8d20d366..e0d1094e3dce4e526920884576b6482f81057234 100644 (file)
@@ -272,6 +272,8 @@ APR_ADDTO(INCLUDES, $APU_INCLUDES)
 dnl Add in path to PCRE includes
 APR_ADDTO(INCLUDES, $PCRE_INCLUDES)
 
+save_CPPFLAGS="$CPPFLAGS"
+CPPFLAGS="$CPPFLAGS $PCRE_INCLUDES"
 AC_EGREP_CPP(yes,
 [
 #include <pcre.h>
@@ -282,6 +284,7 @@ yes
 if test "$pcre_have_dupnames" != "yes"; then
     AC_MSG_ERROR([pcre version does not support PCRE_DUPNAMES])
 fi
+CPPFLAGS="$save_CPPFLAGS"
 
 AC_MSG_NOTICE([])
 AC_MSG_NOTICE([Applying OS-specific hints for httpd...])