[Libosinfo] [PATCH] configure: fix HAVE_CURL conditional on Win32

Fabiano Fidêncio fabiano at fidencio.org
Tue May 8 15:18:51 UTC 2018


On Tue, May 8, 2018 at 3:38 PM, Daniel P. Berrangé <berrange at redhat.com> wrote:
> AM_CONDITIONAL lines must always be executed, but HAVE_CURL was inside
> an "if ...", which caused configure to fail when run on Win32.
>
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
>  configure.ac | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index d834c89..f7f1c72 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -60,8 +60,8 @@ if test "x$enable_tests" != "xno" ; then
>    PKG_CHECK_MODULES([CURL], [libcurl], [have_curl=yes], [:])
>    AC_SUBST(CURL_CFLAGS)
>    AC_SUBST(CURL_LIBS)
> -  AM_CONDITIONAL([HAVE_CURL],[test "x$have_curl" = "xyes"])
>  fi
> +AM_CONDITIONAL([HAVE_CURL],[test "x$have_curl" = "xyes"])
>
>  AM_CONDITIONAL([ENABLE_TESTS],[test "x$enable_tests" = "xyes"])
>
> --
> 2.17.0
>
> _______________________________________________
> Libosinfo mailing list
> Libosinfo at redhat.com
> https://www.redhat.com/mailman/listinfo/libosinfo


Ack!
-- 
Fabiano Fidêncio




More information about the Libosinfo mailing list