[Spice-devel] [spice-common 2/2] build: Define GLIB_VERSION_MIN_REQUIRED/GLIB_VERSION_MAX_ALLOWED

Christophe Fergeau cfergeau at redhat.com
Fri Jul 6 15:44:45 UTC 2018


This is defined for the meson build, but not the autotools build. This
commit makes them consistent.

Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
---
 m4/spice-deps.m4 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/m4/spice-deps.m4 b/m4/spice-deps.m4
index 61290fe..1721d34 100644
--- a/m4/spice-deps.m4
+++ b/m4/spice-deps.m4
@@ -183,6 +183,7 @@ AC_DEFUN([SPICE_CHECK_PIXMAN], [
 #------------------
 AC_DEFUN([SPICE_CHECK_GLIB2], [
     PKG_CHECK_MODULES(GLIB2, glib-2.0 >= 2.38 gio-2.0 >= 2.38 gthread-2.0 >= 2.38)
+    GLIB2_CFLAGS="$GLIB2_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_38 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_38"
 ])
 
 # SPICE_CHECK_GDK_PIXBUF
-- 
2.17.1



More information about the Spice-devel mailing list