summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-01-12 13:20:04 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-01-12 13:20:04 +0000
commite593b5e6d14dc74c3ba3f62da90e70f4f2eba9be (patch)
tree7c36128e9a6acbf4163e2303c9a5781e1464d84c /lib
parent17c3d6ee397593ad2beca95c93ccef4f7137e701 (diff)
Set F90 and F77 compilers to a explanatory string if they are not set
during configuration to prevent bizarre errors when compiling fortran code without a compiler set. Fixes Cactus/497 git-svn-id: http://svn.cactuscode.org/flesh/trunk@1987 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib')
-rwxr-xr-xlib/make/configure11
-rw-r--r--lib/make/configure.in11
2 files changed, 22 insertions, 0 deletions
diff --git a/lib/make/configure b/lib/make/configure
index 8c4600b9..15b982cd 100755
--- a/lib/make/configure
+++ b/lib/make/configure
@@ -4508,6 +4508,15 @@ cat >> confdefs.h <<EOF
EOF
+# Set default Fortran compilers
+
+if test -z "$F90" ; then
+ F90="F90_NOT_SET"
+fi
+
+if test -z "$F77" ; then
+ F77="F77_NOT_SET"
+fi
@@ -4935,3 +4944,5 @@ chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
+
+
diff --git a/lib/make/configure.in b/lib/make/configure.in
index 52dc85f7..c97866bd 100644
--- a/lib/make/configure.in
+++ b/lib/make/configure.in
@@ -1078,6 +1078,15 @@ AC_SUBST(PERL_BACKUP_NECESSARY)
AC_DEFINE_UNQUOTED(CCTK_L2_CACHELINE_BYTES, $L2_CACHELINE_BYTES)
AC_DEFINE_UNQUOTED(CCTK_L2_CACHE_SIZE, $L2_CACHE_SIZE)
+# Set default Fortran compilers
+AC_SUBST(F90)
+if test -z "$F90" ; then
+ F90="F90_NOT_SET"
+fi
+AC_SUBST(F77)
+if test -z "$F77" ; then
+ F77="F77_NOT_SET"
+fi
dnl Run any other scripts necessary
@@ -1085,3 +1094,5 @@ AC_OUTPUT_COMMANDS(,$PERL -s $PERL_CONFIGURE_SCRIPT -compiler="$F77" -opts="$F77
dnl Output everything
AC_OUTPUT(make.config.defn make.config.deps make.config.rules)
+
+