summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-01-22 21:48:51 +0100
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-01-22 21:48:51 +0100
commit0fd647c6364a383b13af31b45e07679c293ff09f (patch)
tree5e9c0a4020045d158ca89826012254a074708f3b /lib
parentbe86a1b9216b5e11113373c7584f38fe0bad0adc (diff)
downloadautoconf-0fd647c6364a383b13af31b45e07679c293ff09f.tar.gz
Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
* lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help mode, we change to the source directory, also set $ac_pwd so we do not go back to the build tree for the next config subdir. * tests/torture.at (Deep Package): Extend test to contain two config subdirs on the top level.
Diffstat (limited to 'lib')
-rw-r--r--lib/autoconf/general.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
index bc41a818..92483db3 100644
--- a/lib/autoconf/general.m4
+++ b/lib/autoconf/general.m4
@@ -1103,7 +1103,7 @@ if test "$ac_init_help" = "recursive"; then
# If there are subdirs, report their specific --help.
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
test -d "$ac_dir" ||
- { cd "$srcdir" && srcdir=. && test -d "$ac_dir"; } ||
+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
continue
_AC_SRCDIRS(["$ac_dir"])
cd "$ac_dir" || { ac_status=$?; continue; }