Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Do not build gcc if only a fortran compiler is missing. More care abo…
Browse files Browse the repository at this point in the history
…ut check logic. Don't restrict to gfortran.
  • Loading branch information
kiwifb committed Nov 19, 2018
1 parent f894105 commit a666ff9
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions build/pkgs/gfortran/spkg-configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,17 @@ SAGE_SPKG_CONFIGURE([gfortran], [
# compiler.
if test -z "$FC"; then
sage_spkg_install_gfortran=yes
SAGE_MUST_INSTALL_GCC([a Fortran compiler is missing])
fi
AC_MSG_NOTICE([A Fortran compiler couldn't be found])
AC_MSG_NOTICE([gfortran will be built])
else
# see http://www.gnu.org/software/hello/manual/autoconf/Fortran-Compiler.html
AC_FC_FREEFORM([], [
AC_MSG_NOTICE([Your Fortran compiler does not accept free-format source code])
AC_MSG_NOTICE([which means the compiler is either seriously broken, or])
AC_MSG_NOTICE([is too old to build Sage.])
sage_spkg_install_gfortran=yes
])
# Check compiler versions
if test x$GFC != xyes; then
sage_spkg_install_gfortran=yes
AC_FC_FREEFORM([], [
AC_MSG_NOTICE([Your Fortran compiler does not accept free-format source code])
AC_MSG_NOTICE([which means the compiler is either seriously broken, or])
AC_MSG_NOTICE([is too old to build Sage.])
AC_MSG_NOTICE([gfortran will be built])
sage_spkg_install_gfortran=yes
])
fi
fi
])

0 comments on commit a666ff9

Please sign in to comment.