dnl DBUS_BUILD_TESTS controls unit tests built in to .c files
dnl and also some stuff in the test/ subdir
-dnl
-dnl In principle we could have separate switches for the embedded
-dnl test code in the libraries (which cause bloat and possible security holes)
-dnl and the standalone GLib regression tests, but not right now.
AM_CONDITIONAL(DBUS_BUILD_TESTS, test x$enable_tests = xyes)
if test x$enable_tests = xyes; then
AC_DEFINE(DBUS_BUILD_TESTS,1,[Build test code])
fi
-AC_ARG_ENABLE([standalone-tests],
- AS_HELP_STRING([--enable-standalone-tests],
- [enable standalone regression tests (GLib 2.16 required)]),
- [], [enable_standalone_tests=yes])
-
-if test x$enable_standalone_tests = xyes; then
- PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.16],
- [], [AC_MSG_ERROR([The standalone regression tests require GLib])])
-fi
-
if test x$enable_verbose_mode = xyes; then
AC_DEFINE(DBUS_ENABLE_VERBOSE_MODE,1,[Support a verbose mode])
fi