From: Sascha Schumann Date: Thu, 11 Apr 2002 05:47:03 +0000 (+0000) Subject: properly reset ac_extra in PHP_NEW_EXTENSION X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~727 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b6012cbfbaeb7bf5f28e04dcd75021e981bd9c9;p=php properly reset ac_extra in PHP_NEW_EXTENSION redirect stderr to /dev/null to silence xargs Noticed by: Andrei --- diff --git a/acinclude.m4 b/acinclude.m4 index 5efc878db5..0dbb94a35b 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -33,7 +33,7 @@ mkdir include >/dev/null 2>&1 > Makefile.fragments dnl We need to play tricks here to avoid matching the egrep line itself pattern=define -egrep $pattern'.*include/php' $srcdir/configure|sed 's/.*>//'|xargs touch +egrep $pattern'.*include/php' $srcdir/configure|sed 's/.*>//'|xargs touch 2>/dev/null ]) dnl PHP_GEN_GLOBAL_MAKEFILE @@ -1149,7 +1149,7 @@ AC_DEFUN(PHP_NEW_EXTENSION,[ ext_builddir=[]PHP_EXT_BUILDDIR($1) ext_srcdir=[]PHP_EXT_SRCDIR($1) - ifelse($5,,,[ac_extra=`echo $ac_n "$5$ac_c"|sed s#@ext_srcdir@#$ext_srcdir#g`]) + ifelse($5,,ac_extra=,[ac_extra=`echo $ac_n "$5$ac_c"|sed s#@ext_srcdir@#$ext_srcdir#g`]) if test "$3" != "shared" && test "$3" != "yes" && test "$4" != "cli"; then dnl ---------------------------------------------- Static module