mirror of
git://git.sv.gnu.org/autoconf
synced 2024-11-27 01:49:56 +08:00
Fix Autoconf/FIXME.
* aclang.m4 (AC_PROG_F77): Follow strictly the same scheme as AC_PROG_CC to compute the default FFLAGS.
This commit is contained in:
parent
907e198f7f
commit
64830defc5
@ -1,3 +1,10 @@
|
||||
2000-05-19 Akim Demaille <akim@epita.fr>
|
||||
|
||||
Fix Autoconf/FIXME.
|
||||
|
||||
* aclang.m4 (AC_PROG_F77): Follow strictly the same scheme as
|
||||
AC_PROG_CC to compute the default FFLAGS.
|
||||
|
||||
2000-05-19 Akim Demaille <akim@epita.fr>
|
||||
|
||||
Either we cross-compile the whole package, or we don't.
|
||||
|
28
aclang.m4
28
aclang.m4
@ -707,23 +707,31 @@ AC_PROG_F77_GNU
|
||||
|
||||
if test $ac_cv_prog_g77 = yes; then
|
||||
G77=yes
|
||||
else
|
||||
G77=
|
||||
fi
|
||||
|
||||
dnl Check whether -g works, even if FFLAGS is set, in case the package
|
||||
dnl plays around with FFLAGS (such as to build both debugging and
|
||||
dnl normal versions of a library), tasteless as that idea is.
|
||||
ac_test_FFLAGS=${FFLAGS+set}
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS=
|
||||
AC_PROG_F77_G
|
||||
if test "$ac_test_FFLAGS" = set; then
|
||||
FFLAGS=$ac_save_FFLAGS
|
||||
elif test $ac_cv_prog_f77_g = yes; then
|
||||
ac_test_FFLAGS=${FFLAGS+set}
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS=
|
||||
AC_PROG_F77_G
|
||||
if test "$ac_test_FFLAGS" = set; then
|
||||
FFLAGS=$ac_save_FFLAGS
|
||||
elif test $ac_cv_prog_f77_g = yes; then
|
||||
if test "$G77" = yes; then
|
||||
FFLAGS="-g -O2"
|
||||
else
|
||||
FFLAGS="-O2"
|
||||
FFLAGS="-g"
|
||||
fi
|
||||
else
|
||||
G77=
|
||||
test "${FFLAGS+set}" = set || FFLAGS="-g"
|
||||
if test "$G77" = yes; then
|
||||
FFLAGS="-O2"
|
||||
else
|
||||
FFLAGS=
|
||||
fi
|
||||
fi
|
||||
])# AC_PROG_F77
|
||||
|
||||
|
@ -707,23 +707,31 @@ AC_PROG_F77_GNU
|
||||
|
||||
if test $ac_cv_prog_g77 = yes; then
|
||||
G77=yes
|
||||
else
|
||||
G77=
|
||||
fi
|
||||
|
||||
dnl Check whether -g works, even if FFLAGS is set, in case the package
|
||||
dnl plays around with FFLAGS (such as to build both debugging and
|
||||
dnl normal versions of a library), tasteless as that idea is.
|
||||
ac_test_FFLAGS=${FFLAGS+set}
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS=
|
||||
AC_PROG_F77_G
|
||||
if test "$ac_test_FFLAGS" = set; then
|
||||
FFLAGS=$ac_save_FFLAGS
|
||||
elif test $ac_cv_prog_f77_g = yes; then
|
||||
ac_test_FFLAGS=${FFLAGS+set}
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS=
|
||||
AC_PROG_F77_G
|
||||
if test "$ac_test_FFLAGS" = set; then
|
||||
FFLAGS=$ac_save_FFLAGS
|
||||
elif test $ac_cv_prog_f77_g = yes; then
|
||||
if test "$G77" = yes; then
|
||||
FFLAGS="-g -O2"
|
||||
else
|
||||
FFLAGS="-O2"
|
||||
FFLAGS="-g"
|
||||
fi
|
||||
else
|
||||
G77=
|
||||
test "${FFLAGS+set}" = set || FFLAGS="-g"
|
||||
if test "$G77" = yes; then
|
||||
FFLAGS="-O2"
|
||||
else
|
||||
FFLAGS=
|
||||
fi
|
||||
fi
|
||||
])# AC_PROG_F77
|
||||
|
||||
|
@ -707,23 +707,31 @@ AC_PROG_F77_GNU
|
||||
|
||||
if test $ac_cv_prog_g77 = yes; then
|
||||
G77=yes
|
||||
else
|
||||
G77=
|
||||
fi
|
||||
|
||||
dnl Check whether -g works, even if FFLAGS is set, in case the package
|
||||
dnl plays around with FFLAGS (such as to build both debugging and
|
||||
dnl normal versions of a library), tasteless as that idea is.
|
||||
ac_test_FFLAGS=${FFLAGS+set}
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS=
|
||||
AC_PROG_F77_G
|
||||
if test "$ac_test_FFLAGS" = set; then
|
||||
FFLAGS=$ac_save_FFLAGS
|
||||
elif test $ac_cv_prog_f77_g = yes; then
|
||||
ac_test_FFLAGS=${FFLAGS+set}
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS=
|
||||
AC_PROG_F77_G
|
||||
if test "$ac_test_FFLAGS" = set; then
|
||||
FFLAGS=$ac_save_FFLAGS
|
||||
elif test $ac_cv_prog_f77_g = yes; then
|
||||
if test "$G77" = yes; then
|
||||
FFLAGS="-g -O2"
|
||||
else
|
||||
FFLAGS="-O2"
|
||||
FFLAGS="-g"
|
||||
fi
|
||||
else
|
||||
G77=
|
||||
test "${FFLAGS+set}" = set || FFLAGS="-g"
|
||||
if test "$G77" = yes; then
|
||||
FFLAGS="-O2"
|
||||
else
|
||||
FFLAGS=
|
||||
fi
|
||||
fi
|
||||
])# AC_PROG_F77
|
||||
|
||||
|
@ -707,23 +707,31 @@ AC_PROG_F77_GNU
|
||||
|
||||
if test $ac_cv_prog_g77 = yes; then
|
||||
G77=yes
|
||||
else
|
||||
G77=
|
||||
fi
|
||||
|
||||
dnl Check whether -g works, even if FFLAGS is set, in case the package
|
||||
dnl plays around with FFLAGS (such as to build both debugging and
|
||||
dnl normal versions of a library), tasteless as that idea is.
|
||||
ac_test_FFLAGS=${FFLAGS+set}
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS=
|
||||
AC_PROG_F77_G
|
||||
if test "$ac_test_FFLAGS" = set; then
|
||||
FFLAGS=$ac_save_FFLAGS
|
||||
elif test $ac_cv_prog_f77_g = yes; then
|
||||
ac_test_FFLAGS=${FFLAGS+set}
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS=
|
||||
AC_PROG_F77_G
|
||||
if test "$ac_test_FFLAGS" = set; then
|
||||
FFLAGS=$ac_save_FFLAGS
|
||||
elif test $ac_cv_prog_f77_g = yes; then
|
||||
if test "$G77" = yes; then
|
||||
FFLAGS="-g -O2"
|
||||
else
|
||||
FFLAGS="-O2"
|
||||
FFLAGS="-g"
|
||||
fi
|
||||
else
|
||||
G77=
|
||||
test "${FFLAGS+set}" = set || FFLAGS="-g"
|
||||
if test "$G77" = yes; then
|
||||
FFLAGS="-O2"
|
||||
else
|
||||
FFLAGS=
|
||||
fi
|
||||
fi
|
||||
])# AC_PROG_F77
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user