aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJan Chren <dev.rindeal@gmail.com>2019-07-08 20:20:26 +0000
committerDaniel Gustafsson <daniel@yesql.se>2019-07-09 12:56:51 +0200
commit5fecc4d6267b6dfba023347289ddff66c2521635 (patch)
tree8bf9024961329211e36d084ee55d1496cb465bd2 /m4
parentefc55b8986970f2feea6c09e62c72e81e553fd88 (diff)
configure: fix --disable-code-coverage
This fixes the case when --disable-code-coverage supplied to ./configure would result in coverage="yes" being set. Closes #4099 Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Diffstat (limited to 'm4')
-rw-r--r--m4/curl-functions.m43
1 files changed, 1 insertions, 2 deletions
diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4
index 84f6ffcb2..9020f3942 100644
--- a/m4/curl-functions.m4
+++ b/m4/curl-functions.m4
@@ -7313,8 +7313,7 @@ AC_DEFUN([CURL_COVERAGE],[
dnl check if enabled by argument
AC_ARG_ENABLE(code-coverage,
AC_HELP_STRING([--enable-code-coverage], [Provide code coverage]),
- coverage="yes",
- coverage="no")
+ coverage="$enableval")
dnl if not gcc switch off again
AS_IF([ test "$GCC" != "yes" ], coverage="no" )