diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-07-30 15:47:40 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-07-30 15:47:40 +0000 |
commit | 667283d6049430d77baf26acac683f824f8d8669 (patch) | |
tree | a4177a6cf609fdd68ae97b45d8996bfc15e05dda /lib/make/extras/HDF5/setup.sh | |
parent | 37189ac499aac538da2084f5107dc9f00e46ff28 (diff) |
Added configure for HDF5
Just type HDF5=SERIAL for choosing the serial lib version.
Will add parallel version later.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@838 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/extras/HDF5/setup.sh')
-rwxr-xr-x | lib/make/extras/HDF5/setup.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/make/extras/HDF5/setup.sh b/lib/make/extras/HDF5/setup.sh new file mode 100755 index 00000000..afac3759 --- /dev/null +++ b/lib/make/extras/HDF5/setup.sh @@ -0,0 +1,40 @@ +#! /bin/sh +# /*@@ +# @file setup.sh +# @date Fri Jul 30 1999 +# @author Thomas Radke +# @desc +# Setup HDF5 +# @enddesc +# @@*/ + +if test -n "$HDF5" ; then + +echo "Configuring with HDF5. Blocks with #ifdef HDF5 will be activated" + +CCTK_WriteLine cctk_extradefs.h "#define HDF5" + +# Work out which variation of HDF5 lib + +if test -r $srcdir/extras/HDF5/$HDF5 ; then + . $srcdir/extras/HDF5/$HDF5 +else + echo "HDF5 selected, but no known HDF5 method - what is $HDF5 ?" + exit 2 +fi + +# Write the data out to the header and make files. + +CCTK_WriteLine make.extra.defn "HDF5_LIBS = $HDF5_LIBS" +CCTK_WriteLine make.extra.defn "HDF5_LIB_DIRS = $HDF5_LIB_DIRS" +CCTK_WriteLine make.extra.defn "HDF5_INC_DIRS = $HDF5_INC_DIRS" + +CCTK_WriteLine make.extra.defn "" +CCTK_WriteLine make.extra.defn "" + +CCTK_WriteLine make.extra.defn 'LIBS += $(HDF5_LIBS)' +CCTK_WriteLine make.extra.defn 'LIBDIRS += $(HDF5_LIB_DIRS)' +CCTK_WriteLine make.extra.defn 'SYS_INC_DIRS += $(HDF5_INC_DIRS)' + +fi + |