[virt-tools-list] [PATCH virt-viewer v2] Fail if neither vnc nor spice is detected

Guido Günther agx at sigxcpu.org
Wed Oct 24 06:52:43 UTC 2012


Since the viewer makes little sense otherwise.
---
Changes: Use && instead of -a

 configure.ac |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index e7ddd3e..c2aad40 100644
--- a/configure.ac
+++ b/configure.ac
@@ -192,6 +192,10 @@ if test "x$enable_plugin" = "xyes"; then
 fi
 AM_CONDITIONAL(ENABLE_PLUGIN, [test "x$enable_plugin" = "xyes"])
 
+if test "x$have_gtk_vnc" != "xyes" && "x$have_gtk_spice" != "xyes"; then
+    AC_MSG_ERROR([At least one of spice or vnc must be used])
+fi
+
 AC_OUTPUT([
     Makefile
     data/Makefile
-- 
1.7.10.4




More information about the virt-tools-list mailing list