summaryrefslogtreecommitdiff
path: root/m4/salut-lcov.m4
blob: 8d9a4da173f64d11bc4a744d73232cd104b663d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
dnl Check for lcov utility

AC_DEFUN([SALUT_LCOV],
[
  AC_PATH_PROG(LCOV_PATH, [lcov], [no])

  if test X$LCOV_PATH != Xno ; then
    AC_MSG_CHECKING([whether lcov accepts --compat-libtool])
    if $LCOV_PATH --compat-libtool --help > /dev/null 2>&1 ; then
      AC_MSG_RESULT(ok)
    else
      AC_MSG_RESULT(no)
      AC_MSG_WARN([lcov option --compat-libtool is not supported])
      AC_MSG_WARN([update lcov to version > 1.5])
      LCOV_PATH=no
    fi
  fi

  if test X$LCOV_PATH == Xno ; then
    AC_MSG_WARN([will use an internal lcov copy])
    LCOV_PATH='$(top_srcdir)/scripts/lcov/lcov'
  fi
])