summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2003-03-11 05:57:53 +0000
committerMartin Pool <mbp@samba.org>2003-03-11 05:57:53 +0000
commitcca61adcd242b96a1cf3c3b6528fd23a4998c2c3 (patch)
treed3a80038f2a890c68fb5fa1d994e3f517747eb97
parentee28d38fbc5639140478e51cc33ec0a312d785da (diff)
downloadsamba-cca61adcd242b96a1cf3c3b6528fd23a4998c2c3.tar.gz
samba-cca61adcd242b96a1cf3c3b6528fd23a4998c2c3.tar.bz2
samba-cca61adcd242b96a1cf3c3b6528fd23a4998c2c3.zip
If using --enable-developer and valgrind.h is present, define VALGRIND.
(This used to be commit 71c8e90117f00f168416f2f35a1c25755e2d0ed4)
-rw-r--r--source3/include/includes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 297f38ae97..7e5ad0e3cd 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -438,6 +438,14 @@
#include <valgrind.h>
#endif
+/* If we have --enable-developer and the valgrind header is present,
+ * then we're OK to use it. Set a macro so this logic can be done only
+ * once. */
+#if defined(DEVELOPER) && HAVE_VALGRIND_H
+#define VALGRIND
+#endif
+
+
/* we support ADS if we want it and have krb5 and ldap libs */
#if defined(WITH_ADS) && defined(HAVE_KRB5) && defined(HAVE_LDAP)
#define HAVE_ADS