From 883ef9d436cc31eca6cd3a5ba84673fc7aecd805 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Mon, 28 Jul 2014 15:54:46 +0300 Subject: [PATCH] configure: allow builds against GStreamer git (1.5.x). https://bugzilla.gnome.org/show_bug.cgi?id=733688 --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index b41d483f87..1327806e35 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,7 @@ m4_define([gst0_vaapi_lt_current_bias], [0]) m4_define([gst1_vaapi_lt_current_bias], [2]) m4_define([gst2_vaapi_lt_current_bias], [4]) m4_define([gst4_vaapi_lt_current_bias], [5]) +m4_define([gst6_vaapi_lt_current_bias], [5]) m4_define([gst_vaapi_lt_revision], [0]) m4_define([gst_vaapi_lt_age], [0]) @@ -35,6 +36,9 @@ m4_define([gst12_plugins_bad_version], [1.1.0]) m4_define([gst14_version], [1.2.90]) m4_define([gst14_plugins_base_version], [1.3.0]) m4_define([gst14_plugins_bad_version], [1.3.0]) +m4_define([gst16_version], [1.5.0]) +m4_define([gst16_plugins_base_version], [1.5.0]) +m4_define([gst16_plugins_bad_version], [1.5.0]) # Wayland minimum version number m4_define([wayland_api_version], [1.0.0]) @@ -225,6 +229,11 @@ case $GST_API_VERSION in GST_PLUGINS_BASE_VERSION_REQUIRED=gst14_plugins_base_version GST_PLUGINS_BAD_VERSION_REQUIRED=gst14_plugins_bad_version ;; +1.5) + GST_VERSION_REQUIRED=gst16_version + GST_PLUGINS_BASE_VERSION_REQUIRED=gst16_plugins_base_version + GST_PLUGINS_BAD_VERSION_REQUIRED=gst16_plugins_bad_version + ;; *) AC_MSG_ERROR([unsupported GStreamer API version $GST_API_VERSION]) ;; @@ -474,6 +483,7 @@ case $GST_API_VERSION in 1.0) lt_bias=gst1_vaapi_lt_current_bias;; 1.2) lt_bias=gst2_vaapi_lt_current_bias;; 1.[[3-4]]) lt_bias=gst4_vaapi_lt_current_bias;; +1.5) lt_bias=gst6_vaapi_lt_current_bias;; esac GST_VAAPI_MAJOR_VERSION=`expr gst_vaapi_lt_current - "$lt_bias"` AC_SUBST(GST_VAAPI_MAJOR_VERSION)