336 |
# gfortran: putative GNU Fortran 95+ compiler (in progress) |
# gfortran: putative GNU Fortran 95+ compiler (in progress) |
337 |
# fort77: native F77 compiler under HP-UX (and some older Crays) |
# fort77: native F77 compiler under HP-UX (and some older Crays) |
338 |
# frt: Fujitsu F77 compiler |
# frt: Fujitsu F77 compiler |
339 |
# pgf77/pgf90/pgf95: Portland Group F77/F90/F95 compilers |
# pgf77/pgf90/pghpf/pgf95: Portland Group F77/F90/F95 compilers |
340 |
# xlf/xlf90/xlf95: IBM (AIX) F77/F90/F95 compilers |
# xlf/xlf90/xlf95: IBM (AIX) F77/F90/F95 compilers |
341 |
# lf95: Lahey-Fujitsu F95 compiler |
# lf95: Lahey-Fujitsu F95 compiler |
342 |
# fl32: Microsoft Fortran 77 "PowerStation" compiler |
# fl32: Microsoft Fortran 77 "PowerStation" compiler |
343 |
# af77: Apogee F77 compiler for Intergraph hardware running CLIX |
# af77: Apogee F77 compiler for Intergraph hardware running CLIX |
344 |
# epcf90: "Edinburgh Portable Compiler" F90 |
# epcf90: "Edinburgh Portable Compiler" F90 |
345 |
# fort: Compaq (now HP) Fortran 90/95 compiler for Tru64 and Linux/Alpha |
# fort: Compaq (now HP) Fortran 90/95 compiler for Tru64 and Linux/Alpha |
346 |
# ifc: Intel Fortran 95 compiler for Linux/x86 |
# ifort, previously ifc: Intel Fortran 95 compiler for Linux/x86 |
347 |
# efc: Intel Fortran 95 compiler for IA64 |
# efc: Intel Fortran 95 compiler for IA64 |
348 |
m4_define([_AC_F95_FC], [f95 fort xlf95 ifc efc pgf95 lf95 gfortran]) |
m4_define([_AC_F95_FC], [f95 fort xlf95 ifort ifc efc pgf95 lf95 gfortran]) |
349 |
m4_define([_AC_F90_FC], [f90 xlf90 pgf90 epcf90]) |
m4_define([_AC_F90_FC], [f90 xlf90 pgf90 pghpf epcf90]) |
350 |
m4_define([_AC_F77_FC], [g77 f77 xlf frt pgf77 fort77 fl32 af77]) |
m4_define([_AC_F77_FC], [g77 f77 xlf frt pgf77 fort77 fl32 af77]) |
351 |
AC_DEFUN([_AC_PROG_FC], |
AC_DEFUN([_AC_PROG_FC], |
352 |
[_AC_FORTRAN_ASSERT()dnl |
[_AC_FORTRAN_ASSERT()dnl |
538 |
grep 'LPATH is:' | |
grep 'LPATH is:' | |
539 |
sed 's,.*LPATH is\(: *[[^ ]]*\).*,\1,;s,: */, -L/,g'` $ac_[]_AC_LANG_ABBREV[]_v_output" |
sed 's,.*LPATH is\(: *[[^ ]]*\).*,\1,;s,: */, -L/,g'` $ac_[]_AC_LANG_ABBREV[]_v_output" |
540 |
|
|
541 |
|
# FIXME: we keep getting bitten by quoted arguments; a more general fix |
542 |
|
# that detects unbalanced quotes in FLIBS should be implemented |
543 |
|
# and (ugh) tested at some point. |
544 |
case $ac_[]_AC_LANG_ABBREV[]_v_output in |
case $ac_[]_AC_LANG_ABBREV[]_v_output in |
545 |
# If we are using xlf then replace all the commas with spaces. |
# If we are using xlf then replace all the commas with spaces. |
546 |
*xlfentry*) |
*xlfentry*) |
549 |
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
550 |
# $LIBS confuse us, and the libraries appear later in the output anyway). |
# $LIBS confuse us, and the libraries appear later in the output anyway). |
551 |
*mGLOB_options_string*) |
*mGLOB_options_string*) |
552 |
ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed 's/\"-mGLOB[[^\"]]*\"/ /g'` ;; |
ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed 's/"-mGLOB[[^"]]*"/ /g'` ;; |
553 |
|
|
554 |
|
# Portland Group compiler has quoted -cmdline argument |
555 |
|
*-cmdline*) |
556 |
|
ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed 's/-cmdline *"[[^"]]*"/ /g'` ;; |
557 |
|
|
558 |
# If we are using Cray Fortran then delete quotes. |
# If we are using Cray Fortran then delete quotes. |
559 |
# Use "\"" instead of '"' for font-lock-mode. |
# Use "\"" instead of '"' for font-lock-mode. |
|
# FIXME: a more general fix for quoted arguments with spaces? |
|
560 |
*cft90*) |
*cft90*) |
561 |
ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed "s/\"//g"` ;; |
ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed 's/"//g'` ;; |
562 |
esac |
esac |
563 |
|
|
564 |
])# _AC_PROG_FC_V_OUTPUT |
])# _AC_PROG_FC_V_OUTPUT |