From: Daniel P. Berrange Date: Tue, 8 Jan 2013 21:09:09 +0000 (+0000) Subject: Rename HAVE_LIBCURL to WITH_CURL X-Git-Tag: v1.0.2-rc1~183 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9a2a993dd951d1e7579b6a9260d9a6c0e33748a;p=thirdparty%2Flibvirt.git Rename HAVE_LIBCURL to WITH_CURL --- diff --git a/configure.ac b/configure.ac index d7b68100e6..a1c80c17d7 100644 --- a/configure.ac +++ b/configure.ac @@ -1871,9 +1871,9 @@ if test "$with_esx" = "yes" || test "$with_esx" = "check" || test "$with_xenapi" fi if test "$have_curl" = "yes" ; then - AC_DEFINE_UNQUOTED([HAVE_LIBCURL], 1, [whether libcurl is available]) + AC_DEFINE_UNQUOTED([WITH_CURL], 1, [whether libcurl is available]) fi -AM_CONDITIONAL([HAVE_LIBCURL], [test "$have_curl" = "yes"]) +AM_CONDITIONAL([WITH_CURL], [test "$have_curl" = "yes"]) if test "$with_esx" = "yes" ; then diff --git a/src/libvirt.c b/src/libvirt.c index 1490738def..7db677f366 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -41,7 +41,7 @@ # include #endif -#ifdef HAVE_LIBCURL +#ifdef WITH_CURL # include #endif @@ -419,7 +419,7 @@ virGlobalInit(void) virNetTLSInit(); #endif -#if HAVE_LIBCURL +#if WITH_CURL curl_global_init(CURL_GLOBAL_DEFAULT); #endif