+2006-07-07 Paul Eggert <eggert@cs.ucla.edu>
+
+ * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
+ more globally, since the 2006-06-30 patch didn't suffice. Problem
+ reported by Keith Marshall. Also, don't bother with builddir2,
+ since it shouldn't be needed any more.
+
2006-07-07 Paolo Bonzini <bonzini@gnu.org>
* doc/autoconf.texi (Generic compiler characteristics):
# It should understand configure.ac.
AT_CHECK([[grep '1.[01234]' stdout && exit 77]], [1], [ignore])
+# We don't want to run this test if this shell doesn't support
+# `unset'.
+AT_CHECK([
+if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+ exit 0
+else
+ exit 77
+fi
+])
+
+# Set CONFIG_SITE to a nonexistent file, so that there are
+# no worries about nonstandard values for 'prefix'.
+CONFIG_SITE=no-such-file
+export CONFIG_SITE
+
# The contents of `inner/', and `inner/innermost/'.
AS_MKDIR_P([inner/innermost])
# Running the outer configure recursively should provide the innermost
# help strings.
-AT_CHECK([CONFIG_SITE=no-such-file ./configure --help=recursive | grep INNER], 0, [ignore])
+AT_CHECK([./configure --help=recursive | grep INNER], 0, [ignore])
# Running the outer configure should trigger the inner.
AT_CHECK_CONFIGURE
# The same, but from a builddir.
AS_MKDIR_P([builddir])
-AT_CHECK([cd builddir && CONFIG_SITE=no-such-file ../configure], 0, [ignore])
+AT_CHECK([cd builddir && ../configure], 0, [ignore])
AT_CHECK([cat builddir/inner/innermost/config], 0,
[INNER=inner
srcdir=../../../inner/innermost
])
# Make sure precious variables and command line options are properly
-# passed, even when there are duplicates. Run another directory so
-# that if the user has set config.site to have a config.cache, then
-# the two runs don't have colliding caches.
-AS_MKDIR_P([builddir2])
-AT_CHECK([cd builddir2 && CONFIG_SITE=no-such-file ../configure --prefix /bad --prefix /good INNER=bad INNER=good], 0, [ignore])
-AT_CHECK([cat builddir2/inner/innermost/config], 0,
+# passed, even when there are duplicates.
+AT_CHECK([cd builddir && ../configure --prefix /bad --prefix /good INNER=bad INNER=good], 0, [ignore])
+AT_CHECK([cat builddir/inner/innermost/config], 0,
[INNER=good
srcdir=../../../inner/innermost
top_srcdir=../../../inner
AT_CHECK([cd inner && autoreconf configure.in], [], [], [ignore])
AT_CHECK([autoreconf inner/configure.in], [], [], [ignore])
+unset CONFIG_SITE
+
AT_CLEANUP