Skip to content

Commit

Permalink
MFH:- Fixed bug #42292 ($PHP_CONFIG not set for phpized builds)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jani Taskinen committed Aug 14, 2007
1 parent d32c991 commit e602885
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/phpize.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit e602885

Please sign in to comment.