summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjthorn <jthorn@17b73243-c579-4c4c-a9d2-2d5706c11dac>2006-01-27 11:36:57 +0000
committerjthorn <jthorn@17b73243-c579-4c4c-a9d2-2d5706c11dac>2006-01-27 11:36:57 +0000
commit38a82e0938468633c77b58776e644fcd817e7f9c (patch)
tree7ec8338a739f5e330234157221fe49c234a4f4e4 /lib
parent2616f3b957d8fe7af111e55023d06799b12213b8 (diff)
* fix detection of g77 version
* add proper detection of gfortran (95) git-svn-id: http://svn.cactuscode.org/flesh/trunk@4241 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib')
-rw-r--r--lib/make/known-architectures/openbsd11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/make/known-architectures/openbsd b/lib/make/known-architectures/openbsd
index 612713e9..6fc2f1d6 100644
--- a/lib/make/known-architectures/openbsd
+++ b/lib/make/known-architectures/openbsd
@@ -6,7 +6,7 @@
# @desc
# generic known-architectures file for all versions of OpenBSD
# @enddesc
-# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/openbsd,v 1.3 2003-04-30 14:20:24 allen Exp $
+# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/openbsd,v 1.4 2006-01-27 11:36:57 jthorn Exp $
# @@*/
if test "$CCTK_CONFIG_STAGE" = "preferred-compilers" ; then
@@ -16,11 +16,18 @@ if test "$CCTK_CONFIG_STAGE" = "preferred-compilers" ; then
else
# Determine which Fortran 77 compiler is in use
- if test -n "$F77" -a "`$F77 -v 2>&1 | grep -i g77`" ; then
+ if test -n "$F77" -a "`$F77 --version 2>&1 | grep -i g77`" ; then
: ${F77_WARN_FLAGS='-Wall'}
: ${LIBS='g2c m'}
fi
+ # Determine which Fortran 90/95 compiler is in use
+ if test -n "$F90" -a "`$F90 --version 2>&1 | grep -i 'GNU Fortran'`" ; then
+ : ${F90_WARN_FLAGS='-Wall'}
+ : ${LIBS='gfortran m'}
+echo "##DEBUG## got LIBS :${LIBS}:"
+ fi
+
ARFLAGS=-ruc
USE_RANLIB=yes
RANLIBFLAGS=