summaryrefslogtreecommitdiffstats
path: root/config/freebsd
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-02-10 13:30:36 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-02-10 13:30:36 (GMT)
commit674752ab7dc3e8c633d20c7b7ee6ebc0ce8d7e9a (patch)
tree23af07a050323266cd70070f58cf57a51068b21a /config/freebsd
parentf6b810b93d669859fb82dc08ff715ba38f135958 (diff)
downloadhdf5-674752ab7dc3e8c633d20c7b7ee6ebc0ce8d7e9a.zip
hdf5-674752ab7dc3e8c633d20c7b7ee6ebc0ce8d7e9a.tar.gz
hdf5-674752ab7dc3e8c633d20c7b7ee6ebc0ce8d7e9a.tar.bz2
[svn-r9977] Purpose:
Update port Description: Allow FreeBSD builds to use Intel C & F90 compilers (C++ is not working yet on FreeBSD, so that'll come along later) Platforms tested: FreeBSD 4.11 (sleipnir) w/Intel C & F90 compilers Does not affect other platforms... Misc. update:
Diffstat (limited to 'config/freebsd')
-rw-r--r--config/freebsd30
1 files changed, 27 insertions, 3 deletions
diff --git a/config/freebsd b/config/freebsd
index c1af4d9..caeca9c 100644
--- a/config/freebsd
+++ b/config/freebsd
@@ -15,6 +15,30 @@ fi
# from /usr/include/sys/cdefs.h
CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=1"
+# Figure out C compiler flags
+. $srcdir/config/gnu-flags
+
+# Figure out Intel C compiler flags
+. $srcdir/config/intel-flags
+
+# The default Fortran 90 compiler
+if test "X-" = "X-$F9X"; then
+ case $CC_BASENAME in
+ gcc*|pgcc*)
+ F9X=gfortran40
+ F9X_BASENAME=gfortran40
+ ;;
+ icc*)
+ F9X=ifort
+ F9X_BASENAME=ifort
+ ;;
+ mpicc*)
+ F9X=mpif90
+ F9X_BASENAME=mpif90
+ ;;
+ esac
+fi
+
#
# HDF5 FORTRAN integers
#
@@ -30,12 +54,12 @@ HID_T='SELECTED_INT_KIND(R_INTEGER)'
SIZE_T='SELECTED_INT_KIND(R_INTEGER)'
OBJECT_NAMELEN_DEFAULT_F=-1
-# Figure out C compiler flags
-. $srcdir/config/gnu-flags
-
# Figure out FORTRAN compiler flags
. $srcdir/config/gnu-fflags
+# Figure out Intel F90 compiler flags
+. $srcdir/config/intel-fflags
+
# Special setup to use pthread support if enable-threadsafe is on.
# Works with static executable only.
if test "X-" != "X-$enable_threadsafe"; then