From 306029976f6526c2efd43689c5b0ef202e05af52 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Thu, 31 Dec 2015 19:09:25 +0100 Subject: [PATCH] Add coverage flag --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 32b1f49f..a5d4a7a1 100644 --- a/configure.ac +++ b/configure.ac @@ -30,6 +30,13 @@ dnl System extensions dnl --------------------------------------------------------------------- AC_USE_SYSTEM_EXTENSIONS +dnl --------------------------------------------------------------------- +dnl Enable source code coverage reporting for GCC +dnl --------------------------------------------------------------------- + +AC_ARG_ENABLE(gcov, + [ --enable-gcov Enable source code coverage testing using gcov], + [CFLAGS="$CFLAGS -coverage"]) dnl --------------------------------------------------------------------- dnl Disable window mode dnl ---------------------------------------------------------------------