[gupnp-dlna/wip/gst-0.10: 3/6] wip: Search for gst 0.10



commit 8083ecaffde62e97c22e9f031d4b23149d99001e
Author: Jens Georg <mail jensge org>
Date:   Wed Jan 30 15:37:23 2013 +0100

    wip: Search for gst 0.10

 configure.ac |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6927816..d8266b1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -102,6 +102,50 @@ else
         AM_CONDITIONAL(GSTREAMER_METADATA_BACKEND_ENABLED, false)
 fi
 
+AC_ARG_ENABLE([legacy-gstreamer-metadata-backend],
+              [AS_HELP_STRING([--enable-legacy-gstreamer-metadata-backend],
+                              [build a GStreamer 0.10 metadata backend @<:@default=auto@:>@])],
+                              ,
+                              [enable_legacy_gstreamer_metadata_backend=auto])
+
+if test "x$enable_legacy_gstreamer_metadata_backend" != 'xno'
+then
+        gstreamer_found='yes'
+        GST_MAJORMINOR=0.10
+        GST_REQ=0.10.36
+        GSTPBU_REQ=0.10.36
+
+        PKG_CHECK_MODULES([GST_010],
+                          [gstreamer-$GST_MAJORMINOR >= $GST_REQ],
+                          ,
+                          [gstreamer_found='no'])
+        PKG_CHECK_MODULES([GST_PBU_010],
+                          [gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ],
+                          ,
+                          [gstreamer_found='no'])
+
+        if test "x$gstreamer_found" = 'xyes'
+        then
+                AC_SUBST(GST_MAJORMINOR)
+
+                GST_CFLAGS="$GST_CFLAGS -DGST_USE_UNSTABLE_API"
+                AC_SUBST(GST_CFLAGS)
+                enable_legacy_gstreamer_metadata_backend='yes'
+        elif test "x$enable_legacy_gstreamer_metadata_backend" = 'xyes'
+        then
+                AC_MSG_ERROR([GStreamer $GST_MAJORMINOR not found.])
+        else
+                enable_legacy_gstreamer_metadata_backend='no'
+        fi
+fi
+
+if test "x$enable_legacy_gstreamer_metadata_backend" = 'xyes'
+then
+        AM_CONDITIONAL(GSTREAMER_010_METADATA_BACKEND_ENABLED, true)
+else
+        AM_CONDITIONAL(GSTREAMER_010_METADATA_BACKEND_ENABLED, false)
+fi
+
 AC_ARG_WITH([default-metadata-backend-dir],
             [AS_HELP_STRING([--with-default-metadata-backend-dir=your_directory],
                             [set a default metadata backend directory @<:@default=$libdir/$PACKAGE_NAME@:>@])])



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