From a4bfdce8ed87d728f5644077ddbe94380c6ff3b5 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 1 Nov 2016 20:38:23 +0100 Subject: Switch from cppunit.m4 to pkgconfig (patch from Jin^Eld) --- configure.ac | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 7e6695c..0dcf8c0 100644 --- a/configure.ac +++ b/configure.ac @@ -142,10 +142,17 @@ AC_ARG_WITH([test], AS_HELP_STRING([--with-test], [Build unit tests])) AS_IF([test x$with_test == xyes], - [AC_MSG_WARN([*** Building unittests!]) - AM_PATH_CPPUNIT(1.9.6)] + [ + AC_MSG_WARN([*** Building unittests!]) + PKG_CHECK_MODULES([CPPUNIT], [ cppunit >= 1.9.6 ], [], + [ + AC_MSG_ERROR([$CPPUNIT_PKG_ERRORS]) + ]) + ] ) +AM_CONDITIONAL([ENABLE_TESTS], [test "x$with_test" = "xyes"]) + dnl ====================== dnl Compile LV2 plugin dnl ====================== -- cgit v1.2.3