summaryrefslogtreecommitdiffstats
path: root/fortran/config
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2004-01-06 19:51:40 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2004-01-06 19:51:40 (GMT)
commit7cb2f1bad3f0a282e97be42f485857054d53416e (patch)
treeee8eafdd3a853e01eddf0e7c67632a6d40a7234f /fortran/config
parent4ccf6a145f00a549d1e618555c1215ab88465721 (diff)
downloadhdf5-7cb2f1bad3f0a282e97be42f485857054d53416e.zip
hdf5-7cb2f1bad3f0a282e97be42f485857054d53416e.tar.gz
hdf5-7cb2f1bad3f0a282e97be42f485857054d53416e.tar.bz2
[svn-r8031]
Purpose: Maintenance Description: Added Fortran support for MAC OS X Solution: This port was tested only for IBM XL Fortran compiler version 8.1 Beta. Few things to remember: 1. do not use AFS to build Fortran; compiler for some reason cannot find *.mod files that were successfully compiled. 2. Fortran Library can be built only with --disable-shared --enable-static flags. Platforms tested: pommier, h5committested (it is amasing, but iot works really nicely! Albert, Thank you!) Misc. update:
Diffstat (limited to 'fortran/config')
-rw-r--r--fortran/config/powerpc-apple70
1 files changed, 70 insertions, 0 deletions
diff --git a/fortran/config/powerpc-apple b/fortran/config/powerpc-apple
new file mode 100644
index 0000000..4c8d0eb
--- /dev/null
+++ b/fortran/config/powerpc-apple
@@ -0,0 +1,70 @@
+# -*- shell-script -*-
+# This file is part of the HDF5 build script. It is processed shortly
+# after configure starts and defines, among other things, flags for
+# the various compile modes.
+#
+# See BlankForm in this directory for details.
+
+# The default compiler is `gcc'
+if test "X-" = "X-$CC"; then
+ CC=gcc
+ CC_BASENAME=gcc
+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
+
+# 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
+
+#
+# HDF5 integers
+#
+# R_LARGE is the number of digits for the bigest integer supported.
+# R_INTEGER is the number of digits in INTEGER
+#
+# (for the AIX architechture)
+#
+R_LARGE=18
+R_INTEGER=9
+HSIZE_T='SELECTED_INT_KIND(R_LARGE)'
+HSSIZE_T='SELECTED_INT_KIND(R_LARGE)'
+HID_T='SELECTED_INT_KIND(R_INTEGER)'
+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
+fi
+
+if test "X-" = "X-$f9x_flags_set"; then
+ F9XSUFFIXFLAG="-qsuffix=f=f90 -qfree=f90"
+ FFLAGS="$FFLAGS -static -O ${F9XSUFFIXFLAG} -qmoddir=./ "
+ FSEARCH_DIRS="-I./ -I../src"
+ DEBUG_FFLAGS="-O"
+ PROD_FFLAGS="-O"
+ PROFILE_FFLAGS="-O"
+ f9x_flags_set=yes
+fi