From bc5c7225535ef447743ac59ecdba8c237549a108 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 13 Jun 2008 11:22:35 +0100 Subject: Conditionally compile the test suite If the --disable-glibtest command line switch has been given to the configure script, the test suite should be disabled and not built. This commit disables recursion in the tests/ and json-glib/tests when the ENABLE_GLIB_TEST Makefile conditional has been set. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 8fd6b0c..d2fe196 100644 --- a/configure.ac +++ b/configure.ac @@ -63,6 +63,8 @@ PKG_CHECK_MODULES(JSON, gobject-2.0 >= glib_req_version) AC_SUBST(JSON_CFLAGS) AC_SUBST(JSON_LIBS) +AM_CONDITIONAL(ENABLE_GLIB_TEST, test "x$enable_glibtest" = "xyes") + dnl = Enable debug level =================================================== m4_define([debug_default], @@ -127,4 +129,5 @@ echo " Prefix: ${prefix}" echo " Debug level: ${enable_debug}" echo " Compiler flags: ${CPPFLAGS}" echo " API reference: ${enable_gtk_doc}" +echo " Enable test suite: ${enable_glibtest}" echo "" -- cgit v1.2.1