From c54e02d80857bd08071e2311f456ef992a9d7a01 Mon Sep 17 00:00:00 2001 From: Allan LeSage Date: Tue, 27 Mar 2012 23:40:23 -0500 Subject: Added gcov coverage tooling. --- configure.ac | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 274875f..f281325 100644 --- a/configure.ac +++ b/configure.ac @@ -192,6 +192,18 @@ if test "x$with_massivedebugging" = "xyes"; then AC_DEFINE([MASSIVEDEBUGGING], [1], [Print everyting]) fi +########################### +# gcov coverage reporting +########################### + +m4_include([m4/gcov.m4]) +AC_TDD_GCOV +AM_CONDITIONAL([HAVE_GCOV], [test "x$ac_cv_check_gcov" = xyes]) +AM_CONDITIONAL([HAVE_LCOV], [test "x$ac_cv_check_lcov" = xyes]) +AM_CONDITIONAL([HAVE_GCOVR], [test "x$ac_cv_check_gcovr" = xyes]) +AC_SUBST(COVERAGE_CFLAGS) +AC_SUBST(COVERAGE_LDFLAGS) + ########################### # Files ########################### @@ -250,3 +262,7 @@ AS_IF([test "x$have_dumper" = "xyes"], AC_MSG_NOTICE([ Dumper: no]) ) +AS_IF([test "x$use_gcov" = "xyes"], + AC_MSG_NOTICE([ Coverage reporting: yes]), + AC_MSG_NOTICE([ Coverage reporting: no]) +) -- cgit v1.2.3