[gst-cvs] common: gst-glib.m4: Define G_DISABLE_DEPRECATED for GIT versions

Sebastian Dröge slomo at kemper.freedesktop.org
Mon Jun 14 02:27:31 PDT 2010


Module: common
Branch: master
Commit: 7a0fdf5423b537cf7e2d8fffcb5126a8d4b7d438
URL:    http://cgit.freedesktop.org/gstreamer/common/commit/?id=7a0fdf5423b537cf7e2d8fffcb5126a8d4b7d438

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Mon Jun 14 11:26:08 2010 +0200

gst-glib.m4: Define G_DISABLE_DEPRECATED for GIT versions

If deprecated API is found, for which the replacement is in
a newer version of GLib than we currently depend on, use
the new API in a #if GLIB_CHECK_VERSION block and remove
that block after depending on a new enougb GLib version.

Fixes bug #605100.

---

 m4/gst-glib2.m4 |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/m4/gst-glib2.m4 b/m4/gst-glib2.m4
index ddf5e40..1a94309 100644
--- a/m4/gst-glib2.m4
+++ b/m4/gst-glib2.m4
@@ -27,6 +27,11 @@ AC_DEFUN([AG_GST_GLIB_CHECK],
   dnl when using threading primitives)
   GLIB_CFLAGS="$GLIB_CFLAGS -DG_THREADS_MANDATORY"
 
+  dnl Define G_DISABLE_DEPRECATED for GIT versions
+  if test "x$PACKAGE_VERSION_NANO" = "x1"; then
+    GLIB_CFLAGS="$GLIB_CFLAGS -DG_DISABLE_DEPRECATED"
+  fi
+
   AC_ARG_ENABLE(gobject-cast-checks,
     AS_HELP_STRING([--enable-gobject-cast-checks[=@<:@no/auto/yes@:>@]],
       [Enable GObject cast checks]),, 





More information about the Gstreamer-commits mailing list