]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix detection of link flags for fort77 on GNU/Linux.
authorGiulio Paci <giuliopaci@interfree.it>
Sat, 12 Feb 2011 10:30:32 +0000 (11:30 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 12 Feb 2011 10:30:32 +0000 (11:30 +0100)
* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Properly detect
the fort77 (f2c wrapper) compiler verbose linking output flag.
Fixes also AC_F77_LIBRARY_LDFLAGS and AC_F77_DUMMY_MAIN.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
THANKS
lib/autoconf/fortran.m4

index 1ef7b16516dadaaa5ff43572546532eb2e88d3e9..6f0b93d4c5022615c3c6e1e622a23eafb352db6e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-02-12  Giulio Paci  <giuliopaci@interfree.it>  (tiny change)
+           Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Fix detection of link flags for fort77 on GNU/Linux.
+       * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Properly detect
+       the fort77 (f2c wrapper) compiler verbose linking output flag.
+       Fixes also AC_F77_LIBRARY_LDFLAGS and AC_F77_DUMMY_MAIN.
+       * THANKS: Update.
+
 2011-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * doc/autoconf.texi: Rebuild menus using emacs ^C ^U ^A.
diff --git a/THANKS b/THANKS
index f0638bd7b5eba247cb5667066b1aea1e8a2579b1..079be6623eac5c851ed820aaaa02e03fe8c8eb5e 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -151,6 +151,7 @@ Greg A. Woods               woods@weird.com
 Greg Schafer                gschafer@zip.com.au
 Gregorio Guidi              ?
 Gregory Giannoni            sand@narguile.org
+Giulio Paci                 giuliopaci@interfree.it
 Guido Draheim               Guido.Draheim@gmx.de
 Guido Flohr                 gufl0000@stud.uni-sb.de
 Guido van Rossum            ?
index bed9c96b0cd640148e58a26b0388805e0ed22c1b..d5afbb98184f297270c6dec1f03be415339cd028 100644 (file)
@@ -540,6 +540,16 @@ case $ac_[]_AC_LANG_ABBREV[]_v_output in
        s/-ignore  *'[[^']]*'/ /g; s/-ignore  *\"[[^\"]]*\"/ /g
        s/-def  *'[[^']]*'/ /g; s/-def  *\"[[^\"]]*\"/ /g"` ;;
 
+  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
+  *fort77*f2c*gcc*)
+    ac_[]_AC_LANG_ABBREV[]_v_output=`echo "$ac_[]_AC_LANG_ABBREV[]_v_output" | sed -n '
+        /:[[    ]]\+Running[[   ]]\{1,\}"gcc"/{
+          /"-c"/d
+          /[[.]]c"*/d
+          s/^.*"gcc"/"gcc"/
+          s/"//gp
+        }'` ;;
+
   # If we are using Cray Fortran then delete quotes.
   *cft90*)
     ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed 's/"//g'` ;;