assignments changing $?.
+2000-09-28 Pavel Roskin <proski@gnu.org>
+
+ * acgeneral.m4 (AC_SHELL_UNSET): Don't rely on variable
+ assignments changing $?.
+
2000-09-28 Pavel Roskin <proski@gnu.org>
* acgeneral.m4 (_AC_OUTPUT_FILES): Fixed exit status.
# 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)
# 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)