From a8bc18420702e1b4fa524d21eae804cd6004879e Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 2 Aug 2013 13:09:06 +0200 Subject: [PATCH] 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 --- acinclude.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 07b1f8eb57..fb490594d4 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" -- 2.50.1