From 78cbdd40b2c4a10f7b6de53dc82663f2eaed523e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 14 Dec 2014 00:31:26 +0100 Subject: [PATCH] build: Fix detection of coverage support --- acinclude.m4 | 2 +- configure.ac | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 4cfc80a0d..960d54cac 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -52,7 +52,7 @@ AC_DEFUN([MISC_FLAGS], [ misc_ldflags="$misc_ldflags -pie" fi ]) - if (test "$USE_MAINTAINER_MODE" = "yes"); then + if (test "$enable_coverage" = "yes"); then misc_cflags="$misc_cflags --coverage" misc_ldflags="$misc_ldflags --coverage" fi diff --git a/configure.ac b/configure.ac index 196e7849d..a70d55a5b 100644 --- a/configure.ac +++ b/configure.ac @@ -275,8 +275,8 @@ AC_DEFINE_UNQUOTED(ANDROID_STORAGEDIR, "${storagedir}/android", [Directory for the Android daemon storage files]) if (test "$USE_MAINTAINER_MODE" = "yes"); then - AC_CHECK_PROG([LCOV], [lcov], [yes], AC_MSG_ERROR(lcov is required)) + AC_CHECK_PROG(enable_coverage, [lcov], [yes], [no]) fi -AM_CONDITIONAL(COVERAGE, test "$LCOV" = "yes") +AM_CONDITIONAL(COVERAGE, test "${enable_coverage}" = "yes") AC_OUTPUT(Makefile src/bluetoothd.8 lib/bluez.pc) -- 2.47.3