From: Alexandre Oliva Date: Sun, 3 Sep 2000 23:02:25 +0000 (+0000) Subject: * libtool.m4: Don't quote CONFIG_SHELL nor ORIGINAL_CONFIG_SHELL. X-Git-Tag: release-1-3d~127 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=deaa5c5eec206eeb3e543878e82f7502a790e172;p=thirdparty%2Flibtool.git * libtool.m4: Don't quote CONFIG_SHELL nor ORIGINAL_CONFIG_SHELL. Quote $@ properly so that the shell expands it, not m4. --- diff --git a/ChangeLog b/ChangeLog index 838031a5e..d239c83d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-09-03 Alexandre Oliva + * libtool.m4: Don't quote CONFIG_SHELL nor ORIGINAL_CONFIG_SHELL. + Quote $@ properly so that the shell expands it, not m4. + * libtool.m4: Don't quote SHELL when `re-exec'ing, so that SHELL can be `/path/to/shell -x'. diff --git a/libtool.m4 b/libtool.m4 index 4c42dc05e..a5fa41ab1 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -286,11 +286,11 @@ else elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running ltconfig again with it. - ORIGINAL_CONFIG_SHELL="${CONFIG_SHELL-/bin/sh}" + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL - exec "$CONFIG_SHELL" "[$]0" --no-reexec ${1+"$@"} + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. lt_echo='printf %s\n' @@ -299,18 +299,18 @@ else test "X$lt_echo_testing_string" = "X$lt_echo_test_string"; then # Cool, printf works : - elif lt_echo_testing_string=`("$ORIGINAL_CONFIG_SHELL" "[$]0" --fallback-echo '\t') 2>/dev/null` && + elif lt_echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$lt_echo_testing_string" = 'X\t' && - lt_echo_testing_string=`("$ORIGINAL_CONFIG_SHELL" "[$]0" --fallback-echo "$lt_echo_test_string") 2>/dev/null` && + lt_echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$lt_echo_test_string") 2>/dev/null` && test "X$lt_echo_testing_string" = "X$lt_echo_test_string"; then - CONFIG_SHELL="$ORIGINAL_CONFIG_SHELL" + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL lt_echo="$CONFIG_SHELL [$]0 --fallback-echo" - elif lt_echo_testing_string=`("$CONFIG_SHELL" "[$]0" --fallback-echo '\t') 2>/dev/null` && + elif lt_echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$lt_echo_testing_string" = 'X\t' && - lt_echo_testing_string=`("$CONFIG_SHELL" "[$]0" --fallback-echo "$lt_echo_test_string") 2>/dev/null` && + lt_echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$lt_echo_test_string") 2>/dev/null` && test "X$lt_echo_testing_string" = "X$lt_echo_test_string"; then lt_echo="$CONFIG_SHELL [$]0 --fallback-echo" else @@ -328,7 +328,7 @@ else if test "$prev" != 'sed 50q "[$]0"'; then lt_echo_test_string=`eval $prev` export lt_echo_test_string - exec "${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}}" "[$]0" ${1+"$@"} + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. lt_echo=echo