From: Paul Eggert Date: Sat, 25 Dec 2004 07:49:41 +0000 (+0000) Subject: (_AS_DETECT_BETTER_SHELL): Test candidate X-Git-Tag: AUTOCONF-2.59c~529 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07043e79e71b0929fffd7e2ba4ea3db3f4d8aa0d;p=thirdparty%2Fautoconf.git (_AS_DETECT_BETTER_SHELL): Test candidate shells in subshell, to avoid noise from ash. (trivial change) --- diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4 index 3036cab6f..e403b1c9b 100644 --- a/lib/m4sugar/m4sh.m4 +++ b/lib/m4sugar/m4sh.m4 @@ -228,10 +228,12 @@ if test "x$CONFIG_SHELL" = x; then esac]) for as_shell in $as_candidate_shells $SHELL; do - AS_IF([_AS_RUN([_AS_DETECT_REQUIRED_BODY], [$as_shell 2> /dev/null])], + AS_IF([_AS_RUN([_AS_DETECT_REQUIRED_BODY], + [($as_shell) 2> /dev/null])], [CONFIG_SHELL=$as_shell as_have_required=yes - AS_IF([_AS_RUN([_AS_DETECT_SUGGESTED_BODY], [$as_shell 2> /dev/null])], + AS_IF([_AS_RUN([_AS_DETECT_SUGGESTED_BODY], + [($as_shell) 2> /dev/null])], [break])]) done