summaryrefslogtreecommitdiffstats
path: root/src/H5config.h.in
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2009-09-30 04:24:27 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2009-09-30 04:24:27 (GMT)
commita228881ea7508dccdd863c270910bfc6370fcf2a (patch)
tree46c0f046d3b950e22f981a99f4d26a4ea82dbefa /src/H5config.h.in
parente35f27461437c7c66051afd909dbe29e7de5cf45 (diff)
downloadhdf5-a228881ea7508dccdd863c270910bfc6370fcf2a.zip
hdf5-a228881ea7508dccdd863c270910bfc6370fcf2a.tar.gz
hdf5-a228881ea7508dccdd863c270910bfc6370fcf2a.tar.bz2
[svn-r17558] New feature(Bug 230):
Embed the content of libhdf5.settings into the hdf5 executables so that an "orphaned" executables can display (via the Unix strings command, for example) the library settings used to build the executables. configure.in: Added the --disable-embedded-libinfo option to disable this feature. configure: src/H5config.h.in: fortran/configure c++/configure Generated by autotools like automake. src/H5detect.c: Implement insert_libhdf5_settings() to insert the contents of libhdf5.settings into the library as an extern string variable so that it is included in all HDF5 executable. test/Makefile.in: Added test scripts testlibinfo.sh and testcheck_version.sh, test program tcheck_version. Needed to introduce $PROGS so that tcheck_version is built but not run automatically. test/testlibinfo.sh.in: A new test added to verify the library information is indeed included in the executables. H5.c: added code to print the embedded library information when there is a library versions mis-match occurs. This ensures the library information string is included in the executable. Also modifies the code so that the Library mismatch warning string is included only once in the executable. H5private.h: Added a global reference to the libinfo string variable to prepare for possible stage 3 implementation of a public API. New test: (Bug ID 1656): Add new tests (tcheck_version, testcheck_version.sh) to verify H5check_version() does issue warnings and abort accordingly. Changed H5check_version() to suppress the warning message totally if $HDF5_DISABLE_VERSION_CHECK is 2 or higher. (Old behavior treated 3 or higher the same as 1, that is to print a warning and allows the program to continue. MANIFEST: updated with the newly added files. Tested: h5committest passed. Also passed jam in serial mode, --enable-static-exec, --disable-embedded-libinfo.
Diffstat (limited to 'src/H5config.h.in')
-rw-r--r--src/H5config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5config.h.in b/src/H5config.h.in
index e337a92..8303a56 100644
--- a/src/H5config.h.in
+++ b/src/H5config.h.in
@@ -36,6 +36,9 @@
/* Define to 1 if you have the <dmalloc.h> header file. */
#undef HAVE_DMALLOC_H
+/* Define if library information should be embedded in the executables */
+#undef HAVE_EMBEDDED_LIBINFO
+
/* Define to 1 if you have the <features.h> header file. */
#undef HAVE_FEATURES_H