summaryrefslogtreecommitdiff
path: root/lib/make/known-architectures/linux
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-03-28 00:26:15 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-03-28 00:26:15 +0000
commitf930086bfd5df10bf0e48203e086e4a394310d07 (patch)
tree7ae960eebda8292aee600fcf23543d38c1f2f623 /lib/make/known-architectures/linux
parente96e6e2ab30a8bbe38cc1f96ceacc43089cc28b9 (diff)
Latest Absoft compilers don't give output from -V flag unless
compiling a function, so have had to add a third test for Absoft. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3611 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/known-architectures/linux')
-rw-r--r--lib/make/known-architectures/linux23
1 files changed, 18 insertions, 5 deletions
diff --git a/lib/make/known-architectures/linux b/lib/make/known-architectures/linux
index f8572f01..ac506a8a 100644
--- a/lib/make/known-architectures/linux
+++ b/lib/make/known-architectures/linux
@@ -49,11 +49,24 @@ else
elif test "`$F90 -v 2>&1 | grep -i compaq`" ; then
LINUX_F90_COMP=Compaq
else
- echo Unknown Linux f90 compiler.
- echo Please add appropriate information to
- echo $srcdir/known-architectures/linux-gnu
- echo and send the updated file to CactusMaint
- echo We will try anyway ...
+ # Ok, those were the easy ones, now try more
+ # obscure things
+
+
+ echo " subroutine foo" > foo.f
+ echo " end subroutine foo" >> foo.f
+
+ if test "`/opt/absoft/bin/f95 -V foo.f 2>&1 | grep Absoft`" ; then
+ LINUX_F90_COMP=absoft
+ else
+
+ echo Unknown Linux f90 compiler.
+ echo Please add appropriate information to
+ echo $srcdir/known-architectures/linux-gnu
+ echo and send the updated file to CactusMaint
+ echo We will try anyway ...
+ fi
+ rm foo.f
fi
elif test -n "$F77" ; then
if test "`$F77 -v 2>&1 | grep -i 'gcc version'`" ; then