From: Paul Eggert Date: Fri, 1 Aug 2003 01:10:58 +0000 (+0000) Subject: (_AS_UNSET_PREPARE): Work around a bug in Bash 2.01. Problem reported X-Git-Tag: AUTOCONF-2.57b~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0efe16f10507816c5073f30500913292334ae78;p=thirdparty%2Fautoconf.git (_AS_UNSET_PREPARE): Work around a bug in Bash 2.01. Problem reported by Brian Gough in . --- diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4 index e19afb91..9826b538 100644 --- a/lib/m4sugar/m4sh.m4 +++ b/lib/m4sugar/m4sh.m4 @@ -276,9 +276,11 @@ fi # _AS_UNSET_PREPARE # ----------------- # AS_UNSET depends upon $as_unset: compute it. +# Use MAIL to trigger a bug in Bash 2.01; +# the "|| exit" suppresses the resulting "Segmentation fault" message. m4_defun([_AS_UNSET_PREPARE], [# Support unset when possible. -if (as_foo=foo; unset as_foo) >/dev/null 2>&1; then +if ((MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false