aboutsummaryrefslogtreecommitdiff
path: root/fortran.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fortran.sh')
-rw-r--r--fortran.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/fortran.sh b/fortran.sh
index 38546b7..f8e2191 100644
--- a/fortran.sh
+++ b/fortran.sh
@@ -1,5 +1,12 @@
#! /bin/sh
+if [[ "${F77}" = "none" && "${F90}" = "none" ]]; then
+ echo 'BEGIN ERROR'
+ echo "Fortran thorn requires that a Fortran compiler is defined, but F77 = '$F77' and F90 = '$F90'. Aborting."
+ echo 'END ERROR'
+ exit 1
+fi
+
# Try to use ## for token concatenation.
# If this works, we likely have an ANSI cpp.