diff options
-rw-r--r-- | configure.ac | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 7ca3075c..b5919bf6 100644 --- a/configure.ac +++ b/configure.ac @@ -254,8 +254,10 @@ 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], 1, [Use valgrind intrinsics to suppress false warings]),) + PKG_CHECK_MODULES(VALGRIND, [valgrind], have_valgrind=yes, have_valgrind=no) + if test x$have_valgrind = xyes; then + AC_DEFINE([HAVE_VALGRIND], 1, [Use valgrind intrinsics to suppress false warnings]) + fi fi if test "x$DEBUG" = xfull; then AC_DEFINE(HAS_DEBUG_FULL,1,[Enable all debugging]) |