summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure8
-rw-r--r--configure.in7
2 files changed, 14 insertions, 1 deletions
diff --git a/configure b/configure
index 2983d4a..0b876d1 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Id: configure.in 21315 2011-08-25 22:02:21Z derobins .
+# From configure.in Id: configure.in 21329 2011-08-28 14:29:14Z hdftest .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for HDF5 1.9.90.
#
@@ -6434,6 +6434,12 @@ $as_echo_n "checking if Fortran compiler version compatible with Fortran 2003 HD
fi
fi
fi
+
+ if test "X$HAVE_FORTRAN_2003" = "Xno"; then
+ echo $HAVE_FORTRAN_2003
+ as_fn_error $? "Failed to find a supported F2003 compiler; remove --enable-fortran2003" "$LINENO" 5
+ fi
+
fi
fi
diff --git a/configure.in b/configure.in
index 2aa2fac..499b428 100644
--- a/configure.in
+++ b/configure.in
@@ -620,6 +620,13 @@ if test "X$HDF_FORTRAN" = "Xyes"; then
fi
fi
fi
+
+ dnl A valid F2003 compiler version was not found, return error message and exit
+ if test "X$HAVE_FORTRAN_2003" = "Xno"; then
+ echo $HAVE_FORTRAN_2003
+ AC_MSG_ERROR([Failed to find a supported F2003 compiler; remove --enable-fortran2003])
+ fi
+
fi
fi