[libpeas] Fix checking for gcov



commit c3a5e4283528e112474d188a0c8323cbbf1c1309
Author: Garrett Regier <alias301 gmail com>
Date:   Sat Mar 5 06:42:23 2011 -0800

    Fix checking for gcov

 configure.ac |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1b67a31..66c5003 100644
--- a/configure.ac
+++ b/configure.ac
@@ -172,11 +172,10 @@ AC_ARG_ENABLE([gcov],
 	      [enable_gcov=no])
 
 if test "x$enable_gcov" = "xno"; then
-        found_gcov="no (disabled, use --enable-gcov to enable)"
+        enable_gcov="no (disabled, use --enable-gcov to enable)"
         AC_MSG_CHECKING([whether to build with coverage testing])
 else
-        enable_gcov=yes
-        AC_PATH_PROG([GCOV], [gcov], [enable_gcov=no])
+        AC_PATH_PROG([enable_gcov], [gcov], [no])
         AC_MSG_CHECKING([whether to build with coverage testing])
 
         if test "x$enable_gcov" = "xno"; then
@@ -184,6 +183,7 @@ else
         elif test "x$GCC" = "xno"; then
                 AC_MSG_ERROR([You need to use gcc to build with coverage testing])
         else
+                enable_gcov=yes
                 GCOV_CFLAGS="-g -O0 -fprofile-arcs -ftest-coverage"
                 GCOV_LDFLAGS="-lgcov"
         fi



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]