Commit 28f6a689 authored by Huiwei Lu's avatar Huiwei Lu
Browse files

Fixes configure.ac when no fortran is found

Fixes the case when configured with default setting but with no fortran
installed. It should give an error of 'No Fortran 77/90 compiler found'
but not.

This patch is related with [d4e30cc0

], when configure was changed to
support '--disable-fc'.
Signed-off-by: default avatarAntonio J. Pena <apenya@mcs.anl.gov>
parent fc7617f2
...@@ -1880,13 +1880,15 @@ fi ...@@ -1880,13 +1880,15 @@ fi
# Handle default choices for the Fortran compilers # Handle default choices for the Fortran compilers
# Note that these have already been set above # Note that these have already been set above
if test "$enable_f77" = "yes" -a "$F77" = "no" ; then if test "$enable_f77" = "yes"; then
# No Fortran 77 compiler found; abort if test "$F77" = "" -o "$F77" = "no"; then
AC_MSG_ERROR([No Fortran 77 compiler found. If you don't need to # No Fortran 77 compiler found; abort
build any Fortran programs, you can disable Fortran support using AC_MSG_ERROR([No Fortran 77 compiler found. If you don't need to
--disable-fortran. If you do want to build Fortran build any Fortran programs, you can disable Fortran support using
programs, you need to install a Fortran compiler such as gfortran --disable-fortran. If you do want to build Fortran
or ifort before you can proceed.]) programs, you need to install a Fortran compiler such as gfortran
or ifort before you can proceed.])
fi
fi fi
if test "$enable_f77" = yes ; then if test "$enable_f77" = yes ; then
...@@ -2054,13 +2056,15 @@ if test "$enable_fc" = "yes" -a "$enable_f77" = yes ; then ...@@ -2054,13 +2056,15 @@ if test "$enable_fc" = "yes" -a "$enable_f77" = yes ; then
AC_MSG_WARN([Use --disable-fc to keep configure from searching for a Fortran 90 compiler]) AC_MSG_WARN([Use --disable-fc to keep configure from searching for a Fortran 90 compiler])
fi fi
if test "$enable_fc" = "yes" -a "$FC" = "no" ; then if test "$enable_fc" = "yes"; then
# No Fortran 90 compiler found; abort if test "$FC" = "no" -o "$FC" = ""; then
AC_MSG_ERROR([No Fortran 90 compiler found. If you don't need # No Fortran 90 compiler found; abort
to build any Fortran 90 programs, you can disable Fortran 90 AC_MSG_ERROR([No Fortran 90 compiler found. If you don't need
support using --disable-fc. If you do want to build Fortran 90 to build any Fortran 90 programs, you can disable Fortran 90
programs, you need to install a Fortran 90 compiler such as support using --disable-fc. If you do want to build Fortran 90
gfortran or ifort before you can proceed.]) programs, you need to install a Fortran 90 compiler such as
gfortran or ifort before you can proceed.])
fi
fi fi
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment