diff options
author | Emanuele Aina <em@nerd.ocracy.org> | 2007-06-25 07:57:42 +0000 |
---|---|---|
committer | Emanuele Aina <em@nerd.ocracy.org> | 2007-06-25 07:57:42 +0000 |
commit | c5fbbdf2f1f5691d3d1dc6b6b30507624640bf4b (patch) | |
tree | c9d19fdce098c9c7002d647527a0a8cda3e54d3a /m4/salut-lcov.m4 | |
parent | 97e025f19370a7b8d5170195683570390fdd6c3d (diff) | |
download | telepathy-salut-c5fbbdf2f1f5691d3d1dc6b6b30507624640bf4b.tar.gz |
Split the command line settings from the detection of libraries and utilities
20070625075742-f974e-6695a3b35627caa5a09411094577c68d34a60d1e.gz
Diffstat (limited to 'm4/salut-lcov.m4')
-rw-r--r-- | m4/salut-lcov.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
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 +]) |