From c5fbbdf2f1f5691d3d1dc6b6b30507624640bf4b Mon Sep 17 00:00:00 2001 From: Emanuele Aina Date: Mon, 25 Jun 2007 07:57:42 +0000 Subject: Split the command line settings from the detection of libraries and utilities 20070625075742-f974e-6695a3b35627caa5a09411094577c68d34a60d1e.gz --- m4/salut-lcov.m4 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 m4/salut-lcov.m4 (limited to 'm4/salut-lcov.m4') diff --git a/m4/salut-lcov.m4 b/m4/salut-lcov.m4 new file mode 100644 index 00000000..c3ad58f3 --- /dev/null +++ b/m4/salut-lcov.m4 @@ -0,0 +1,22 @@ +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_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 +]) -- cgit v1.2.1