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é <[email protected]>
---
 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
[email protected]
https://www.redhat.com/mailman/listinfo/libosinfo

Reply via email to