~indicator-applet-developers/ubuntu/precise/indicator-appmenu/upstream

« back to all changes in this revision

Viewing changes to m4/gcov.m4

  • Committer: Charles Kerr
  • Date: 2012-04-05 16:19:32 UTC
  • mfrom: (1.4.2)
  • Revision ID: charles.kerr@canonical.com-20120405161932-rf6899hc99e99pmb
* New upstream release.
  * Faster searches and better search results. (lp: #947283, lp: #972354)
  * Don't submit searches with zero tokens. (lp: #973203)
  * Propertly emit the WindowUnregistered signal when windows go away.
  * Improvements to the gcov automake rules.
  * Fix bootstrap error in tests.
  - reduce hud cpu usage and DoS on long strings (lp: #938584, lp: #948820)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#  * gcovr
6
6
7
7
# Sets ac_cv_check_gcov to yes if tooling is present
8
 
# and reports the executables to the variables LCOV, GCOVR and GENHTML. 
 
8
# and reports the executables to the variables LCOV, GCOVR and GENHTML.
9
9
AC_DEFUN([AC_TDD_GCOV],
10
 
[AC_CACHE_CHECK([whether code coverage tools are available], ac_cv_check_gcov,
11
10
[
12
 
AC_ARG_ENABLE(gcov,
 
11
  AC_ARG_ENABLE(gcov,
13
12
  AS_HELP_STRING([--enable-gcov],
14
13
                 [enable coverage testing with gcov]),
15
14
  [use_gcov=$enableval], [use_gcov=no])
34
33
  lcov_version_list="1.6 1.7 1.8 1.9"
35
34
  AC_CHECK_PROG(LCOV, lcov, lcov)
36
35
  AC_CHECK_PROG(GENHTML, genhtml, genhtml)
37
 
  AC_CHECK_PROG(GCOVR, gcovr, gcovr)
38
36
 
39
37
  if test "$LCOV"; then
40
38
    AC_CACHE_CHECK([for lcov version], glib_cv_lcov_version, [
63
61
    AC_MSG_ERROR([Could not find genhtml from the lcov package])
64
62
  fi
65
63
 
66
 
  if test -z "$GCOVR"; then
67
 
    AC_MSG_ERROR([Could not find gcovr; easy_install (or pip) gcovr])
68
 
  fi
69
 
 
 
64
  ac_cv_check_gcov=yes
 
65
  ac_cv_check_lcov=yes
70
66
 
71
67
  # Remove all optimization flags from CFLAGS
72
68
  changequote({,})
78
74
  COVERAGE_CXXFLAGS="-O0 -fprofile-arcs -ftest-coverage"        
79
75
  COVERAGE_LDFLAGS="-lgcov"
80
76
 
 
77
  # Check availability of gcovr
 
78
  AC_CHECK_PROG(GCOVR, gcovr, gcovr)
 
79
  if test -z "$GCOVR"; then
 
80
    ac_cv_check_gcovr=no
 
81
  else
 
82
    ac_cv_check_gcovr=yes
 
83
  fi
 
84
 
81
85
fi
82
 
])]) # AC_TDD_GCOV
83
 
 
 
86
]) # AC_TDD_GCOV