In order to avoid using a too new GLib API. Taken from virt-viewer 96d120903f0b95d49642e58d4f796b4f62aa8b20 --- v2: new patch --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4227fd8..817aaab 100644 --- a/configure.ac +++ b/configure.ac @@ -166,7 +166,13 @@ fi AC_CHECK_FUNCS(clearenv strtok_r) -PKG_CHECK_MODULES(GLIB2, glib-2.0) +# Keep these two definitions in agreement. +GLIB2_REQUIRED="2.36" +GLIB2_ENCODED_VERSION="GLIB_VERSION_2_36" + +PKG_CHECK_MODULES(GLIB2, glib-2.0 >= $GLIB2_REQUIRED) +GLIB2_CFLAGS="$GLIB2_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=$GLIB2_ENCODED_VERSION \ + -DGLIB_VERSION_MAX_ALLOWED=$GLIB2_ENCODED_VERSION" AC_SUBST(GLIB2_CFLAGS) AC_SUBST(GLIB2_LIBS) -- 2.8.0 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel