Skip to content

Commit

Permalink
configure: fix --disable-code-coverage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rindeal authored and danielgustafsson committed Jul 9, 2019
1 parent efc55b8 commit 5fecc4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions m4/curl-functions.m4
Expand Up @@ -7313,8 +7313,7 @@ AC_DEFUN([CURL_COVERAGE],[
dnl check if enabled by argument dnl check if enabled by argument
AC_ARG_ENABLE(code-coverage, AC_ARG_ENABLE(code-coverage,
AC_HELP_STRING([--enable-code-coverage], [Provide code coverage]), AC_HELP_STRING([--enable-code-coverage], [Provide code coverage]),
coverage="yes", coverage="$enableval")
coverage="no")
dnl if not gcc switch off again dnl if not gcc switch off again
AS_IF([ test "$GCC" != "yes" ], coverage="no" ) AS_IF([ test "$GCC" != "yes" ], coverage="no" )
Expand Down

0 comments on commit 5fecc4d

Please sign in to comment.