]> granicus.if.org Git - php/commitdiff
MFB (patch by Troels Arvin <troels@arvin.dk>).
authorEdin Kadribasic <edink@php.net>
Tue, 23 Jul 2002 13:07:29 +0000 (13:07 +0000)
committerEdin Kadribasic <edink@php.net>
Tue, 23 Jul 2002 13:07:29 +0000 (13:07 +0000)
Added pcre include path to global list of includes in order to allow
use of external pcre libs.

ext/pcre/config.m4
ext/pcre/config0.m4

index 7f03ddd3dfd9f20a578e4209b988aa30a67b0a86..2563494468225027cde2dde281d092f51193a4a5 100644 (file)
@@ -19,7 +19,8 @@ if test "$PHP_PCRE_REGEX" != "no"; then
   else
     test -f $PHP_PCRE_REGEX/pcre.h && PCRE_INCDIR=$PHP_PCRE_REGEX
     test -f $PHP_PCRE_REGEX/include/pcre.h && PCRE_INCDIR=$PHP_PCRE_REGEX/include
-    
+    test -f $PHP_PCRE_REGEX/include/pcre/pcre.h && PCRE_INCDIR=$PHP_PCRE_REGEX/include/pcre
+
     if test -z "$PCRE_INCDIR"; then
       AC_MSG_RESULT(Could not find pcre.h in $PHP_PCRE_REGEX)
     fi
@@ -47,7 +48,8 @@ if test "$PHP_PCRE_REGEX" != "no"; then
     PHP_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR, PCRE_SHARED_LIBADD)
     
     AC_DEFINE(HAVE_PCRE, 1, [ ])
-    PHP_NEW_EXTENSION(pcre, php_pcre.c, $ext_shared,,-DSUPPORT_UTF8 -I$PCRE_INCDIR)
+    PHP_ADD_INCLUDE($PCRE_INCDIR)
+    PHP_NEW_EXTENSION(pcre, php_pcre.c, $ext_shared,,-DSUPPORT_UTF8)
   fi
 fi
 PHP_SUBST(PCRE_SHARED_LIBADD)
index 7f03ddd3dfd9f20a578e4209b988aa30a67b0a86..2563494468225027cde2dde281d092f51193a4a5 100644 (file)
@@ -19,7 +19,8 @@ if test "$PHP_PCRE_REGEX" != "no"; then
   else
     test -f $PHP_PCRE_REGEX/pcre.h && PCRE_INCDIR=$PHP_PCRE_REGEX
     test -f $PHP_PCRE_REGEX/include/pcre.h && PCRE_INCDIR=$PHP_PCRE_REGEX/include
-    
+    test -f $PHP_PCRE_REGEX/include/pcre/pcre.h && PCRE_INCDIR=$PHP_PCRE_REGEX/include/pcre
+
     if test -z "$PCRE_INCDIR"; then
       AC_MSG_RESULT(Could not find pcre.h in $PHP_PCRE_REGEX)
     fi
@@ -47,7 +48,8 @@ if test "$PHP_PCRE_REGEX" != "no"; then
     PHP_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR, PCRE_SHARED_LIBADD)
     
     AC_DEFINE(HAVE_PCRE, 1, [ ])
-    PHP_NEW_EXTENSION(pcre, php_pcre.c, $ext_shared,,-DSUPPORT_UTF8 -I$PCRE_INCDIR)
+    PHP_ADD_INCLUDE($PCRE_INCDIR)
+    PHP_NEW_EXTENSION(pcre, php_pcre.c, $ext_shared,,-DSUPPORT_UTF8)
   fi
 fi
 PHP_SUBST(PCRE_SHARED_LIBADD)