[PATCH] configure: fix HAVE_CURL conditional on Win32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux