bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] build: don't try to run autoheader if we don't use it


From: Jim Meyering
Subject: [PATCH] build: don't try to run autoheader if we don't use it
Date: Tue, 08 Sep 2009 22:25:15 +0200

I wanted this change in vc-dwim, since it doesn't use autoheader:
I'd rather skip autoheader than add an unnecessary AC_CONFIG_HEADERS.

>From 6588bee3103aceaf840cb073ef5717d85d3e412a Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Tue, 8 Sep 2009 22:21:59 +0200
Subject: [PATCH] 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.
---
 ChangeLog           |    6 ++++++
 build-aux/bootstrap |    4 ++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8cf27c0..5391614 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-08  Jim Meyering  <address@hidden>
+
+       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  <address@hidden>

        euidaccess: fix compilation error
diff --git a/build-aux/bootstrap b/build-aux/bootstrap
index b6dce12..8f14199 100755
--- a/build-aux/bootstrap
+++ b/build-aux/bootstrap
@@ -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" \
--
1.6.5.rc0.164.g5f6b0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]