summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2004-07-27 18:53:53 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2004-07-27 18:53:53 (GMT)
commitc5b4572ee264f238fe21c4ff5140ad5789850306 (patch)
tree57f9112b653143f3ad73340979d5730c8ca2c921
parent5a19f181b35a0928d23c7c12fd7a0698b465855b (diff)
downloadhdf5-c5b4572ee264f238fe21c4ff5140ad5789850306.zip
hdf5-c5b4572ee264f238fe21c4ff5140ad5789850306.tar.gz
hdf5-c5b4572ee264f238fe21c4ff5140ad5789850306.tar.bz2
[svn-r8956]
Purpose: Maintenance for MAC OSX Description: Added support for Absoft Fortran compiler f95; Ddefault compiler is set to IBM xlf. Solution: Platforms tested: pommier with xlf and Absoft f95 compilers Misc. update:
-rw-r--r--config/powerpc-apple44
-rw-r--r--fortran/src/H5f90i.h3
-rw-r--r--release_docs/RELEASE.txt10
3 files changed, 39 insertions, 18 deletions
diff --git a/config/powerpc-apple b/config/powerpc-apple
index 4c8d0eb..2e49cfc 100644
--- a/config/powerpc-apple
+++ b/config/powerpc-apple
@@ -14,9 +14,6 @@ fi
# Architecture-specific flags
ARCH=
-# Add "_POSIX_C_SOURCE" define to cpp flags, to quiet warnings
-# from /usr/include/sys/cdefs.h
-#CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=1"
# Omit frame pointer for optimized code?
NOFP=${NOFP:=-fomit-frame-pointer}
@@ -24,14 +21,10 @@ NOFP=${NOFP:=-fomit-frame-pointer}
# Figure out compiler flags
. $srcdir/config/gnu-flags
-# Special setup to use pthread support if enable-threadsafe is on.
-# Works with static executable only.
-#if test "X-" != "X-$enable_threadsafe"; then
-# CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
-# LDFLAGS="$LDFLAGS -pthread"
-# LIBS="$LIBS -lcipher"
-# enable_static_exec=yes
-#fi
+ if test "X-$F9X" = "X-f95"; then
+ CFLAGS="$CFLAGS -DH5_ABSOFT"
+ fi
+
# The default Fortran 90 compiler
@@ -52,14 +45,15 @@ SIZE_T='SELECTED_INT_KIND(R_INTEGER)'
OBJECT_NAMELEN_DEFAULT_F=-1
if test "X-" = "X-$F9X"; then
- if test "X-$enable_parallel" = "X-yes"; then
- F9X=mpxlf_r
- else
F9X=xlf
- fi
+ F9X_BASENAME=xlf
+ else
+ F9X_BASENAME=f95
+
fi
-if test "X-" = "X-$f9x_flags_set"; then
+case $F9X_BASENAME in
+ xlf)
F9XSUFFIXFLAG="-qsuffix=f=f90 -qfree=f90"
FFLAGS="$FFLAGS -static -O ${F9XSUFFIXFLAG} -qmoddir=./ "
FSEARCH_DIRS="-I./ -I../src"
@@ -67,4 +61,20 @@ if test "X-" = "X-$f9x_flags_set"; then
PROD_FFLAGS="-O"
PROFILE_FFLAGS="-O"
f9x_flags_set=yes
-fi
+ ;;
+#
+# Assume Absoft compiler
+#
+ f95)
+ F9XSUFFIXFLAG=""
+# We force compiler to use upper case for external names
+# (just in case since this should be a default EIP)
+ FFLAGS="$FFLAGS -YEXT_NAMES=UCS"
+ FSEARCH_DIRS=""
+ DEBUG_FFLAGS="-O"
+ PROD_FFLAGS="-O"
+ PROFILE_FFLAGS="-O"
+ f9x_flags_set=yes
+ ;;
+
+esac
diff --git a/fortran/src/H5f90i.h b/fortran/src/H5f90i.h
index 9eecb7f..2cb439b 100644
--- a/fortran/src/H5f90i.h
+++ b/fortran/src/H5f90i.h
@@ -60,6 +60,9 @@ typedef int int_f;
typedef int hid_t_f;
typedef float real_f;
#define FNAME(x) x
+#if defined H5_ABSOFT
+#define DF_CAPFNAMES
+#endif /*H5_ABSOFT*/
#define _fcdtocp(desc) (desc)
#endif /*APPLE*/
diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt
index 89bd875..6ff1171 100644
--- a/release_docs/RELEASE.txt
+++ b/release_docs/RELEASE.txt
@@ -150,8 +150,16 @@ New Features
Support for new platforms, languages and compilers.
=======================================
+ - HDF5 Fortran APIs are supported on Mac OSX with IBM XL Fortran
+ compiler version 8.1. This is a default compiler.
+ - HDF5 Fortran APIs are supported on MAC OSX with Absoft F95 compiler
+ version 8.2; set F9X environment varibale to f95, for example
+ setenv F9X f95
+ Use --disable-shared --enable-static configure flags when Absoft
+ compiler is used.
+ EIP - 2004/07/27
- HDF5 Fortran APIs are supported on MAC OSX with IBM XL Fortran
- Compiler version 8.1 Beta. Use "--disable-shared --enable-static"
+ Compiler version 8.1 Use "--disable-shared --enable-static"
configure flags along with the "--enable-fortran" flag to build
Fortran library. EIP - 2004/01/07