[Spice-devel] [spice-gtk] build: make spice-controller.pc installation conditional

Christophe Fergeau cfergeau at redhat.com
Wed Aug 8 07:58:47 PDT 2012


It shouldn't be installed when controller support is disabled.
---
 Makefile.am | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 0d168a8..a8d585b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -13,9 +13,12 @@ pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA =					\
 	spice-client-glib-2.0.pc			\
 	spice-client-gtk-$(SPICE_GTK_API_VERSION).pc	\
-	spice-controller.pc				\
 	$(NULL)
 
+if WITH_CONTROLLER
+pkgconfig_DATA += spice-controller.pc
+endif
+
 INTLTOOL_FILES =				\
 	intltool-extract.in			\
 	intltool-merge.in			\
-- 
1.7.11.2



More information about the Spice-devel mailing list