]> Savannah Git Hosting - gnulib.git/commitdiff
bootstrap: cater to autoconf 2.59
authorEric Blake <eblake@redhat.com>
Mon, 16 Jan 2012 17:55:56 +0000 (10:55 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 16 Jan 2012 17:55:56 +0000 (10:55 -0700)
Autoconf didn't add --no-recursive until 2.59c, but gnulib supports
as far back as 2.59 for platforms like RHEL 5.

* build-aux/bootstrap (AUTORCONF): Work even when --no-recursive
is not available.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
build-aux/bootstrap

index 5ed23e605d1946b5487e0cf02ad0ed60cc37398c..b02b8155b65cd07b2bc689a47630e6459febf23f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2012-01-16  Eric Blake  <eblake@redhat.com>
 
+       bootstrap: cater to autoconf 2.59
+       * build-aux/bootstrap (AUTORCONF): Work even when --no-recursive
+       is not available.
+
        bootstrap: properly check for libtool
        * build-aux/bootstrap (libtoolize): Also run libtool when older
        usage is detected.
index 69bd960160a52211875394eac596b23d736f3b4d..2a409fcd684c53e01a470137e1ab0b3035634349 100755 (executable)
@@ -820,10 +820,14 @@ find "$m4_base" "$source_base" \
   -type l -xtype l -delete > /dev/null 2>&1
 
 # Tell autoreconf not to invoke autopoint or libtoolize; they were run above.
+no_recursive=
+case $($AUTORECONF --help) in
+  *--no-recursive*) no_recursive=--no-recursive;;
+esac
 echo "running: AUTOPOINT=true LIBTOOLIZE=true " \
-    "$AUTORECONF --verbose --install --no-recursive -I $m4_base $ACLOCAL_FLAGS"
+    "$AUTORECONF --verbose --install $no_recursive -I $m4_base $ACLOCAL_FLAGS"
 AUTOPOINT=true LIBTOOLIZE=true \
-    $AUTORECONF --verbose --install --no-recursive -I $m4_base $ACLOCAL_FLAGS \
+    $AUTORECONF --verbose --install $no_recursive -I $m4_base $ACLOCAL_FLAGS \
   || exit 1
 
 # Get some extra files from gnulib, overriding existing files.