summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-08-07 16:23:53 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2012-08-07 17:06:01 +0200
commit9057d3ac9c169836274ef5eb62a3b0a76744367f (patch)
tree7e845a596b840b29297c2b7814af475399eb27a5 /configure.ac
parent6160f08134fa42b422239fc3be0425576f58d808 (diff)
build: make controller build optional
Apart from the Vala bindings, this is the only part of spice-gtk which requires Vala to be built from git. Since it's only useful when spice-gtk is used in conjunction with an oVirt browser plugin, letting people disabling it will not necessarily cause issues.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 233ce4d..e246f16 100644
--- a/configure.ac
+++ b/configure.ac
@@ -513,6 +513,13 @@ PKG_CHECK_EXISTS([GOBJECT_INTROSPECTION],
GOBJECT_INTROSPECTION_CHECK([0.6.7])
AM_CONDITIONAL([G_IR_SCANNER_SYMBOL_PREFIX], [test "x$has_symbol_prefix" = "xyes"])
+AC_ARG_ENABLE([controller],
+ AS_HELP_STRING([--enable-controller], [Enable controller build @<:@default=yes@:>@]),
+ [],
+ enable_controller="yes")
+
+AM_CONDITIONAL(WITH_CONTROLLER, [test "x$enable_controller" != "xno"])
+
AC_ARG_ENABLE([vala],
AS_HELP_STRING([--enable-vala], [Check for vala requirements @<:@default=no@:>@]),
[],