diff options
Diffstat (limited to 'm4/salut-lcov.m4')
-rw-r--r-- | m4/salut-lcov.m4 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/m4/salut-lcov.m4 b/m4/salut-lcov.m4 index 8d9a4da1..c0bbbf9c 100644 --- a/m4/salut-lcov.m4 +++ b/m4/salut-lcov.m4 @@ -2,9 +2,11 @@ dnl Check for lcov utility AC_DEFUN([SALUT_LCOV], [ - AC_PATH_PROG(LCOV_PATH, [lcov], [no]) + enable=$1 - if test X$LCOV_PATH != Xno ; then + AC_PATH_PROG(LCOV_PATH, lcov) + + if test -n "$LCOV_PATH" ; then AC_MSG_CHECKING([whether lcov accepts --compat-libtool]) if $LCOV_PATH --compat-libtool --help > /dev/null 2>&1 ; then AC_MSG_RESULT(ok) @@ -12,12 +14,14 @@ AC_DEFUN([SALUT_LCOV], 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 + LCOV_PATH="" fi fi - if test X$LCOV_PATH == Xno ; then + if test -z "$LCOV_PATH" ; then AC_MSG_WARN([will use an internal lcov copy]) LCOV_PATH='$(top_srcdir)/scripts/lcov/lcov' fi + + AM_CONDITIONAL(HAVE_LCOV, test -n "$LCOV_PATH" && test "x$enable" = xyes) ]) |