diff --git a/configure b/configure index 4f26f1794a..a8868287bb 100755 --- a/configure +++ b/configure @@ -5763,7 +5763,7 @@ rm -f core conftest.err conftest.$ac_objext \ if test "X$HAVE_F2003_REQUIREMENTS" = "Xno"; then - as_fn_error $? "Fortran compiler lacks required Fortran 2003 features; unsupported Fortran 2003 compiler, remove --enable-fortran2003" "$LINENO" 5 + as_fn_error $? "Fortran compiler lacks required Fortran 2003 features; unsupported Fortran 2003 compiler, remove --enable-fortran" "$LINENO" 5 else HAVE_FORTRAN_2003="yes" fi diff --git a/configure.ac b/configure.ac index 9afb028419..701682ad32 100644 --- a/configure.ac +++ b/configure.ac @@ -406,7 +406,7 @@ if test "X$HDF_FORTRAN" = "Xyes"; then PAC_PROG_FC_HAVE_F2003_REQUIREMENTS if test "X$HAVE_F2003_REQUIREMENTS" = "Xno"; then - AC_MSG_ERROR([Fortran compiler lacks required Fortran 2003 features; unsupported Fortran 2003 compiler, remove --enable-fortran2003]) + AC_MSG_ERROR([Fortran compiler lacks required Fortran 2003 features; unsupported Fortran 2003 compiler, remove --enable-fortran]) else HAVE_FORTRAN_2003="yes" fi