Patch: enable dependency tracking in libgfortran

Tom Tromey tromey@redhat.com
Tue Jan 16 19:22:00 GMT 2007


Andrew Pinski mentioned a libgfortran build dependency problem on irc
yesterday, and I happened to take a look.

It seems as though libgfortran disables automake's automatic
dependency tracking feature.  The comment says "just for now", and
after a bit of research I think that this was probably cut-and-pasted
from libstdc++.

Tested on x86 FC 5.

I think this obsoletes an earlier patch which adds explicit
dependencies:

    http://gcc.gnu.org/ml/gcc-patches/2007-01/msg00594.html

Ok?

Tom

:ADDPATCH libgfortran:

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	PR libgfortran/27107:
	* aclocal.m4, configure, Makefile.in: Rebuilt.
	* configure.ac: Enable automake dependency tracking.  Update
	minimum automake version.

Index: configure.ac
===================================================================
--- configure.ac	(revision 120730)
+++ configure.ac	(working copy)
@@ -42,16 +42,15 @@
 
 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
-#  1.8.2:  minimum required version
+#  1.9.6:  minimum required version
 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
 #              of other PACKAGE_* variables will, however, and there's nothing
 #              we can do about that; they come from AC_INIT).
 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
 #            file in the top srcdir, etc, etc), so stop complaining.
-#  no-dependencies:  turns off auto dependency generation (just for now)
 #  -Wall:  turns on all automake warnings...
 #  -Wno-portability:  ...except this one, since GNU make is required.
-AM_INIT_AUTOMAKE([1.8.2 no-define foreign no-dependencies -Wall -Wno-portability])
+AM_INIT_AUTOMAKE([1.9.6 no-define foreign -Wall -Wno-portability])
 
 AM_MAINTAINER_MODE
 AM_ENABLE_MULTILIB(, ..)



More information about the Gcc-patches mailing list