From: Ralf Wildenhues Date: Mon, 27 Mar 2006 17:42:17 +0000 (+0000) Subject: * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote X-Git-Tag: AUTOCONF-2.59c~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff15ef7a2cf74acfe91a87bc15c6d514883fe305;p=thirdparty%2Fautoconf.git * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote `$0' to protect against spaces. * lib/autotest/general.m4 (AT_INIT): Likewise. * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for `$0', $as_me. --- diff --git a/ChangeLog b/ChangeLog index af91d850d..6eb556362 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-03-27 Ralf Wildenhues + + * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote + `$0' to protect against spaces. + * lib/autotest/general.m4 (AT_INIT): Likewise. + * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for + `$0', $as_me. + 2006-03-26 Ralf Wildenhues * bin/autoscan.in: The value of find_configure_ac should be diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4 index 3a75fe8bd..7d6a98fce 100644 --- a/lib/autoconf/status.m4 +++ b/lib/autoconf/status.m4 @@ -1255,7 +1255,7 @@ if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $[0] " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&AS_MESSAGE_FD CONFIG_SHELL=$SHELL export CONFIG_SHELL - exec $SHELL $[0] $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + exec $SHELL "$[0]" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi m4_ifdef([_AC_OUTPUT_COMMANDS_INIT], [# diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index d71b18829..1eb12d3c0 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -940,17 +940,17 @@ else # Summary of failed and skipped tests. if test $at_fail_count != 0; then echo "Failed tests:" - $SHELL $[0] $at_fail_list --list + $SHELL "$[0]" $at_fail_list --list echo fi if test $at_skip_count != 0; then echo "Skipped tests:" - $SHELL $[0] $at_skip_list --list + $SHELL "$[0]" $at_skip_list --list echo fi if test $at_xpass_count != 0; then echo "Unexpected passes:" - $SHELL $[0] $at_xpass_list --list + $SHELL "$[0]" $at_xpass_list --list echo fi if test $at_fail_count != 0; then diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4 index 7da99f07a..bc3989a6f 100644 --- a/lib/m4sugar/m4sh.m4 +++ b/lib/m4sugar/m4sh.m4 @@ -817,13 +817,13 @@ _AS_LINENO_WORKS || { t loop s/-\n.*// ' >$as_me.lineno && - chmod +x $as_me.lineno || + chmod +x "$as_me.lineno" || AS_ERROR([cannot create $as_me.lineno; rerun with a POSIX shell]) # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). - . ./$as_me.lineno + . "./$as_me.lineno" # Exit status is that of the last command. exit }