summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2012-04-30 13:15:15 (GMT)
committerJason Evans <jasone@canonware.com>2012-05-02 10:24:21 (GMT)
commit7bfecf412dab69e771c9bbbaa01160bb69af8ec0 (patch)
tree0eec275eff3fabe2671159db41346383d89f5bce /configure.ac
parent1b523da21c8aded36dbe669a9e9ca78c3c96cad7 (diff)
downloadjemalloc-7bfecf412dab69e771c9bbbaa01160bb69af8ec0.zip
jemalloc-7bfecf412dab69e771c9bbbaa01160bb69af8ec0.tar.gz
jemalloc-7bfecf412dab69e771c9bbbaa01160bb69af8ec0.tar.bz2
Check for VALGRIND_RESIZEINPLACE_BLOCK support
VALGRIND_RESIZEINPLACE_BLOCK was added in valgrind 3.7. Unfortunately, the __VALGRIND_MINOR__ macro still says 6 in 3.7 :(
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 1 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 50eaae6..eeb2a29 100644
--- a/configure.ac
+++ b/configure.ac
@@ -841,10 +841,7 @@ if test "x$enable_valgrind" = "x1" ; then
#include <valgrind/valgrind.h>
#include <valgrind/memcheck.h>
-#if defined(__VALGRIND_MAJOR__) && defined(__VALGRIND_MINOR__) \
- && (__VALGRIND_MAJOR__ > 3 || (__VALGRIND_MAJOR__ == 3 && \
- __VALGRIND_MINOR__ >= 6))
-#else
+#if !defined(VALGRIND_RESIZEINPLACE_BLOCK)
# error "Incompatible Valgrind version"
#endif
], [], [je_cv_valgrind])