diff options
-rw-r--r-- | acinclude.m4 | 2 | ||||
-rw-r--r-- | 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) |