build: don't try to run autoheader if we don't use it
authorJim Meyering <meyering@redhat.com>
Tue, 8 Sep 2009 20:21:59 +0000 (22:21 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 8 Sep 2009 20:22:39 +0000 (22:22 +0200)
* build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
is not used in configure.ac.

ChangeLog
build-aux/bootstrap

index 8cf27c0..5391614 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-08  Jim Meyering  <meyering@redhat.com>
+
+       build: don't try to run autoheader if we don't use it
+       * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
+       is not used in configure.ac.
+
 2009-09-08  Eric Blake  <ebb9@byu.net>
 
        euidaccess: fix compilation error
index b6dce12..8f14199 100755 (executable)
@@ -728,6 +728,10 @@ find "$m4_base" "$source_base" \
 
 # Reconfigure, getting other files.
 
+# Skip autoheader if it's not needed.
+grep '^[        ]*AC_CONFIG_HEADERS\>' configure.ac >/dev/null ||
+  AUTOHEADER=true
+
 for command in \
   libtool \
   "${ACLOCAL-aclocal} --force -I m4" \