]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
fortran: avoid misparsed FCLIBS from Fortran compiler
authorEric Blake <eblake@redhat.com>
Thu, 16 Sep 2010 22:19:11 +0000 (16:19 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 16 Sep 2010 22:22:20 +0000 (16:22 -0600)
* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Also skip
'Configured by:' lines from gfortran.
* NEWS: Mention it.
Reported by Stefano Lattarini.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
NEWS
lib/autoconf/fortran.m4

index 5c80f7cad61afc40ccaa82768a93acbaea451eda..d9911ba0f4f3a78c7df0c51b16da95736bef7203 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-09-16  Eric Blake  <eblake@redhat.com>
+
+       fortran: avoid misparsed FCLIBS from Fortran compiler
+       * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Also skip
+       'Configured by:' lines from gfortran.
+       * NEWS: Mention it.
+       Reported by Stefano Lattarini.
+
 2010-09-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Add autom4te trace for AM_PROG_AR.
diff --git a/NEWS b/NEWS
index 78851b96693c0de3e9979c6bedbd4105e2e895e5..f24b94ca41049106e3aebcfd20ac5e892def1f66 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -31,6 +31,8 @@ GNU Autoconf NEWS - User visible changes.
 ** AT_CHECK semantics with respect to the Autotest variable $at_status and
    shell execution environment of the arguments are documented now.
 
+** AC_FC_LIBRARY_LDFLAGS now tolerates output from newer gfortran.
+
 
 * Major changes in Autoconf 2.67 (2010-07-21) [stable]
   Released by Eric Blake, based on git versions 2.66.*.
index e8f7bbcd95907500151aeada2583b14746b17543..82a7a5d602e25386932c01c2c08c25926d87e89c 100644 (file)
@@ -505,7 +505,8 @@ _AS_ECHO_LOG([$[*]])
 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
 # LIBRARY_PATH; skip all such settings.
 ac_[]_AC_LANG_ABBREV[]_v_output=`eval $ac_link AS_MESSAGE_LOG_FD>&1 2>&1 |
-  grep -v 'Driving:' | grep -v "^[[_$as_cr_Letters]][[_$as_cr_alnum]]*="`
+  sed '/^Driving:/d; /^Configured with:/d;
+      '"/^[[_$as_cr_Letters]][[_$as_cr_alnum]]*=/d"`
 AS_ECHO(["$ac_[]_AC_LANG_ABBREV[]_v_output"]) >&AS_MESSAGE_LOG_FD
 _AC_LANG_PREFIX[]FLAGS=$ac_save_[]_AC_LANG_PREFIX[]FLAGS