com php-src: fix generating config.nice: acinclude.m4

From: Date: Fri, 02 Aug 2013 11:15:55 +0000
Subject: com php-src: fix generating config.nice: acinclude.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-72811@lists.php.net to get a copy of this message
Commit: a8bc18420702e1b4fa524d21eae804cd6004879e Author: Michael Wallner <mike@php.net> Fri, 2 Aug 2013 13:09:06 +0200 Parents: 55d335fa9598c688dc02118bdf7bf239fdbb5c82 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a8bc18420702e1b4fa524d21eae804cd6004879e Log: fix generating config.nice Configure runs like: $./configure -C CFLAGS="-ggdb" --enable-debug --prefix=$(pwd)/usr did result in an empty config.nice * allow single dash flags like -C, -s etc. * allow passing evnironment variables as arguments Changed paths: M acinclude.m4 Diff: diff --git a/acinclude.m4 b/acinclude.m4 index 07b1f8e..fb49059 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2686,14 +2686,14 @@ EOF fi for arg in $ac_configure_args; do if test expr -- $arg : "'.*" = 0; then - if test expr -- $arg : "--.*" = 0; then - break; + if test expr -- $arg : "-.*" = 0 && test expr -- $arg : ".*=.*" = 0; then + continue; fi echo "'[$]arg' \\" >> $1 CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '[$]arg'" else - if test expr -- $arg : "'--.*" = 0; then - break; + if test expr -- $arg : "'-.*" = 0 && test expr -- $arg : "'.*=.*" = 0; then + continue; fi echo "[$]arg \\" >> $1 CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS [$]arg"

« previous php.cvs (#72811) next »