From 83bf3b120f36761090bbb3ece10fc0ac364e3506 Mon Sep 17 00:00:00 2001 From: Louis Sautier Date: Sat, 10 Jun 2017 00:26:12 +0200 Subject: [PATCH] Disable cppunit tests by default, honor --enable-cppunit --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 8f15b96..46a3fdb 100644 --- a/configure.ac +++ b/configure.ac @@ -557,8 +557,10 @@ AM_CONDITIONAL(BUILD_DOCUMENTATION, test "${DOXYGEN}" != "no") AM_CONDITIONAL(USE_LATEX, test "${LATEX}" != "no") # Use cppunit for unit tests? -PKG_CHECK_MODULES(CPPUNIT, cppunit, [CPPUNIT="yes"], [CPPUNIT="no"]) -AM_CONDITIONAL(USE_CPPUNIT, test "$CPPUNIT" = "yes") +AS_IF([test "x$enable_cppunit" = "xyes"], [ + PKG_CHECK_MODULES([CPPUNIT], [cppunit]) +]) +AM_CONDITIONAL([USE_CPPUNIT], [test "x$enable_cppunit" = "xyes"]) # Use zzuf for fuzzing tests? ZZUF="no"