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.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
Giulio Paci 2011-02-12 11:30:32 +01:00 committed by Ralf Wildenhues
parent 9e71645ffc
commit cc2118d836
3 changed files with 20 additions and 0 deletions

View File

@ -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.

1
THANKS
View File

@ -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 ?

View 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'` ;;