[virt-tools-list] [PATCH virt-viewer v2 1/4] configure: check for new functions in libgovirt
Eduardo Lima (Etrunko)
etrunko at redhat.com
Fri Sep 29 21:30:15 UTC 2017
These functions will be used in ovirt-foreign-menu code and guarded
by #ifdef blocks so that we can keep compatibility with older libgovirt
versions.
Related: https://bugzilla.redhat.com/show_bug.cgi?id=1427467
https://bugzilla.redhat.com/show_bug.cgi?id=1428401
Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
---
configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
index 9ca6cb6..61374fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -190,6 +190,10 @@ AS_IF([test "x$with_ovirt" = "xyes"],
void *fun = rest_proxy_auth_cancel;])],
[AC_DEFINE([HAVE_OVIRT_CANCEL], 1, [Have rest_proxy_auth_cancel and OVIRT_REST_CALL_ERROR_CANCELLED?])],
[])
+ AC_CHECK_FUNCS([ovirt_api_search_vms ovirt_vm_get_host ovirt_host_get_cluster ovirt_cluster_get_data_center],
+ [AC_DEFINE([HAVE_OVIRT_DATA_CENTER], 1, [Have support for data center])],
+ []
+ )
CFLAGS="$SAVED_CFLAGS"
LIBS="$SAVED_LIBS"]
)
--
2.13.6
More information about the virt-tools-list
mailing list