From 763fcabd8b287445d32eadb6086b0438e3962294 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 29 Jan 2010 09:29:53 +0000 Subject: [PATCH] build: Warn with --disable-conformance and --enable-gcov When building Clutter without conformance test suite we ought to warn the user that the coverage report is not going to be accurate. --- configure.ac | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 9f1831621..359532acd 100644 --- a/configure.ac +++ b/configure.ac @@ -759,15 +759,20 @@ and gcov)])], AS_IF([test "x$enable_gcov" = "xyes" && test "x$GCC" = "xyes"], [ + AS_IF([test "x$enable_conformance" = "xno"], + [AC_MSG_WARN([Conformance test suite is disabled, the coverage report will be incomplete])], + [AC_MSG_RESULT([yes])] + ) + GCOV_CFLAGS="-g -O0 -fprofile-arcs -ftest-coverage" GCOV_LDFLAGS="-lgcov" - ] + ], + [AC_MSG_RESULT([no])] ) AM_CONDITIONAL([GCOV_ENABLED], [test "x$enable_gcov" = "xyes"]) AC_SUBST([GCOV_CFLAGS]) AC_SUBST([GCOV_LDFLAGS]) -AC_MSG_RESULT([$enable_gcov]) dnl === Enable strict compiler flags ==========================================