AM_CONDITIONAL(USE_GTESTDBUS, [test x$gtestdbus = xyes])
AC_SUBST(MESSAGE_BUS_TYPE, [$enable_dbus_type])
+AM_CONDITIONAL(HAVE_DEBUG, [test x$enable_debug = xyes])
+
AC_SUBST(DBUS_SERVICES_DIR)
AC_SUBST(DBUS_INTERFACES_DIR)
+if HAVE_DEBUG
SUBDIRS = common daemon db plugins
+else
+SUBDIRS =
+
+check-local:
+ @echo "ERROR: tests are enabled only if ./configure is run with --enable-debug"
+ @exit 1
+endif
VALGRIND_TESTS_DISABLE =
valgrind: $(SUBDIRS)
EXTRA_DIST = \
valgrind.supp \
- valgrind_common.mk
\ No newline at end of file
+ valgrind_common.mk