diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 2004-07-27 18:51:15 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 2004-07-27 18:51:15 (GMT) |
commit | 1b77f23dc2da2e1ab858af84694bb1519352911f (patch) | |
tree | 9664ec1d7c379e2470cf09e7b7ac44882503ebaa /fortran | |
parent | 52563e6fa8c56bc68051c50e9e847293da30a008 (diff) | |
download | hdf5-1b77f23dc2da2e1ab858af84694bb1519352911f.zip hdf5-1b77f23dc2da2e1ab858af84694bb1519352911f.tar.gz hdf5-1b77f23dc2da2e1ab858af84694bb1519352911f.tar.bz2 |
[svn-r8955]
Purpose: Maintenance on MAC OSX
Description: Added support for the Absoft Fortran compiler.
Solution:
Platforms tested: MAC OSX with xlf and f95 absoft compilers;
xlf is set to be the default compiler.
Misc. update:
Diffstat (limited to 'fortran')
-rw-r--r-- | fortran/config/powerpc-apple | 43 | ||||
-rw-r--r-- | fortran/src/H5f90i.h | 3 |
2 files changed, 28 insertions, 18 deletions
diff --git a/fortran/config/powerpc-apple b/fortran/config/powerpc-apple index 4c8d0eb..c6d1ceb 100644 --- a/fortran/config/powerpc-apple +++ b/fortran/config/powerpc-apple @@ -14,24 +14,15 @@ 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} -# Figure out compiler flags . $srcdir/config/gnu-flags + if test "X-$F9X" = "X-f95"; then + CFLAGS="$CFLAGS -DH5_ABSOFT" + fi -# 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 # The default Fortran 90 compiler @@ -52,14 +43,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 +59,19 @@ 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 enforce that external name will appear in upper case (this is a default for Absoft) + 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 7de5034..d5d81d8 100644 --- a/fortran/src/H5f90i.h +++ b/fortran/src/H5f90i.h @@ -103,6 +103,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*/ |