From: Philip Chimento Date: Mon, 31 Jan 2011 00:52:51 +0000 (+0100) Subject: Check for GStreamer plugins individually X-Git-Tag: v0.9~148 X-Git-Url: https://git.stderr.nl/gitweb?p=projects%2Fchimara%2Fchimara.git;a=commitdiff_plain;h=46ecb1bbad177434199bba07e7eda0f59785e16c Check for GStreamer plugins individually In configure.ac, check for individual GStreamer plugins, instead of requiring gstreamer-plugins-bad-0.10.pc. This is because Ubuntu doesn't have a devel package for gstreamer-plugins-bad, and we don't actually link against that library - we just dynamically open it. --- diff --git a/configure.ac b/configure.ac index 5611efd..3a4364c 100644 --- a/configure.ac +++ b/configure.ac @@ -114,7 +114,7 @@ AC_ARG_WITH([gstreamer], SOUND_MODULE= AS_IF([$TEST "x$with_gstreamer" != xno], [AC_DEFINE([GSTREAMER_SOUND], [1], [Define to enable sound support with GStreamer]) - SOUND_MODULE="gstreamer-0.10 >= 0.10.12 gstreamer-plugins-base-0.10 gstreamer-plugins-bad-0.10"]) + SOUND_MODULE="gstreamer-0.10 >= 0.10.12"]) ### CHECK FOR LIBRARIES ####################################################### @@ -135,6 +135,25 @@ PKG_CHECK_MODULES([TEST], [ gmodule-2.0 >= $GLIB_REQUIRED_VERSION ]) +# GStreamer plugins needed to run library +AS_IF([$TEST "x$with_gstreamer" != xno], [ + m4_defun([AX_GST_REQUIRE_ELEMENT], + [AM_GST_ELEMENT_CHECK([$1], + [], + [AC_MSG_ERROR([GStreamer element $1 not found. You need to install gstreamer-plugins-m4_default([$2], [base]).])] + )] + ) + AX_GST_REQUIRE_ELEMENT([giostreamsrc]) + AX_GST_REQUIRE_ELEMENT([typefind]) + AX_GST_REQUIRE_ELEMENT([audioconvert]) + AX_GST_REQUIRE_ELEMENT([volume]) + AX_GST_REQUIRE_ELEMENT([oggdemux]) + AX_GST_REQUIRE_ELEMENT([vorbisdec]) + AX_GST_REQUIRE_ELEMENT([autoaudiosink], [good]) + AX_GST_REQUIRE_ELEMENT([aiffparse], [bad]) + AX_GST_REQUIRE_ELEMENT([modplug], [bad]) +]) + # Plugin flags; include '-module' in each Makefile.am, because AC_SUBSTed # variables are black boxes to Automake, so it has to know about it being a # module in the makefile itself.