[PATCH 2/3] build: Use glib2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Now that QEMU depends on glib, it won't really hurt if we depend
on it as well, and we won't have to reinvent our own helpers.
---
 configure.ac       | 3 +++
 server/Makefile.am | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index a12e119..fc0216f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -238,6 +238,9 @@ if test "x$enable_smartcard" = "xyes"; then
 fi
 
 
+PKG_CHECK_MODULES([GLIB2], [glib-2.0 >= 2.22])
+SPICE_REQUIRES+=" glib-2.0 >= 2.22"
+
 PKG_CHECK_MODULES(PIXMAN, pixman-1 >= 0.17.7)
 AC_SUBST(PIXMAN_CFLAGS)
 AC_SUBST(PIXMAN_LIBS)
diff --git a/server/Makefile.am b/server/Makefile.am
index b62d98c..4e5f18a 100644
--- a/server/Makefile.am
+++ b/server/Makefile.am
@@ -5,6 +5,7 @@ AM_CPPFLAGS =					\
 	-DRED_STATISTICS			\
 	$(CELT051_CFLAGS)			\
 	$(COMMON_CFLAGS)			\
+	$(GLIB2_CFLAGS)				\
 	$(PIXMAN_CFLAGS)			\
 	$(SASL_CFLAGS)				\
 	$(SLIRP_CFLAGS)				\
@@ -31,6 +32,7 @@ libspice_server_la_LIBADD =						\
 	$(top_builddir)/spice-common/common/libspice-common-server.la	\
 	$(CELT051_LIBS)							\
 	$(GL_LIBS)							\
+	$(GLIB2_LIBS)							\
 	$(JPEG_LIBS)							\
 	$(LIBRT)							\
 	$(PIXMAN_LIBS)							\
-- 
1.8.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]