summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2007-11-29 21:06:00 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2007-11-29 21:06:00 (GMT)
commit0afa30910b80d4857100c0fd227d13df1a11099f (patch)
tree34372644ae9d9f99fbed315e33e13188d4a46364 /bin
parent129ef4da90c20cf36661ca655f7d0fba34113dfe (diff)
downloadhdf5-0afa30910b80d4857100c0fd227d13df1a11099f.zip
hdf5-0afa30910b80d4857100c0fd227d13df1a11099f.tar.gz
hdf5-0afa30910b80d4857100c0fd227d13df1a11099f.tar.bz2
[svn-r14312] Added support of
-fortran: add --enable-fortran -cxx: add --enable-cxx -pp: add --enable-parallel Tested: Kagiso (serial and parallel).
Diffstat (limited to 'bin')
-rwxr-xr-xbin/buildhdf520
1 files changed, 16 insertions, 4 deletions
diff --git a/bin/buildhdf5 b/bin/buildhdf5
index cb56efd..f0dd938 100755
--- a/bin/buildhdf5
+++ b/bin/buildhdf5
@@ -28,7 +28,7 @@ can continue from a previous build.
Command Syntax
==============
-buildhdf5 [-config] [-srcdir dir] config-arguments ...
+buildhdf5 [-config] [-szlib] [-help] [-n] [-srcdir dir] [-fortran] [-cxx] [-pp] config-arguments ...
-config: run configure only. [default to do build too]
-szlib: configure in the szlib option
-help: show this help page
@@ -36,6 +36,9 @@ buildhdf5 [-config] [-srcdir dir] config-arguments ...
-srcdir: use dir as the source directory
[Note: this is different from --srcdir
which will be passed to configure]
+ -fortran: add --enable-fortran
+ -cxx: add --enable-cxx
+ -pp: add --enable-parallel
all other arguments are passed to configure
@@ -245,6 +248,9 @@ while [ $# -gt 0 ]; do
# do configure only
CONFIG_ONLY=yes
;;
+ -szlib)
+ LOCATE_SZLIB
+ ;;
-help)
USAGE
exit 0
@@ -256,8 +262,14 @@ while [ $# -gt 0 ]; do
shift
SRCDIRLIST="$1"
;;
- -szlib)
- LOCATE_SZLIB
+ -cxx)
+ CONFIG_CXX="--enable-cxx"
+ ;;
+ -fortran)
+ CONFIG_FORTRAN="--enable-fortran"
+ ;;
+ -pp)
+ CONFIG_PARALLEL="--enable-parallel"
;;
*) # Quit parsing
break
@@ -285,7 +297,7 @@ if [ x-$SRCDIR = x-dummy ]; then
fi
# Setup Configure options
-CONFIG_OP="$WITH_SZLIB"
+CONFIG_OP="$WITH_SZLIB $CONFIG_FORTRAN $CONFIG_CXX $CONFIG_PARALLEL"
# Configure
# no configure if already done.