configure: allow builds against GStreamer git (1.5.x).

https://bugzilla.gnome.org/show_bug.cgi?id=733688
This commit is contained in:
Sreerenj Balachandran 2014-07-28 15:54:46 +03:00 committed by Gwenole Beauchesne
parent 580100d749
commit 883ef9d436

View file

@ -15,6 +15,7 @@ m4_define([gst0_vaapi_lt_current_bias], [0])
m4_define([gst1_vaapi_lt_current_bias], [2]) m4_define([gst1_vaapi_lt_current_bias], [2])
m4_define([gst2_vaapi_lt_current_bias], [4]) m4_define([gst2_vaapi_lt_current_bias], [4])
m4_define([gst4_vaapi_lt_current_bias], [5]) 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_revision], [0])
m4_define([gst_vaapi_lt_age], [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_version], [1.2.90])
m4_define([gst14_plugins_base_version], [1.3.0]) m4_define([gst14_plugins_base_version], [1.3.0])
m4_define([gst14_plugins_bad_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 # Wayland minimum version number
m4_define([wayland_api_version], [1.0.0]) 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_BASE_VERSION_REQUIRED=gst14_plugins_base_version
GST_PLUGINS_BAD_VERSION_REQUIRED=gst14_plugins_bad_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]) 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.0) lt_bias=gst1_vaapi_lt_current_bias;;
1.2) lt_bias=gst2_vaapi_lt_current_bias;; 1.2) lt_bias=gst2_vaapi_lt_current_bias;;
1.[[3-4]]) lt_bias=gst4_vaapi_lt_current_bias;; 1.[[3-4]]) lt_bias=gst4_vaapi_lt_current_bias;;
1.5) lt_bias=gst6_vaapi_lt_current_bias;;
esac esac
GST_VAAPI_MAJOR_VERSION=`expr gst_vaapi_lt_current - "$lt_bias"` GST_VAAPI_MAJOR_VERSION=`expr gst_vaapi_lt_current - "$lt_bias"`
AC_SUBST(GST_VAAPI_MAJOR_VERSION) AC_SUBST(GST_VAAPI_MAJOR_VERSION)