diff options
| author | Jani Taskinen <jani@php.net> | 2007-07-18 15:04:08 +0000 |
|---|---|---|
| committer | Jani Taskinen <jani@php.net> | 2007-07-18 15:04:08 +0000 |
| commit | 3d17c96fdacbc6bf19afa33d26d5c1ed6d8ff71d (patch) | |
| tree | f7a3c03d87cb7c2e29fab8024ccf80549e02f0bd /scripts/phpize.m4 | |
| parent | 8464268a3f22797eb60764c2c93d48336dc839ce (diff) | |
| download | php-git-3d17c96fdacbc6bf19afa33d26d5c1ed6d8ff71d.tar.gz | |
- Cleanup + removed PHP_SETUP_ICU call (has to be done per extension, not globally!)
Diffstat (limited to 'scripts/phpize.m4')
| -rw-r--r-- | scripts/phpize.m4 | 70 |
1 files changed, 31 insertions, 39 deletions
diff --git a/scripts/phpize.m4 b/scripts/phpize.m4 index 0a7de58835..b0a93a8746 100644 --- a/scripts/phpize.m4 +++ b/scripts/phpize.m4 @@ -7,37 +7,7 @@ AC_INIT(config.m4) PHP_CONFIG_NICE(config.nice) -AC_DEFUN([PHP_WITH_PHP_CONFIG],[ - AC_ARG_WITH(php-config, -[ --with-php-config=PATH],[ - PHP_CONFIG=$withval -],[ - PHP_CONFIG=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` - PHP_EXECUTABLE=`$PHP_CONFIG --php-binary` - - if test -z "$prefix"; then - AC_MSG_ERROR(Cannot find php-config. Please use --with-php-config=PATH) - fi - - php_shtool=$srcdir/build/shtool - PHP_INIT_BUILD_SYSTEM - - AC_MSG_CHECKING(for PHP prefix) - AC_MSG_RESULT($prefix) - AC_MSG_CHECKING(for PHP includes) - AC_MSG_RESULT($INCLUDES) - AC_MSG_CHECKING(for PHP extension directory) - AC_MSG_RESULT($EXTENSION_DIR) - AC_MSG_CHECKING(for PHP installed headers prefix) - AC_MSG_RESULT($phpincludedir) -]) -dnl +dnl AC_DEFUN([PHP_EXT_BUILDDIR],[.])dnl AC_DEFUN([PHP_EXT_DIR],[""])dnl AC_DEFUN([PHP_EXT_SRCDIR],[$abs_srcdir])dnl @@ -54,23 +24,45 @@ AC_PROG_CC AC_PROG_CC_C_O dnl Support systems with system libraries in e.g. /usr/lib64 -AC_ARG_WITH(libdir, -[ --with-libdir=NAME Look for libraries in .../NAME rather than .../lib], -[PHP_LIBDIR=$withval], [PHP_LIBDIR=lib]) +PHP_ARG_WITH(libdir, for system library directory, +[ --with-libdir=NAME Look for libraries in .../NAME rather than .../lib], lib, no) PHP_RUNPATH_SWITCH PHP_SHLIB_SUFFIX_NAMES -PHP_WITH_PHP_CONFIG -PHP_BUILD_SHARED +dnl Find php-config script +PHP_ARG_WITH(config,, +[ --with-php-config=PATH Path to php-config [php-config]], php-config, no) -AC_PREFIX_DEFAULT() +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]) +fi + +php_shtool=$srcdir/build/shtool +PHP_INIT_BUILD_SYSTEM + +AC_MSG_CHECKING([for PHP prefix]) +AC_MSG_RESULT([$prefix]) +AC_MSG_CHECKING([for PHP includes]) +AC_MSG_RESULT([$INCLUDES]) +AC_MSG_CHECKING([for PHP extension directory]) +AC_MSG_RESULT([$EXTENSION_DIR]) +AC_MSG_CHECKING([for PHP installed headers prefix]) +AC_MSG_RESULT([$phpincludedir]) + +dnl Always shared +PHP_BUILD_SHARED +dnl Required programs PHP_PROG_RE2C PHP_PROG_AWK -PHP_SETUP_ICU - sinclude(config.m4) enable_static=no |
