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