X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=configure.ac;h=410bac226f356323bccd8cc15495efdaec6c06e0;hp=aa3edf0871411b36fe2fe41d957cfdeebc68c8b9;hb=c5a5b586adace0a0a65316ea89ecbf52e5b08430;hpb=da606c2c7e6a4aa46790dcd692f57fbd8966ccfa diff --git a/configure.ac b/configure.ac index aa3edf0..410bac2 100644 --- a/configure.ac +++ b/configure.ac @@ -61,6 +61,16 @@ else CFLAGS="$CFLAGS -O2 -Wall" fi +# Option to enable debugging +AC_ARG_ENABLE(gcov, + [AC_HELP_STRING([--enable-gcov],[Coverage reporting (default=no)])], + [with_gcov=yes], [with_gcov=no]) + +if test "x$with_gcov" == "xyes" ; then + CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" + LDFLAGS="$LDFLAGS -lgcov" +fi + dnl -------