From: Jani Taskinen Date: Wed, 30 Jul 2008 23:27:26 +0000 (+0000) Subject: MFH: sync X-Git-Tag: php-5.2.7RC1~164 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fbca704073249f626b5336e1a1b0a7650b1550f9;p=php MFH: sync --- diff --git a/acinclude.m4 b/acinclude.m4 index 62baa98da3..9c081f01ba 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -837,7 +837,7 @@ AC_DEFUN([PHP_BUILD_PROGRAM],[ ]) dnl -dnl PHP_SHARED_MODULE(module-name, object-var, build-dir, cxx) +dnl PHP_SHARED_MODULE(module-name, object-var, build-dir, cxx, zend_ext) dnl dnl Basically sets up the link-stage for building module-name dnl from object_var in build-dir. @@ -860,7 +860,11 @@ AC_DEFUN([PHP_SHARED_MODULE],[ ;; esac - PHP_MODULES="$PHP_MODULES \$(phplibdir)/$1.$suffix" + if test "x$5" = "xyes"; then + PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/$1.$suffix" + else + PHP_MODULES="$PHP_MODULES \$(phplibdir)/$1.$suffix" + fi PHP_SUBST($2) cat >>Makefile.objects</dev/null` - if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1200"; then + re2c_vernum=`$RE2C --vernum 2>/dev/null` + if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1304"; then php_cv_re2c_version=invalid else - php_cv_re2c_version="`re2c --version | cut -d ' ' -f 2 2>/dev/null` (ok)" + php_cv_re2c_version="`$RE2C --version | cut -d ' ' -f 2 2>/dev/null` (ok)" fi ]) fi case $php_cv_re2c_version in ""|invalid[)] - AC_MSG_WARN([You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.]) + AC_MSG_WARN([You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.]) RE2C="exit 0;" ;; esac @@ -2711,6 +2717,7 @@ AC_DEFUN([PHP_CHECK_CONFIGURE_OPTIONS],[ enable-zend-multibyte[)] continue;; esac fi + is_arg_set=php_[]`echo [$]arg_name | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ-' 'abcdefghijklmnopqrstuvwxyz_'` if eval test "x\$$is_arg_set" = "x"; then PHP_UNKNOWN_CONFIGURE_OPTIONS="$PHP_UNKNOWN_CONFIGURE_OPTIONS @@ -2744,7 +2751,7 @@ ifelse([$2],[],[AC_MSG_ERROR([Cannot find php_pdo_driver.h.])],[$2]) dnl dnl PHP_DETECT_ICC -dnl +dnl Detect Intel C++ Compiler and unset $GCC if ICC found AC_DEFUN([PHP_DETECT_ICC], [ ICC="no" @@ -2753,6 +2760,7 @@ AC_DEFUN([PHP_DETECT_ICC], ICC="no" AC_MSG_RESULT([no]), ICC="yes" + GCC="no" AC_MSG_RESULT([yes]) ) ])