+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
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=