summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-08-09 00:11:44 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-08-10 10:52:45 +0100
commit535c337c8a97dc99016f77ad653e3fb158e892af (patch)
tree45a8ef2e9d7471dcc0041db9b78e0b0c14ef1ce7
parentbd2054b14b7f559cf66b199c67806e251de09d1a (diff)
gst-check.m4: add AG_GST_CHECK_GST_PLUGINS_{GOOD,UGLY,BAD,FFMPEG}
For future use, so we can find other plugin dirs in an uninstalled setup more easily, for unit tests that use plugins from other modules mostly. Not all of these modules have uninstalled .pc files yet. The currently used (topdir)/../gst-plugins-foo trick doesn't work in all cases, e.g. when running 'make distcheck'.
-rw-r--r--m4/gst-check.m484
1 files changed, 80 insertions, 4 deletions
diff --git a/m4/gst-check.m4 b/m4/gst-check.m4
index a52a184..f75fb59 100644
--- a/m4/gst-check.m4
+++ b/m4/gst-check.m4
@@ -121,18 +121,94 @@ AC_DEFUN([AG_GST_CHECK_GST_CHECK],
AC_DEFUN([AG_GST_CHECK_GST_PLUGINS_BASE],
[
AG_GST_CHECK_MODULES(GST_PLUGINS_BASE, gstreamer-plugins-base-[$1], [$2],
- [GStreamer Base Plug-ins Library], [$3])
+ [GStreamer Base Plugins], [$3])
- dnl check for where base plug-ins got installed
+ dnl check for where base plugins got installed
dnl this is used for unit tests
dnl allow setting before calling this macro to override
if test -z $GSTPB_PLUGINS_DIR; then
GSTPB_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-base-[$1]`
if test -z $GSTPB_PLUGINS_DIR; then
AC_MSG_ERROR(
- [no pluginsdir set in GStreamer Base Plug-ins pkg-config file])
+ [no pluginsdir set in GStreamer Base Plugins pkg-config file])
fi
fi
- AC_MSG_NOTICE([using GStreamer Base Plug-ins in $GSTPB_PLUGINS_DIR])
+ AC_MSG_NOTICE([using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR])
AC_SUBST(GSTPB_PLUGINS_DIR)
])
+
+AC_DEFUN([AG_GST_CHECK_GST_PLUGINS_GOOD],
+[
+ AG_GST_CHECK_MODULES(GST_PLUGINS_GOOD, gstreamer-plugins-good-[$1], [$2],
+ [GStreamer Good Plugins], [$3])
+
+ dnl check for where good plugins got installed
+ dnl this is used for unit tests
+ dnl allow setting before calling this macro to override
+ if test -z $GST_PLUGINS_GOOD_DIR; then
+ GST_PLUGINS_GOOD_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-good-[$1]`
+ if test -z $GST_PLUGINS_GOOD_DIR; then
+ AC_MSG_ERROR([no pluginsdir set in GStreamer Good Plugins pkg-config file])
+ fi
+ fi
+ AC_MSG_NOTICE([using GStreamer Good Plugins in $GST_PLUGINS_GOOD_DIR])
+ GST_PLUGINS_GOOD_DIR="$GST_PLUGINS_GOOD_DIR/gst:$GST_PLUGINS_GOOD_DIR/sys:$GST_PLUGINS_GOOD_DIR/ext"
+ AC_SUBST(GST_PLUGINS_GOOD_DIR)
+])
+
+AC_DEFUN([AG_GST_CHECK_GST_PLUGINS_UGLY],
+[
+ AG_GST_CHECK_MODULES(GST_PLUGINS_UGLY, gstreamer-plugins-ugly-[$1], [$2],
+ [GStreamer Ugly Plugins], [$3])
+
+ dnl check for where ugly plugins got installed
+ dnl this is used for unit tests
+ dnl allow setting before calling this macro to override
+ if test -z $GST_PLUGINS_UGLY_DIR; then
+ GST_PLUGINS_UGLY_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-ugly-[$1]`
+ if test -z $GST_PLUGINS_UGLY_DIR; then
+ AC_MSG_ERROR([no pluginsdir set in GStreamer Ugly Plugins pkg-config file])
+ fi
+ fi
+ AC_MSG_NOTICE([using GStreamer Ugly Plugins in $GST_PLUGINS_UGLY_DIR])
+ GST_PLUGINS_UGLY_DIR="$GST_PLUGINS_UGLY_DIR/gst:$GST_PLUGINS_UGLY_DIR/sys:$GST_PLUGINS_UGLY_DIR/ext"
+ AC_SUBST(GST_PLUGINS_UGLY_DIR)
+])
+
+AC_DEFUN([AG_GST_CHECK_GST_PLUGINS_BAD],
+[
+ AG_GST_CHECK_MODULES(GST_PLUGINS_BAD, gstreamer-plugins-bad-[$1], [$2],
+ [GStreamer Bad Plugins], [$3])
+
+ dnl check for where bad plugins got installed
+ dnl this is used for unit tests
+ dnl allow setting before calling this macro to override
+ if test -z $GST_PLUGINS_BAD_DIR; then
+ GST_PLUGINS_BAD_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-bad-[$1]`
+ if test -z $GST_PLUGINS_BAD_DIR; then
+ AC_MSG_ERROR([no pluginsdir set in GStreamer Bad Plugins pkg-config file])
+ fi
+ fi
+ AC_MSG_NOTICE([using GStreamer Bad Plugins in $GST_PLUGINS_BAD_DIR])
+ GST_PLUGINS_BAD_DIR="$GST_PLUGINS_BAD_DIR/gst:$GST_PLUGINS_BAD_DIR/sys:$GST_PLUGINS_BAD_DIR/ext"
+ AC_SUBST(GST_PLUGINS_BAD_DIR)
+])
+
+AC_DEFUN([AG_GST_CHECK_GST_PLUGINS_FFMPEG],
+[
+ AG_GST_CHECK_MODULES(GST_PLUGINS_FFMPEG, gstreamer-plugins-ffmpeg-[$1], [$2],
+ [GStreamer FFmpeg Plugins], [$3])
+
+ dnl check for where ffmpeg plugins got installed
+ dnl this is used for unit tests
+ dnl allow setting before calling this macro to override
+ if test -z $GST_PLUGINS_FFMPEG_DIR; then
+ GST_PLUGINS_FFMPEG_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-ffmpeg-[$1]`
+ if test -z $GST_PLUGINS_FFMPEG_DIR; then
+ AC_MSG_ERROR([no pluginsdir set in GStreamer FFmpeg Plugins pkg-config file])
+ fi
+ fi
+ GST_PLUGINS_FFMPEG_DIR="$GST_PLUGINS_FFMPEG_DIR/ext/ffmpeg"
+ AC_MSG_NOTICE([using GStreamer FFmpeg Plugins in $GST_PLUGINS_FFMPEG_DIR])
+ AC_SUBST(GST_PLUGINS_FFMPEG_DIR)
+])