summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorM. Scot Breitenfeld <brtnfld@hdfgroup.org>2017-08-03 14:07:52 (GMT)
committerM. Scot Breitenfeld <brtnfld@hdfgroup.org>2017-08-03 14:07:52 (GMT)
commitf05f98ef8d46b2aa302380573fd43ebe72b04a30 (patch)
tree860b1deaa7acebae3eb4f6e1e3e855dd721458eb /config
parentca973192bc86f75066fdc8468c4f0293ff0b725d (diff)
downloadhdf5-f05f98ef8d46b2aa302380573fd43ebe72b04a30.zip
hdf5-f05f98ef8d46b2aa302380573fd43ebe72b04a30.tar.gz
hdf5-f05f98ef8d46b2aa302380573fd43ebe72b04a30.tar.bz2
merged NAG changes from develop, (HDFFV-10037)
Diffstat (limited to 'config')
-rw-r--r--config/linux-gnulibc158
1 files changed, 58 insertions, 0 deletions
diff --git a/config/linux-gnulibc1 b/config/linux-gnulibc1
index ea12a88..ce07853 100644
--- a/config/linux-gnulibc1
+++ b/config/linux-gnulibc1
@@ -84,6 +84,20 @@ else
$RM $tmpfile
fc_version_info=`$FC -V | grep Absoft`
;;
+ # The NAG compiler
+ nagfor*|nagftn*)
+ RM='rm -f'
+ tmpfile=/tmp/cmpver.$$
+ $FC -V >& $tmpfile
+ if test -s "$tmpfile"; then
+ if( grep -s 'NAG Fortran' $tmpfile > /dev/null) then
+ FC_BASENAME=nagfor
+ fi
+ fi
+ fc_version_info=`grep "NAG Fortran" $tmpfile`
+ echo "compiler '$FC' is $fc_version_info"
+ $RM $tmpfile
+ ;;
*)
;;
@@ -117,6 +131,37 @@ case $FC_BASENAME in
PROFILE_FCFLAGS="-g -pg"
f9x_flags_set=yes
;;
+#
+# NAG compiler
+#
+ nagfor)
+
+ F9XSUFFIXFLAG=""
+# We force compiler to use upper case for external names
+# (just in case since this should be a default EIP)
+ H5_FCFLAGS="$H5_FCFLAGS"
+ FSEARCH_DIRS=""
+
+ # Production
+ PROD_FCFLAGS=
+
+ # Debug
+ DEBUG_FCFLAGS="-C"
+
+ # Symbols
+ SYMBOLS_FCFLAGS="-g"
+ NO_SYMBOLS_FCFLAGS="-s"
+
+ # Profiling
+ PROFILE_FCFLAGS="-pg"
+
+ # Optimization
+ HIGH_OPT_FCFLAGS="-O"
+ DEBUG_OPT_FCFLAGS="-O0"
+ NO_OPT_FCFLAGS="-O0"
+
+ f9x_flags_set=yes
+ ;;
esac
@@ -208,6 +253,19 @@ case $FC in
*pgf90*)
fc_version_info=`$FC $FCFLAGS $H5_FCFLAGS -V 2>&1 | grep 'pgf90'`
;;
+ *nagfor*|*nagftn*)
+ RM='rm -f'
+ tmpfile=/tmp/cmpver.$$
+ $FC -V >& $tmpfile
+ if test -s "$tmpfile"; then
+ if( grep -s 'NAG Fortran' $tmpfile > /dev/null) then
+ FC_BASENAME=nagfor
+ fi
+ fi
+ fc_version_info=`grep "NAG Fortran" $tmpfile`
+ $RM $tmpfile
+ echo "compiler '$FC' is $fc_version_info"
+ ;;
*)
echo "No match to get fc_version_info for $FC"