2009-10-11 Stefano Lattarini <stefano.lattarini@gmail.com>
+ Updated code enabling Bourne-compatibility in test scripts.
+ * tests/defs.in: updated the code enabling Bourne-compatibility
+ mode in the shell (now it's copied from autoconf 2.64).
+
Avoid leaking TEST_LOG_COMPILER in environment of test scripts.
* tests/defs.in: Unset variable `TEST_LOG_COMPILER'.
# Defines for Automake testing environment.
# Tom Tromey <tromey@cygnus.com>
-# Be Bourne compatible.
-# (Snippet copied from configure's initialization in Autoconf 2.59c.)
+# Be more Bourne compatible.
+# (Snippet copied from configure's initialization in Autoconf 2.64)
+DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
- # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
else
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
fi
-BIN_SH=xpg4; export BIN_SH # for Tru64
-DUALCASE=1; export DUALCASE # for MKS sh
# Ensure we are running from the right directory.
test -f ./defs || {