aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNick Clifton <nickc@cambridge.redhat.com>2001-08-02 17:36:33 +0000
committerNick Clifton <nickc@gcc.gnu.org>2001-08-02 17:36:33 +0000
commite7f62dcf05205d3df5ae7c40ce2229bf2da16fb0 (patch)
tree27beb527d7856f3c0d91d18fc3fc9e4c7e1170af /gcc
parent1518ec60538552eeba5dc2c8dab1fcb6d58de9c2 (diff)
downloadgcc-e7f62dcf05205d3df5ae7c40ce2229bf2da16fb0.zip
gcc-e7f62dcf05205d3df5ae7c40ce2229bf2da16fb0.tar.gz
gcc-e7f62dcf05205d3df5ae7c40ce2229bf2da16fb0.tar.bz2
Only (re)build configure, config.in and cstamp-h.in in maintainer mode.
From-SVN: r44577
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/Makefile.in20
2 files changed, 21 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 242a2a4..d600c1e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
+
+ * Makefile.in ($(srcdir)/configure): Only rebuild in
+ maintainer mode.
+ ($(srcdir)/config.in): Only define in maintainer mode.
+ ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
+
2001-08-02 David Edelsohn <edelsohn@gnu.org>
* doc/install.texi (Install GCC: Binaries): Update Bull info.
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 60823ee..12bd0b3 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -880,7 +880,12 @@ cs-tm_p.h: Makefile
HEADERS="$(tm_p_file)" DEFINES="" TARGET_CPU_DEFAULT="" \
$(SHELL) $(srcdir)/mkconfig.sh tm_p.h
-$(srcdir)/configure: $(srcdir)/configure.in
+# Don't automatically run autoconf, since configure.in might be accidentally
+# newer than configure. Also, this writes into the source directory which
+# might be on a read-only file system. If configured for maintainer mode
+# then do allow autoconf to be run.
+
+$(srcdir)/configure: @MAINT@ $(srcdir)/configure.in
(cd $(srcdir) && autoconf)
gccbug: $(srcdir)/gccbug.in
@@ -898,11 +903,14 @@ mklibgcc: $(srcdir)/mklibgcc.in
# "echo timestamp" is used instead of touch to be consistent with other
# packages that use autoconf (??? perhaps also to avoid problems with patch?).
# ??? Newer versions have a maintainer mode that may be useful here.
-$(srcdir)/config.in: $(srcdir)/cstamp-h.in
-$(srcdir)/cstamp-h.in: $(srcdir)/configure.in $(srcdir)/acconfig.h
- (cd $(srcdir) && autoheader)
- @rm -f $(srcdir)/cstamp-h.in
- echo timestamp > $(srcdir)/cstamp-h.in
+
+# Don't run autoheader automatically either.
+# Only run it if maintainer mode is enabled.
+@MAINT@ $(srcdir)/config.in: $(srcdir)/cstamp-h.in
+@MAINT@ $(srcdir)/cstamp-h.in: $(srcdir)/configure.in $(srcdir)/acconfig.h
+@MAINT@ (cd $(srcdir) && autoheader)
+@MAINT@ @rm -f $(srcdir)/cstamp-h.in
+@MAINT@ echo timestamp > $(srcdir)/cstamp-h.in
auto-host.h: cstamp-h ; @true
cstamp-h: config.in config.status
CONFIG_HEADERS=auto-host.h:config.in LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.status