jani Wed Jul 11 21:47:04 2007 UTC
Modified files:
/php-src acinclude.m4
Log:
MFB: PHP_CHECK_CONFIGURE_OPTIONS
http://cvs.php.net/viewvc.cgi/php-src/acinclude.m4?r1=1.374&r2=1.375&diff_format=u
Index: php-src/acinclude.m4
diff -u php-src/acinclude.m4:1.374 php-src/acinclude.m4:1.375
--- php-src/acinclude.m4:1.374 Wed Jul 11 17:39:04 2007
+++ php-src/acinclude.m4 Wed Jul 11 21:47:04 2007
@@ -1,5 +1,5 @@
dnl
-dnl $Id: acinclude.m4,v 1.374 2007/07/11 17:39:04 johannes Exp $
+dnl $Id: acinclude.m4,v 1.375 2007/07/11 21:47:04 jani Exp $
dnl
dnl This file contains local autoconf functions.
dnl
@@ -2609,6 +2609,53 @@
])
dnl
+dnl PHP_CHECK_CONFIGURE_OPTIONS
+dnl
+AC_DEFUN([PHP_CHECK_CONFIGURE_OPTIONS],[
+ for arg in $ac_configure_args; do
+ case $arg in
+ --with-*[)]
+ arg_name="`echo [$]arg | $SED -e 's/--with-//g' -e 's/=.*//g'`"
+ ;;
+ --without-*[)]
+ arg_name="`echo [$]arg | $SED -e 's/--without-//g' -e 's/=.*//g'`"
+ ;;
+ --enable-*[)]
+ arg_name="`echo [$]arg | $SED -e 's/--enable-//g' -e 's/=.*//g'`"
+ ;;
+ --disable-*[)]
+ arg_name="`echo [$]arg | $SED -e 's/--disable-//g' -e 's/=.*//g'`"
+ ;;
+ *[)]
+ continue
+ ;;
+ esac
+ case $arg_name in
+ # Allow --disable-all / --enable-all
+ all[)];;
+
+ # Allow certain libtool options
+ libtool-lock | pic | tags | shared | static | fast-install | gnu-ld[)];;
+
+ # Allow certain TSRM options
+ tsrm-pth | tsrm-st | tsrm-pthreads[)];;
+
+ # Allow certain Zend options
+ zend-vm | maintainer-zts | inline-optimization | zend-multibyte[)];;
+
+ # All the rest must be set using the PHP_ARG_* macros
+ *[)]
+ is_arg_set=PHP_[]`echo [$]arg_name | tr 'abcdefghijklmnopqrstuvwxyz-'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
+ if eval test -z "\$$is_arg_set"; then
+ PHP_UNKNOWN_CONFIGURE_OPTIONS="$PHP_UNKNOWN_CONFIGURE_OPTIONS
+[$]arg"
+ fi
+ ;;
+ esac
+ done
+])
+
+dnl
dnl PHP_CHECK_PDO_INCLUDES([found [, not-found]])
dnl
AC_DEFUN([PHP_CHECK_PDO_INCLUDES],[
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php