This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[libstdc++] Cleanup build system 9/n
- From: Kelley Cook <kcook at gcc dot gnu dot org>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 07 Apr 2005 11:05:39 -0400
- Subject: [libstdc++] Cleanup build system 9/n
- Hop-count: 1
This removes PACKAGE and VERSION from acconfig.h and replaces them with
AH_TEMPLATES.
As PACKAGE and VERSION don't seem to be actually used (except in make
dist which we don't do), either removing the Automake "no-defines"
option or just deleting them would probably also work, but this is
clearly the safest method as it leaves all the generated files the same
except for whitespace and comments.
It also updates the configure.ac How to reconfigure comment :)
OK?
2005-04-07 Kelley Cook <kcook@gcc.gnu.org>
* configure.ac: Create template for PACKAGE and VERSION.
Update comment on how to regenerate file.
* acconfig.h: Remove PACKAGE and VERSION.
* config.h.in, configure: Regenerate.
diff -prdu -x '*~' -x autom4te.cache /home/kcook34/gcc-orig/libstdc++-v3/acconfig.h ./acconfig.h
--- /home/kcook34/gcc-orig/libstdc++-v3/acconfig.h 2005-04-07 10:15:03.089089900 -0400
+++ ./acconfig.h 2005-04-07 10:27:35.581401400 -0400
@@ -1,9 +1,5 @@
// Symbols and macros for libstdc++ -*- C++ -*-
-// Defines libstdc++ version.
-#undef PACKAGE
-#undef VERSION
-
// @BOTTOM@
//
// Define symbol versioning in assember directives. If symbol
diff -prdu -x '*~' -x autom4te.cache /home/kcook34/gcc-orig/libstdc++-v3/configure.ac ./configure.ac
--- /home/kcook34/gcc-orig/libstdc++-v3/configure.ac 2005-04-06 09:32:02.695336800 -0400
+++ ./configure.ac 2005-04-07 10:17:59.244489700 -0400
@@ -1,5 +1,4 @@
-# Process this file with autoconf to produce a configure script, like so:
-# aclocal && autoconf && autoheader && automake
+# Process this file with autoreconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(package-unused, version-unused,, libstdc++)
@@ -59,6 +58,8 @@ fi
# -Wall: turns on all automake warnings...
# -Wno-portability: ...except this one, since GNU make is now required.
AM_INIT_AUTOMAKE([1.9.1 no-define foreign no-dependencies -Wall -Wno-portability -Wno-override])
+AH_TEMPLATE(PACKAGE, [Name of package])
+AH_TEMPLATE(VERSION, [Version number of package])
# Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
# up critical shell variables.