diff options
-rw-r--r-- | fortran.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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. |