MapServer / MapServer-import

3 stars 2 forks source link

[PATCH] Add --enable-coverage configure option for gcov support #1242

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: pere@hungry.com Date: 2005/02/12 - 21:47

Please make it it easier to compile mapserver with source code
coverage reporting.  The following patch add a new configure argument
--enable-coverate, making sure the needed GCC flags are used at
build time.

Index: configure.in
===================================================================
RCS file: /data2/cvsroot/mapserver/configure.in,v
retrieving revision 1.118
diff -u -3 -p -u -r1.118 configure.in
--- configure.in        6 Feb 2005 18:39:55 -0000       1.118
+++ configure.in        12 Feb 2005 20:34:02 -0000
@@ -1773,2 +1773,2 @@ fi
 AC_SUBST(DEBUG_FLAGS, $DEBUG_FLAGS)
 ALL_ENABLED="$DEBUG_FLAGS $ALL_ENABLED"

+AC_ARG_ENABLE(coverage,
+[  --enable-coverage       Enable coverage testing],
+[CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"])
+
 dnl ---------------------------------------------------------------------
 dnl PHP/MapScript module options
 dnl ---------------------------------------------------------------------
tbonfort commented 12 years ago

Author: dmorissette Date: 2005/02/13 - 23:46

Done in 4.5 CVS.