# HG changeset patch # User Claudius Zingerli (edited by Jordi GutiƩrrez Hermoso ) # Date 1424877825 -3600 # Node ID e8ccfc5d892be91036c4c9a3f60ee18aa220fb9d # Parent 734a77207e2e0ccd51157ffe7293b101b71eb949 Improved configure error handling when missing Fortran compiler (bug #44367) * configure.ac: Check if there is no Fortran compiler, and emit an appropriate error message. diff -r 734a77207e2e -r e8ccfc5d892b configure.ac --- a/configure.ac Wed Feb 25 12:04:01 2015 -0500 +++ b/configure.ac Wed Feb 25 16:23:45 2015 +0100 @@ -615,6 +615,15 @@ AC_MSG_ERROR([g77 is not a supported Fortran compiler. Select another compiler by setting the environment variable F77 and re-running configure.]) fi +AC_MSG_CHECKING([if we have a usable Fortran compiler]) +if test x"$F77" = x""; then + AC_MSG_RESULT(no) + AC_MSG_ERROR(No Fortran compiler found) +else + AC_MSG_RESULT(yes) +fi + + ## Determine calling conventions for Fortran compiler AC_F77_LIBRARY_LDFLAGS AC_F77_DUMMY_MAIN