In gcov target, added warning if configured with --enable-debug.
authorDavid Levine <levinedl@acm.org>
Sat, 17 Mar 2012 19:33:43 +0000 (14:33 -0500)
committerDavid Levine <levinedl@acm.org>
Sat, 17 Mar 2012 19:33:43 +0000 (14:33 -0500)
While gcov will work with it, it won't reflect optimizations that
are disabled with that option.

Makefile.am

index 2dbab2f..def76cf 100644 (file)
@@ -572,6 +572,9 @@ cscope:
 ## targets because they will be used so infrequently, if at all.
 ##
 gcov:
+       @if ./config.status --config | grep -e --enable-debug >/dev/null; then \
+          echo For best results with gcov, should configure \
+           without --enable-debug; fi
        @echo rebuilding with AM_CLFAGS=--coverage . . .
        @(make clean  &&  make AM_CFLAGS=--coverage) > /dev/null  &&  make check
        @for i in `find . -name '*.gcda'`; do \