mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-08 21:14:16 +00:00
configure: Enable spice-gtk when have all necessary spice packages
When neither --with-spice-gtk=yes nor --with-spice-gtk=no is used, spice-gtk is supposed to be automatically enabled/disabled depending on its availability. However, this is not perfectly working as once spice-gtk has been detected as available, configure will fail if spice-protocol or spice-controller are too old. In this case, spice-gtk support should just be disabled rather than configure failing
This commit is contained in:
parent
0d81ec2ef8
commit
f33c49f72d
@ -180,7 +180,8 @@ AC_ARG_WITH([spice-gtk],
|
||||
|
||||
AS_IF([test "x$with_spice_gtk" != "xno"],
|
||||
[PKG_CHECK_MODULES(SPICE_GTK,
|
||||
[spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED],
|
||||
[spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED
|
||||
spice-controller spice-protocol >= $SPICE_PROTOCOL_REQUIRED],
|
||||
[have_spice_gtk=yes], [have_spice_gtk=no])],
|
||||
[have_spice_gtk=no])
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user