From: Antony Dovgal Date: Mon, 2 Oct 2006 19:17:53 +0000 (+0000) Subject: fix the fix for #39004 X-Git-Tag: php-5.2.0RC5~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c1b3c6d881fef417ab4eff0dde9655be9ed18d0;p=php fix the fix for #39004 --- diff --git a/acinclude.m4 b/acinclude.m4 index 9df69fa67a..f1562795a4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2503,16 +2503,16 @@ EOF fi done - echo "'[$]0'" >> $1 + echo "'[$]0' \\" >> $1 for arg in $ac_configure_args; do - if test `expr substr $arg 1 1` != "'"; then - if test `expr substr $arg 1 2` != '--'; then + if test `expr -- $arg : "'.*"` = 0; then + if test `expr -- $arg : "--.*"` = 0; then break; fi echo "'[$]arg' \\" >> $1 CONFIGURE_COMMAND="$CONFIGURE_COMMAND '[$]arg'" else - if test `expr substr $arg 2 2` != '--'; then + if test `expr -- $arg : "'--.*"` = 0; then break; fi echo "[$]arg \\" >> $1