diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2017-08-03 14:21:53 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2017-08-03 14:21:53 (GMT) |
commit | 6fbfd252b89d4a8a6b9b340283723dbe6e28f3a7 (patch) | |
tree | 4051301cf71adadbcd4c37d1fc28faba8f72dee7 /config | |
parent | cd0e71d998898a29b0d8291497faad4c8ab979de (diff) | |
parent | c7465bdfb8ebd857dbdd36a6e9e89236241add7e (diff) | |
download | hdf5-6fbfd252b89d4a8a6b9b340283723dbe6e28f3a7.zip hdf5-6fbfd252b89d4a8a6b9b340283723dbe6e28f3a7.tar.gz hdf5-6fbfd252b89d4a8a6b9b340283723dbe6e28f3a7.tar.bz2 |
Merge pull request #618 in HDFFV/hdf5 from ~BRTNFLD/hdf5_msb:hdf5_1_8 to hdf5_1_8
* commit 'c7465bdfb8ebd857dbdd36a6e9e89236241add7e':
changed comments, (HDFFV-10037)
merged NAG changes from develop, (HDFFV-10037)
merged NAG changes from develop, (HDFFV-10037)
Removed extra Fortran flags, (HDFFV-10037)
Rearranged where the substitution occurs.
added chmod 755 for h5fc
libtool does not pass the correct argument linking (-WL,-WL,,) for the NAG Fortran compiler on Linux (other OSs have not been tested). Therefore, detect if we are using the NAG Fortran compiler, and replace the wl="-Wl," for Fortran to wl="-Wl,-WL,," in the libtool file. (HDFFV-10037)
Diffstat (limited to 'config')
-rw-r--r-- | config/linux-gnulibc1 | 58 |
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" |