From eaf33277027de8b8f5a104db588b38e2eddb0ceb Mon Sep 17 00:00:00 2001 From: wlemb Date: Sun, 19 Aug 2001 21:32:25 +0000 Subject: Use a config.h file. * src/include/lib.h: Include config.h. * All C files: Ditto (if necessary). * All C++ source and header files: Include lib.h first (if necessary). * src/include/config.hin: New file (autogenerated by autoheader). * stamp-h.in: New file. * configure.ac: Updated. * aclocal.m4: Add third parameters to AC_DEFINE macros. (GROFF_ARRAY_DELETE): Simplified. * Makefile.sub (DISTCLEANFILES): Updated. Added targets for remaking config.status, config.hin, config.h, stamp-h.in, and stamp-h. * configure: Regenerated. * NEWS: Updated. --- Makefile.sub | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'Makefile.sub') diff --git a/Makefile.sub b/Makefile.sub index 17ac3c1d..7ecd5fc9 100644 --- a/Makefile.sub +++ b/Makefile.sub @@ -1,8 +1,21 @@ -DISTCLEANFILES=config.status config.log config.cache Makefile \ +DISTCLEANFILES=config.h config.status config.log config.cache Makefile \ src/xditview/Imakefile CLEANADD=Makefile.cfg conftest* distfiles: configure -configure: configure.ac aclocal.m4 - cd $(srcdir); autoconf +$(scrdir)/configure: configure.ac aclocal.m4 + cd $(srcdir) && autoconf + +config.status: configure + $(SHELL) config.status --recheck + +# autoheader might not change config.hin, so touch a stamp file. +$(srcdir)/config.hin: stamp-h.in +$(srcdir)/stamp-h.in: configure.ac aclocal.m4 + cd $(srcdir) && autoheader + echo timestamp > $(srcdir)/stamp-h.in + +config.h: stamp-h +stamp-h: config.hin config.status + $(SHELL) config.status -- cgit v1.2.1