summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-07-12 18:29:41 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-07-12 18:29:41 (GMT)
commit58b9c34fc585c66c6a1b74eeb5dc48e132cc879b (patch)
treebf5db9704e7de963b4512a519a964cbb80c66044 /src
parent38d5d5e21b35b83a72a2075f231258c55cf5b608 (diff)
downloadhdf5-58b9c34fc585c66c6a1b74eeb5dc48e132cc879b.zip
hdf5-58b9c34fc585c66c6a1b74eeb5dc48e132cc879b.tar.gz
hdf5-58b9c34fc585c66c6a1b74eeb5dc48e132cc879b.tar.bz2
[svn-r5782] Purpose:
New feature Description: Add support in for "dmalloc" debugging malloc library to configure script and library headers. Platforms tested: IRIX64 6.5 (modi4) and FreeBSD 4.6 (sleipnir)
Diffstat (limited to 'src')
-rw-r--r--src/H5config.h.in9
-rw-r--r--src/H5private.h7
2 files changed, 13 insertions, 3 deletions
diff --git a/src/H5config.h.in b/src/H5config.h.in
index 46dd706..49c220d 100644
--- a/src/H5config.h.in
+++ b/src/H5config.h.in
@@ -18,6 +18,9 @@
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
+/* Define to 1 if you have the <dmalloc.h> header file. */
+#undef HAVE_DMALLOC_H
+
/* Define to 1 if you have the <features.h> header file. */
#undef HAVE_FEATURES_H
@@ -72,6 +75,9 @@
/* Define to 1 if you have the `crypto' library (-lcrypto). */
#undef HAVE_LIBCRYPTO
+/* Define to 1 if you have the `dmalloc' library (-ldmalloc). */
+#undef HAVE_LIBDMALLOC
+
/* Define to 1 if you have the `elf' library (-lelf). */
#undef HAVE_LIBELF
@@ -464,6 +470,3 @@
/* Define to `long' if <sys/types.h> does not define. */
#undef ssize_t
-
-/* Define if you have the <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
diff --git a/src/H5private.h b/src/H5private.h
index a7ad701..41b9a16 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -156,6 +156,13 @@
#endif
/*
+ * dmalloc (debugging malloc) support
+ */
+#ifdef H5_HAVE_DMALLOC_H
+#include "dmalloc.h"
+#endif /* H5_HAVE_DMALLOC_H */
+
+/*
* NT doesn't define SIGBUS, but since NT only runs on processors
* that do not have alignment constraints a SIGBUS would never be
* raised, so we just replace it with SIGILL (which also should