|
|
|
@ -44,29 +44,34 @@ AC_ARG_WITH(gstreamer,
|
|
|
|
|
have_gst=no
|
|
|
|
|
|
|
|
|
|
if test "x$with_gstreamer" != xno; then
|
|
|
|
|
# pkg-config seems to have a bug where it masks needed -L entries when it
|
|
|
|
|
# pkg-config seems to have a bug where it masks needed -L entries when it
|
|
|
|
|
# shouldn't, so disable that.
|
|
|
|
|
|
|
|
|
|
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
|
|
|
|
|
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
|
|
|
|
|
export PKG_CONFIG_ALLOW_SYSTEM_LIBS
|
|
|
|
|
|
|
|
|
|
GST_MAJORMINOR=0.10
|
|
|
|
|
GST_REQ=0.10.0
|
|
|
|
|
GST_VERSION=10
|
|
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(GST, \
|
|
|
|
|
gstreamer-$GST_MAJORMINOR >= $GST_REQ, \
|
|
|
|
|
have_gst=yes, have_gst=no)
|
|
|
|
|
GST_MAJORMINOR=1.0
|
|
|
|
|
GST_REQ=1.0.0
|
|
|
|
|
PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ, have_gst=yes, have_gst=no)
|
|
|
|
|
|
|
|
|
|
if test "x$have_gst" != xyes; then
|
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
|
|
|
|
|
|
GST_MAJORMINOR=0.10
|
|
|
|
|
GST_REQ=0.10.0
|
|
|
|
|
PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ, have_gst=yes, have_gst=no)
|
|
|
|
|
|
|
|
|
|
if test "x$have_gst" != xyes; then
|
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
|
|
|
|
|
|
GST_MAJORMINOR=0.8
|
|
|
|
|
GST_REQ=0.8.0
|
|
|
|
|
GST_VERSION=8
|
|
|
|
|
GST_MAJORMINOR=0.8
|
|
|
|
|
GST_REQ=0.8.0
|
|
|
|
|
PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ, have_gst=yes, have_gst=no)
|
|
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(GST, \
|
|
|
|
|
gstreamer-$GST_MAJORMINOR >= $GST_REQ, \
|
|
|
|
|
have_gst=yes, have_gst=no)
|
|
|
|
|
if test "x$have_gst" != xyes; then
|
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test "x$with_gstreamer" != xcheck && test "x$have_gst" != xyes; then
|
|
|
|
@ -90,7 +95,6 @@ else
|
|
|
|
|
|
|
|
|
|
AC_MSG_NOTICE([GStreamer version >= $GST_REQ found.])
|
|
|
|
|
AC_DEFINE(HAVE_GSTREAMER, 1, [have GStreamer])
|
|
|
|
|
AC_DEFINE_UNQUOTED(GSTREAMER_VERSION, $GST_VERSION, [GStreamer Version])
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
AC_SUBST(GST_CFLAGS)
|
|
|
|
|