Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added gstreamer to configure

  • Loading branch information...
commit 4b9a1cdfebd337d17f0e69f8d2173c0a2092c651 1 parent c72fb4b
@topfs2 topfs2 authored Rob Clark committed
Showing with 54 additions and 0 deletions.
  1. +54 −0 configure.in
View
54 configure.in
@@ -127,6 +127,8 @@ libusb_disabled_udev_found="== libusb disabled. =="
libcec_enabled="== libcec enabled. =="
libcec_disabled="== libcec disabled. CEC adapter support will not be available. =="
libcec_disabled_missing_libs="== libcec disabled because both libudev and libusb are not available. CEC adapter support will not be available. =="
+gstreamer_not_found="== GStreamer libraries not found. GStreamer support disabled. =="
+gstreamer_disabled="== GStreamer support manually disabled. =="
# External library message strings
external_libraries_enabled="== Use of all supported external libraries enabled. =="
@@ -223,6 +225,12 @@ AC_ARG_ENABLE([openmax],
[use_openmax=$enableval],
[use_openmax=auto])
+AC_ARG_ENABLE([gstreamer],
+ [AS_HELP_STRING([--enable-gstreamer],
+ [enable GStreamer support (default is auto)])],
+ [use_gstreamer=$enableval],
+ [use_gstreamer=auto])
+
AC_ARG_ENABLE([tegra],
[AS_HELP_STRING([--enable-tegra],
[enable Tegra2 arm (default is no)])],
@@ -1446,6 +1454,45 @@ AC_CHECK_HEADERS([yajl/yajl_version.h], [], [
AC_DEFINE(YAJL_MAJOR, 1, [yajl version 1])
], [])
+# GSTREAMER
+if test "x$use_gstreamer" != "xno"; then
+ if test "$host_vendor" = "apple" ; then
+ if test "x$use_gstreamer" = "xyes"; then
+ AC_MSG_ERROR([GStreamer not supported on this platform])
+ else
+ use_gstreamer="no"
+ AC_MSG_NOTICE($gstreamer_disabled)
+ fi
+ USE_GSTREAMER=0
+ else
+ AC_SUBST(gstreamer_req, 0.10.0)
+ AC_SUBST(gstreamer_plugins_base_req, 0.10.0)
+ PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10 >= $gstreamer_req, HAVE_GSTREAMER=1, HAVE_GSTREAMER=0)
+ PKG_CHECK_MODULES(GSTREAMER_BASE, gstreamer-base-0.10 >= $gstreamer_req, HAVE_GSTREAMER_BASE=1, HAVE_GSTREAMER_BASE=0)
+ PKG_CHECK_MODULES(GSTREAMER_PLUGINS_BASE, gstreamer-plugins-base-0.10 >= $gstreamer_plugins_base_req, HAVE_GSTREAMER_PLUGINS_BASE=1, HAVE_GSTREAMER_PLUGINS_BASE=0)
+ HAVE_GSTREAMER_APP=1
+ AC_CHECK_LIB([gstapp-0.10], main, , HAVE_GSTREAMER_APP=0)
+
+ if test $HAVE_GSTREAMER -eq 1 -a $HAVE_GSTREAMER_BASE -eq 1 -a $HAVE_GSTREAMER_PLUGINS_BASE -eq 1 -a $HAVE_GSTREAMER_APP -eq 1; then
+ INCLUDES="$INCLUDES $GSTREAMER_CFLAGS $GSTREAMER_BASE_CFLAGS $GSTREAMER_PLUGINS_BASE_CFLAGS"
+ LIBS="$LIBS $GSTREAMER_LIBS $GSTREAMER_BASE_LIBS $GSTREAMER_PLUGINS_BASE_LIBS"
+ USE_GSTREAMER=1
+ AC_DEFINE([HAVE_LIBGSTREAMER], [1], [Define to 1 if you have the 'GStreamer' library.])
+ else
+ if test "x$use_gstreamer" = "xyes"; then
+ AC_MSG_ERROR([$gstreamer_not_found])
+ else
+ use_gstreamer="no"
+ USE_GSTREAMER=0
+ AC_MSG_RESULT($gstreamer_not_found)
+ fi
+ fi
+ fi
+else
+ USE_GSTREAMER=0
+ AC_MSG_NOTICE($gstreamer_disabled)
+fi
+
# platform specific bin utilities
if test "$host_vendor" != "apple" ; then
AC_CHECK_PROG(HAVE_GAWK,gawk,"yes","no",)
@@ -1596,6 +1643,12 @@ else
final_message="$final_message\n OpenMax:\tNo"
fi
+if test "$use_gstreamer" != "no"; then
+ final_message="$final_message\n GStreamer:\tYes"
+else
+ final_message="$final_message\n GStreamer:\tNo"
+fi
+
if test "$use_joystick" = "yes"; then
final_message="$final_message\n Joystick:\tYes"
SDL_DEFINES="$SDL_DEFINES -DHAS_SDL_JOYSTICK"
@@ -1949,6 +2002,7 @@ AC_SUBST(USE_LIBAFPCLIENT)
AC_SUBST(USE_AIRPLAY)
AC_SUBST(USE_VDA)
AC_SUBST(USE_OPENMAX)
+AC_SUBST(USE_GSTREAMER)
AC_SUBST(USE_PULSE)
AC_SUBST(USE_XRANDR)
AC_SUBST(USE_ALSA)
Please sign in to comment.
Something went wrong with that request. Please try again.