Commit 29dfaa37 authored by William Gropp's avatar William Gropp
Browse files

[svn-r7016] Added support for creating shared libraries with the Sun f90/f95 compiler

parent b6d89305
......@@ -701,6 +701,8 @@ for arg in --version -V -v ; do
pac_cv_fc_vendor=pgi
elif grep 'Sun Workshop' conftest.txt >/dev/null 2>&1 ; then
pac_cv_fc_vendor=sun
elif grep 'Sun Fortran 9' conftest.txt >/dev/null 2>&1 ; then
pac_cv_fc_vendor=sun
elif grep 'Absoft' conftest.txt >/dev/null 2>&1 ; then
pac_cv_fc_vendor=absoft
elif grep 'G95' conftest.txt >/dev/null 2>&1 ; then
......@@ -716,11 +718,13 @@ for arg in --version -V -v ; do
done
if test "$pac_cv_fc_vendor" = "unknown" ; then
# Try to use the compiler name
if test "$F90" = "ifort" -o "$F90" = "ifc" ; then
if test "$FC" = "ifort" -o "$FC" = "ifc" ; then
pac_cv_fc_vendor=intel
elif test "$F90" = "pgf90" ; then
elif test "$FC" = "pgf90" ; then
pac_cv_fc_vendor=pgi
elif test "$F90" = "xlf90" -o "$F90" = "xlf90_r" ; then
elif test "$FC" = "xlf90" -o "$FC" = "xlf90_r" ; then
pac_cv_fc_vendor=ibm
elif test "$FC" = "xlf95" -o "$FC" = "xlf95_r" ; then
pac_cv_fc_vendor=ibm
fi
fi
......
......@@ -2251,6 +2251,12 @@ if test "$enable_fc" = "yes" ; then
FC_SHL="$FC -shared -fPIC"
FC_LINKPATH_SHL="-Wl,-rpath -Wl,"
;;
sun)
# Sun studio compiler on Linux
FC_SHL="$FC -KPIC"
FC_LINKPATH_SHL="-Qoption ld -rpath,"
;;
*)
# Unknown, ignore
......
......@@ -701,6 +701,8 @@ for arg in --version -V -v ; do
pac_cv_fc_vendor=pgi
elif grep 'Sun Workshop' conftest.txt >/dev/null 2>&1 ; then
pac_cv_fc_vendor=sun
elif grep 'Sun Fortran 9' conftest.txt >/dev/null 2>&1 ; then
pac_cv_fc_vendor=sun
elif grep 'Absoft' conftest.txt >/dev/null 2>&1 ; then
pac_cv_fc_vendor=absoft
elif grep 'G95' conftest.txt >/dev/null 2>&1 ; then
......@@ -716,11 +718,13 @@ for arg in --version -V -v ; do
done
if test "$pac_cv_fc_vendor" = "unknown" ; then
# Try to use the compiler name
if test "$F90" = "ifort" -o "$F90" = "ifc" ; then
if test "$FC" = "ifort" -o "$FC" = "ifc" ; then
pac_cv_fc_vendor=intel
elif test "$F90" = "pgf90" ; then
elif test "$FC" = "pgf90" ; then
pac_cv_fc_vendor=pgi
elif test "$F90" = "xlf90" -o "$F90" = "xlf90_r" ; then
elif test "$FC" = "xlf90" -o "$FC" = "xlf90_r" ; then
pac_cv_fc_vendor=ibm
elif test "$FC" = "xlf95" -o "$FC" = "xlf95_r" ; then
pac_cv_fc_vendor=ibm
fi
fi
......
......@@ -701,6 +701,8 @@ for arg in --version -V -v ; do
pac_cv_fc_vendor=pgi
elif grep 'Sun Workshop' conftest.txt >/dev/null 2>&1 ; then
pac_cv_fc_vendor=sun
elif grep 'Sun Fortran 9' conftest.txt >/dev/null 2>&1 ; then
pac_cv_fc_vendor=sun
elif grep 'Absoft' conftest.txt >/dev/null 2>&1 ; then
pac_cv_fc_vendor=absoft
elif grep 'G95' conftest.txt >/dev/null 2>&1 ; then
......@@ -716,11 +718,13 @@ for arg in --version -V -v ; do
done
if test "$pac_cv_fc_vendor" = "unknown" ; then
# Try to use the compiler name
if test "$F90" = "ifort" -o "$F90" = "ifc" ; then
if test "$FC" = "ifort" -o "$FC" = "ifc" ; then
pac_cv_fc_vendor=intel
elif test "$F90" = "pgf90" ; then
elif test "$FC" = "pgf90" ; then
pac_cv_fc_vendor=pgi
elif test "$F90" = "xlf90" -o "$F90" = "xlf90_r" ; then
elif test "$FC" = "xlf90" -o "$FC" = "xlf90_r" ; then
pac_cv_fc_vendor=ibm
elif test "$FC" = "xlf95" -o "$FC" = "xlf95_r" ; then
pac_cv_fc_vendor=ibm
fi
fi
......
......@@ -701,6 +701,8 @@ for arg in --version -V -v ; do
pac_cv_fc_vendor=pgi
elif grep 'Sun Workshop' conftest.txt >/dev/null 2>&1 ; then
pac_cv_fc_vendor=sun
elif grep 'Sun Fortran 9' conftest.txt >/dev/null 2>&1 ; then
pac_cv_fc_vendor=sun
elif grep 'Absoft' conftest.txt >/dev/null 2>&1 ; then
pac_cv_fc_vendor=absoft
elif grep 'G95' conftest.txt >/dev/null 2>&1 ; then
......@@ -716,11 +718,13 @@ for arg in --version -V -v ; do
done
if test "$pac_cv_fc_vendor" = "unknown" ; then
# Try to use the compiler name
if test "$F90" = "ifort" -o "$F90" = "ifc" ; then
if test "$FC" = "ifort" -o "$FC" = "ifc" ; then
pac_cv_fc_vendor=intel
elif test "$F90" = "pgf90" ; then
elif test "$FC" = "pgf90" ; then
pac_cv_fc_vendor=pgi
elif test "$F90" = "xlf90" -o "$F90" = "xlf90_r" ; then
elif test "$FC" = "xlf90" -o "$FC" = "xlf90_r" ; then
pac_cv_fc_vendor=ibm
elif test "$FC" = "xlf95" -o "$FC" = "xlf95_r" ; then
pac_cv_fc_vendor=ibm
fi
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment