From 977ed85235665be89f1f14259d83f6fb0bf1c437 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 6 Dec 2013 13:21:35 +0100 Subject: CppUnit introduced. --- configure.ac | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e115d4f..c50f27e 100644 --- a/configure.ac +++ b/configure.ac @@ -12,9 +12,9 @@ AC_ARG_WITH(debug, [], [with_debug=no]) if test x$with_debug == xyes; then - AC_MSG_WARN([*** Building with debug support!]) - AC_DEFINE_UNQUOTED(WITH_DEBUG, , [The project is configured to use debug output]) - CXXFLAGS="$CXXFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Werror -g -O0" + AC_MSG_WARN([*** Building with debug support!]) + AC_DEFINE_UNQUOTED(WITH_DEBUG, , [The project is configured to use debug output]) + CXXFLAGS="$CXXFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Werror -g -O0" fi dnl ====================== @@ -32,6 +32,13 @@ dnl Check for getopt dnl ====================== AC_HAVE_HEADERS(getopt.h) +AC_ARG_WITH(test, [ --with-test Build unit tests]) +if test x$with_test == xyes; then + AC_MSG_WARN([*** Building unittests!]) + AM_PATH_CPPUNIT(1.9.6) + AC_OUTPUT(test/Makefile) +fi + dnl ====================== dnl Check for eXpat library dnl ====================== -- cgit v1.2.3