summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-01-08 20:07:23 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-01-08 20:07:23 (GMT)
commit45646fcb896f0322d4af1f821e4eeceb946aa66c (patch)
tree76726f3dba0515c160a0ffed86ce59d1d038c576 /c++
parent300af1d8097dc15ad2a30b7813b66eeb54118b48 (diff)
downloadhdf5-45646fcb896f0322d4af1f821e4eeceb946aa66c.zip
hdf5-45646fcb896f0322d4af1f821e4eeceb946aa66c.tar.gz
hdf5-45646fcb896f0322d4af1f821e4eeceb946aa66c.tar.bz2
[svn-r8042] 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 'c++')
-rwxr-xr-xc++/src/h5c++.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/c++/src/h5c++.in b/c++/src/h5c++.in
index 29a1082..21e07fa 100755
--- a/c++/src/h5c++.in
+++ b/c++/src/h5c++.in
@@ -74,6 +74,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"
@@ -90,6 +91,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
@@ -164,6 +176,10 @@ for arg in $@ ; do
-show)
SHOW="echo"
;;
+ -showconfig)
+ showconfigure
+ exit $status
+ ;;
-help)
usage
;;