mirror of
git://git.sv.gnu.org/autoconf
synced 2025-02-11 13:51:04 +08:00
fix GNU compiler handling in _AC_PROG_FC_G
This commit is contained in:
parent
e11232b4eb
commit
ab51c2b44a
@ -1,3 +1,9 @@
|
||||
2003-10-04 Steven G. Johnson <stevenj@ab-initio.mit.edu>
|
||||
|
||||
* lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
|
||||
cache variable instead of $G77 to decide whether to include -O2,
|
||||
since $G77 is specific to Fortran 77.
|
||||
|
||||
2003-10-03 Steven G. Johnson <stevenj@alum.mit.edu>
|
||||
|
||||
* lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
|
||||
|
@ -421,13 +421,13 @@ _AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
|
||||
if test "$ac_test_FFLAGS" = set; then
|
||||
_AC_LANG_PREFIX[]FLAGS=$ac_save_FFLAGS
|
||||
elif test $ac_cv_prog_[]_AC_LANG_ABBREV[]_g = yes; then
|
||||
if test "$G77" = yes; then
|
||||
if test "x$ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu" = xyes; then
|
||||
_AC_LANG_PREFIX[]FLAGS="-g -O2"
|
||||
else
|
||||
_AC_LANG_PREFIX[]FLAGS="-g"
|
||||
fi
|
||||
else
|
||||
if test "$G77" = yes; then
|
||||
if test "x$ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu" = xyes; then
|
||||
_AC_LANG_PREFIX[]FLAGS="-O2"
|
||||
else
|
||||
_AC_LANG_PREFIX[]FLAGS=
|
||||
|
Loading…
Reference in New Issue
Block a user