]> granicus.if.org Git - php/commitdiff
MFH:- Fixed bug #42292 ($PHP_CONFIG not set for phpized builds)
authorJani Taskinen <jani@php.net>
Tue, 14 Aug 2007 08:43:41 +0000 (08:43 +0000)
committerJani Taskinen <jani@php.net>
Tue, 14 Aug 2007 08:43:41 +0000 (08:43 +0000)
scripts/phpize.m4

index 6e7a131c37483958d81b9fc75787500fdcb974f9..c8a81029421053790f4212a559db5cd31b3c01ce 100644 (file)
@@ -34,11 +34,13 @@ dnl Find php-config script
 PHP_ARG_WITH(php-config,,
 [  --with-php-config=PATH  Path to php-config [php-config]], php-config, no)
 
-prefix=`$PHP_PHP_CONFIG --prefix 2>/dev/null`
-phpincludedir=`$PHP_PHP_CONFIG --include-dir 2>/dev/null`
-INCLUDES=`$PHP_PHP_CONFIG --includes 2>/dev/null`
-EXTENSION_DIR=`$PHP_PHP_CONFIG --extension-dir 2>/dev/null`
-PHP_EXECUTABLE=`$PHP_PHP_CONFIG --php-binary 2>/dev/null`
+dnl For BC
+PHP_CONFIG=$PHP_PHP_CONFIG
+prefix=`$PHP_CONFIG --prefix 2>/dev/null`
+phpincludedir=`$PHP_CONFIG --include-dir 2>/dev/null`
+INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
+EXTENSION_DIR=`$PHP_CONFIG --extension-dir 2>/dev/null`
+PHP_EXECUTABLE=`$PHP_CONFIG --php-binary 2>/dev/null`
  
 if test -z "$prefix"; then
   AC_MSG_ERROR([Cannot find php-config. Please use --with-php-config=PATH])