summaryrefslogtreecommitdiffstats
path: root/fortran/src
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-01-08 20:08:36 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-01-08 20:08:36 (GMT)
commitc08c387235185d00736eff7e2673c351b9b79c42 (patch)
treee1a3cb26e89832c237af67f29553eca969ef190c /fortran/src
parent3774b2732abbf82e68f7d7c292bf6f9d6330064c (diff)
downloadhdf5-c08c387235185d00736eff7e2673c351b9b79c42.zip
hdf5-c08c387235185d00736eff7e2673c351b9b79c42.tar.gz
hdf5-c08c387235185d00736eff7e2673c351b9b79c42.tar.bz2
[svn-r8043] Purpose:
Feature Description: Added option -showconfig which Shows the HDF5 library configuration summary Platforms tested: No h5committest test which does not test these tools. Tested in eirene by hand. Misc. update:
Diffstat (limited to 'fortran/src')
-rwxr-xr-xfortran/src/h5fc.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/fortran/src/h5fc.in b/fortran/src/h5fc.in
index acb0b58..382521d 100755
--- a/fortran/src/h5fc.in
+++ b/fortran/src/h5fc.in
@@ -70,6 +70,7 @@ usage() {
echo " -prefix=DIR Prefix directory to find HDF5 lib/ and include/"
echo " subdirectories [default: $prefix]"
echo " -show Show the commands without executing them"
+ echo " -showconfig Show the HDF5 library configuration summary"
echo " "
echo " <compile line> - the normal compile line options for your compiler."
echo " $prog_name uses the same compiler you used to compile"
@@ -85,6 +86,17 @@ usage() {
exit 1
}
+# Show the configuration summary of the library recorded in the
+# libhdf5.settings file reside in the lib directory.
+showconfigure()
+{
+ cat ${libdir}/libhdf5.settings
+ status=$?
+}
+
+# Main
+status=0
+
if test "$#" = "0"; then
# No parameters specified, issue usage statement and exit.
usage
@@ -141,6 +153,10 @@ for arg in $@ ; do
-show)
SHOW="echo"
;;
+ -showconfig)
+ showconfigure
+ exit $status
+ ;;
-help)
usage
;;