2010-03-16 14:12:40 +00:00
|
|
|
# gstreamer-vaapi package version number
|
2016-02-03 15:53:41 +00:00
|
|
|
m4_define([gst_vaapi_major_version], [1])
|
2018-03-19 20:30:28 +00:00
|
|
|
m4_define([gst_vaapi_minor_version], [14])
|
|
|
|
m4_define([gst_vaapi_micro_version], [0])
|
2018-03-03 22:59:30 +00:00
|
|
|
m4_define([gst_vaapi_nano_version], [0])
|
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])
|
2016-01-28 18:35:24 +00:00
|
|
|
m4_if(gst_vaapi_nano_version, [0], [],
|
|
|
|
[m4_append([gst_vaapi_version], gst_vaapi_nano_version, [.])])
|
2010-03-16 14:12:40 +00:00
|
|
|
|
2015-02-20 14:27:53 +00:00
|
|
|
# Configure defaults
|
|
|
|
m4_define([default_glapi], [any])
|
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl - library source changed -> increment REVISION
|
|
|
|
dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0
|
|
|
|
dnl - interfaces added -> increment AGE
|
|
|
|
dnl - interfaces removed -> AGE = 0
|
2012-12-18 14:15:52 +00:00
|
|
|
# gstreamer-vaapi library (libtool) version number
|
2018-03-19 20:30:28 +00:00
|
|
|
m4_define([gst_vaapi_lt_current], [1400])
|
2013-04-10 13:21:57 +00:00
|
|
|
m4_define([gst_vaapi_lt_revision], [0])
|
2018-03-19 20:30:28 +00:00
|
|
|
m4_define([gst_vaapi_lt_age], [1400])
|
2012-12-18 14:15:52 +00:00
|
|
|
|
2012-06-30 17:58:36 +00:00
|
|
|
# glib version number
|
2016-07-06 11:41:21 +00:00
|
|
|
m4_define([glib_version], [2.40])
|
2013-03-20 10:44:10 +00:00
|
|
|
|
|
|
|
# gstreamer version number
|
2018-03-19 20:30:28 +00:00
|
|
|
m4_define([gst_version], [1.14.0])
|
|
|
|
m4_define([gst_plugins_base_version], [1.14.0])
|
|
|
|
m4_define([gst_plugins_bad_version], [1.14.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-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
|
2016-01-28 15:50:39 +00:00
|
|
|
m4_define([gtkdoc_version], [1.12])
|
2010-03-23 07:31:04 +00:00
|
|
|
|
2016-01-28 15:50:39 +00:00
|
|
|
AC_PREREQ([2.69])
|
2016-01-28 15:55:44 +00:00
|
|
|
AC_INIT([GStreamer VA-API Plug-ins], [gst_vaapi_version],
|
|
|
|
[http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer],
|
|
|
|
[gstreamer-vaapi])
|
2012-06-27 15:27:31 +00:00
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl define the output header for config
|
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])
|
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
AG_GST_INIT
|
2012-06-27 15:27:31 +00:00
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl initialize automake
|
2016-01-28 15:50:39 +00:00
|
|
|
AM_INIT_AUTOMAKE([-Wno-portability 1.14 no-dist-gzip dist-xz tar-ustar subdir-objects])
|
2010-01-12 15:51:39 +00:00
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl define PACKAGE_VERSION_* variables
|
|
|
|
AS_VERSION
|
|
|
|
|
|
|
|
dnl check if this is a release version
|
|
|
|
AS_NANO(GST_GIT="no", GST_GIT="yes")
|
|
|
|
|
|
|
|
dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
|
|
|
|
AM_MAINTAINER_MODE([enable])
|
|
|
|
|
|
|
|
dnl use pretty build output by default
|
2016-01-28 15:50:39 +00:00
|
|
|
AM_SILENT_RULES([yes])
|
2011-07-19 15:38:40 +00:00
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl our libraries and install dirs use GST_API_VERSION in the filename
|
|
|
|
dnl to allow side-by-side installation of different API versions
|
|
|
|
GST_API_VERSION=1.0
|
|
|
|
AC_SUBST([GST_API_VERSION])
|
|
|
|
AC_DEFINE_UNQUOTED([GST_API_VERSION], ["$GST_API_VERSION"],
|
|
|
|
[GStreamer API Version])
|
2012-06-27 15:22:03 +00:00
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
AG_GST_LIBTOOL_PREPARE
|
|
|
|
|
|
|
|
dnl CURRENT, REVISION, AGE
|
|
|
|
dnl sets GST_LT_LDFLAGS
|
|
|
|
AS_LIBTOOL(GST, gst_vaapi_lt_current, gst_vaapi_lt_revision, gst_vaapi_lt_age)
|
2013-01-18 13:17:34 +00:00
|
|
|
|
2016-01-28 18:12:13 +00:00
|
|
|
dnl *** required versions of GStreamer stuff ***
|
|
|
|
GLIB_REQ=glib_version
|
|
|
|
GST_REQ=gst_version
|
|
|
|
GST_PBREQ=gst_plugins_base_version
|
|
|
|
GST_PBADREQ=gst_plugins_bad_version
|
|
|
|
WAYLAND_REQ=wayland_api_version
|
|
|
|
GTKDOC_REQ=gtkdoc_version
|
|
|
|
|
|
|
|
dnl *** required versions of VA-API stuff ***
|
|
|
|
VAAPI_REQ=va_api_version
|
|
|
|
VAAPI_ENC_REQ=va_api_enc_version
|
|
|
|
VAAPI_DRM_REQ=va_api_drm_version
|
|
|
|
VAAPI_X11_REQ=va_api_x11_version
|
|
|
|
VAAPI_WLD_REQ=va_api_wld_version
|
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl *** autotools stuff ****
|
|
|
|
|
|
|
|
dnl allow for different autotools
|
|
|
|
AS_AUTOTOOLS_ALTERNATE
|
|
|
|
|
|
|
|
dnl Add parameters for aclocal
|
|
|
|
AC_SUBST([ACLOCAL_AMFLAGS], ["-I m4 -I common/m4"])
|
|
|
|
|
|
|
|
dnl *** check for arguments to configure ***
|
|
|
|
|
|
|
|
AG_GST_ARG_DISABLE_FATAL_WARNINGS
|
2016-02-03 17:42:36 +00:00
|
|
|
AG_GST_ARG_ENABLE_EXTRA_CHECKS
|
2016-01-28 18:35:24 +00:00
|
|
|
AG_GST_ARG_DEBUG
|
|
|
|
|
2016-02-03 19:34:49 +00:00
|
|
|
AG_GST_ARG_EXAMPLES
|
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
AG_GST_ARG_WITH_PKG_CONFIG_PATH
|
2010-03-25 10:04:39 +00:00
|
|
|
|
2016-03-01 14:14:47 +00:00
|
|
|
AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO([$PACKAGE_VERSION_NANO],
|
|
|
|
["${srcdir}/gstreamer-vaapi.doap"],
|
|
|
|
[$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO])
|
|
|
|
|
2013-07-29 05:34:06 +00:00
|
|
|
AC_ARG_ENABLE([encoders],
|
2016-01-28 15:55:44 +00:00
|
|
|
AS_HELP_STRING([--enable-encoders],
|
|
|
|
[enable video encoders @<:@default=yes@:>@]),
|
|
|
|
[], [enable_encoders="yes"])
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([drm],
|
|
|
|
AS_HELP_STRING([--enable-drm],
|
|
|
|
[enable DRM backend @<:@default=yes@:>@]),
|
|
|
|
[], [enable_drm="yes"])
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([x11],
|
|
|
|
AS_HELP_STRING([--enable-x11],
|
|
|
|
[enable X11 output @<:@default=yes@:>@]),
|
|
|
|
[], [enable_x11="yes"])
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([glx],
|
|
|
|
AS_HELP_STRING([--enable-glx],
|
|
|
|
[enable OpenGL/X11 output @<:@default=yes@:>@]),
|
|
|
|
[], [enable_glx="yes"])
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([wayland],
|
|
|
|
AC_HELP_STRING([--enable-wayland],
|
|
|
|
[enable Wayland output @<:@default=yes@:>@]),
|
|
|
|
[], [enable_wayland="yes"])
|
2012-07-19 08:27:23 +00:00
|
|
|
|
2015-02-20 14:27:53 +00:00
|
|
|
AC_ARG_ENABLE([egl],
|
2016-01-28 15:55:44 +00:00
|
|
|
AS_HELP_STRING([--enable-egl],
|
|
|
|
[enable EGL output @<:@default=yes@:>@]),
|
|
|
|
[], [enable_egl="yes"])
|
2015-02-20 14:27:53 +00:00
|
|
|
|
|
|
|
AC_ARG_WITH([glapi],
|
2016-01-28 15:55:44 +00:00
|
|
|
AS_HELP_STRING([--with-glapi=APIs],
|
|
|
|
[build with the specified OpenGL APIs @<:@default=default_glapi@:>@]),
|
|
|
|
[GLAPI="$with_glapi"], [GLAPI=default_glapi])
|
2015-02-20 14:27:53 +00:00
|
|
|
|
2017-07-05 06:59:43 +00:00
|
|
|
AC_ARG_WITH([gtk],
|
|
|
|
[AS_HELP_STRING([--with-gtk],
|
|
|
|
[compile GTK3 based test apps @<:@default=check@:>@])],
|
|
|
|
[], [with_gtk="check"])
|
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl *** checks for platform ***
|
2010-03-29 15:51:54 +00:00
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl * hardware/architecture *
|
2010-03-19 17:04:51 +00:00
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl check CPU type
|
|
|
|
AG_GST_ARCH
|
|
|
|
|
|
|
|
dnl *** checks for programs ***
|
|
|
|
|
|
|
|
dnl find a compiler
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CC_STDC
|
|
|
|
|
|
|
|
dnl check if the compiler supports '-c' and '-o' options
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
|
|
|
|
dnl check for documentation tools
|
|
|
|
GTK_DOC_CHECK([$GTKDOC_REQ])
|
|
|
|
AG_GST_PLUGIN_DOCS([$GTKDOC_REQ])
|
|
|
|
|
|
|
|
dnl *** checks for libraries ***
|
|
|
|
dnl check for libm, for sin() etc.
|
|
|
|
AC_CHECK_LIB([m], [tan])
|
2010-03-16 09:39:07 +00:00
|
|
|
|
2016-09-02 14:42:45 +00:00
|
|
|
dnl Check to see if dlopen/dlsym is in default libraries (like
|
|
|
|
dnl Solaris, which has it in libc), or if libdl is needed to get it.
|
2013-04-15 08:52:51 +00:00
|
|
|
AC_CHECK_FUNC([dlopen], [], [
|
2016-01-28 15:55:44 +00:00
|
|
|
AC_CHECK_LIB([dl], [dlopen], [DLOPEN_LIBS="-ldl"])])
|
2013-04-15 08:52:51 +00:00
|
|
|
AC_SUBST([DLOPEN_LIBS])
|
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl define LIBDIR so we can inform people where we live
|
|
|
|
AS_AC_EXPAND([LIBDIR], [$libdir])
|
|
|
|
AC_DEFINE_UNQUOTED([LIBDIR], ["$LIBDIR"], [library dir])
|
|
|
|
|
|
|
|
dnl set location of plugin directory
|
|
|
|
AG_GST_SET_PLUGINDIR
|
|
|
|
|
|
|
|
dnl *** checks for header files ***
|
|
|
|
|
|
|
|
dnl *** checks for types/defines ***
|
|
|
|
|
|
|
|
dnl *** checks for structures ***
|
|
|
|
|
|
|
|
dnl *** checks for compiler characteristics ***
|
|
|
|
|
|
|
|
dnl *** checks for library functions ***
|
|
|
|
|
|
|
|
dnl *** checks for headers ***
|
|
|
|
|
|
|
|
dnl *** checks for dependency libraries ***
|
|
|
|
|
2012-07-20 12:05:23 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl -- GStreamer --
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl GLib is required
|
|
|
|
AG_GST_GLIB_CHECK([$GLIB_REQ])
|
2015-02-20 14:27:53 +00:00
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl checks for gstreamer
|
|
|
|
dnl uninstalled is selected preferentially -- see pkg-config(1)
|
|
|
|
AG_GST_CHECK_GST([$GST_API_VERSION], [$GST_REQ], [yes])
|
2016-01-27 18:00:51 +00:00
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl back compatibility
|
2016-01-27 18:00:51 +00:00
|
|
|
AC_MSG_CHECKING([for GStreamer API version])
|
2016-01-28 18:35:24 +00:00
|
|
|
gst_api_version=`$PKG_CONFIG --modversion "gstreamer-$GST_API_VERSION"`
|
2016-01-27 18:00:51 +00:00
|
|
|
gst_major_version=`echo "$gst_api_version" | cut -d'.' -f1`
|
|
|
|
gst_minor_version=`echo "$gst_api_version" | cut -d'.' -f2`
|
2016-01-28 18:35:24 +00:00
|
|
|
GST_VERSION="${gst_major_version}.${gst_minor_version}"
|
|
|
|
AC_MSG_RESULT([$GST_VERSION])
|
|
|
|
AC_DEFINE_UNQUOTED([GST_API_VERSION_S], ["$GST_VERSION"],
|
2016-01-28 15:55:44 +00:00
|
|
|
[Defined to the string representation of GStreamer version])
|
2016-01-27 18:00:51 +00:00
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
AG_GST_CHECK_GST_BASE([$GST_API_VERSION], [$GST_REQ], [yes])
|
|
|
|
AG_GST_CHECK_GST_PLUGINS_BASE([$GST_API_VERSION], [$GST_PBREQ], [yes])
|
2010-01-12 15:51:39 +00:00
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl gst_dmabuf_memory_get_fd (gstreamer-allocators)
|
|
|
|
AG_GST_CHECK_MODULES([GST_ALLOCATORS],
|
|
|
|
[gstreamer-allocators-$GST_API_VERSION], [$GST_PBREQ], [yes])
|
2014-01-23 10:00:09 +00:00
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl GstVideoOverlayComposition (gstreamer-video)
|
|
|
|
AG_GST_CHECK_MODULES([GST_VIDEO],
|
|
|
|
[gstreamer-video-$GST_API_VERSION], [$GST_PBREQ], [yes])
|
2010-03-05 17:11:52 +00:00
|
|
|
|
2016-01-29 11:11:17 +00:00
|
|
|
dnl ... GStreamer base utils (gstreamer-pbutils)
|
2016-01-28 18:35:24 +00:00
|
|
|
AG_GST_CHECK_MODULES([GST_PBUTILS],
|
|
|
|
[gstreamer-pbutils-$GST_API_VERSION], [$GST_PBREQ], [yes])
|
2016-01-29 11:11:17 +00:00
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl bitstream parsers (gstreamer-codecparsers)
|
|
|
|
AG_GST_CHECK_MODULES([GST_CODEC_PARSERS],
|
|
|
|
[gstreamer-codecparsers-$GST_API_VERSION], [$GST_PBADREQ], [yes])
|
2011-08-12 08:21:19 +00:00
|
|
|
|
2016-01-29 11:34:30 +00:00
|
|
|
AS_IF([test "x$enable_glx" = "xyes" -o "x$enable_egl" = "xyes"],
|
|
|
|
[enable_opengl="yes"], [enable_opengl="no"])
|
|
|
|
|
2014-12-03 13:14:30 +00:00
|
|
|
dnl ... opengl helper libraries
|
|
|
|
HAVE_GSTGL=0
|
2016-01-29 11:34:30 +00:00
|
|
|
if test "x$enable_opengl" = "xyes"; then
|
2016-01-28 16:14:51 +00:00
|
|
|
PKG_CHECK_MODULES([GST_GL],
|
2016-01-28 18:35:24 +00:00
|
|
|
[gstreamer-gl-$GST_API_VERSION >= $GST_PBADREQ],
|
2016-01-28 16:14:51 +00:00
|
|
|
[
|
|
|
|
HAVE_GSTGL=1
|
|
|
|
AC_CACHE_CHECK([for GStreamer OpenGL helper libraries],
|
|
|
|
[ac_cv_have_gst_gl_helpers],
|
|
|
|
[
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $GST_GL_CFLAGS $GST_VIDEO_CFLAGS"
|
|
|
|
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;
|
|
|
|
]])
|
|
|
|
],
|
2014-12-03 13:14:30 +00:00
|
|
|
[ac_cv_have_gst_gl_helpers="yes"],
|
2016-01-29 12:13:56 +00:00
|
|
|
[ac_cv_have_gst_gl_helpers="no"])
|
2016-01-28 16:14:51 +00:00
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
2016-07-27 17:09:38 +00:00
|
|
|
], [:])
|
2014-12-03 13:14:30 +00:00
|
|
|
fi
|
2016-01-29 12:13:56 +00:00
|
|
|
AS_IF([test "x$ac_cv_have_gst_gl_helpers" = "xno"], [HAVE_GSTGL=0])
|
2014-12-03 13:14:30 +00:00
|
|
|
AM_CONDITIONAL([USE_GST_GL_HELPERS], [test $HAVE_GSTGL -eq 1])
|
|
|
|
AC_DEFINE_UNQUOTED([USE_GST_GL_HELPERS], [$HAVE_GSTGL],
|
2016-01-28 15:55:44 +00:00
|
|
|
[Defined to 1 if GStreamer OpenGL helper libraries are available])
|
2014-12-03 13:14:30 +00:00
|
|
|
|
2016-01-29 10:14:34 +00:00
|
|
|
if test "x$enable_egl" = "xyes" -a $HAVE_GSTGL -ne 1; then
|
2016-01-28 15:55:44 +00:00
|
|
|
AC_MSG_WARN([GStreamer/GL helper libraries not found, disabling EGL support])
|
|
|
|
enable_egl="no"
|
2015-02-20 14:29:17 +00:00
|
|
|
fi
|
|
|
|
|
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
|
2016-01-29 10:14:34 +00:00
|
|
|
if test "x$enable_drm" = "xyes"; then
|
2016-01-28 16:14:51 +00:00
|
|
|
PKG_CHECK_MODULES([DRM], [libdrm libudev],
|
|
|
|
[
|
|
|
|
USE_DRM=1
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $DRM_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([drm_fourcc.h], [], [USE_DRM=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
2016-07-27 17:09:38 +00:00
|
|
|
], [:])
|
2012-08-01 13:44:02 +00:00
|
|
|
fi
|
|
|
|
|
2010-03-24 16:17:49 +00:00
|
|
|
dnl Check for X11
|
2012-07-23 11:28:42 +00:00
|
|
|
USE_X11=0
|
2016-01-29 10:14:34 +00:00
|
|
|
if test "x$enable_x11" = "xyes"; then
|
2016-01-28 16:14:51 +00:00
|
|
|
PKG_CHECK_MODULES([X11], [x11],
|
|
|
|
[
|
|
|
|
USE_X11=1
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $X11_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([X11/Xlib.h X11/Xutil.h X11/Xatom.h], [], [USE_X11=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
2016-07-27 17:09:38 +00:00
|
|
|
], [:])
|
2012-07-23 11:28:42 +00:00
|
|
|
fi
|
2010-03-24 16:17:49 +00:00
|
|
|
|
2014-09-24 11:39:55 +00:00
|
|
|
HAVE_XKBLIB=0
|
2012-09-06 09:50:21 +00:00
|
|
|
HAVE_XRANDR=0
|
2013-07-22 07:00:38 +00:00
|
|
|
HAVE_XRENDER=0
|
|
|
|
if test $USE_X11 -eq 1; then
|
2016-01-28 16:14:51 +00:00
|
|
|
dnl Check for XKB library
|
|
|
|
HAVE_XKBLIB=1
|
2017-02-22 23:02:01 +00:00
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $X11_CFLAGS"
|
2016-01-28 16:14:51 +00:00
|
|
|
AC_CHECK_HEADERS([X11/XKBlib.h], [], [HAVE_XKBLIB=0])
|
2017-02-22 23:02:01 +00:00
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
2016-01-28 16:14:51 +00:00
|
|
|
|
|
|
|
dnl Check for XRandR
|
|
|
|
PKG_CHECK_MODULES([XRANDR], [xrandr],
|
|
|
|
[
|
|
|
|
HAVE_XRANDR=1
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $XRANDR_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([X11/extensions/Xrandr.h], [], [HAVE_XRANDR=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
2016-07-27 17:09:38 +00:00
|
|
|
], [:])
|
2016-01-28 16:14:51 +00:00
|
|
|
|
|
|
|
dnl Check for XRender
|
|
|
|
PKG_CHECK_MODULES([XRENDER], [xrender],
|
|
|
|
[
|
|
|
|
HAVE_XRENDER=1
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([X11/extensions/Xrender.h], [], [HAVE_XRENDER=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
2016-07-27 17:09:38 +00:00
|
|
|
], [:])
|
2013-07-22 07:00:38 +00:00
|
|
|
fi
|
|
|
|
|
2016-01-28 16:14:51 +00:00
|
|
|
AC_DEFINE_UNQUOTED([HAVE_XKBLIB], [$HAVE_XKBLIB],
|
|
|
|
[Defined to 1 if the XKB extension exists.])
|
|
|
|
AC_DEFINE_UNQUOTED([HAVE_XRANDR], [$HAVE_XRANDR],
|
|
|
|
[Defined to 1 if the XRandR extension exists.])
|
|
|
|
AC_DEFINE_UNQUOTED([HAVE_XRENDER], [$HAVE_XRENDER],
|
|
|
|
[Defined to 1 if the XRender extension exists.])
|
|
|
|
|
2012-07-20 12:44:27 +00:00
|
|
|
dnl OpenGL
|
2015-02-20 14:27:53 +00:00
|
|
|
GLES_VERSION_MASK=0
|
2012-07-20 12:44:27 +00:00
|
|
|
|
|
|
|
HAVE_GL=0
|
2016-01-28 16:14:51 +00:00
|
|
|
HAVE_GLESv2=0
|
|
|
|
HAVE_GLESv3=0
|
2016-01-29 10:14:34 +00:00
|
|
|
if test "x$enable_opengl" = "xyes"; then
|
2016-01-28 16:14:51 +00:00
|
|
|
dnl OpenGL
|
|
|
|
case ",$GLAPI," in
|
|
|
|
(*,any,*|*,gl,*)
|
|
|
|
HAVE_GL=1
|
|
|
|
PKG_CHECK_MODULES([GL], [gl],
|
|
|
|
[
|
|
|
|
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
|
2016-01-28 16:14:51 +00:00
|
|
|
])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
], [HAVE_GL=0])
|
|
|
|
GLES_VERSION_MASK=`expr $GLES_VERSION_MASK "+" $HAVE_GL "*" 1`
|
2015-02-20 14:27:53 +00:00
|
|
|
;;
|
2016-01-28 16:14:51 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
dnl OpenGL|ESv2
|
|
|
|
case ",$GLAPI," in
|
|
|
|
(*,any,*|*,gles2,*)
|
|
|
|
HAVE_GLESv2=1
|
|
|
|
PKG_CHECK_MODULES([GLES2], [glesv2],
|
|
|
|
[
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $GLES2_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([GLES2/gl2.h GLES2/gl2ext.h], [], [HAVE_GLESv2=0],
|
|
|
|
[
|
2015-02-20 14:27:53 +00:00
|
|
|
#ifdef HAVE_GLES2_GL2_H
|
|
|
|
# include <GLES2/gl2.h>
|
|
|
|
#endif
|
2016-01-28 16:14:51 +00:00
|
|
|
])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
], [HAVE_GLESv2=0])
|
|
|
|
GLES_VERSION_MASK=`expr $GLES_VERSION_MASK "+" $HAVE_GLESv2 "*" 4`
|
2015-02-20 14:27:53 +00:00
|
|
|
;;
|
2016-01-28 16:14:51 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
dnl OpenGL|ESv3
|
|
|
|
case ",$GLAPI," in
|
|
|
|
(*,any,*|*,gles3,*)
|
|
|
|
HAVE_GLESv3=1
|
|
|
|
PKG_CHECK_MODULES([GLES3], [glesv2],
|
|
|
|
[
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $GLES3_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([GLES3/gl3.h GLES3/gl3ext.h GLES2/gl2ext.h], [],
|
|
|
|
[HAVE_GLESv3=0],
|
|
|
|
[
|
2015-02-20 14:27:53 +00:00
|
|
|
#ifdef HAVE_GLES3_GL3_H
|
|
|
|
# include <GLES3/gl3.h>
|
|
|
|
#endif
|
2016-01-28 16:14:51 +00:00
|
|
|
])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
], [HAVE_GLESv3=0])
|
|
|
|
GLES_VERSION_MASK=`expr $GLES_VERSION_MASK "+" $HAVE_GLESv3 "*" 8`
|
2015-02-20 14:27:53 +00:00
|
|
|
;;
|
2016-01-28 16:14:51 +00:00
|
|
|
esac
|
2012-07-20 12:44:27 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ... GLX
|
|
|
|
USE_GLX=0
|
2016-01-29 10:14:34 +00:00
|
|
|
if test "x$enable_glx" = "xyes" -a $HAVE_GL -eq 1 -a $USE_X11 -eq 1; then
|
2016-01-28 16:14:51 +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],
|
|
|
|
[
|
2012-07-20 12:44:27 +00:00
|
|
|
#ifdef HAVE_GL_GL_H
|
|
|
|
# include <GL/gl.h>
|
|
|
|
#endif
|
|
|
|
])
|
2016-01-28 16:14:51 +00:00
|
|
|
AC_CHECK_LIB([GL], [glXCreateContext], [], [USE_GLX=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
2012-07-20 12:44:27 +00:00
|
|
|
fi
|
2010-03-25 17:28:49 +00:00
|
|
|
|
2015-02-20 14:27:53 +00:00
|
|
|
dnl ... EGL
|
|
|
|
USE_EGL=0
|
2016-01-29 10:14:34 +00:00
|
|
|
if test "x$enable_egl" = "xyes" -a $GLES_VERSION_MASK -ne 0; then
|
2016-01-28 16:14:51 +00:00
|
|
|
PKG_CHECK_MODULES([EGL], [egl],
|
|
|
|
[
|
|
|
|
USE_EGL=1
|
|
|
|
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
2017-02-22 23:02:01 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS $EGL_CFLAGS"
|
|
|
|
LIBS="$LIBS $EGL_LIBS"
|
2016-01-28 16:14:51 +00:00
|
|
|
AC_CHECK_HEADERS([EGL/egl.h], [], [USE_EGL=0])
|
|
|
|
AC_CHECK_LIB([EGL], [eglGetDisplay], [], [USE_EGL=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
2016-07-27 17:09:38 +00:00
|
|
|
], [:])
|
2015-02-20 14:27:53 +00:00
|
|
|
fi
|
|
|
|
|
2012-07-19 08:27:23 +00:00
|
|
|
dnl Check for Wayland
|
|
|
|
USE_WAYLAND=0
|
2016-01-29 10:14:34 +00:00
|
|
|
if test "x$enable_wayland" = "xyes"; then
|
2016-01-28 18:12:13 +00:00
|
|
|
PKG_CHECK_MODULES([WAYLAND], [wayland-client >= $WAYLAND_REQ],
|
2016-01-28 16:14:51 +00:00
|
|
|
[
|
|
|
|
USE_WAYLAND=1
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $WAYLAND_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([wayland-client.h], [], [USE_WAYLAND=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
2016-07-27 17:09:38 +00:00
|
|
|
], [:])
|
2012-07-19 08:27:23 +00:00
|
|
|
fi
|
|
|
|
|
2017-07-05 06:59:43 +00:00
|
|
|
dnl Check for GTK for tests
|
|
|
|
USE_GTK=0
|
|
|
|
AS_IF([test "x$BUILD_EXAMPLES" = "xyes" -a $USE_X11 -eq 1],
|
|
|
|
[AS_CASE([$with_gtk],
|
|
|
|
[yes], [PKG_CHECK_MODULES([GTK3], [gtk+-3.0], [USE_GTK=1])],
|
|
|
|
[no], [],
|
2017-07-26 16:53:10 +00:00
|
|
|
[PKG_CHECK_MODULES([GTK3], [gtk+-3.0], [USE_GTK=1], [USE_GTK=0])])])
|
2017-07-05 06:59:43 +00:00
|
|
|
AS_IF([test $USE_GTK -eq 1],
|
|
|
|
[
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $GTK3_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([gtk/gtk.h], [], [USE_GTK=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
])
|
|
|
|
AM_CONDITIONAL([USE_GTK], [test $USE_GTK -eq 1])
|
|
|
|
|
2012-07-20 12:05:23 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl -- VA-API --
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2012-07-20 09:45:15 +00:00
|
|
|
dnl Core API
|
2017-08-17 10:54:47 +00:00
|
|
|
PKG_CHECK_MODULES([LIBVA], [libva >= $VAAPI_REQ libva != 0.99.0])
|
|
|
|
VA_VERSION_STR=`$PKG_CONFIG --modversion libva`
|
|
|
|
VA_DRIVERS_PATH=`$PKG_CONFIG --variable=driverdir libva`
|
2016-06-28 09:33:18 +00:00
|
|
|
AC_DEFINE_UNQUOTED([VA_DRIVERS_PATH], ["$VA_DRIVERS_PATH"],
|
|
|
|
[VA drivers path])
|
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
|
|
|
if test $USE_DRM -eq 1; then
|
2017-08-17 10:54:47 +00:00
|
|
|
PKG_CHECK_MODULES([LIBVA_DRM], [libva-drm >= $VAAPI_DRM_REQ],
|
2016-01-28 16:14:51 +00:00
|
|
|
[
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
2017-02-22 23:02:01 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_DRM_CFLAGS"
|
2016-01-28 16:14:51 +00:00
|
|
|
AC_CHECK_HEADERS([va/va_drm.h], [], [USE_DRM=0])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
], [USE_DRM=0])
|
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
|
|
|
if test $USE_X11 -eq 1; then
|
2017-08-17 10:54:47 +00:00
|
|
|
PKG_CHECK_MODULES(LIBVA_X11, [libva-x11 >= $VAAPI_X11_REQ],
|
2016-01-28 15:55:44 +00:00
|
|
|
[], [USE_X11=0])
|
2012-07-23 11:28:42 +00:00
|
|
|
fi
|
2010-03-24 16:17:49 +00:00
|
|
|
|
2013-08-15 09:59:37 +00:00
|
|
|
dnl Check for va_dec_jpeg.h header
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
2016-01-28 16:14:51 +00:00
|
|
|
AC_CHECK_HEADERS([va/va_dec_jpeg.h], [], [],
|
|
|
|
[
|
|
|
|
#include <va/va.h>
|
|
|
|
])
|
2013-08-15 09:59:37 +00:00
|
|
|
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],
|
2016-01-28 16:14:51 +00:00
|
|
|
[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(
|
2016-01-28 16:14:51 +00:00
|
|
|
[
|
|
|
|
AC_LANG_PROGRAM(
|
|
|
|
[[
|
|
|
|
#include <va/va.h>
|
|
|
|
#ifdef HAVE_VA_VA_DEC_JPEG_H
|
|
|
|
# include <va/va_dec_jpeg.h>
|
|
|
|
#endif
|
|
|
|
]],
|
|
|
|
[[
|
|
|
|
VAPictureParameterBufferJPEGBaseline pic_param;
|
|
|
|
VASliceParameterBufferJPEGBaseline slice_param;
|
|
|
|
VAHuffmanTableBufferJPEGBaseline huffman_table;
|
|
|
|
VAIQMatrixBufferJPEGBaseline iq_matrix;
|
|
|
|
]])
|
|
|
|
],
|
2016-01-29 12:13:56 +00:00
|
|
|
[ac_cv_have_jpeg_decoding_api="yes"],
|
2016-01-28 16:14:51 +00:00
|
|
|
[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"
|
2016-01-28 16:14:51 +00:00
|
|
|
])
|
2016-01-29 12:13:56 +00:00
|
|
|
AS_IF([test "x$ac_cv_have_jpeg_decoding_api" = "xyes"], [USE_JPEG_DECODER=1])
|
2012-02-09 16:21:04 +00:00
|
|
|
|
2014-04-29 10:22:47 +00:00
|
|
|
dnl Check for va_dec_vp8.h header
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
2016-01-28 16:14:51 +00:00
|
|
|
AC_CHECK_HEADERS([va/va_dec_vp8.h], [], [],
|
|
|
|
[
|
|
|
|
#include <va/va.h>
|
|
|
|
])
|
2014-04-29 10:22:47 +00:00
|
|
|
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],
|
2016-01-28 16:14:51 +00:00
|
|
|
[ac_cv_have_vp8_decoding_api],
|
|
|
|
[
|
2013-12-26 23:18:24 +00:00
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $LIBVA_LIBS"
|
|
|
|
AC_COMPILE_IFELSE(
|
2016-01-28 16:14:51 +00:00
|
|
|
[
|
|
|
|
AC_LANG_PROGRAM(
|
|
|
|
[[
|
|
|
|
#include <va/va.h>
|
|
|
|
#ifdef HAVE_VA_VA_DEC_VP8_H
|
|
|
|
# include <va/va_dec_vp8.h>
|
|
|
|
#endif
|
|
|
|
]],
|
|
|
|
[[
|
|
|
|
VAPictureParameterBufferVP8 pic_param;
|
|
|
|
VASliceParameterBufferVP8 slice_param;
|
|
|
|
VAProbabilityDataBufferVP8 prob_data;
|
|
|
|
VAIQMatrixBufferVP8 iq_matrix;
|
|
|
|
slice_param.slice_data_offset = 0;
|
|
|
|
slice_param.slice_data_flag = 0;
|
|
|
|
]])
|
|
|
|
],
|
2016-01-29 12:13:56 +00:00
|
|
|
[ac_cv_have_vp8_decoding_api="yes"],
|
2016-01-28 16:14:51 +00:00
|
|
|
[ac_cv_have_vp8_decoding_api="no"])
|
2013-12-26 23:18:24 +00:00
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
2016-01-28 16:14:51 +00:00
|
|
|
])
|
2016-01-29 12:13:56 +00:00
|
|
|
AS_IF([test "x$ac_cv_have_vp8_decoding_api" = "xyes"], [USE_VP8_DECODER=1])
|
2013-12-26 23:18:24 +00:00
|
|
|
|
2015-11-06 12:39:22 +00:00
|
|
|
dnl Check for va_dec_vp9.h header
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
2016-01-28 16:14:51 +00:00
|
|
|
AC_CHECK_HEADERS([va/va_dec_vp9.h], [], [],
|
|
|
|
[
|
|
|
|
#include <va/va.h>
|
|
|
|
])
|
2015-11-06 12:39:22 +00:00
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
|
|
|
|
dnl Check for VP9 decoding API (0.37+)
|
|
|
|
USE_VP9_DECODER=0
|
|
|
|
AC_CACHE_CHECK([for VP9 decoding API],
|
2016-01-28 16:14:51 +00:00
|
|
|
[ac_cv_have_vp9_decoding_api],
|
|
|
|
[
|
2015-11-06 12:39:22 +00:00
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $LIBVA_LIBS"
|
|
|
|
AC_COMPILE_IFELSE(
|
2016-01-28 16:14:51 +00:00
|
|
|
[
|
|
|
|
AC_LANG_PROGRAM(
|
|
|
|
[[
|
|
|
|
#include <va/va.h>
|
|
|
|
#ifdef HAVE_VA_VA_DEC_VP9_H
|
|
|
|
# include <va/va_dec_vp9.h>
|
|
|
|
#endif
|
|
|
|
]],
|
|
|
|
[[
|
|
|
|
VADecPictureParameterBufferVP9 pic_param;
|
|
|
|
VASliceParameterBufferVP9 slice_param;
|
|
|
|
VASegmentParameterVP9 seg_param;
|
|
|
|
slice_param.slice_data_offset = 0;
|
|
|
|
slice_param.slice_data_flag = 0;
|
|
|
|
]])
|
|
|
|
],
|
2016-01-29 12:13:56 +00:00
|
|
|
[ac_cv_have_vp9_decoding_api="yes"],
|
2016-01-28 16:14:51 +00:00
|
|
|
[ac_cv_have_vp9_decoding_api="no"])
|
2015-11-06 12:39:22 +00:00
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
2016-01-28 16:14:51 +00:00
|
|
|
])
|
2016-02-03 17:02:21 +00:00
|
|
|
AS_IF([test "x$ac_cv_have_vp9_decoding_api" = "xyes"], [USE_VP9_DECODER=1])
|
2015-11-06 12:39:22 +00:00
|
|
|
|
2015-04-13 11:52:14 +00:00
|
|
|
dnl Check for va_dec_hevc.h header
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
2016-01-28 16:14:51 +00:00
|
|
|
AC_CHECK_HEADERS([va/va_dec_hevc.h], [], [],
|
|
|
|
[
|
|
|
|
#include <va/va.h>
|
|
|
|
])
|
2015-04-13 11:52:14 +00:00
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
|
|
|
|
dnl Check for HEVC decoding API (0.38+)
|
2017-02-14 00:39:41 +00:00
|
|
|
USE_H265_DECODER=0
|
2015-04-13 11:52:14 +00:00
|
|
|
AC_CACHE_CHECK([for HEVC decoding API],
|
2017-02-14 00:39:41 +00:00
|
|
|
[ac_cv_have_h265_decoding_api],
|
2016-01-28 16:14:51 +00:00
|
|
|
[
|
2015-04-13 11:52:14 +00:00
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $LIBVA_LIBS"
|
|
|
|
AC_COMPILE_IFELSE(
|
2016-01-28 16:14:51 +00:00
|
|
|
[
|
|
|
|
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;
|
|
|
|
]])
|
|
|
|
],
|
2017-02-14 00:39:41 +00:00
|
|
|
[ac_cv_have_h265_decoding_api="yes"],
|
|
|
|
[ac_cv_have_h265_decoding_api="no"])
|
2015-04-13 11:52:14 +00:00
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
2016-01-28 16:14:51 +00:00
|
|
|
])
|
2017-02-14 00:39:41 +00:00
|
|
|
AS_IF([test "x$ac_cv_have_h265_decoding_api" = "xyes"], [USE_H265_DECODER=1])
|
2013-12-26 23:18:24 +00:00
|
|
|
|
2017-08-10 11:09:27 +00:00
|
|
|
dnl Check for va_vpp.h header
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
AC_CHECK_HEADERS([va/va_vpp.h], [], [],
|
|
|
|
[
|
|
|
|
#include <va/va.h>
|
|
|
|
])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
|
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],
|
2016-01-28 16:14:51 +00:00
|
|
|
[ac_cv_have_va_vpp_api],
|
|
|
|
[
|
2013-07-23 13:52:45 +00:00
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $LIBVA_LIBS"
|
|
|
|
AC_COMPILE_IFELSE(
|
2016-01-28 16:14:51 +00:00
|
|
|
[
|
|
|
|
AC_LANG_PROGRAM(
|
|
|
|
[[
|
|
|
|
#include <va/va.h>
|
2017-08-10 11:09:27 +00:00
|
|
|
#ifdef HAVE_VA_VA_VPP_H
|
|
|
|
# include <va/va_vpp.h>
|
|
|
|
#endif
|
2016-01-28 16:14:51 +00:00
|
|
|
]],
|
|
|
|
[[
|
|
|
|
VADisplay va_dpy;
|
|
|
|
VAContextID vpp_ctx;
|
|
|
|
VAProcFilterType filters[VAProcFilterCount];
|
|
|
|
unsigned int num_filters = VAProcFilterCount;
|
|
|
|
vaQueryVideoProcFilters(va_dpy, vpp_ctx, filters, &num_filters);
|
|
|
|
]])
|
|
|
|
],
|
2016-01-29 12:13:56 +00:00
|
|
|
[ac_cv_have_va_vpp_api="yes"],
|
2016-01-28 16:14:51 +00:00
|
|
|
[ac_cv_have_va_vpp_api="no"])
|
2013-07-23 13:52:45 +00:00
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
2016-01-28 16:14:51 +00:00
|
|
|
])
|
2016-01-29 12:13:56 +00:00
|
|
|
AS_IF([test "x$ac_cv_have_va_vpp_api" = "xyes"], [USE_VA_VPP=1])
|
2013-07-23 13:52:45 +00:00
|
|
|
|
2013-07-29 05:34:06 +00:00
|
|
|
dnl Check for encoding support
|
|
|
|
USE_ENCODERS=0
|
2016-01-28 16:14:51 +00:00
|
|
|
if test "x$enable_encoders" = "xyes"; then
|
2016-01-28 18:12:13 +00:00
|
|
|
PKG_CHECK_MODULES([LIBVA], [libva >= $VAAPI_ENC_REQ],
|
2016-01-28 16:14:51 +00:00
|
|
|
[
|
|
|
|
USE_ENCODERS=1
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
2017-02-22 23:02:01 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
2016-01-28 16:14:51 +00:00
|
|
|
AC_CHECK_HEADERS([va/va_enc_mpeg2.h va/va_enc_h264.h], [],
|
|
|
|
[USE_ENCODERS=0],
|
|
|
|
[
|
|
|
|
#include <va/va.h>
|
|
|
|
])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
2016-07-27 17:09:38 +00:00
|
|
|
], [:])
|
2016-01-28 16:14:51 +00:00
|
|
|
fi
|
|
|
|
|
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
|
2016-05-30 08:22:35 +00:00
|
|
|
USE_VP9_ENCODER=0
|
2017-08-09 19:58:29 +00:00
|
|
|
USE_H264_FEI_ENCODER=0
|
2016-05-30 08:22:35 +00:00
|
|
|
|
2016-01-28 16:14:51 +00:00
|
|
|
if test $USE_ENCODERS -eq 1; then
|
2017-02-22 23:02:01 +00:00
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
|
|
|
|
2016-01-28 16:14:51 +00:00
|
|
|
dnl Check for JPEG Encoding API (0.37.0+)
|
|
|
|
AC_CHECK_HEADERS([va/va_enc_jpeg.h], [], [],
|
|
|
|
[
|
|
|
|
#include <va/va.h>
|
|
|
|
])
|
|
|
|
AC_CACHE_CHECK([for JPEG encoding API],
|
|
|
|
[ac_cv_have_jpeg_encoding_api],
|
|
|
|
[
|
|
|
|
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;
|
|
|
|
]])
|
|
|
|
],
|
2016-01-29 12:13:56 +00:00
|
|
|
[ac_cv_have_jpeg_encoding_api="yes"],
|
2016-01-28 16:14:51 +00:00
|
|
|
[ac_cv_have_jpeg_encoding_api="no"])
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
2016-01-29 12:13:56 +00:00
|
|
|
AS_IF([test "x$ac_cv_have_jpeg_encoding_api" = "xyes"], [USE_JPEG_ENCODER=1])
|
2015-02-13 11:40:19 +00:00
|
|
|
|
2016-01-28 16:14:51 +00:00
|
|
|
dnl Check for VP8 Encoding API
|
|
|
|
AC_CHECK_HEADERS([va/va_enc_vp8.h], [], [],
|
|
|
|
[
|
|
|
|
#include <va/va.h>
|
|
|
|
])
|
|
|
|
AC_CACHE_CHECK([for VP8 encoding API],
|
|
|
|
[ac_cv_have_vp8_encoding_api],
|
|
|
|
[
|
|
|
|
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;
|
|
|
|
]])
|
|
|
|
],
|
2016-01-29 12:13:56 +00:00
|
|
|
[ac_cv_have_vp8_encoding_api="yes"],
|
2016-01-28 16:14:51 +00:00
|
|
|
[ac_cv_have_vp8_encoding_api="no"])
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
2016-01-29 12:13:56 +00:00
|
|
|
AS_IF([test "x$ac_cv_have_vp8_encoding_api" = "xyes"], [USE_VP8_ENCODER=1])
|
2015-05-25 08:26:14 +00:00
|
|
|
|
2016-01-28 16:14:51 +00:00
|
|
|
dnl Check for H265/HEVC Encoding API
|
|
|
|
AC_CHECK_HEADERS([va/va_enc_hevc.h], [], [],
|
|
|
|
[
|
|
|
|
#include <va/va.h>
|
|
|
|
])
|
|
|
|
AC_CACHE_CHECK([for HEVC encoding API],
|
|
|
|
[ac_cv_have_hevc_encoding_api],
|
|
|
|
[
|
|
|
|
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 buf_param;
|
|
|
|
VAQMatrixBufferHEVC q_matrix;
|
|
|
|
]])
|
|
|
|
],
|
2016-01-29 12:13:56 +00:00
|
|
|
[ac_cv_have_hevc_encoding_api="yes"],
|
2016-01-28 16:14:51 +00:00
|
|
|
[ac_cv_have_hevc_encoding_api="no"])
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
2016-01-29 12:13:56 +00:00
|
|
|
AS_IF([test "x$ac_cv_have_hevc_encoding_api" = "xyes"], [USE_H265_ENCODER=1])
|
2016-05-30 08:22:35 +00:00
|
|
|
|
|
|
|
dnl Check for VP9 Encoding API
|
|
|
|
AC_CHECK_HEADERS([va/va_enc_vp9.h], [], [],
|
|
|
|
[
|
|
|
|
#include <va/va.h>
|
|
|
|
])
|
|
|
|
AC_CACHE_CHECK([for VP9 encoding API],
|
|
|
|
[ac_cv_have_vp9_encoding_api],
|
|
|
|
[
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $LIBVA_LIBS"
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[
|
|
|
|
AC_LANG_PROGRAM(
|
|
|
|
[[
|
|
|
|
#include <va/va.h>
|
|
|
|
#ifdef HAVE_VA_VA_ENC_VP9_H
|
|
|
|
# include <va/va_enc_vp9.h>
|
|
|
|
#endif
|
|
|
|
]],
|
|
|
|
[[
|
|
|
|
VAEncSequenceParameterBufferVP9 seq_param;
|
|
|
|
VAEncPictureParameterBufferVP9 pic_param;
|
|
|
|
VAEncSegParamVP9 seg_param;
|
|
|
|
VAEncMiscParameterTypeVP9PerSegmantParam misc_param;
|
|
|
|
]])
|
|
|
|
],
|
|
|
|
[ac_cv_have_vp9_encoding_api="yes"],
|
|
|
|
[ac_cv_have_vp9_encoding_api="no"])
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
|
|
|
AS_IF([test "x$ac_cv_have_vp9_encoding_api" = "xyes"], [USE_VP9_ENCODER=1])
|
2017-02-22 23:02:01 +00:00
|
|
|
|
2017-08-09 19:58:29 +00:00
|
|
|
dnl Check for H264 FEI Encoding API
|
|
|
|
AC_CHECK_HEADERS([va/va_fei_h264.h], [], [],
|
|
|
|
[
|
|
|
|
#include <va/va.h>
|
|
|
|
])
|
|
|
|
AC_CACHE_CHECK([for H264_FEI encoding API],
|
|
|
|
[ac_cv_have_h264_fei_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_FEI_H264_H
|
|
|
|
# include <va/va_fei_h264.h>
|
|
|
|
#endif
|
|
|
|
]],
|
|
|
|
[[
|
|
|
|
VAEncMiscParameterFEIFrameControlH264 framectl;
|
|
|
|
VAEncFEIMBControlH264 mbcntrl;
|
|
|
|
VAEncFEIMVPredictorH264 mvpred;
|
|
|
|
VAEncFEIMBCodeH264 mbcode;
|
|
|
|
VAEncFEIDistortionH264 dist;
|
|
|
|
]])
|
|
|
|
],
|
|
|
|
[ac_cv_have_h264_fei_encoding_api="yes"],
|
|
|
|
[ac_cv_have_h264_fei_encoding_api="no"])
|
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
|
|
|
AS_IF([test "x$ac_cv_have_h264_fei_encoding_api" = "xyes"], [USE_H264_FEI_ENCODER=1])
|
2017-02-22 23:02:01 +00:00
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
2013-07-29 05:34:06 +00:00
|
|
|
fi
|
|
|
|
|
2012-07-19 08:27:23 +00:00
|
|
|
dnl VA/Wayland API
|
2016-01-28 16:14:51 +00:00
|
|
|
if test $USE_WAYLAND -eq 1; then
|
2017-08-17 10:54:47 +00:00
|
|
|
PKG_CHECK_MODULES([LIBVA_WAYLAND], [libva-wayland >= $VAAPI_WLD_REQ],
|
2016-01-28 15:55:44 +00:00
|
|
|
[], [USE_WAYLAND=0])
|
2012-07-19 08:27:23 +00:00
|
|
|
fi
|
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl *** finalize CFLAGS, LDFLAGS, LIBS
|
|
|
|
|
|
|
|
# set by AG_GST_PARSE_SUBSYSTEM_DISABLES above
|
|
|
|
dnl make sure it doesn't complain about unused variables if debugging is disabled
|
2016-02-16 12:36:39 +00:00
|
|
|
AG_GST_CHECK_GST_DEBUG_DISABLED([NO_WARNINGS="-Wno-unused"], [NO_WARNINGS=""])
|
2016-01-28 18:35:24 +00:00
|
|
|
|
|
|
|
dnl define an ERROR_CFLAGS Makefile variable
|
2016-02-16 13:09:01 +00:00
|
|
|
dnl FIXME Add -Wredundant-decls again if considered useful and warnings are fixed
|
|
|
|
AG_GST_SET_ERROR_CFLAGS([$FATAL_WARNINGS], [-Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wnested-externs $NO_WARNINGS])
|
2016-01-28 18:35:24 +00:00
|
|
|
|
|
|
|
dnl define correct level for debugging messages
|
|
|
|
AG_GST_SET_LEVEL_DEFAULT([$GST_GIT])
|
|
|
|
|
|
|
|
dnl Overview:
|
|
|
|
dnl GST_OPTION_CFLAGS: common flags for profiling, debugging, errors, ...
|
|
|
|
dnl GST_*: flags shared by built objects to link against GStreamer
|
|
|
|
dnl GST_ALL_LDFLAGS: linker flags shared by all
|
|
|
|
dnl GST_LIB_LDFLAGS: additional linker flags for all libaries
|
|
|
|
dnl GST_LT_LDFLAGS: library versioning of our libraries
|
|
|
|
dnl GST_PLUGIN_LDFLAGS: flags to be used for all plugins
|
|
|
|
|
|
|
|
dnl GST_OPTION_CFLAGS
|
|
|
|
if test "x$USE_DEBUG" = xyes; then
|
|
|
|
PROFILE_CFLAGS="-g"
|
|
|
|
fi
|
|
|
|
AC_SUBST([PROFILE_CFLAGS])
|
|
|
|
|
|
|
|
if test "x$GST_GIT" = "xyes"; then
|
|
|
|
DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
|
|
|
|
else
|
|
|
|
DEPRECATED_CFLAGS=""
|
|
|
|
fi
|
|
|
|
AC_SUBST([DEPRECATED_CFLAGS])
|
|
|
|
|
2018-02-05 07:51:56 +00:00
|
|
|
dnl disable strict aliasing
|
|
|
|
AS_COMPILER_FLAG([-fno-strict-aliasing], [EXTRA_CFLAGS="-fno-strict-aliasing"])
|
|
|
|
AC_SUBST(EXTRA_CFLAGS)
|
|
|
|
|
2016-01-28 18:35:24 +00:00
|
|
|
dnl every flag in GST_OPTION_CFLAGS and GST_OPTION_CXXFLAGS can be overridden
|
|
|
|
dnl at make time with e.g. make ERROR_CFLAGS=""
|
|
|
|
GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(DEPRECATED_CFLAGS)"
|
|
|
|
AC_SUBST([GST_OPTION_CFLAGS])
|
|
|
|
|
|
|
|
dnl FIXME: do we want to rename to GST_ALL_* ?
|
|
|
|
dnl prefer internal headers to already installed ones
|
|
|
|
dnl also add builddir include for enumtypes and marshal
|
|
|
|
dnl add GST_OPTION_CFLAGS, but overridable
|
|
|
|
GST_CFLAGS="$GST_CFLAGS -DGST_USE_UNSTABLE_API"
|
2018-02-05 07:51:56 +00:00
|
|
|
GST_CFLAGS="$GST_CFLAGS $EXTRA_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CFLAGS)"
|
2016-01-28 18:35:24 +00:00
|
|
|
AC_SUBST([GST_CFLAGS])
|
|
|
|
|
|
|
|
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"
|
|
|
|
if test "x${enable_Bsymbolic}" = "xyes"; then
|
|
|
|
GST_ALL_LDFLAGS="$GST_ALL_LDFLAGS -Wl,-Bsymbolic-functions"
|
|
|
|
fi
|
|
|
|
AC_SUBST([GST_ALL_LDFLAGS])
|
|
|
|
|
|
|
|
dnl GST_LIB_LDFLAGS
|
|
|
|
dnl linker flags shared by all libraries
|
|
|
|
dnl LDFLAGS modifier defining exported symbols from built libraries
|
|
|
|
dnl (export _gst_foo but not __gst_foo)
|
|
|
|
GST_LIB_LDFLAGS="-export-symbols-regex ^_?\(gst_\|Gst\|GST_\).*"
|
|
|
|
AC_SUBST([GST_LIB_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_.*' $GST_ALL_LDFLAGS"
|
|
|
|
AC_SUBST([GST_PLUGIN_LDFLAGS])
|
|
|
|
|
2012-07-20 12:05:23 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl -- Generate files and summary --
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2015-07-02 07:45:50 +00:00
|
|
|
case ":$USE_X11:$USE_GLX:$USE_EGL:$USE_WAYLAND:$USE_DRM:" in
|
2016-01-28 15:55:44 +00:00
|
|
|
*:1:*) ;;
|
|
|
|
*) AC_MSG_ERROR([No renderer is enabled]) ;;
|
2012-07-23 11:28:42 +00:00
|
|
|
esac
|
|
|
|
|
2016-01-28 15:55:44 +00:00
|
|
|
AC_DEFINE_UNQUOTED([USE_ENCODERS], [$USE_ENCODERS],
|
|
|
|
[Defined to 1 if video encoders are used])
|
2013-07-29 05:34:06 +00:00
|
|
|
AM_CONDITIONAL([USE_ENCODERS], [test $USE_ENCODERS -eq 1])
|
|
|
|
|
2016-01-28 15:55:44 +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-04 09:14:15 +00:00
|
|
|
|
2016-01-28 15:55:44 +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-02-13 11:40:19 +00:00
|
|
|
|
2016-01-28 15:55:44 +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])
|
2015-05-25 08:26:14 +00:00
|
|
|
|
2016-05-30 08:22:35 +00:00
|
|
|
AC_DEFINE_UNQUOTED([USE_VP9_ENCODER], [$USE_VP9_ENCODER],
|
|
|
|
[Defined to 1 if VP9 encoder is used])
|
|
|
|
AM_CONDITIONAL([USE_VP9_ENCODER], [test $USE_VP9_ENCODER -eq 1])
|
|
|
|
|
2017-08-09 19:58:29 +00:00
|
|
|
AC_DEFINE_UNQUOTED([USE_H264_FEI_ENCODER], [$USE_H264_FEI_ENCODER],
|
|
|
|
[Defined to 1 if H264_FEI encoder is used])
|
|
|
|
AM_CONDITIONAL([USE_H264_FEI_ENCODER], [test $USE_H264_FEI_ENCODER -eq 1])
|
|
|
|
|
2016-01-28 15:55:44 +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])
|
2013-07-23 13:52:45 +00:00
|
|
|
|
2016-01-28 15:55:44 +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])
|
2012-07-20 12:05:23 +00:00
|
|
|
|
2016-01-28 15:55:44 +00:00
|
|
|
AC_DEFINE_UNQUOTED([USE_VP8_DECODER], [$USE_VP8_DECODER],
|
|
|
|
[Defined to 1 if VP8 decoder is used])
|
|
|
|
AM_CONDITIONAL([USE_VP8_DECODER], [test $USE_VP8_DECODER -eq 1])
|
2013-12-26 23:18:24 +00:00
|
|
|
|
2016-01-28 15:55:44 +00:00
|
|
|
AC_DEFINE_UNQUOTED([USE_VP9_DECODER], [$USE_VP9_DECODER],
|
|
|
|
[Defined to 1 if VP9 decoder is used])
|
|
|
|
AM_CONDITIONAL([USE_VP9_DECODER], [test $USE_VP9_DECODER -eq 1])
|
2015-11-06 12:39:22 +00:00
|
|
|
|
2017-02-14 00:39:41 +00:00
|
|
|
AC_DEFINE_UNQUOTED([USE_H265_DECODER], [$USE_H265_DECODER],
|
2016-01-28 15:55:44 +00:00
|
|
|
[Defined to 1 if HEVC decoder is used])
|
2017-02-14 00:39:41 +00:00
|
|
|
AM_CONDITIONAL([USE_H265_DECODER], [test $USE_H265_DECODER -eq 1])
|
2015-04-14 08:08:47 +00:00
|
|
|
|
2016-01-28 15:55:44 +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-08-01 13:44:02 +00:00
|
|
|
|
2016-01-28 15:55:44 +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])
|
2012-07-23 11:28:42 +00:00
|
|
|
|
2016-01-28 15:55:44 +00:00
|
|
|
AC_DEFINE_UNQUOTED([USE_GLX], [$USE_GLX],
|
|
|
|
[Defined to 1 if GLX is enabled])
|
|
|
|
AM_CONDITIONAL([USE_GLX], [test $USE_GLX -eq 1])
|
2010-03-25 17:28:49 +00:00
|
|
|
|
2015-02-20 14:27:53 +00:00
|
|
|
AC_DEFINE_UNQUOTED([USE_EGL], [$USE_EGL],
|
2016-01-28 15:55:44 +00:00
|
|
|
[Defined to 1 if EGL is enabled])
|
2015-02-20 14:27:53 +00:00
|
|
|
AM_CONDITIONAL([USE_EGL], [test $USE_EGL -eq 1])
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED([USE_GLES_VERSION_MASK], [$GLES_VERSION_MASK],
|
2016-01-28 15:55:44 +00:00
|
|
|
[Defined to the set of enabled OpenGL ES APIs])
|
2015-02-20 14:27:53 +00:00
|
|
|
|
2016-01-28 15:55:44 +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])
|
2012-07-19 08:27:23 +00:00
|
|
|
|
2016-01-28 18:01:43 +00:00
|
|
|
dnl @TODO hack for egl's dynamic module loading. remove it!
|
|
|
|
AC_DEFINE_UNQUOTED([GST_VAAPI_MAJOR_VERSION_S], ["0"],
|
|
|
|
[Defined to the string representation of gstreamer-vaapi major version])
|
|
|
|
|
2012-06-27 15:20:12 +00:00
|
|
|
AC_CONFIG_FILES([
|
2010-01-12 15:51:39 +00:00
|
|
|
Makefile
|
2016-01-28 18:35:24 +00:00
|
|
|
common/Makefile
|
|
|
|
common/m4/Makefile
|
2016-02-24 11:36:33 +00:00
|
|
|
m4/Makefile
|
2010-03-19 17:04:51 +00:00
|
|
|
docs/Makefile
|
2016-01-29 14:39:09 +00:00
|
|
|
docs/version.entities
|
|
|
|
docs/plugins/Makefile
|
|
|
|
docs/plugins/gstreamer-vaapi-plugins-docs.xml
|
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
|
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
|
2010-01-25 15:04:10 +00:00
|
|
|
tests/Makefile
|
2016-07-01 07:01:54 +00:00
|
|
|
tests/elements/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() {
|
2016-01-28 15:55:44 +00:00
|
|
|
test $1 -eq 1 && echo yes || echo no
|
2010-03-30 16:41:21 +00:00
|
|
|
}
|
|
|
|
|
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}
|
2016-01-28 18:35:24 +00:00
|
|
|
echo GStreamer API version ............ : $GST_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
|