/[pcre]/code/trunk/configure.ac
ViewVC logotype

Diff of /code/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1341 by zherczeg, Fri Jun 14 07:54:36 2013 UTC revision 1342 by ph10, Mon Jul 1 12:28:12 2013 UTC
# Line 957  if test "$enable_pcretest_libreadline" = Line 957  if test "$enable_pcretest_libreadline" =
957    fi    fi
958  fi  fi
959    
960  # Check for valgrind  # Handle valgrind support
961    
962  if test "$enable_valgrind" = "yes"; then  if test "$enable_valgrind" = "yes"; then
963    m4_ifdef([PKG_CHECK_MODULES],    m4_ifdef([PKG_CHECK_MODULES],
# Line 965  if test "$enable_valgrind" = "yes"; then Line 965  if test "$enable_valgrind" = "yes"; then
965             [AC_MSG_ERROR([pkg-config not supported])])             [AC_MSG_ERROR([pkg-config not supported])])
966  fi  fi
967    
968  # test code coverage reporting  # Handle code coverage reporting support
969  if test "$enable_coverage" = "yes"; then  if test "$enable_coverage" = "yes"; then
970    if test "x$GCC" != "xyes"; then    if test "x$GCC" != "xyes"; then
971      AC_MSG_ERROR([Code coverage reports can only be generated when using GCC])      AC_MSG_ERROR([Code coverage reports can only be generated when using GCC])
# Line 996  if test "$enable_coverage" = "yes"; then Line 996  if test "$enable_coverage" = "yes"; then
996      AC_MSG_ERROR([genhtml not found])      AC_MSG_ERROR([genhtml not found])
997    fi    fi
998    
999    AC_DEFINE([SUPPORT_GCOV],[1], [    # Set flags needed for gcov
     Define to allow pcretest and pcregrep to be linked with gcov, so that they  
     are able to generate code coverage reports.])  
   
   # And add flags needed for gcov  
1000    GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"    GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
1001    GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"    GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
1002    GCOV_LIBS="-lgcov"    GCOV_LIBS="-lgcov"

Legend:
Removed from v.1341  
changed lines
  Added in v.1342

  ViewVC Help
Powered by ViewVC 1.1.5