sas Tue Jul 8 01:36:39 2003 EDT Modified files: (Branch: PHP_4) /php-src/scripts phpize.in Log: sync with PHP_4_3 Index: php-src/scripts/phpize.in diff -u php-src/scripts/phpize.in:1.1.2.2 php-src/scripts/phpize.in:1.1.2.2.2.1 --- php-src/scripts/phpize.in:1.1.2.2 Mon Jun 16 17:44:54 2003 +++ php-src/scripts/phpize.in Tue Jul 8 01:36:39 2003 @@ -12,20 +12,36 @@ aclocal.m4 config.h config.h.in conftest* ltmain.sh libtool config.cache \ config.log config.status Makefile Makefile.fragments Makefile.objects" -if test ! -r config.m4; then - echo "Cannot find config.m4. " - echo "Make sure that you run $0 in the top level source directory of the module" - exit 1 -fi - -# Cleanup -if test "$1" = "--clean"; then - echo "Cleaning.." - for i in $CLEAN_FILES; do - test -e && rm -rf $i - done - exit 0 -fi +case "$1" in + # Cleanup + --clean) + if test -r config.m4; then + echo "Cleaning.." + for i in $CLEAN_FILES; do + test -e $i && rm -rf $i + done + exit 0 + else + echo "Cannot find config.m4. " + echo "Make sure that you run '$0 --clean' in the top level source directory of the module" + echo + exit 1 + fi + ;; + # Usage + --help) + echo "Usage: $0 [--clean|--help]" + exit 1 + ;; + *) + if test ! -r config.m4; then + echo "Cannot find config.m4. " + echo "Make sure that you run '$0' in the top level source directory of the module" + echo + exit 1 + fi + ;; +esac test -d build || mkdir build @@ -44,9 +60,9 @@ libtoolize -f -c || exit 1 # dumping API NOs: -PHP_API_VERSION=`grep -E '#define PHP_API_VERSION' $includedir/main/php.h|sed 's/#define PHP_API_VERSION//'` -ZEND_MODULE_API_NO=`grep -E '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|sed 's/#define ZEND_MODULE_API_NO//'` -ZEND_EXTENSION_API_NO=`grep -E '#define ZEND_EXTENSION_API_NO' $includedir/Zend/zend_extensions.h|sed 's/#define ZEND_EXTENSION_API_NO//'` +PHP_API_VERSION=`egrep '#define PHP_API_VERSION' $includedir/main/php.h|sed 's/#define PHP_API_VERSION//'` +ZEND_MODULE_API_NO=`egrep '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|sed 's/#define ZEND_MODULE_API_NO//'` +ZEND_EXTENSION_API_NO=`egrep '#define ZEND_EXTENSION_API_NO' $includedir/Zend/zend_extensions.h|sed 's/#define ZEND_EXTENSION_API_NO//'` echo "Configuring for:" echo " PHP Api Version: "$PHP_API_VERSION
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php