[Spice-devel] [PATCH 3/6] build: add spice-protocol dep

Alon Levy alevy at redhat.com
Thu Feb 10 11:05:04 PST 2011


---
 configure.ac    |    2 ++
 src/Makefile.am |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index e37a84d..896c9e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,6 +76,8 @@ AM_CONDITIONAL(XSERVER_LIBPCIACCESS, test "x$XSERVER_LIBPCIACCESS" = xyes)
 
 # Checks for libraries.
 
+PKG_CHECK_MODULES([SPICE_PROTOCOL], [spice-protocol >= 0.7.0])
+
 DRIVER_NAME=qxl
 AC_SUBST([DRIVER_NAME])
 
diff --git a/src/Makefile.am b/src/Makefile.am
index 1c185fc..ff4fa14 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -27,7 +27,7 @@
 
 SUBDIRS=uxa
 
-AM_CFLAGS = $(XORG_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS)
+AM_CFLAGS = $(SPICE_PROTOCOL_CFLAGS) $(XORG_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS)
 
 qxl_drv_la_LTLIBRARIES = qxl_drv.la
 qxl_drv_la_LDFLAGS = -module -avoid-version
-- 
1.7.4



More information about the Spice-devel mailing list