aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--tests/Makefile.am1
2 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e397cb5..a46901f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -118,10 +118,10 @@ AM_CONDITIONAL([WANT_TESTS], [test "x$enable_tests" != "xno"])
AS_IF([test "x$enable_tests" != "xno"],[
PKG_CHECK_MODULES(DBUSMENUTESTS, json-glib-1.0 >= $JSON_GLIB_REQUIRED_VERSION
- gio-unix-2.0 >= $GIO_UNIX_REQUIRED_VERSION
- valgrind,
+ gio-unix-2.0 >= $GIO_UNIX_REQUIRED_VERSION,
[have_tests=yes]
)
+PKG_CHECK_MODULES(DBUSMENUTESTSVALGRIND, valgrind)
])
AC_SUBST(DBUSMENUTESTS_CFLAGS)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 82f6a9d..805adb9 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -223,6 +223,7 @@ test_json_server_CFLAGS = \
-I $(srcdir) \
$(DBUSMENUGLIB_CFLAGS) \
$(DBUSMENUTESTS_CFLAGS) \
+ $(DBUSMENUTESTSVALGRIND_CFLAGS) \
-Wall -Werror
test_json_server_LDADD = \