summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-13 10:05:25 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-13 10:05:25 +0000
commitdb7c9e8561afcc1ca7ab16b3bf2d5b49938e26d9 (patch)
tree22b09c7ee988a780b117d77298e499d41d460f2a /configure.ac
parentd02dc0fd84194b6acc607d17e4396dd1fdc681f8 (diff)
configure: Link the extra valgrind debugging to --enable-debug
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 6dbeb285..4efb65d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -260,11 +260,11 @@ if test "x$DEBUG" = xno; then
fi
if test "x$DEBUG" != xno; then
AC_DEFINE(HAS_EXTRA_DEBUG,1,[Enable additional debugging])
+ PKG_CHECK_MODULES(VALGRIND, [valgrind],
+ AC_DEFINE([HAVE_VALGRIND], 0, [Use valgind intrinsics to suppress false warings]),)
fi
if test "x$DEBUG" = xfull; then
AC_DEFINE(HAS_DEBUG_FULL,1,[Enable all debugging])
- PKG_CHECK_MODULES(VALGRIND, [valgrind],
- AC_DEFINE([HAVE_VALGRIND], 0, [Use valgind intrinsics to suppress false warings]),)
CFLAGS="$CFLAGS -O0 -ggdb3"
fi