[cheese] Check for GStreamer plugins required at runtime
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Check for GStreamer plugins required at runtime
- Date: Sun, 30 Oct 2011 13:10:18 +0000 (UTC)
commit 759062c1144d0270b8444d1c3ee5191126f5a6bb
Author: David King <amigadave amigadave com>
Date: Sun Oct 30 14:01:48 2011 +0100
Check for GStreamer plugins required at runtime
Add a GStreamer plugin check to configure.ac, which checks for
individual plugins with gst-inspect, rather than relying on the plugins
being provided by checking for GStreamer pkg-config files. The check is
non-fatal, as the plugins are not build-time dependencies.
configure.ac | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 977f9a0..a931dd5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -131,6 +131,20 @@ PKG_CHECK_MODULES([CHEESE_GTK],
$UDEV_REQUIRED
$GNOME_VIDEO_EFFECTS_REQUIRED])
+# Recommend some runtime GStreamer plugins.
+AC_PATH_PROGS([GST_INSPECT], [gst-inspect-0.10 gst-inspect], [notfound])
+AS_IF([test "x$GST_INSPECT" = "xnotfound"],
+ [AC_MSG_WARN([unable to check for runtime GStreamer plugin dependencies])],
+ [GST_RUNTIME_PLUGINS="camerabin theoraenc"
+ for gst_runtime_plugin in $GST_RUNTIME_PLUGINS
+ do
+ AC_MSG_CHECKING([for $gst_runtime_plugin GStreamer plugin])
+ AS_IF([$GST_INSPECT $gst_runtime_plugin >/dev/null],
+ [AC_MSG_RESULT([found])],
+ [AC_MSG_RESULT([not found])
+ AC_MSG_WARN([$gst_runtime_plugin was not found. It needs to be installed before Cheese is run])])
+ done])
+
AC_MSG_CHECKING([for glib-genmarshal script])
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
AS_IF([test "x$GLIB_GENMARSHAL" = "x"],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]