]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1998-09-27 Ben Elliston <bje@cygnus.com>
authorBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Sun, 27 Sep 1998 03:46:21 +0000 (03:46 +0000)
committerBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Sun, 27 Sep 1998 03:46:21 +0000 (03:46 +0000)
* Makefile.in (all): Generate frozen .m4 files at build time.
(install): Do not freeze .m4 files. Install pre-frozen .m4f files
using $(INSTALL_DATA).
(.m4.m4f): Freeze files if m4 supports stored internal state.
Contributed by Karl Heuer <kwzh@gnu.org>.

ChangeLog
Makefile.in
doc/Makefile.in

index ad31a1dcf30c4a04b5957f7eecd9cd5d99ccb7fe..f5e012a02c3e6677caf682ffdaab42a5e7767b83 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 1998-09-27  Ben Elliston  <bje@cygnus.com>
 
+       * Makefile.in (all): Generate frozen .m4 files at build time.
+       (install): Do not freeze .m4 files. Install pre-frozen .m4f files
+       using $(INSTALL_DATA).
+       (.m4.m4f): Freeze files if m4 supports stored internal state.
+       Contributed by Karl Heuer <kwzh@gnu.org>.
+       
        * install-sh: Import latest version from the FSF.
 
        * mkinstalldirs: Likewise.
index 7cb2cbb30371450ef36896b1b8bc4a98626dc867..ade9e5017ca70fc5395254a185c5eb847336231f 100644 (file)
@@ -32,6 +32,10 @@ PERL = @PERL@
 
 # Programs that are ALWAYS installed (and are created in the build dir).
 ASCRIPTS = autoconf autoheader autoreconf autoupdate ifnames 
+
+# M4 input that is frozen.
+M4FROZEN = autoconf.m4f autoheader.m4f
+
 # All programs, including those only installed if you have perl.
 SCRIPTS = $(ASCRIPTS) @SCRIPTS@
 
@@ -78,10 +82,10 @@ editsh = sed -e 's,@''datadir''@,$(acdatadir),g' -e \
        -e 's,@''SHELL''@,$(SHELL),g'
 editpl = sed -e 's,@''datadir''@,$(acdatadir),g' -e 's,@''PERL''@,$(PERL),g'
 
-all: ${SCRIPTS} info
+all: ${SCRIPTS} ${M4FROZEN} info
 
 .SUFFIXES:
-.SUFFIXES: .sh .pl
+.SUFFIXES: .sh .pl .m4 .m4f
 
 .sh:
        rm -f $@ $@.tmp
@@ -91,6 +95,14 @@ all: ${SCRIPTS} info
        rm -f $@ $@.tmp
        $(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
 
+.m4.m4f:
+       @case `$(M4) --help </dev/null 2>&1` in \
+       *reload-state*) echo freezing $*.m4; \
+         $(M4) -F $*.m4f -I${srcdir} ${srcdir}/$*.m4 ;; \
+       *traditional*) ;; \
+       *) echo Error: Autoconf requires GNU m4 1.1 or later; exit 1 ;; \
+       esac
+
 info: autoconf.info @standards_info@ INSTALL
 
 # Use --no-split to avoid creating filenames > 14 chars.
@@ -125,18 +137,14 @@ installdirs:
        $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(acdatadir)
 
 install: all $(M4FILES) acconfig.h installdirs install-info
-       @case `$(M4) --help < /dev/null 2>&1` in \
-       *reload-state*) echo installing frozen m4 files; \
-         $(M4) -F $(acdatadir)/autoconf.m4f -I${srcdir} ${srcdir}/autoconf.m4 ; \
-         $(M4) -F $(acdatadir)/autoheader.m4f -I${srcdir} ${srcdir}/autoheader.m4 ;; \
-       *traditional*) ;; \
-       *) echo Error: Autoconf requires GNU m4 1.1 or later; exit 1 ;; \
-       esac
        for p in $(ASCRIPTS); do \
          $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
        done
+       for i in $(M4FROZEN); do \
+         $(INSTALL_DATA) $$i $(acdatadir)/$$i; \
+       done
        for i in $(M4FILES) acconfig.h; do \
-       $(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \
+         $(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \
        done
        -if test -f autoscan; then \
        $(INSTALL_PROGRAM) autoscan $(bindir)/`echo autoscan|sed '$(transform)'`; \
index 7cb2cbb30371450ef36896b1b8bc4a98626dc867..ade9e5017ca70fc5395254a185c5eb847336231f 100644 (file)
@@ -32,6 +32,10 @@ PERL = @PERL@
 
 # Programs that are ALWAYS installed (and are created in the build dir).
 ASCRIPTS = autoconf autoheader autoreconf autoupdate ifnames 
+
+# M4 input that is frozen.
+M4FROZEN = autoconf.m4f autoheader.m4f
+
 # All programs, including those only installed if you have perl.
 SCRIPTS = $(ASCRIPTS) @SCRIPTS@
 
@@ -78,10 +82,10 @@ editsh = sed -e 's,@''datadir''@,$(acdatadir),g' -e \
        -e 's,@''SHELL''@,$(SHELL),g'
 editpl = sed -e 's,@''datadir''@,$(acdatadir),g' -e 's,@''PERL''@,$(PERL),g'
 
-all: ${SCRIPTS} info
+all: ${SCRIPTS} ${M4FROZEN} info
 
 .SUFFIXES:
-.SUFFIXES: .sh .pl
+.SUFFIXES: .sh .pl .m4 .m4f
 
 .sh:
        rm -f $@ $@.tmp
@@ -91,6 +95,14 @@ all: ${SCRIPTS} info
        rm -f $@ $@.tmp
        $(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
 
+.m4.m4f:
+       @case `$(M4) --help </dev/null 2>&1` in \
+       *reload-state*) echo freezing $*.m4; \
+         $(M4) -F $*.m4f -I${srcdir} ${srcdir}/$*.m4 ;; \
+       *traditional*) ;; \
+       *) echo Error: Autoconf requires GNU m4 1.1 or later; exit 1 ;; \
+       esac
+
 info: autoconf.info @standards_info@ INSTALL
 
 # Use --no-split to avoid creating filenames > 14 chars.
@@ -125,18 +137,14 @@ installdirs:
        $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(acdatadir)
 
 install: all $(M4FILES) acconfig.h installdirs install-info
-       @case `$(M4) --help < /dev/null 2>&1` in \
-       *reload-state*) echo installing frozen m4 files; \
-         $(M4) -F $(acdatadir)/autoconf.m4f -I${srcdir} ${srcdir}/autoconf.m4 ; \
-         $(M4) -F $(acdatadir)/autoheader.m4f -I${srcdir} ${srcdir}/autoheader.m4 ;; \
-       *traditional*) ;; \
-       *) echo Error: Autoconf requires GNU m4 1.1 or later; exit 1 ;; \
-       esac
        for p in $(ASCRIPTS); do \
          $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
        done
+       for i in $(M4FROZEN); do \
+         $(INSTALL_DATA) $$i $(acdatadir)/$$i; \
+       done
        for i in $(M4FILES) acconfig.h; do \
-       $(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \
+         $(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \
        done
        -if test -f autoscan; then \
        $(INSTALL_PROGRAM) autoscan $(bindir)/`echo autoscan|sed '$(transform)'`; \