Blame SOURCES/0046-configure-check-for-new-functions-in-libgovirt.patch
|
|
1efd99 |
From 909174b37f433a8c68039bd6c853cca6e09a8dd1 Mon Sep 17 00:00:00 2001
|
|
|
1efd99 |
From: "Eduardo Lima (Etrunko)" <etrunko@redhat.com>
|
|
|
1efd99 |
Date: Fri, 29 Sep 2017 17:54:39 -0300
|
|
|
1efd99 |
Subject: [PATCH] configure: check for new functions in libgovirt
|
|
|
1efd99 |
|
|
|
1efd99 |
These functions will be used in ovirt-foreign-menu code and guarded
|
|
|
1efd99 |
by #ifdef blocks so that we can keep compatibility with older libgovirt
|
|
|
1efd99 |
versions.
|
|
|
1efd99 |
|
|
|
1efd99 |
Related: https://bugzilla.redhat.com/show_bug.cgi?id=1427467
|
|
|
1efd99 |
https://bugzilla.redhat.com/show_bug.cgi?id=1428401
|
|
|
1efd99 |
|
|
|
1efd99 |
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
|
|
|
1efd99 |
---
|
|
|
1efd99 |
configure.ac | 4 ++++
|
|
|
1efd99 |
1 file changed, 4 insertions(+)
|
|
|
1efd99 |
|
|
|
1efd99 |
diff --git a/configure.ac b/configure.ac
|
|
|
1efd99 |
index 395659b..6ed5f8a 100644
|
|
|
1efd99 |
--- a/configure.ac
|
|
|
1efd99 |
+++ b/configure.ac
|
|
|
1efd99 |
@@ -190,6 +190,10 @@ AS_IF([test "x$with_ovirt" = "xyes"],
|
|
|
1efd99 |
void *fun = rest_proxy_auth_cancel;])],
|
|
|
1efd99 |
[AC_DEFINE([HAVE_OVIRT_CANCEL], 1, [Have rest_proxy_auth_cancel and OVIRT_REST_CALL_ERROR_CANCELLED?])],
|
|
|
1efd99 |
[])
|
|
|
1efd99 |
+ AC_CHECK_FUNCS([ovirt_api_search_vms ovirt_vm_get_host ovirt_host_get_cluster ovirt_cluster_get_data_center],
|
|
|
1efd99 |
+ [AC_DEFINE([HAVE_OVIRT_DATA_CENTER], 1, [Have support for data center])],
|
|
|
1efd99 |
+ []
|
|
|
1efd99 |
+ )
|
|
|
1efd99 |
CFLAGS="$SAVED_CFLAGS"
|
|
|
1efd99 |
LIBS="$SAVED_LIBS"]
|
|
|
1efd99 |
)
|
|
|
1efd99 |
--
|
|
|
1efd99 |
2.13.6
|
|
|
1efd99 |
|