From 7bfecf412dab69e771c9bbbaa01160bb69af8ec0 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Mon, 30 Apr 2012 15:15:15 +0200 Subject: 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 :( --- configure.ac | 5 +---- 1 file changed, 1 insertion(+), 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 #include -#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]) -- cgit v0.12