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>
This commit is contained in:
Jan Chren 2019-07-08 20:20:26 +00:00 коммит произвёл Daniel Gustafsson
Родитель efc55b8986
Коммит 5fecc4d626
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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" )