diff options
author | Slávek Banko <[email protected]> | 2016-03-11 02:21:44 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2016-03-11 02:21:57 +0100 |
commit | 3cca7e09f69c5b7faa558074e12c3a53a86dd05f (patch) | |
tree | 72e225f1e68ad07af5f13309300d73276a2f6112 /configure.in.in | |
parent | 2f2464012f4d762fdb060831c473dd570e52dfad (diff) | |
download | kmplayer-3cca7e09f69c5b7faa558074e12c3a53a86dd05f.tar.gz kmplayer-3cca7e09f69c5b7faa558074e12c3a53a86dd05f.zip |
Add GStreamer 1.0 support
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit da6d8b0b34a10f7510d2054dbb059570a9194ab3)
Diffstat (limited to 'configure.in.in')
-rw-r--r-- | configure.in.in | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/configure.in.in b/configure.in.in index 78b4d5f..5fe5704 100644 --- a/configure.in.in +++ b/configure.in.in @@ -132,32 +132,39 @@ if test "$build_gstreamer" != "no"; then dnl Now we're ready to ask for gstreamer libs and cflags dnl And we can also ask for the right version of gstreamer - GST_MAJORMINOR=0.10 - GST_REQ=0.10.0 - - PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ, - have_gst=yes,have_gst=no) - - PKG_CHECK_MODULES(GST_PLUGINS, gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQ, \ - have_gst_plugins=yes,have_gst_plugins=no) LIB_GST="" CFLAGS_GST="" LIB_GST_PLUGINS="" - dnl Give error if we don't have gstreamer + LIB_GST_OVERLAY="" + + PKG_CHECK_MODULES(GST_1, gstreamer-1.0, have_gst=yes, have_gst=no) + PKG_CHECK_MODULES(GST_1_PLUGINS, gstreamer-plugins-base-1.0, have_gst_plugins=yes, have_gst_plugins=no) if test "x$have_gst" = "xyes"; then - AC_SUBST(GST_MAJORMINOR) - AC_DEFINE(HAVE_GSTREAMER, 1, [have GStreamer]) - LIB_GST=$GST_LIBS - CFLAGS_GST=$GST_CFLAGS - LIB_GST_PLUGINS=$GST_INTERFACES_LIBS + dnl We have GStreamer 1.0 + LIB_GST=$GST_1_LIBS + CFLAGS_GST=$GST_1_CFLAGS + LIB_GST_PLUGINS=$GST_1_PLUGINS_LIBS + LIB_GST_OVERLAY="-lgstvideo-1.0" + else + PKG_CHECK_MODULES(GST, gstreamer-0.10, have_gst=yes, have_gst=no) + PKG_CHECK_MODULES(GST_PLUGINS, gstreamer-plugins-base-0.10, have_gst_plugins=yes, have_gst_plugins=no) + if test "x$have_gst" = "xyes"; then + dnl We have GStreamer 0.10 + LIB_GST=$GST_LIBS + CFLAGS_GST=$GST_CFLAGS + LIB_GST_PLUGINS=$GST_PLUGINS_LIBS + LIB_GST_OVERLAY="-lgstinterfaces-0.10" + fi fi AC_SUBST(LIB_GST) AC_SUBST(CFLAGS_GST) AC_SUBST(LIB_GST_PLUGINS) + AC_SUBST(LIB_GST_OVERLAY) fi fi AC_MSG_CHECKING([if kgstplayer can be compiled]) if test "x$have_gst" = "xyes" && test "x$have_gst_plugins" = "xyes"; then + AC_DEFINE(HAVE_GSTREAMER, 1, [have GStreamer]) AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) |