From: Pavel Roskin Date: Thu, 28 Sep 2000 17:43:35 +0000 (+0000) Subject: * acgeneral.m4 (AC_SHELL_UNSET): Don't rely on variable X-Git-Tag: autoconf-2.50~598 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=270cc51063945729f378dfc41b55a55dfbe91b66;p=thirdparty%2Fautoconf.git * acgeneral.m4 (AC_SHELL_UNSET): Don't rely on variable assignments changing $?. --- diff --git a/ChangeLog b/ChangeLog index 801a45902..71384d27b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-09-28 Pavel Roskin + + * acgeneral.m4 (AC_SHELL_UNSET): Don't rely on variable + assignments changing $?. + 2000-09-28 Pavel Roskin * acgeneral.m4 (_AC_OUTPUT_FILES): Fixed exit status. diff --git a/acgeneral.m4 b/acgeneral.m4 index 59c937ab2..14dc82e1f 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -804,7 +804,7 @@ $debug || # Try to unset the env VAR, otherwise set it to # VALUE-IF-UNSET-NOT-SUPPORTED. `ac_unset' must have been computed. define([AC_SHELL_UNSET], -[$ac_unset $1 || test "${$1+set}" != set || $1=$2 && export $1]) +[$ac_unset $1 || test "${$1+set}" != set || { $1=$2; export $1; }]) # AC_SHELL_MKDIR_P(PATH) diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 59c937ab2..14dc82e1f 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -804,7 +804,7 @@ $debug || # Try to unset the env VAR, otherwise set it to # VALUE-IF-UNSET-NOT-SUPPORTED. `ac_unset' must have been computed. define([AC_SHELL_UNSET], -[$ac_unset $1 || test "${$1+set}" != set || $1=$2 && export $1]) +[$ac_unset $1 || test "${$1+set}" != set || { $1=$2; export $1; }]) # AC_SHELL_MKDIR_P(PATH)