2010-03-16 14:12:40 +00:00
|
|
|
# gstreamer-vaapi package version number
|
|
|
|
m4_define([gst_vaapi_major_version], [0])
|
2012-10-01 07:21:03 +00:00
|
|
|
m4_define([gst_vaapi_minor_version], [5])
|
2015-02-03 11:08:01 +00:00
|
|
|
m4_define([gst_vaapi_micro_version], [11])
|
|
|
|
m4_define([gst_vaapi_pre_version], [1])
|
2010-03-16 14:12:40 +00:00
|
|
|
m4_define([gst_vaapi_version],
|
|
|
|
[gst_vaapi_major_version.gst_vaapi_minor_version.gst_vaapi_micro_version])
|
2011-12-07 16:31:09 +00:00
|
|
|
m4_if(gst_vaapi_pre_version, [0], [], [
|
|
|
|
m4_append([gst_vaapi_version], gst_vaapi_pre_version, [.pre])
|
|
|
|
])
|
2010-03-16 14:12:40 +00:00
|
|
|
|
2015-02-20 14:27:53 +00:00
|
|
|
# Configure defaults
|
|
|
|
m4_define([default_glapi], [any])
|
|
|
|
|
2012-12-18 14:15:52 +00:00
|
|
|
# gstreamer-vaapi library (libtool) version number
|
2015-01-27 17:02:56 +00:00
|
|
|
m4_define([gst_vaapi_lt_current], [6])
|
2013-04-10 13:21:57 +00:00
|
|
|
m4_define([gst0_vaapi_lt_current_bias], [0])
|
|
|
|
m4_define([gst1_vaapi_lt_current_bias], [2])
|
2013-09-26 13:21:24 +00:00
|
|
|
m4_define([gst2_vaapi_lt_current_bias], [4])
|
2014-01-22 18:04:58 +00:00
|
|
|
m4_define([gst4_vaapi_lt_current_bias], [5])
|
2015-01-27 17:02:56 +00:00
|
|
|
m4_define([gst6_vaapi_lt_current_bias], [6])
|
2013-04-10 13:21:57 +00:00
|
|
|
m4_define([gst_vaapi_lt_revision], [0])
|
|
|
|
m4_define([gst_vaapi_lt_age], [0])
|
2012-12-18 14:15:52 +00:00
|
|
|
|
2012-06-30 17:58:36 +00:00
|
|
|
# glib version number
|
2015-04-30 11:29:48 +00:00
|
|
|
m4_define([glib_version], [2.32])
|
2013-03-20 10:44:10 +00:00
|
|
|
|
|
|
|
# gstreamer version number
|
2013-11-18 17:25:21 +00:00
|
|
|
m4_define([gst_api_version], [autodetect])
|
2013-09-26 13:21:24 +00:00
|
|
|
m4_define([gst12_version], [1.1.90])
|
2013-05-21 16:42:39 +00:00
|
|
|
m4_define([gst12_plugins_base_version], [1.1.0])
|
|
|
|
m4_define([gst12_plugins_bad_version], [1.1.0])
|
2013-11-26 12:06:07 +00:00
|
|
|
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])
|
2014-07-28 12:54:46 +00:00
|
|
|
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])
|
2011-11-04 20:50:15 +00:00
|
|
|
|
2012-09-28 15:39:43 +00:00
|
|
|
# Wayland minimum version number
|
2015-05-07 10:33:34 +00:00
|
|
|
m4_define([wayland_api_version], [1.0.2])
|
2012-09-28 15:39:43 +00:00
|
|
|
|
2012-07-19 15:16:28 +00:00
|
|
|
# VA-API minimum version number
|
2012-07-20 09:45:15 +00:00
|
|
|
m4_define([va_api_version], [0.30.4])
|
2013-07-29 05:34:06 +00:00
|
|
|
m4_define([va_api_enc_version], [0.34.0])
|
2012-09-26 14:33:16 +00:00
|
|
|
m4_define([va_api_drm_version], [0.33.0])
|
2012-07-19 15:16:28 +00:00
|
|
|
m4_define([va_api_x11_version], [0.31.0])
|
2012-09-26 14:33:16 +00:00
|
|
|
m4_define([va_api_wld_version], [0.33.0])
|
2012-07-19 15:16:28 +00:00
|
|
|
|
2010-03-16 13:53:09 +00:00
|
|
|
# libva package version number
|
2013-07-29 05:34:06 +00:00
|
|
|
m4_define([libva_enc_package_version], [1.2.0])
|
2012-09-26 14:33:16 +00:00
|
|
|
m4_define([libva_drm_package_version], [1.1.0])
|
2011-12-07 13:17:32 +00:00
|
|
|
m4_define([libva_x11_package_version], [1.0.3])
|
2012-09-26 14:33:16 +00:00
|
|
|
m4_define([libva_wld_package_version], [1.1.0])
|
2010-03-16 13:53:09 +00:00
|
|
|
|
2010-03-23 07:31:04 +00:00
|
|
|
# gtk-doc version number
|
2010-03-23 13:32:36 +00:00
|
|
|
# XXX: introspection annotations require gtk-doc >= 1.12
|
2013-03-20 10:44:10 +00:00
|
|
|
m4_define([gtkdoc_version], [1.9])
|
2010-03-23 07:31:04 +00:00
|
|
|
|
2013-03-20 13:40:57 +00:00
|
|
|
AC_PREREQ([2.66])
|
2010-01-12 15:51:39 +00:00
|
|
|
AC_INIT([gst_vaapi], [gst_vaapi_version],
|
2011-10-19 12:43:56 +00:00
|
|
|
[gwenole.beauchesne@intel.com],
|
2010-01-12 15:51:39 +00:00
|
|
|
[gstreamer-vaapi])
|
2012-06-27 15:27:31 +00:00
|
|
|
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2010-01-12 15:51:39 +00:00
|
|
|
AC_CONFIG_SRCDIR([Makefile.am])
|
2012-06-27 15:27:31 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
|
|
|
2010-01-12 15:51:39 +00:00
|
|
|
AC_CANONICAL_TARGET
|
2012-06-27 15:27:31 +00:00
|
|
|
|
2012-10-17 13:42:17 +00:00
|
|
|
AM_INIT_AUTOMAKE([1.11 tar-ustar no-dist-gzip dist-bzip2])
|
2010-01-12 15:51:39 +00:00
|
|
|
|
2010-03-16 13:53:09 +00:00
|
|
|
TODAY="`LC_ALL=C date +'%a, %d %b %Y %X %z'`"
|
|
|
|
AC_SUBST(TODAY)
|
|
|
|
|
2011-12-07 13:17:32 +00:00
|
|
|
LIBVA_PACKAGE_VERSION=libva_x11_package_version
|
|
|
|
AC_SUBST(LIBVA_PACKAGE_VERSION)
|
2010-03-16 13:53:09 +00:00
|
|
|
|
2012-09-28 15:39:43 +00:00
|
|
|
WAYLAND_API_VERSION=wayland_api_version
|
|
|
|
AC_SUBST(WAYLAND_API_VERSION)
|
|
|
|
|
2011-07-19 15:38:40 +00:00
|
|
|
dnl Use pretty build output with automake >= 1.11
|
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], [
|
|
|
|
AM_DEFAULT_VERBOSITY=1
|
|
|
|
AC_SUBST(AM_DEFAULT_VERBOSITY)
|
|
|
|
])
|
|
|
|
|
2010-03-25 10:04:39 +00:00
|
|
|
dnl Check for tools
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_C_O
|
2012-06-27 15:22:03 +00:00
|
|
|
|
2013-01-18 13:17:34 +00:00
|
|
|
AC_ARG_VAR([GIT], [Path to git program, if any])
|
|
|
|
AC_PATH_PROG([GIT], [git])
|
|
|
|
AM_CONDITIONAL([HAVE_GIT], [test -n "$GIT"])
|
|
|
|
|
2014-02-13 20:17:23 +00:00
|
|
|
AC_ARG_VAR([YASM], [Path to yasm program, if any])
|
|
|
|
AC_PATH_PROG([YASM], [yasm])
|
2014-04-21 15:49:38 +00:00
|
|
|
if test -z "$YASM" -a "$enable_builtin_libvpx" = "yes"; then
|
2014-02-13 20:17:23 +00:00
|
|
|
AC_MSG_ERROR([yasm is needed to build libvpx sources])
|
|
|
|
fi
|
|
|
|
|
2012-06-27 15:22:03 +00:00
|
|
|
dnl Initialize libtool
|
|
|
|
LT_PREREQ([2.2])
|
|
|
|
LT_INIT
|
2010-03-25 10:04:39 +00:00
|
|
|
|
2014-04-28 15:44:03 +00:00
|
|
|
AC_ARG_ENABLE(builtin_videoparsers,
|
|
|
|
AS_HELP_STRING([--enable-builtin-videoparsers],
|
|
|
|
[enable built-in videoparsers @<:@default=yes@:>@]),
|
|
|
|
[], [enable_builtin_videoparsers="yes"])
|
|
|
|
|
2013-06-14 09:32:36 +00:00
|
|
|
AC_ARG_ENABLE(builtin_codecparsers,
|
|
|
|
AS_HELP_STRING([--enable-builtin-codecparsers],
|
|
|
|
[enable built-in codecparsers @<:@default=yes@:>@]),
|
|
|
|
[], [enable_builtin_codecparsers="yes"])
|
|
|
|
|
2014-04-21 15:49:38 +00:00
|
|
|
AC_ARG_ENABLE(builtin_libvpx,
|
|
|
|
AS_HELP_STRING([--enable-builtin-libvpx],
|
|
|
|
[enable built-in libvpx @<:@default=yes@:>@]),
|
|
|
|
[], [enable_builtin_libvpx="yes"])
|
|
|
|
|
2013-07-29 05:34:06 +00:00
|
|
|
AC_ARG_ENABLE([encoders],
|
|
|
|
AS_HELP_STRING([--enable-encoders],
|
|
|
|
[enable video encoders @<:@default=yes@:>@]),
|
|
|
|
[], [enable_encoders="yes"])
|
|
|
|
|
2012-08-01 13:44:02 +00:00
|
|
|
AC_ARG_ENABLE(drm,
|
|
|
|
AS_HELP_STRING([--enable-drm],
|
|
|
|
[enable DRM backend @<:@default=yes@:>@]),
|
|
|
|
[], [enable_drm="yes"])
|
|
|
|
|
2012-07-23 11:28:42 +00:00
|
|
|
AC_ARG_ENABLE(x11,
|
|
|
|
AS_HELP_STRING([--enable-x11],
|
|
|
|
[enable X11 output @<:@default=yes@:>@]),
|
|
|
|
[], [enable_x11="yes"])
|
|
|
|
|
2010-03-25 17:28:49 +00:00
|
|
|
AC_ARG_ENABLE(glx,
|
2012-06-27 15:20:12 +00:00
|
|
|
AS_HELP_STRING([--enable-glx],
|
2012-07-23 14:15:38 +00:00
|
|
|
[enable OpenGL/X11 output @<:@default=yes@:>@]),
|
2010-03-25 17:28:49 +00:00
|
|
|
[], [enable_glx="yes"])
|
|
|
|
|
2012-07-19 08:27:23 +00:00
|
|
|
AC_ARG_ENABLE(wayland,
|
|
|
|
AC_HELP_STRING([--enable-wayland],
|
|
|
|
[enable Wayland output @<:@default=yes@:>@]),
|
|
|
|
[], [enable_wayland="yes"])
|
|
|
|
|
2015-02-20 14:27:53 +00:00
|
|
|
AC_ARG_ENABLE([egl],
|
|
|
|
AS_HELP_STRING([--enable-egl],
|
|
|
|
[enable EGL output @<:@default=yes@:>@]),
|
|
|
|
[], [enable_egl="yes"])
|
|
|
|
|
|
|
|
AC_ARG_WITH([glapi],
|
|
|
|
AS_HELP_STRING([--with-glapi=APIs],
|
|
|
|
[build with the specified OpenGL APIs @<:@default=default_glapi@:>@]),
|
|
|
|
[GLAPI="$with_glapi"], [GLAPI=default_glapi])
|
|
|
|
|
2010-03-29 15:51:54 +00:00
|
|
|
dnl Check for basic libraries
|
|
|
|
AC_CHECK_LIB(m, tan)
|
|
|
|
|
2010-03-19 17:04:51 +00:00
|
|
|
dnl Check for Gtk doc
|
2010-03-23 07:31:04 +00:00
|
|
|
GTKDOC_VERSION=gtkdoc_version
|
2012-06-27 15:39:10 +00:00
|
|
|
# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
|
|
|
|
m4_ifdef([GTK_DOC_CHECK], [
|
|
|
|
GTK_DOC_CHECK([$GTKDOC_VERSION], [--flavour no-tmpl])], [
|
|
|
|
AM_CONDITIONAL([ENABLE_GTK_DOC], [false])])
|
2010-03-23 07:31:04 +00:00
|
|
|
AC_SUBST(GTKDOC_VERSION)
|
2010-03-19 17:04:51 +00:00
|
|
|
|
2010-03-16 09:39:07 +00:00
|
|
|
dnl Check for GLib
|
2012-06-30 20:55:05 +00:00
|
|
|
GLIB_VERSION_REQUIRED=glib_version
|
|
|
|
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= $GLIB_VERSION_REQUIRED])
|
|
|
|
AC_SUBST(GLIB_VERSION_REQUIRED)
|
2010-03-16 09:39:07 +00:00
|
|
|
|
2013-04-15 08:52:51 +00:00
|
|
|
dnl Check to see if dlopen is in default libraries (like Solaris, which
|
|
|
|
dnl has it in libc), or if libdl is needed to get it.
|
|
|
|
AC_CHECK_FUNC([dlopen], [], [
|
|
|
|
AC_CHECK_LIB([dl], [dlopen], [DLOPEN_LIBS="-ldl"])])
|
|
|
|
AC_SUBST([DLOPEN_LIBS])
|
|
|
|
|
2012-07-20 12:05:23 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl -- GStreamer --
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2013-11-18 17:25:21 +00:00
|
|
|
AC_MSG_CHECKING([for GStreamer API version])
|
2015-04-03 13:54:54 +00:00
|
|
|
if $PKG_CONFIG --exists "gstreamer-1.0"; then
|
|
|
|
gst_version=`$PKG_CONFIG --modversion "gstreamer-1.0"`
|
|
|
|
gst_major_version=`echo "$gst_version" | cut -d'.' -f1`
|
|
|
|
gst_minor_version=`echo "$gst_version" | cut -d'.' -f2`
|
|
|
|
GST_API_VERSION="${gst_major_version}.${gst_minor_version}"
|
|
|
|
GST_PKG_VERSION="1.0"
|
2013-11-18 17:25:21 +00:00
|
|
|
fi
|
|
|
|
if test -z "$GST_PKG_VERSION"; then
|
2015-04-03 13:54:54 +00:00
|
|
|
AC_MSG_ERROR([gstreamer-$GST_PKG_VERSION was not found])
|
2013-11-18 17:25:21 +00:00
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([$GST_API_VERSION])
|
|
|
|
|
2015-02-20 14:27:53 +00:00
|
|
|
AC_DEFINE_UNQUOTED([GST_API_VERSION_S], ["$GST_API_VERSION"],
|
|
|
|
[Defined to the string representation of GStreamer version])
|
|
|
|
|
2013-03-20 13:43:46 +00:00
|
|
|
dnl Versions for GStreamer and plugins-base
|
|
|
|
case $GST_API_VERSION in
|
2013-05-21 16:42:39 +00:00
|
|
|
1.2)
|
|
|
|
GST_VERSION_REQUIRED=gst12_version
|
|
|
|
GST_PLUGINS_BASE_VERSION_REQUIRED=gst12_plugins_base_version
|
|
|
|
GST_PLUGINS_BAD_VERSION_REQUIRED=gst12_plugins_bad_version
|
|
|
|
;;
|
2015-02-03 08:00:42 +00:00
|
|
|
1.4)
|
2013-11-26 12:06:07 +00:00
|
|
|
GST_VERSION_REQUIRED=gst14_version
|
|
|
|
GST_PLUGINS_BASE_VERSION_REQUIRED=gst14_plugins_base_version
|
|
|
|
GST_PLUGINS_BAD_VERSION_REQUIRED=gst14_plugins_bad_version
|
|
|
|
;;
|
2015-02-03 08:00:42 +00:00
|
|
|
1.[[5-6]])
|
2014-07-28 12:54:46 +00:00
|
|
|
GST_VERSION_REQUIRED=gst16_version
|
|
|
|
GST_PLUGINS_BASE_VERSION_REQUIRED=gst16_plugins_base_version
|
|
|
|
GST_PLUGINS_BAD_VERSION_REQUIRED=gst16_plugins_bad_version
|
|
|
|
;;
|
2013-03-20 13:43:46 +00:00
|
|
|
*)
|
|
|
|
AC_MSG_ERROR([unsupported GStreamer API version $GST_API_VERSION])
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(GST_API_VERSION)
|
|
|
|
AC_SUBST(GST_VERSION_REQUIRED)
|
|
|
|
AC_SUBST(GST_PLUGINS_BASE_VERSION_REQUIRED)
|
|
|
|
AC_SUBST(GST_PLUGINS_BAD_VERSION_REQUIRED)
|
|
|
|
|
2013-05-21 16:42:39 +00:00
|
|
|
USE_GST_API_1_2p="no"
|
2015-02-03 08:00:42 +00:00
|
|
|
USE_GST_API_1_4p="no"
|
2013-05-21 16:42:39 +00:00
|
|
|
AS_VERSION_COMPARE([$GST_API_VERSION], [1.2],
|
|
|
|
[], [USE_GST_API_1_2p="yes"], [USE_GST_API_1_2p="yes"])
|
2015-02-03 08:00:42 +00:00
|
|
|
AS_VERSION_COMPARE([$GST_API_VERSION], [1.4],
|
|
|
|
[], [USE_GST_API_1_4p="yes"], [USE_GST_API_1_4p="yes"])
|
2013-05-21 16:42:39 +00:00
|
|
|
AM_CONDITIONAL([USE_GST_API_1_2p], [test "$USE_GST_API_1_2p" = "yes"])
|
2015-02-03 08:00:42 +00:00
|
|
|
AM_CONDITIONAL([USE_GST_API_1_4p], [test "$USE_GST_API_1_4p" = "yes"])
|
2013-05-21 16:42:39 +00:00
|
|
|
|
2013-09-26 13:21:24 +00:00
|
|
|
AC_SUBST([GST_PKG_VERSION])
|
2013-03-20 13:40:57 +00:00
|
|
|
|
2015-02-20 14:27:53 +00:00
|
|
|
AC_DEFINE_UNQUOTED([GST_PKG_VERSION_S], ["$GST_PKG_VERSION"],
|
|
|
|
[Defined to the string representation of GStreamer API version])
|
|
|
|
|
2012-07-20 12:05:23 +00:00
|
|
|
dnl GStreamer Core
|
2013-03-20 13:43:46 +00:00
|
|
|
PKG_CHECK_MODULES([GST],
|
2013-09-26 13:21:24 +00:00
|
|
|
[gstreamer-$GST_PKG_VERSION >= $GST_VERSION_REQUIRED])
|
2013-03-20 13:43:46 +00:00
|
|
|
PKG_CHECK_MODULES([GST_BASE],
|
2013-09-26 13:21:24 +00:00
|
|
|
[gstreamer-base-$GST_PKG_VERSION >= $GST_VERSION_REQUIRED])
|
2010-01-12 15:51:39 +00:00
|
|
|
|
2012-07-20 12:05:23 +00:00
|
|
|
dnl GStreamer -base plugins
|
2010-01-12 15:51:39 +00:00
|
|
|
PKG_CHECK_MODULES([GST_PLUGINS_BASE],
|
2013-09-26 13:21:24 +00:00
|
|
|
[gstreamer-plugins-base-$GST_PKG_VERSION >= $GST_PLUGINS_BASE_VERSION_REQUIRED])
|
2012-09-04 12:12:18 +00:00
|
|
|
if test "$GST_API_VERSION" = "0.10"; then
|
2012-07-20 12:05:23 +00:00
|
|
|
PKG_CHECK_MODULES([GST_INTERFACES],
|
2013-09-26 13:21:24 +00:00
|
|
|
[gstreamer-interfaces-$GST_PKG_VERSION >= $GST_PLUGINS_BASE_VERSION_REQUIRED])
|
2012-09-04 12:12:18 +00:00
|
|
|
fi
|
2010-01-12 15:51:39 +00:00
|
|
|
|
2014-01-23 10:00:09 +00:00
|
|
|
dnl ... gst_dmabuf_memory_get_fd (gstreamer-allocators)
|
|
|
|
PKG_CHECK_MODULES([GST_ALLOCATORS],
|
|
|
|
[gstreamer-allocators-$GST_PKG_VERSION >= $GST_PLUGINS_BASE_VERSION_REQUIRED])
|
|
|
|
|
2012-07-20 12:05:23 +00:00
|
|
|
dnl ... GstVideoOverlayComposition (gstreamer-video)
|
2010-03-05 17:11:52 +00:00
|
|
|
PKG_CHECK_MODULES([GST_VIDEO],
|
2013-09-26 13:21:24 +00:00
|
|
|
[gstreamer-video-$GST_PKG_VERSION >= $GST_PLUGINS_BASE_VERSION_REQUIRED])
|
2010-03-05 17:11:52 +00:00
|
|
|
|
2013-05-21 16:42:39 +00:00
|
|
|
dnl GStreamer -bad plugins (deprecated in GStreamer v1.2)
|
2015-02-03 08:00:42 +00:00
|
|
|
if test "$USE_GST_API_1_2p" != "yes" && test "$USE_GST_API_1_4p" != "yes"; then
|
2011-11-04 20:50:15 +00:00
|
|
|
PKG_CHECK_MODULES([GST_BASEVIDEO],
|
2013-09-26 13:21:24 +00:00
|
|
|
[gstreamer-basevideo-$GST_PKG_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED])
|
2013-05-21 16:42:39 +00:00
|
|
|
fi
|
2011-11-04 20:50:15 +00:00
|
|
|
|
2012-07-20 12:05:23 +00:00
|
|
|
dnl ... bitstream parsers
|
2013-06-14 09:32:36 +00:00
|
|
|
if test "$enable_builtin_codecparsers" = "yes"; then
|
|
|
|
ac_cv_have_gst_mpeg2_parser="no"
|
|
|
|
ac_cv_have_gst_h264_parser="no"
|
|
|
|
ac_cv_have_gst_jpeg_parser="no"
|
2013-12-26 23:18:24 +00:00
|
|
|
ac_cv_have_gst_vp8_parser="no"
|
2015-04-13 11:51:51 +00:00
|
|
|
ac_cv_have_gst_h265_parser="no"
|
2013-06-14 09:39:54 +00:00
|
|
|
else
|
2011-08-12 08:21:19 +00:00
|
|
|
PKG_CHECK_MODULES([GST_CODEC_PARSERS],
|
2013-09-26 13:21:24 +00:00
|
|
|
[gstreamer-codecparsers-$GST_PKG_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED])
|
2013-06-14 09:39:54 +00:00
|
|
|
fi
|
2011-08-12 08:21:19 +00:00
|
|
|
|
2012-11-08 09:40:47 +00:00
|
|
|
dnl ... MPEG-2 parser, with the required extensions
|
|
|
|
AC_CACHE_CHECK([for MPEG-2 parser],
|
|
|
|
ac_cv_have_gst_mpeg2_parser, [
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $GST_CFLAGS $GST_CODEC_PARSERS_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $GST_LIBS $GST_CODEC_PARSERS_LIBS"
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <gst/codecparsers/gstmpegvideoparser.h>]],
|
|
|
|
[[GstMpegVideoSequenceHdr seq_hdr;
|
|
|
|
GstMpegVideoSequenceExt seq_ext;
|
|
|
|
GstMpegVideoSequenceDisplayExt seq_dpy;
|
2013-07-05 13:49:34 +00:00
|
|
|
GstMpegVideoSliceHdr slice_hdr;
|
|
|
|
GstMpegVideoPacket packet;
|
|
|
|
gst_mpeg_video_packet_parse_slice_header(&packet, &slice_hdr,
|
|
|
|
&seq_hdr, NULL);
|
2012-11-08 09:40:47 +00:00
|
|
|
gst_mpeg_video_finalise_mpeg2_sequence_header(&seq_hdr,
|
|
|
|
&seq_ext, &seq_dpy);]])],
|
|
|
|
[ac_cv_have_gst_mpeg2_parser="yes"],
|
|
|
|
[ac_cv_have_gst_mpeg2_parser="no"]
|
|
|
|
)
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
|
|
|
AM_CONDITIONAL([USE_LOCAL_CODEC_PARSERS_MPEG2],
|
|
|
|
[test "$ac_cv_have_gst_mpeg2_parser" != "yes"])
|
|
|
|
|
2012-10-11 11:49:14 +00:00
|
|
|
dnl ... H.264 parser, with the required extensions
|
|
|
|
AC_CACHE_CHECK([for H.264 parser],
|
|
|
|
ac_cv_have_gst_h264_parser, [
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $GST_CFLAGS $GST_CODEC_PARSERS_CFLAGS"
|
2012-03-02 12:41:16 +00:00
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $GST_LIBS $GST_CODEC_PARSERS_LIBS"
|
2012-06-27 15:20:12 +00:00
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <gst/codecparsers/gsth264parser.h>]],
|
|
|
|
[[GstH264SliceHdr slice_hdr;
|
2012-10-11 11:49:14 +00:00
|
|
|
GstH264VUIParams vui_params;
|
2013-03-20 10:28:06 +00:00
|
|
|
GstH264Profile profile = GST_H264_PROFILE_HIGH;
|
2012-10-11 11:49:14 +00:00
|
|
|
slice_hdr.n_emulation_prevention_bytes = 0;
|
|
|
|
vui_params.par_n = 0;
|
|
|
|
vui_params.par_d = 0;]])],
|
|
|
|
[ac_cv_have_gst_h264_parser="yes"],
|
|
|
|
[ac_cv_have_gst_h264_parser="no"]
|
2012-03-02 12:41:16 +00:00
|
|
|
)
|
2012-10-11 11:49:14 +00:00
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
2012-03-02 12:41:16 +00:00
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
2012-10-11 11:49:14 +00:00
|
|
|
AM_CONDITIONAL([USE_LOCAL_CODEC_PARSERS_H264],
|
|
|
|
[test "$ac_cv_have_gst_h264_parser" != "yes"])
|
2012-07-19 15:16:28 +00:00
|
|
|
|
2012-07-20 12:05:23 +00:00
|
|
|
dnl ... JPEG parser, not upstream yet
|
2012-02-09 16:21:04 +00:00
|
|
|
AC_CACHE_CHECK([for JPEG parser],
|
|
|
|
ac_cv_have_gst_jpeg_parser, [
|
2012-10-11 11:23:02 +00:00
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $GST_CFLAGS $GST_CODEC_PARSERS_CFLAGS"
|
2012-02-09 16:21:04 +00:00
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $GST_LIBS $GST_CODEC_PARSERS_LIBS"
|
2012-06-27 15:20:12 +00:00
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <gst/codecparsers/gstjpegparser.h>]],
|
|
|
|
[[GstJpegImage jpeg_image;]])],
|
2012-02-09 16:21:04 +00:00
|
|
|
[ac_cv_have_gst_jpeg_parser="yes"],
|
2012-10-11 11:23:02 +00:00
|
|
|
[ac_cv_have_gst_jpeg_parser="no"]
|
2012-02-09 16:21:04 +00:00
|
|
|
)
|
2012-10-11 11:23:02 +00:00
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
2012-02-09 16:21:04 +00:00
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
2012-10-11 11:23:02 +00:00
|
|
|
AM_CONDITIONAL([USE_LOCAL_CODEC_PARSERS_JPEG],
|
|
|
|
[test "$ac_cv_have_gst_jpeg_parser" != "yes"])
|
2012-02-09 16:21:04 +00:00
|
|
|
|
2013-12-26 23:18:24 +00:00
|
|
|
dnl ... VP8 parser, not upstream yet
|
2014-04-21 15:49:38 +00:00
|
|
|
if test "$enable_builtin_libvpx" = "yes"; then
|
|
|
|
ac_cv_have_gst_vp8_parser="no"
|
|
|
|
fi
|
2013-12-26 23:18:24 +00:00
|
|
|
AC_CACHE_CHECK([for VP8 parser],
|
|
|
|
ac_cv_have_gst_vp8_parser, [
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $GST_CFLAGS $GST_CODEC_PARSERS_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $GST_LIBS $GST_CODEC_PARSERS_LIBS"
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <gst/codecparsers/gstvp8parser.h>]],
|
|
|
|
[[GstVp8FrameHdr frame_hdr;]])],
|
|
|
|
[ac_cv_have_gst_vp8_parser="yes"],
|
|
|
|
[ac_cv_have_gst_vp8_parser="no"]
|
|
|
|
)
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
|
|
|
AM_CONDITIONAL([USE_LOCAL_CODEC_PARSERS_VP8],
|
|
|
|
[test "$ac_cv_have_gst_vp8_parser" != "yes"])
|
2014-04-21 15:49:38 +00:00
|
|
|
AM_CONDITIONAL([USE_BUILTIN_LIBVPX], [test "$enable_builtin_libvpx" = "yes"])
|
2013-12-26 23:18:24 +00:00
|
|
|
|
2015-04-13 11:51:51 +00:00
|
|
|
dnl ... H.265 parser, with the required extensions
|
|
|
|
AC_CACHE_CHECK([for H.265 parser],
|
|
|
|
ac_cv_have_gst_h265_parser, [
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $GST_CFLAGS $GST_CODEC_PARSERS_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $GST_LIBS $GST_CODEC_PARSERS_LIBS"
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <gst/codecparsers/gsth265parser.h>]],
|
|
|
|
[[GstH265SliceHdr slice_hdr;
|
|
|
|
GstH265VUIParams vui_params;
|
|
|
|
GstH265Profile profile = GST_H265_PROFILE_MAIN_STILL_PICTURE;
|
|
|
|
slice_hdr.n_emulation_prevention_bytes = 0;
|
|
|
|
vui_params.par_n = 0;
|
|
|
|
vui_params.par_d = 0;]])],
|
|
|
|
[ac_cv_have_gst_h265_parser="yes"],
|
|
|
|
[ac_cv_have_gst_h265_parser="no"]
|
|
|
|
)
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
|
|
|
AM_CONDITIONAL([USE_LOCAL_CODEC_PARSERS_H265],
|
|
|
|
[test "$ac_cv_have_gst_h265_parser" != "yes"])
|
|
|
|
|
2014-04-28 15:44:03 +00:00
|
|
|
dnl ... video parsers
|
|
|
|
AM_CONDITIONAL([USE_LOCAL_VIDEO_PARSERS],
|
|
|
|
[test "$enable_builtin_videoparsers" = "yes"])
|
|
|
|
|
2014-12-03 13:14:30 +00:00
|
|
|
dnl ... opengl helper libraries
|
|
|
|
HAVE_GSTGL=0
|
|
|
|
if test "$enable_glx" = "yes" -o "$enable_egl" = "yes"; then
|
|
|
|
PKG_CHECK_MODULES([GST_GL],
|
|
|
|
[gstreamer-gl-$GST_PKG_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED],
|
|
|
|
[HAVE_GSTGL=1], [HAVE_GSTGL=0])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $HAVE_GSTGL -eq 1; then
|
|
|
|
AC_CACHE_CHECK([for GStreamer OpenGL helper libraries],
|
|
|
|
[ac_cv_have_gst_gl_helpers], [
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
2015-05-21 13:16:14 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS $GST_GL_CFLAGS $GST_VIDEO_CFLAGS"
|
2014-12-03 13:14:30 +00:00
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
AC_CHECK_HEADERS([gst/gl/gl.h], [:], [HAVE_GSTGL=0])
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <gst/gl/gl.h>]],
|
|
|
|
[[GstGLContext gl_context;]])],
|
|
|
|
[ac_cv_have_gst_gl_helpers="yes"],
|
|
|
|
[ac_cv_have_gst_gl_helpers="no" HAVE_GSTGL=0]
|
|
|
|
)
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL([USE_GST_GL_HELPERS], [test $HAVE_GSTGL -eq 1])
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED([USE_GST_GL_HELPERS], [$HAVE_GSTGL],
|
|
|
|
[Defined to 1 if GStreamer OpenGL helper libraries are available])
|
|
|
|
|
2015-02-20 14:29:17 +00:00
|
|
|
if test "$enable_egl" = "yes" -a $HAVE_GSTGL -ne 1; then
|
|
|
|
AC_MSG_WARN([GStreamer/GL helper libraries not found, disabling EGL support])
|
|
|
|
enable_egl="no"
|
|
|
|
fi
|
|
|
|
|
2013-04-10 13:21:57 +00:00
|
|
|
case $GST_API_VERSION in
|
|
|
|
1.0) lt_bias=gst1_vaapi_lt_current_bias;;
|
2013-09-26 13:21:24 +00:00
|
|
|
1.2) lt_bias=gst2_vaapi_lt_current_bias;;
|
2015-02-03 08:00:42 +00:00
|
|
|
1.4) lt_bias=gst4_vaapi_lt_current_bias;;
|
|
|
|
1.[[5-6]]) lt_bias=gst6_vaapi_lt_current_bias;;
|
2013-04-10 13:21:57 +00:00
|
|
|
esac
|
|
|
|
GST_VAAPI_MAJOR_VERSION=`expr gst_vaapi_lt_current - "$lt_bias"`
|
|
|
|
AC_SUBST(GST_VAAPI_MAJOR_VERSION)
|
|
|
|
|
2015-02-20 14:27:53 +00:00
|
|
|
AC_DEFINE_UNQUOTED([GST_VAAPI_MAJOR_VERSION_S], ["$GST_VAAPI_MAJOR_VERSION"],
|
|
|
|
[Defined to the string representation of gstreamer-vaapi major version])
|
|
|
|
|
2012-12-18 14:15:52 +00:00
|
|
|
dnl GST_VAAPI_LT_LDFLAGS:
|
2013-04-10 13:21:57 +00:00
|
|
|
GST_VAAPI_LT_CURRENT="$GST_VAAPI_MAJOR_VERSION"
|
2012-12-18 14:15:52 +00:00
|
|
|
GST_VAAPI_LT_REV=gst_vaapi_lt_revision
|
|
|
|
GST_VAAPI_LT_AGE=gst_vaapi_lt_age
|
|
|
|
GST_VAAPI_LT_VERSION="$GST_VAAPI_LT_CURRENT:$GST_VAAPI_LT_REV:$GST_VAAPI_LT_AGE"
|
|
|
|
GST_VAAPI_LT_LDFLAGS="-version-info $GST_VAAPI_LT_VERSION"
|
|
|
|
AC_SUBST(GST_VAAPI_LT_VERSION)
|
|
|
|
AC_SUBST(GST_VAAPI_LT_LDFLAGS)
|
|
|
|
|
2010-05-04 14:59:27 +00:00
|
|
|
dnl GST_ALL_LDFLAGS:
|
|
|
|
dnl LDFLAGS really should only contain flags, not libs - they get added before
|
|
|
|
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
|
|
|
|
GST_ALL_LDFLAGS="-no-undefined"
|
|
|
|
AC_SUBST(GST_ALL_LDFLAGS)
|
|
|
|
|
|
|
|
dnl GST_PLUGIN_LDFLAGS:
|
|
|
|
dnl this really should only contain flags, not libs - they get added before
|
|
|
|
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
|
|
|
|
GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^([_]*gst_plugin_desc|gst_.*_get_type)\$\$' $GST_ALL_LDFLAGS"
|
|
|
|
AC_SUBST(GST_PLUGIN_LDFLAGS)
|
|
|
|
|
2010-01-12 15:51:39 +00:00
|
|
|
dnl Check for the GStreamer plugins directory
|
2013-04-25 16:07:13 +00:00
|
|
|
AC_ARG_VAR([GST_PLUGIN_PATH_1_0], [installation path for gstreamer-vaapi plugin elements for GStreamer 1.0])
|
2010-01-12 15:51:39 +00:00
|
|
|
AC_MSG_CHECKING([for GStreamer plugins directory])
|
2015-04-03 13:54:54 +00:00
|
|
|
if test -d "$GST_PLUGIN_PATH_1_0"; then
|
|
|
|
GST_PLUGINS_DIR="$GST_PLUGIN_PATH_1_0"
|
2012-12-05 01:15:32 +00:00
|
|
|
else
|
2013-09-26 13:21:24 +00:00
|
|
|
GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-$GST_PKG_VERSION --variable pluginsdir`
|
2012-12-05 01:15:32 +00:00
|
|
|
if test -z "$GST_PLUGINS_DIR"; then
|
2013-09-26 13:21:24 +00:00
|
|
|
GST_PLUGINS_DIR="\$(libdir)/gstreamer-$GST_PKG_VERSION"
|
2012-12-05 01:15:32 +00:00
|
|
|
fi
|
2010-01-12 15:51:39 +00:00
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([$GST_PLUGINS_DIR])
|
|
|
|
plugindir="$GST_PLUGINS_DIR"
|
|
|
|
AC_SUBST(plugindir)
|
|
|
|
|
2012-07-20 12:05:23 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl -- Renderers --
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2012-08-01 13:44:02 +00:00
|
|
|
dnl Check for DRM/libudev
|
|
|
|
USE_DRM=0
|
|
|
|
if test "$enable_drm" = "yes"; then
|
|
|
|
PKG_CHECK_MODULES(DRM, [libdrm], [USE_DRM=1], [USE_DRM=0])
|
|
|
|
PKG_CHECK_MODULES(UDEV, [libudev], [:], [USE_DRM=0])
|
|
|
|
|
|
|
|
if test $USE_DRM -eq 1; then
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $DRM_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([drm_fourcc.h], [:], [USE_DRM=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2010-03-24 16:17:49 +00:00
|
|
|
dnl Check for X11
|
2012-07-23 11:28:42 +00:00
|
|
|
USE_X11=0
|
|
|
|
if test "$enable_x11" = "yes"; then
|
|
|
|
PKG_CHECK_MODULES(X11, [x11], [USE_X11=1], [USE_X11=0])
|
|
|
|
if test $USE_X11 -eq 1; then
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
2012-07-31 15:58:43 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS $X11_CFLAGS"
|
2012-07-23 11:28:42 +00:00
|
|
|
AC_CHECK_HEADERS([X11/Xlib.h X11/Xutil.h X11/Xatom.h], [:], [USE_X11=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
fi
|
|
|
|
fi
|
2010-03-24 16:17:49 +00:00
|
|
|
|
2014-09-24 11:39:55 +00:00
|
|
|
dnl Check for XKB library
|
|
|
|
HAVE_XKBLIB=0
|
|
|
|
if test $USE_X11 -eq 1; then
|
|
|
|
AC_CHECK_HEADERS([X11/XKBlib.h], [HAVE_XKBLIB=1], [:])
|
|
|
|
fi
|
|
|
|
if test $HAVE_XKBLIB -eq 1; then
|
|
|
|
AC_DEFINE_UNQUOTED([HAVE_XKBLIB], 1,
|
|
|
|
[Defined to 1 if the XKB extension exists.])
|
|
|
|
fi
|
|
|
|
|
2012-09-06 09:50:21 +00:00
|
|
|
dnl Check for XRandR
|
|
|
|
HAVE_XRANDR=0
|
|
|
|
if test $USE_X11 -eq 1; then
|
|
|
|
HAVE_XRANDR=1
|
|
|
|
PKG_CHECK_MODULES([XRANDR], [xrandr], [:], [HAVE_XRANDR=0])
|
|
|
|
if test $HAVE_XRANDR -eq 1; then
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $XRANDR_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([X11/extensions/Xrandr.h], [:], [HAVE_XRANDR=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test $HAVE_XRANDR -eq 1; then
|
|
|
|
AC_DEFINE_UNQUOTED(HAVE_XRANDR, 1,
|
|
|
|
[Defined to 1 if the XRandR extension exists.])
|
|
|
|
fi
|
|
|
|
|
2013-07-22 07:00:38 +00:00
|
|
|
dnl Check for XRender
|
|
|
|
HAVE_XRENDER=0
|
|
|
|
if test $USE_X11 -eq 1; then
|
|
|
|
HAVE_XRENDER=1
|
|
|
|
PKG_CHECK_MODULES([XRENDER], [xrender], [:], [HAVE_XRENDER=0])
|
|
|
|
if test $HAVE_XRENDER -eq 1; then
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([X11/extensions/Xrender.h], [:], [HAVE_XRENDER=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test $HAVE_XRENDER -eq 1; then
|
|
|
|
AC_DEFINE_UNQUOTED([HAVE_XRENDER], [1],
|
|
|
|
[Defined to 1 if the XRender extension exists.])
|
|
|
|
fi
|
|
|
|
|
2012-07-20 12:44:27 +00:00
|
|
|
dnl OpenGL
|
|
|
|
enable_opengl="no"
|
|
|
|
if test "$enable_glx" = "yes"; then
|
|
|
|
enable_opengl="yes"
|
2010-03-25 17:28:49 +00:00
|
|
|
fi
|
2015-02-20 14:27:53 +00:00
|
|
|
if test "$enable_egl" = "yes"; then
|
|
|
|
enable_opengl="yes"
|
|
|
|
fi
|
|
|
|
GLES_VERSION_MASK=0
|
2012-07-20 12:44:27 +00:00
|
|
|
|
|
|
|
HAVE_GL=0
|
|
|
|
if test "$enable_opengl" = "yes"; then
|
2015-02-20 14:27:53 +00:00
|
|
|
case ",$GLAPI," in
|
|
|
|
(*,any,*|*,gl,*)
|
2012-07-20 12:44:27 +00:00
|
|
|
HAVE_GL=1
|
|
|
|
PKG_CHECK_MODULES([GL], [gl], [:], [HAVE_GL=0])
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $GL_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([GL/gl.h GL/glext.h], [:], [HAVE_GL=0], [
|
2010-03-25 17:28:49 +00:00
|
|
|
#ifdef HAVE_GL_GL_H
|
|
|
|
# include <GL/gl.h>
|
|
|
|
#endif
|
2012-07-20 12:44:27 +00:00
|
|
|
])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
2015-02-20 14:27:53 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
GLES_VERSION_MASK=`expr $GLES_VERSION_MASK "+" $HAVE_GL "*" 1`
|
|
|
|
|
|
|
|
dnl OpenGL|ESv2
|
|
|
|
HAVE_GLESv2=0
|
|
|
|
if test "$enable_opengl" = "yes"; then
|
|
|
|
case ",$GLAPI," in
|
|
|
|
(*,any,*|*,gles2,*)
|
|
|
|
HAVE_GLESv2=1
|
|
|
|
PKG_CHECK_MODULES([GLES2], [glesv2], [:], [HAVE_GLESv2=0])
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $GLES2_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([GLES2/gl2.h GLES2/gl2ext.h], [:],
|
|
|
|
[HAVE_GLESv2=0], [
|
|
|
|
#ifdef HAVE_GLES2_GL2_H
|
|
|
|
# include <GLES2/gl2.h>
|
|
|
|
#endif
|
|
|
|
])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
GLES_VERSION_MASK=`expr $GLES_VERSION_MASK "+" $HAVE_GLESv2 "*" 4`
|
|
|
|
|
|
|
|
dnl OpenGL|ESv3
|
|
|
|
HAVE_GLESv3=0
|
|
|
|
if test "$enable_opengl" = "yes"; then
|
|
|
|
case ",$GLAPI," in
|
|
|
|
(*,any,*|*,gles3,*)
|
|
|
|
HAVE_GLESv3=1
|
|
|
|
PKG_CHECK_MODULES([GLES3], [glesv2], [:], [HAVE_GLESv3=0])
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $GLES3_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([GLES3/gl3.h GLES3/gl3ext.h GLES2/gl2ext.h], [:],
|
|
|
|
[HAVE_GLESv3=0], [
|
|
|
|
#ifdef HAVE_GLES3_GL3_H
|
|
|
|
# include <GLES3/gl3.h>
|
|
|
|
#endif
|
|
|
|
])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
;;
|
|
|
|
esac
|
2012-07-20 12:44:27 +00:00
|
|
|
fi
|
2015-02-20 14:27:53 +00:00
|
|
|
GLES_VERSION_MASK=`expr $GLES_VERSION_MASK "+" $HAVE_GLESv3 "*" 8`
|
2012-07-20 12:44:27 +00:00
|
|
|
|
|
|
|
dnl ... GLX
|
|
|
|
USE_GLX=0
|
2012-07-23 11:28:42 +00:00
|
|
|
if test "$enable_glx" = "yes" -a $HAVE_GL -eq 1 -a $USE_X11 -eq 1; then
|
2012-07-20 12:44:27 +00:00
|
|
|
USE_GLX=1
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $GL_CFLAGS"
|
|
|
|
LIBS="$LIBS $GL_LIBS"
|
|
|
|
AC_CHECK_HEADERS([GL/glx.h], [:], [USE_GLX=0], [
|
|
|
|
#ifdef HAVE_GL_GL_H
|
|
|
|
# include <GL/gl.h>
|
|
|
|
#endif
|
|
|
|
])
|
|
|
|
AC_CHECK_LIB([GL], [glXCreateContext], [:], [USE_GLX=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
fi
|
2010-03-25 17:28:49 +00:00
|
|
|
|
2015-02-20 14:27:53 +00:00
|
|
|
dnl ... EGL
|
|
|
|
USE_EGL=0
|
|
|
|
if test "$enable_egl" = "yes" -a $GLES_VERSION_MASK -ne 0; then
|
|
|
|
USE_EGL=1
|
|
|
|
PKG_CHECK_MODULES([EGL], [egl], [:], [USE_EGL=0])
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
AC_CHECK_HEADERS([EGL/egl.h], [:], [USE_EGL=0])
|
|
|
|
AC_CHECK_LIB([EGL], [eglGetDisplay], [:], [USE_EGL=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
fi
|
|
|
|
|
2012-07-19 08:27:23 +00:00
|
|
|
dnl Check for Wayland
|
|
|
|
USE_WAYLAND=0
|
|
|
|
if test "$enable_wayland" = "yes"; then
|
2012-09-28 15:39:43 +00:00
|
|
|
PKG_CHECK_MODULES(WAYLAND, [wayland-client >= wayland_api_version],
|
2012-07-19 08:27:23 +00:00
|
|
|
[USE_WAYLAND=1], [USE_WAYLAND=0])
|
|
|
|
|
|
|
|
if test $USE_WAYLAND -eq 1; then
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $WAYLAND_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([wayland-client.h], [:], [USE_WAYLAND=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2012-07-20 12:05:23 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl -- VA-API --
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2012-07-20 09:45:15 +00:00
|
|
|
dnl Core API
|
2010-03-24 16:17:49 +00:00
|
|
|
LIBVA_PKGNAME="libva"
|
2012-07-20 09:45:15 +00:00
|
|
|
PKG_CHECK_MODULES(LIBVA, [$LIBVA_PKGNAME >= va_api_version])
|
2010-03-24 16:17:49 +00:00
|
|
|
AC_SUBST(LIBVA_PKGNAME)
|
|
|
|
|
2012-07-20 09:45:15 +00:00
|
|
|
VA_VERSION=`$PKG_CONFIG --modversion libva`
|
|
|
|
VA_MAJOR_VERSION=`echo "$VA_VERSION" | cut -d'.' -f1`
|
|
|
|
VA_MINOR_VERSION=`echo "$VA_VERSION" | cut -d'.' -f2`
|
|
|
|
VA_MICRO_VERSION=`echo "$VA_VERSION" | cut -d'.' -f3`
|
|
|
|
VA_VERSION_STR="$VA_VERSION"
|
2010-03-24 16:17:49 +00:00
|
|
|
|
2012-08-01 13:44:02 +00:00
|
|
|
dnl VA/DRM API
|
2012-09-07 09:44:44 +00:00
|
|
|
HAVE_VA_DRM=0
|
|
|
|
if test $USE_DRM -eq 1; then
|
2012-08-01 13:44:02 +00:00
|
|
|
PKG_CHECK_MODULES([LIBVA_DRM], [libva-drm >= va_api_drm_version],
|
2012-09-07 09:44:44 +00:00
|
|
|
[HAVE_VA_DRM=1], [USE_DRM=0])
|
|
|
|
|
|
|
|
if test $HAVE_VA_DRM -eq 1; then
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
2012-09-14 15:30:19 +00:00
|
|
|
CPPFLAGS="$LIBVA_DRM_CFLAGS"
|
2012-09-07 09:44:44 +00:00
|
|
|
AC_CHECK_HEADERS([va/va_drm.h], [:], [HAVE_VA_DRM=0 USE_DRM=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
fi
|
2012-08-01 13:44:02 +00:00
|
|
|
fi
|
|
|
|
|
2012-07-20 09:45:15 +00:00
|
|
|
dnl VA/X11 API
|
2012-07-23 11:28:42 +00:00
|
|
|
HAVE_VA_X11=0
|
2010-03-24 16:17:49 +00:00
|
|
|
LIBVA_X11_PKGNAME="libva-x11"
|
2012-07-23 11:28:42 +00:00
|
|
|
if test $USE_X11 -eq 1; then
|
|
|
|
PKG_CHECK_MODULES(LIBVA_X11, [$LIBVA_X11_PKGNAME >= va_api_x11_version],
|
|
|
|
[HAVE_VA_X11=1], [USE_X11=0])
|
|
|
|
fi
|
2010-03-24 16:17:49 +00:00
|
|
|
AC_SUBST(LIBVA_X11_PKGNAME)
|
|
|
|
|
2013-08-15 09:59:37 +00:00
|
|
|
dnl Check for va_dec_jpeg.h header
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([va/va_dec_jpeg.h], [], [], [#include <va/va.h>])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
|
2012-07-31 09:51:57 +00:00
|
|
|
dnl Check for JPEG decoding API (0.32.1+)
|
2012-02-09 16:21:04 +00:00
|
|
|
USE_JPEG_DECODER=0
|
|
|
|
AC_CACHE_CHECK([for JPEG decoding API],
|
|
|
|
ac_cv_have_jpeg_decoding_api, [
|
2013-01-11 13:11:39 +00:00
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
2012-02-09 16:21:04 +00:00
|
|
|
saved_LIBS="$LIBS"
|
2013-01-11 13:11:39 +00:00
|
|
|
LIBS="$LIBS $LIBVA_LIBS"
|
2012-06-27 15:20:12 +00:00
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
2013-08-15 09:59:37 +00:00
|
|
|
[[#include <va/va.h>
|
|
|
|
#ifdef HAVE_VA_VA_DEC_JPEG_H
|
|
|
|
#include <va/va_dec_jpeg.h>
|
|
|
|
#endif
|
|
|
|
]],
|
2012-07-31 09:51:57 +00:00
|
|
|
[[VAPictureParameterBufferJPEGBaseline pic_param;
|
|
|
|
VASliceParameterBufferJPEGBaseline slice_param;
|
|
|
|
VAHuffmanTableBufferJPEGBaseline huffman_table;
|
|
|
|
VAIQMatrixBufferJPEGBaseline iq_matrix;]])],
|
2012-02-09 16:21:04 +00:00
|
|
|
[ac_cv_have_jpeg_decoding_api="yes" USE_JPEG_DECODER=1],
|
|
|
|
[ac_cv_have_jpeg_decoding_api="no"]
|
|
|
|
)
|
2013-01-11 13:11:39 +00:00
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
2012-02-09 16:21:04 +00:00
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
|
|
|
|
2014-04-29 10:22:47 +00:00
|
|
|
dnl Check for va_dec_vp8.h header
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([va/va_dec_vp8.h], [], [], [#include <va/va.h>])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
|
2013-12-26 23:18:24 +00:00
|
|
|
dnl Check for VP8 decoding API (0.34+)
|
|
|
|
USE_VP8_DECODER=0
|
|
|
|
AC_CACHE_CHECK([for VP8 decoding API],
|
|
|
|
ac_cv_have_vp8_decoding_api, [
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $LIBVA_LIBS"
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <va/va.h>
|
2014-04-29 10:22:47 +00:00
|
|
|
#ifdef HAVE_VA_VA_DEC_VP8_H
|
2013-12-26 23:18:24 +00:00
|
|
|
#include <va/va_dec_vp8.h>
|
2014-04-29 10:22:47 +00:00
|
|
|
#endif
|
2013-12-26 23:18:24 +00:00
|
|
|
]],
|
|
|
|
[[VAPictureParameterBufferVP8 pic_param;
|
|
|
|
VASliceParameterBufferVP8 slice_param;
|
|
|
|
VAProbabilityDataBufferVP8 prob_data;
|
2014-04-29 10:22:47 +00:00
|
|
|
VAIQMatrixBufferVP8 iq_matrix;
|
|
|
|
slice_param.slice_data_offset = 0;
|
|
|
|
slice_param.slice_data_flag = 0;]])],
|
2013-12-26 23:18:24 +00:00
|
|
|
[ac_cv_have_vp8_decoding_api="yes" USE_VP8_DECODER=1],
|
|
|
|
[ac_cv_have_vp8_decoding_api="no"]
|
|
|
|
)
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
|
|
|
|
2015-04-13 11:52:14 +00:00
|
|
|
dnl Check for va_dec_hevc.h header
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([va/va_dec_hevc.h], [], [], [#include <va/va.h>])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
|
|
|
|
dnl Check for HEVC decoding API (0.38+)
|
|
|
|
USE_HEVC_DECODER=0
|
|
|
|
AC_CACHE_CHECK([for HEVC decoding API],
|
|
|
|
ac_cv_have_hevc_decoding_api, [
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $LIBVA_LIBS"
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <va/va.h>
|
|
|
|
#ifdef HAVE_VA_VA_DEC_HEVC_H
|
|
|
|
#include <va/va_dec_hevc.h>
|
|
|
|
#endif
|
|
|
|
]],
|
|
|
|
[[VAPictureParameterBufferHEVC pic_param;
|
|
|
|
VASliceParameterBufferHEVC slice_param;
|
|
|
|
VAIQMatrixBufferHEVC iq_matrix;
|
|
|
|
slice_param.slice_data_offset = 0;
|
|
|
|
slice_param.slice_data_flag = 0;]])],
|
|
|
|
[ac_cv_have_hevc_decoding_api="yes" USE_HEVC_DECODER=1],
|
|
|
|
[ac_cv_have_hevc_decoding_api="no"]
|
|
|
|
)
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
2013-12-26 23:18:24 +00:00
|
|
|
|
2013-07-23 13:52:45 +00:00
|
|
|
dnl Check for vpp (video post-processing) support
|
|
|
|
USE_VA_VPP=0
|
|
|
|
AC_CACHE_CHECK([for video post-postprocessing API],
|
|
|
|
ac_cv_have_va_vpp_api, [
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $LIBVA_LIBS"
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <va/va.h>
|
|
|
|
#include <va/va_vpp.h>]],
|
|
|
|
[[VADisplay va_dpy;
|
|
|
|
VAContextID vpp_ctx;
|
|
|
|
VAProcFilterType filters[VAProcFilterCount];
|
|
|
|
unsigned int num_filters = VAProcFilterCount;
|
|
|
|
vaQueryVideoProcFilters(va_dpy, vpp_ctx, filters, &num_filters);
|
|
|
|
]])],
|
|
|
|
[ac_cv_have_va_vpp_api="yes" USE_VA_VPP=1],
|
|
|
|
[ac_cv_have_va_vpp_api="no"]
|
|
|
|
)
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
|
|
|
|
2013-07-29 05:34:06 +00:00
|
|
|
dnl Check for encoding support
|
|
|
|
USE_ENCODERS=0
|
2015-02-04 09:14:15 +00:00
|
|
|
USE_JPEG_ENCODER=0
|
2015-02-13 11:40:19 +00:00
|
|
|
USE_VP8_ENCODER=0
|
2015-05-25 08:26:14 +00:00
|
|
|
USE_H265_ENCODER=0
|
2013-07-29 05:34:06 +00:00
|
|
|
if test "$enable_encoders" = "yes"; then
|
|
|
|
PKG_CHECK_MODULES([LIBVA], [libva >= va_api_enc_version],
|
|
|
|
[HAVE_VA_ENC=1], [HAVE_VA_ENC=0])
|
|
|
|
|
|
|
|
if test $HAVE_VA_ENC -eq 1; then
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$LIBVA_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([va/va_enc_mpeg2.h va/va_enc_h264.h],
|
|
|
|
[USE_ENCODERS=1], [HAVE_VA_ENC=0 USE_ENCODERS=0],
|
|
|
|
[#include <va/va.h>
|
|
|
|
])
|
2015-02-04 09:14:15 +00:00
|
|
|
|
|
|
|
dnl Check for JPEG Encoding API (0.37.0+)
|
|
|
|
AC_CHECK_HEADERS([va/va_enc_jpeg.h],
|
|
|
|
[USE_JPEG_ENCODER=1], [],
|
|
|
|
[#include <va/va.h>
|
|
|
|
])
|
|
|
|
AC_CACHE_CHECK([for JPEG encoding API],
|
|
|
|
ac_cv_have_jpeg_encoding_api, [
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $LIBVA_LIBS"
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <va/va.h>
|
|
|
|
#ifdef HAVE_VA_VA_ENC_JPEG_H
|
|
|
|
#include <va/va_enc_jpeg.h>
|
|
|
|
#endif
|
|
|
|
]],
|
|
|
|
[[VAEncPictureParameterBufferJPEG pic_param;
|
|
|
|
VAEncSliceParameterBufferJPEG slice_param;
|
|
|
|
VAQMatrixBufferJPEG q_matrix;]])],
|
|
|
|
[ac_cv_have_jpeg_encoding_api="yes" USE_JPEG_ENCODER=1],
|
|
|
|
[ac_cv_have_jpeg_encoding_api="no"]
|
|
|
|
)
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
2015-02-13 11:40:19 +00:00
|
|
|
|
|
|
|
dnl Check for VP8 Encoding API
|
|
|
|
AC_CHECK_HEADERS([va/va_enc_vp8.h],
|
|
|
|
[USE_VP8_ENCODER=1], [],
|
|
|
|
[#include <va/va.h>
|
|
|
|
])
|
|
|
|
AC_CACHE_CHECK([for VP8 encoding API],
|
|
|
|
ac_cv_have_vp8_encoding_api, [
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $LIBVA_LIBS"
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <va/va.h>
|
|
|
|
#ifdef HAVE_VA_VA_ENC_VP8_H
|
|
|
|
#include <va/va_enc_vp8.h>
|
|
|
|
#endif
|
|
|
|
]],
|
|
|
|
[[VAEncSequenceParameterBufferVP8 seq_param;
|
|
|
|
VAEncPictureParameterBufferVP8 pic_param;
|
|
|
|
VAQMatrixBufferVP8 q_matrix;]])],
|
|
|
|
[ac_cv_have_vp8_encoding_api="yes" USE_VP8_ENCODER=1],
|
|
|
|
[ac_cv_have_vp8_encoding_api="no" USE_VP8_ENCODER=0]
|
|
|
|
)
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
2013-07-29 05:34:06 +00:00
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
2015-05-25 08:26:14 +00:00
|
|
|
|
|
|
|
dnl Check for H265/HEVC Encoding API
|
|
|
|
AC_CHECK_HEADERS([va/va_enc_hevc.h],
|
|
|
|
[USE_H265_ENCODER=1], [],
|
|
|
|
[#include <va/va.h>
|
|
|
|
])
|
|
|
|
AC_CACHE_CHECK([for HEVC encoding API],
|
|
|
|
ac_cv_have_hevc_encoding_api, [
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $LIBVA_LIBS"
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <va/va.h>
|
|
|
|
#ifdef HAVE_VA_VA_ENC_HEVC_H
|
|
|
|
#include <va/va_enc_hevc.h>
|
|
|
|
#endif
|
|
|
|
]],
|
|
|
|
[[VAEncSequenceParameterBufferHEVC seq_param;
|
|
|
|
VAEncPictureParameterBufferHEVC pic_param;
|
|
|
|
VAEncSliceParameterBufferHEVC;
|
|
|
|
VAQMatrixBufferHEVC q_matrix;]])],
|
|
|
|
[ac_cv_have_hevc_encoding_api="yes" USE_H265_ENCODER=1],
|
|
|
|
[ac_cv_have_hevc_encoding_api="no" USE_H265_ENCODER=0]
|
|
|
|
)
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
2013-07-29 05:34:06 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2012-07-19 08:27:23 +00:00
|
|
|
dnl VA/Wayland API
|
|
|
|
if test "$enable_wayland" = "yes"; then
|
|
|
|
PKG_CHECK_MODULES([LIBVA_WAYLAND], [libva-wayland >= va_api_wld_version],
|
|
|
|
[:], [USE_WAYLAND=0])
|
|
|
|
fi
|
|
|
|
|
2012-07-20 12:05:23 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl -- Generate files and summary --
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2012-08-01 13:44:02 +00:00
|
|
|
case ":$USE_X11:$USE_GLX:$USE_WAYLAND:$USE_DRM:" in
|
2012-07-23 11:28:42 +00:00
|
|
|
*:1:*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR([No renderer is enabled])
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2013-07-29 05:34:06 +00:00
|
|
|
AC_DEFINE_UNQUOTED([USE_ENCODERS], $USE_ENCODERS,
|
|
|
|
[Defined to 1 if video encoders are used])
|
|
|
|
AM_CONDITIONAL([USE_ENCODERS], [test $USE_ENCODERS -eq 1])
|
|
|
|
|
2015-02-04 09:14:15 +00:00
|
|
|
AC_DEFINE_UNQUOTED(USE_JPEG_ENCODER, $USE_JPEG_ENCODER,
|
|
|
|
[Defined to 1 if JPEG encoder is used])
|
|
|
|
AM_CONDITIONAL(USE_JPEG_ENCODER, test $USE_JPEG_ENCODER -eq 1)
|
|
|
|
|
2015-02-13 11:40:19 +00:00
|
|
|
AC_DEFINE_UNQUOTED(USE_VP8_ENCODER, $USE_VP8_ENCODER,
|
|
|
|
[Defined to 1 if VP8 encoder is used])
|
|
|
|
AM_CONDITIONAL(USE_VP8_ENCODER, test $USE_VP8_ENCODER -eq 1)
|
|
|
|
|
2015-05-25 08:26:14 +00:00
|
|
|
AC_DEFINE_UNQUOTED(USE_H265_ENCODER, $USE_H265_ENCODER,
|
|
|
|
[Defined to 1 if H265 encoder is used])
|
|
|
|
AM_CONDITIONAL(USE_H265_ENCODER, test $USE_H265_ENCODER -eq 1)
|
|
|
|
|
2013-07-23 13:52:45 +00:00
|
|
|
AC_DEFINE_UNQUOTED(USE_VA_VPP, $USE_VA_VPP,
|
|
|
|
[Defined to 1 if video post-processing is used])
|
|
|
|
AM_CONDITIONAL(USE_VA_VPP, test $USE_VA_VPP -eq 1)
|
|
|
|
|
2012-07-20 12:05:23 +00:00
|
|
|
AC_DEFINE_UNQUOTED(USE_JPEG_DECODER, $USE_JPEG_DECODER,
|
|
|
|
[Defined to 1 if JPEG decoder is used])
|
|
|
|
AM_CONDITIONAL(USE_JPEG_DECODER, test $USE_JPEG_DECODER -eq 1)
|
|
|
|
|
2013-12-26 23:18:24 +00:00
|
|
|
AC_DEFINE_UNQUOTED(USE_VP8_DECODER, $USE_VP8_DECODER,
|
2014-04-29 10:22:47 +00:00
|
|
|
[Defined to 1 if VP8 decoder is used])
|
2013-12-26 23:18:24 +00:00
|
|
|
AM_CONDITIONAL(USE_VP8_DECODER, test $USE_VP8_DECODER -eq 1)
|
|
|
|
|
2015-04-14 08:08:47 +00:00
|
|
|
AC_DEFINE_UNQUOTED(USE_HEVC_DECODER, $USE_HEVC_DECODER,
|
|
|
|
[Defined to 1 if HEVC decoder is used])
|
|
|
|
AM_CONDITIONAL(USE_HEVC_DECODER, test $USE_HEVC_DECODER -eq 1)
|
|
|
|
|
2012-08-01 13:44:02 +00:00
|
|
|
AC_DEFINE_UNQUOTED(USE_DRM, $USE_DRM,
|
|
|
|
[Defined to 1 if DRM is enabled])
|
|
|
|
AM_CONDITIONAL(USE_DRM, test $USE_DRM -eq 1)
|
|
|
|
|
2012-07-23 11:28:42 +00:00
|
|
|
AC_DEFINE_UNQUOTED(USE_X11, $USE_X11,
|
|
|
|
[Defined to 1 if X11 is enabled])
|
|
|
|
AM_CONDITIONAL(USE_X11, test $USE_X11 -eq 1)
|
|
|
|
|
2010-03-30 13:01:34 +00:00
|
|
|
AC_DEFINE_UNQUOTED(USE_GLX, $USE_GLX,
|
|
|
|
[Defined to 1 if GLX is enabled])
|
2010-03-25 17:28:49 +00:00
|
|
|
AM_CONDITIONAL(USE_GLX, test $USE_GLX -eq 1)
|
|
|
|
|
2015-02-20 14:27:53 +00:00
|
|
|
AC_DEFINE_UNQUOTED([USE_EGL], [$USE_EGL],
|
|
|
|
[Defined to 1 if EGL is enabled])
|
|
|
|
AM_CONDITIONAL([USE_EGL], [test $USE_EGL -eq 1])
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED([USE_GLES_VERSION_MASK], [$GLES_VERSION_MASK],
|
|
|
|
[Defined to the set of enabled OpenGL ES APIs])
|
|
|
|
|
2012-07-19 08:27:23 +00:00
|
|
|
AC_DEFINE_UNQUOTED(USE_WAYLAND, $USE_WAYLAND,
|
|
|
|
[Defined to 1 if WAYLAND is enabled])
|
|
|
|
AM_CONDITIONAL(USE_WAYLAND, test $USE_WAYLAND -eq 1)
|
|
|
|
|
2010-03-16 09:57:25 +00:00
|
|
|
pkgconfigdir=${libdir}/pkgconfig
|
|
|
|
AC_SUBST(pkgconfigdir)
|
|
|
|
|
2012-06-27 15:20:12 +00:00
|
|
|
AC_CONFIG_FILES([
|
2010-01-12 15:51:39 +00:00
|
|
|
Makefile
|
2010-03-23 18:45:09 +00:00
|
|
|
debian.upstream/Makefile
|
|
|
|
debian.upstream/changelog
|
|
|
|
debian.upstream/control
|
2013-03-20 10:44:10 +00:00
|
|
|
debian.upstream/gstreamer$GST_API_VERSION-vaapi-doc.install:\
|
2010-03-23 18:45:09 +00:00
|
|
|
debian.upstream/gstreamer-vaapi-doc.install.in
|
2013-03-20 10:44:10 +00:00
|
|
|
debian.upstream/gstreamer$GST_API_VERSION-vaapi.install:\
|
2012-07-20 12:05:23 +00:00
|
|
|
debian.upstream/gstreamer-vaapi.install.in
|
2014-03-04 18:40:59 +00:00
|
|
|
debian.upstream/libgstvaapi$GST_PKG_VERSION-dev.install:\
|
2013-06-12 12:48:26 +00:00
|
|
|
debian.upstream/libgstvaapi-dev.install.in
|
2010-03-23 18:45:09 +00:00
|
|
|
debian.upstream/libgstvaapi$GST_VAAPI_MAJOR_VERSION.install:\
|
|
|
|
debian.upstream/libgstvaapi.install.in
|
2012-08-01 13:44:02 +00:00
|
|
|
debian.upstream/libgstvaapi-drm-$GST_VAAPI_MAJOR_VERSION.install:\
|
|
|
|
debian.upstream/libgstvaapi-drm.install.in
|
2010-03-29 14:50:52 +00:00
|
|
|
debian.upstream/libgstvaapi-glx-$GST_VAAPI_MAJOR_VERSION.install:\
|
|
|
|
debian.upstream/libgstvaapi-glx.install.in
|
2012-07-24 13:43:44 +00:00
|
|
|
debian.upstream/libgstvaapi-wayland-$GST_VAAPI_MAJOR_VERSION.install:\
|
|
|
|
debian.upstream/libgstvaapi-wayland.install.in
|
2012-07-20 12:05:23 +00:00
|
|
|
debian.upstream/libgstvaapi-x11-$GST_VAAPI_MAJOR_VERSION.install:\
|
|
|
|
debian.upstream/libgstvaapi-x11.install.in
|
2010-03-19 17:04:51 +00:00
|
|
|
docs/Makefile
|
|
|
|
docs/reference/Makefile
|
|
|
|
docs/reference/libs/Makefile
|
|
|
|
docs/reference/libs/libs-docs.xml
|
2010-03-23 14:19:21 +00:00
|
|
|
docs/reference/plugins/Makefile
|
|
|
|
docs/reference/plugins/plugins-docs.xml
|
2012-10-11 08:03:14 +00:00
|
|
|
ext/Makefile
|
2014-02-13 20:17:23 +00:00
|
|
|
ext/libvpx/Makefile
|
2010-01-12 15:51:39 +00:00
|
|
|
gst-libs/Makefile
|
|
|
|
gst-libs/gst/Makefile
|
2013-07-29 07:41:23 +00:00
|
|
|
gst-libs/gst/base/Makefile
|
2012-02-09 16:21:04 +00:00
|
|
|
gst-libs/gst/codecparsers/Makefile
|
2010-01-12 15:51:39 +00:00
|
|
|
gst-libs/gst/vaapi/Makefile
|
2012-07-20 12:05:23 +00:00
|
|
|
gst/Makefile
|
|
|
|
gst/vaapi/Makefile
|
2014-04-28 15:44:03 +00:00
|
|
|
patches/Makefile
|
|
|
|
patches/videoparsers/Makefile
|
2010-03-16 09:57:25 +00:00
|
|
|
pkgconfig/Makefile
|
2014-02-18 05:56:51 +00:00
|
|
|
pkgconfig/gstreamer-vaapi-$GST_PKG_VERSION.pc:\
|
2010-03-25 17:28:49 +00:00
|
|
|
pkgconfig/gstreamer-vaapi.pc.in
|
2014-02-18 05:56:51 +00:00
|
|
|
pkgconfig/gstreamer-vaapi-drm-$GST_PKG_VERSION.pc:\
|
2012-08-01 13:44:02 +00:00
|
|
|
pkgconfig/gstreamer-vaapi-drm.pc.in
|
2014-02-18 05:56:51 +00:00
|
|
|
pkgconfig/gstreamer-vaapi-glx-$GST_PKG_VERSION.pc:\
|
2010-03-25 17:28:49 +00:00
|
|
|
pkgconfig/gstreamer-vaapi-glx.pc.in
|
2014-02-18 05:56:51 +00:00
|
|
|
pkgconfig/gstreamer-vaapi-wayland-$GST_PKG_VERSION.pc:\
|
2012-07-24 13:43:44 +00:00
|
|
|
pkgconfig/gstreamer-vaapi-wayland.pc.in
|
2014-02-18 05:56:51 +00:00
|
|
|
pkgconfig/gstreamer-vaapi-x11-$GST_PKG_VERSION.pc:\
|
2010-03-25 17:28:49 +00:00
|
|
|
pkgconfig/gstreamer-vaapi-x11.pc.in
|
2010-01-25 15:04:10 +00:00
|
|
|
tests/Makefile
|
2010-01-12 15:51:39 +00:00
|
|
|
])
|
2012-06-27 15:20:12 +00:00
|
|
|
AC_OUTPUT
|
2010-03-24 16:17:49 +00:00
|
|
|
|
|
|
|
dnl Print summary
|
2010-03-30 16:41:21 +00:00
|
|
|
yesno() {
|
|
|
|
test $1 -eq 1 && echo yes || echo no
|
|
|
|
}
|
|
|
|
|
2012-07-23 15:54:58 +00:00
|
|
|
VIDEO_OUTPUTS=""
|
2012-08-01 13:44:02 +00:00
|
|
|
AS_IF([test $USE_DRM -eq 1], [VIDEO_OUTPUTS="$VIDEO_OUTPUTS drm"])
|
2012-07-23 15:54:58 +00:00
|
|
|
AS_IF([test $USE_X11 -eq 1], [VIDEO_OUTPUTS="$VIDEO_OUTPUTS x11"])
|
|
|
|
AS_IF([test $USE_GLX -eq 1], [VIDEO_OUTPUTS="$VIDEO_OUTPUTS glx"])
|
2015-02-20 14:27:53 +00:00
|
|
|
AS_IF([test $USE_EGL -eq 1], [VIDEO_OUTPUTS="$VIDEO_OUTPUTS egl"])
|
2012-07-19 08:27:23 +00:00
|
|
|
AS_IF([test $USE_WAYLAND -eq 1], [VIDEO_OUTPUTS="$VIDEO_OUTPUTS wayland"])
|
2012-07-23 15:54:58 +00:00
|
|
|
|
2010-03-24 16:17:49 +00:00
|
|
|
echo
|
2010-03-24 16:37:35 +00:00
|
|
|
echo $PACKAGE configuration summary:
|
2010-03-24 16:17:49 +00:00
|
|
|
echo
|
2014-10-29 13:45:44 +00:00
|
|
|
echo Installation Prefix .............. : ${prefix}
|
2013-09-26 13:21:24 +00:00
|
|
|
echo GStreamer API version ............ : $GST_API_VERSION
|
2010-03-24 16:35:36 +00:00
|
|
|
echo VA-API version ................... : $VA_VERSION_STR
|
2013-07-29 05:34:06 +00:00
|
|
|
echo Video encoding ................... : $(yesno $USE_ENCODERS)
|
2012-07-23 15:54:58 +00:00
|
|
|
echo Video outputs .................... : $VIDEO_OUTPUTS
|
2010-03-24 16:17:49 +00:00
|
|
|
echo
|