2010-03-16 14:12:40 +00:00
|
|
|
# gstreamer-vaapi package version number
|
|
|
|
m4_define([gst_vaapi_major_version], [0])
|
2011-07-21 12:31:30 +00:00
|
|
|
m4_define([gst_vaapi_minor_version], [3])
|
2012-01-06 10:23:21 +00:00
|
|
|
m4_define([gst_vaapi_micro_version], [3])
|
|
|
|
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
|
|
|
|
2010-01-12 15:51:39 +00:00
|
|
|
# gst version number
|
|
|
|
m4_define([gst_major_version], [0])
|
|
|
|
m4_define([gst_minor_version], [10])
|
2010-05-16 21:18:37 +00:00
|
|
|
m4_define([gst_micro_version], [10])
|
2010-01-12 15:51:39 +00:00
|
|
|
m4_define([gst_major_minor_version],
|
|
|
|
[gst_major_version.gst_minor_version])
|
|
|
|
m4_define([gst_version],
|
|
|
|
[gst_major_version.gst_minor_version.gst_micro_version])
|
|
|
|
|
|
|
|
# gst plugins-base version number
|
|
|
|
m4_define([gst_plugins_base_major_version], [0])
|
|
|
|
m4_define([gst_plugins_base_minor_version], [10])
|
2010-03-22 08:03:12 +00:00
|
|
|
m4_define([gst_plugins_base_micro_version], [16])
|
2010-01-12 15:51:39 +00:00
|
|
|
m4_define([gst_plugins_base_version],
|
|
|
|
[gst_plugins_base_major_version.gst_plugins_base_minor_version.gst_plugins_base_micro_version])
|
|
|
|
|
2011-12-07 13:17:32 +00:00
|
|
|
# VA-API minimum version number
|
|
|
|
m4_define([va_api_x11_version], [0.31.0])
|
|
|
|
m4_define([va_api_glx_version], [0.32.0])
|
|
|
|
|
2011-11-04 20:50:15 +00:00
|
|
|
# gst plugins-bad version number
|
|
|
|
m4_define([gst_plugins_bad_major_version], [0])
|
|
|
|
m4_define([gst_plugins_bad_minor_version], [10])
|
|
|
|
m4_define([gst_plugins_bad_micro_version], [22])
|
|
|
|
m4_define([gst_plugins_bad_version],
|
|
|
|
[gst_plugins_bad_major_version.gst_plugins_bad_minor_version.gst_plugins_bad_micro_version])
|
|
|
|
|
2010-03-16 13:53:09 +00:00
|
|
|
# libva package version number
|
2011-12-07 13:17:32 +00:00
|
|
|
m4_define([libva_x11_package_version], [1.0.3])
|
|
|
|
m4_define([libva_glx_package_version], [1.0.9])
|
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
|
2010-03-23 07:31:04 +00:00
|
|
|
m4_define([gtkdoc_major_version], [1])
|
|
|
|
m4_define([gtkdoc_minor_version], [9])
|
|
|
|
m4_define([gtkdoc_version], [gtkdoc_major_version.gtkdoc_minor_version])
|
|
|
|
|
2010-01-12 15:51:39 +00:00
|
|
|
AC_PREREQ([2.57])
|
|
|
|
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])
|
|
|
|
AC_CONFIG_SRCDIR([Makefile.am])
|
|
|
|
AC_CANONICAL_TARGET
|
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
AM_CONFIG_HEADER([config.h])
|
|
|
|
|
2010-03-16 13:53:09 +00:00
|
|
|
TODAY="`LC_ALL=C date +'%a, %d %b %Y %X %z'`"
|
|
|
|
AC_SUBST(TODAY)
|
|
|
|
|
|
|
|
GST_VAAPI_MAJOR_VERSION=gst_vaapi_major_version
|
|
|
|
AC_SUBST(GST_VAAPI_MAJOR_VERSION)
|
|
|
|
|
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
|
|
|
|
2010-03-25 10:04:39 +00:00
|
|
|
dnl Versions for GStreamer and plugins-base
|
|
|
|
GST_MAJORMINOR=gst_major_minor_version
|
|
|
|
GST_VERSION_REQUIRED=gst_version
|
|
|
|
GST_PLUGINS_BASE_VERSION_REQUIRED=gst_plugins_base_version
|
2011-11-04 20:50:15 +00:00
|
|
|
GST_PLUGINS_BAD_VERSION_REQUIRED=gst_plugins_bad_version
|
2010-03-25 10:04:39 +00:00
|
|
|
AC_SUBST(GST_MAJORMINOR)
|
|
|
|
AC_SUBST(GST_VERSION_REQUIRED)
|
|
|
|
AC_SUBST(GST_PLUGINS_BASE_VERSION_REQUIRED)
|
|
|
|
|
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
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
2010-03-25 17:28:49 +00:00
|
|
|
AC_ARG_ENABLE(glx,
|
|
|
|
AC_HELP_STRING([--enable-glx],
|
|
|
|
[enable OpenGL/X11 @<:@default=yes@:>@]),
|
|
|
|
[], [enable_glx="yes"])
|
|
|
|
|
2010-03-30 13:01:34 +00:00
|
|
|
AC_ARG_ENABLE(vaapi-glx,
|
|
|
|
AC_HELP_STRING([--enable-vaapi-glx],
|
|
|
|
[enable VA/GLX extensions @<:@default=yes@:>@]),
|
|
|
|
[], [enable_vaapi_glx="yes"])
|
|
|
|
|
2010-03-29 15:03:30 +00:00
|
|
|
AC_ARG_ENABLE(vaapisink-glx,
|
|
|
|
AC_HELP_STRING([--enable-vaapisink-glx],
|
|
|
|
[enable OpenGL/X11 to vaapisink @<:@default=yes@:>@]),
|
|
|
|
[], [enable_vaapisink_glx="no"])
|
|
|
|
|
2010-01-25 13:49:55 +00:00
|
|
|
dnl Check for __attribute__((visibility()))
|
|
|
|
AC_CACHE_CHECK([whether __attribute__((visibility())) is supported],
|
|
|
|
vaapi_cv_visibility_attribute,
|
|
|
|
[cat > conftest.c <<EOF
|
|
|
|
int foo __attribute__ ((visibility ("hidden"))) = 1;
|
|
|
|
int bar __attribute__ ((visibility ("protected"))) = 1;
|
|
|
|
EOF
|
|
|
|
vaapi_cv_visibility_attribute=no
|
|
|
|
if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
|
|
|
|
if grep '\.hidden.*foo' conftest.s >/dev/null; then
|
|
|
|
if grep '\.protected.*bar' conftest.s >/dev/null; then
|
|
|
|
vaapi_cv_visibility_attribute=yes
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f conftest.[cs]
|
|
|
|
])
|
|
|
|
if test $vaapi_cv_visibility_attribute = yes; then
|
|
|
|
vaapi_cv_visibility_attribute_hidden="__attribute__((visibility(\"hidden\")))"
|
|
|
|
else
|
|
|
|
vaapi_cv_visibility_attribute_hidden=""
|
|
|
|
fi
|
|
|
|
AC_DEFINE_UNQUOTED([attribute_hidden],
|
|
|
|
[$vaapi_cv_visibility_attribute_hidden],
|
|
|
|
[Define the "hidden" visibility attribute])
|
|
|
|
|
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
|
|
|
|
GTK_DOC_CHECK([$GTKDOC_VERSION])
|
2010-03-19 17:04:51 +00:00
|
|
|
AM_CONDITIONAL([BUILD_GTK_DOC], [test "x$enable_gtk_doc" = "xyes"])
|
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
|
2010-03-23 17:12:40 +00:00
|
|
|
AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
|
2010-03-16 09:39:07 +00:00
|
|
|
PKG_CHECK_MODULES([GLIB], [glib-2.0])
|
|
|
|
AC_SUBST(GLIB_CFLAGS)
|
|
|
|
AC_SUBST(GLIB_LIBS)
|
|
|
|
|
2010-01-12 15:51:39 +00:00
|
|
|
dnl Check for GStreamer
|
|
|
|
PKG_CHECK_MODULES([GST],
|
|
|
|
[gstreamer-$GST_MAJORMINOR >= $GST_VERSION_REQUIRED]
|
|
|
|
)
|
|
|
|
AC_SUBST(GST_CFLAGS)
|
|
|
|
AC_SUBST(GST_LIBS)
|
|
|
|
|
2011-12-09 10:20:04 +00:00
|
|
|
AC_CACHE_CHECK([for GstBaseSink::query hook], ac_cv_have_gst_base_sink_query, [
|
|
|
|
saved_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS $GST_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $GST_LIBS"
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include <gst/base/gstbasesink.h>],
|
|
|
|
[GstBaseSinkClass klass; klass.query = NULL;],
|
|
|
|
[ac_cv_have_gst_base_sink_query="yes"],
|
|
|
|
[ac_cv_have_gst_base_sink_query="no"]
|
|
|
|
)
|
|
|
|
CFLAGS="$saved_CFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
|
|
|
if test "$ac_cv_have_gst_base_sink_query" != "yes"; then
|
|
|
|
AC_MSG_ERROR([GstBaseSink does not contain the 'query' vfunc])
|
|
|
|
fi
|
|
|
|
|
2010-01-12 15:51:39 +00:00
|
|
|
dnl Check for GStreamer plugins-base
|
|
|
|
PKG_CHECK_MODULES([GST_PLUGINS_BASE],
|
|
|
|
[gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_PLUGINS_BASE_VERSION_REQUIRED]
|
|
|
|
)
|
|
|
|
AC_SUBST(GST_PLUGINS_BASE_CFLAGS)
|
|
|
|
AC_SUBST(GST_PLUGINS_BASE_LIBS)
|
|
|
|
|
2011-12-07 17:40:35 +00:00
|
|
|
V=`$PKG_CONFIG --modversion gstreamer-plugins-base-$GST_MAJORMINOR`
|
|
|
|
GST_PLUGINS_BASE_MAJOR_VERSION=`echo "$V" | cut -d'.' -f1`
|
|
|
|
GST_PLUGINS_BASE_MINOR_VERSION=`echo "$V" | cut -d'.' -f2`
|
|
|
|
GST_PLUGINS_BASE_MICRO_VERSION=`echo "$V" | cut -d'.' -f3`
|
|
|
|
AC_SUBST(GST_PLUGINS_BASE_MAJOR_VERSION)
|
|
|
|
AC_SUBST(GST_PLUGINS_BASE_MINOR_VERSION)
|
|
|
|
AC_SUBST(GST_PLUGINS_BASE_MICRO_VERSION)
|
|
|
|
|
2010-03-05 17:11:52 +00:00
|
|
|
dnl Check for GStreamer base
|
|
|
|
PKG_CHECK_MODULES([GST_BASE],
|
|
|
|
[gstreamer-base-$GST_MAJORMINOR >= $GST_VERSION_REQUIRED]
|
|
|
|
)
|
|
|
|
AC_SUBST(GST_BASE_CFLAGS)
|
|
|
|
AC_SUBST(GST_BASE_LIBS)
|
|
|
|
|
|
|
|
dnl Check for GStreamer video
|
|
|
|
PKG_CHECK_MODULES([GST_VIDEO],
|
|
|
|
[gstreamer-video-$GST_MAJORMINOR >= $GST_VERSION_REQUIRED]
|
|
|
|
)
|
|
|
|
AC_SUBST(GST_VIDEO_CFLAGS)
|
|
|
|
AC_SUBST(GST_VIDEO_LIBS)
|
|
|
|
|
2011-12-13 12:40:55 +00:00
|
|
|
AC_CACHE_CHECK([for GstVideoOverlayComposition],
|
|
|
|
ac_cv_have_gst_video_overlay_composition, [
|
|
|
|
saved_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS $GST_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $GST_LIBS"
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include <gst/video/video-overlay-composition.h>],
|
|
|
|
[GstVideoOverlayComposition *c = gst_video_overlay_composition_new(0);],
|
|
|
|
[ac_cv_have_gst_video_overlay_composition="yes"],
|
|
|
|
[ac_cv_have_gst_video_overlay_composition="no"]
|
|
|
|
)
|
|
|
|
CFLAGS="$saved_CFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
])
|
|
|
|
if test "$ac_cv_have_gst_video_overlay_composition" != "yes"; then
|
|
|
|
AC_MSG_ERROR([GstVideoOverlayComposition is not available])
|
|
|
|
fi
|
|
|
|
|
2011-11-04 20:50:15 +00:00
|
|
|
dnl Check for GStreamer basevideo
|
|
|
|
PKG_CHECK_MODULES([GST_BASEVIDEO],
|
|
|
|
[gstreamer-basevideo-$GST_MAJORMINOR >= $GST_PLUGINS_BAD_VERSION_REQUIRED]
|
|
|
|
)
|
|
|
|
AC_SUBST(GST_BASEVIDEO_CFLAGS)
|
|
|
|
AC_SUBST(GST_BASEVIDEO_LIBS)
|
|
|
|
|
2010-05-12 11:43:50 +00:00
|
|
|
dnl Check for GStreamer interfaces
|
|
|
|
PKG_CHECK_MODULES([GST_INTERFACES],
|
|
|
|
[gstreamer-interfaces-$GST_MAJORMINOR >= $GST_PLUGINS_BASE_VERSION_REQUIRED]
|
|
|
|
)
|
|
|
|
AC_SUBST(GST_INTERFACES_CFLAGS)
|
|
|
|
AC_SUBST(GST_INTERFACES_LIBS)
|
|
|
|
|
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
|
|
|
|
AC_MSG_CHECKING([for GStreamer plugins directory])
|
|
|
|
GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-$GST_MAJORMINOR --variable pluginsdir`
|
|
|
|
if test -z "$GST_PLUGINS_DIR"; then
|
|
|
|
echo "FAIL FAIL FAIL"
|
|
|
|
GST_PLUGINS_DIR="\$(libdir)/gstreamer-$GST_MAJORMINOR"
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([$GST_PLUGINS_DIR])
|
|
|
|
plugindir="$GST_PLUGINS_DIR"
|
|
|
|
AC_SUBST(plugindir)
|
|
|
|
|
2010-03-24 16:17:49 +00:00
|
|
|
dnl Check for X11
|
2010-01-25 16:15:01 +00:00
|
|
|
PKG_CHECK_MODULES(X11, [x11])
|
2010-03-24 16:17:49 +00:00
|
|
|
|
2010-03-25 17:28:49 +00:00
|
|
|
dnl Check for OpenGL
|
|
|
|
USE_GLX=1
|
|
|
|
if test "$enable_glx" != "yes"; then
|
|
|
|
USE_GLX=0
|
|
|
|
fi
|
2010-03-26 08:00:32 +00:00
|
|
|
GLX_CFLAGS=""
|
|
|
|
GLX_LIBS=""
|
2010-03-25 17:28:49 +00:00
|
|
|
AC_CHECK_HEADERS([GL/gl.h GL/glext.h GL/glx.h], [], [USE_GLX=0], [
|
|
|
|
#ifdef HAVE_GL_GL_H
|
|
|
|
# include <GL/gl.h>
|
|
|
|
#endif
|
|
|
|
])
|
2010-03-26 08:00:32 +00:00
|
|
|
AC_CHECK_LIB(GL, glXCreateContext, [GLX_LIBS="-lGL"], [USE_GLX=0])
|
|
|
|
AC_SUBST(GLX_CFLAGS)
|
|
|
|
AC_SUBST(GLX_LIBS)
|
2010-03-25 17:28:49 +00:00
|
|
|
|
2010-03-24 16:17:49 +00:00
|
|
|
dnl Check for VA-API
|
|
|
|
LIBVA_PKGNAME="libva"
|
|
|
|
PKG_CHECK_MODULES(LIBVA, [$LIBVA_PKGNAME])
|
|
|
|
AC_SUBST(LIBVA_PKGNAME)
|
|
|
|
|
2010-03-25 17:28:49 +00:00
|
|
|
dnl ... original VA-API 0.29
|
2010-03-24 16:17:49 +00:00
|
|
|
AC_CACHE_CHECK([for old VA-API 0.29],
|
|
|
|
ac_cv_have_vaapi_old, [
|
|
|
|
saved_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS $LIBVA_CFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $LIBVA_LIBS"
|
|
|
|
AC_TRY_LINK(
|
|
|
|
[#include <va_x11.h>],
|
|
|
|
[vaGetDisplay(NULL)],
|
|
|
|
[ac_cv_have_vaapi_old="yes"],
|
|
|
|
[ac_cv_have_vaapi_old="no"])
|
|
|
|
CFLAGS="$saved_CFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
2010-01-12 15:51:39 +00:00
|
|
|
])
|
2010-03-24 16:17:49 +00:00
|
|
|
if test "$ac_cv_have_vaapi_old" = "yes"; then
|
|
|
|
LIBVA_EXTRA_CFLAGS="$LIBVA_CFLAGS -DGST_VAAPI_USE_OLD_VAAPI_0_29"
|
|
|
|
fi
|
|
|
|
|
2010-03-25 17:28:49 +00:00
|
|
|
dnl ... VA-API >= 0.31 or -sds
|
2010-03-24 16:17:49 +00:00
|
|
|
LIBVA_X11_PKGNAME="libva-x11"
|
|
|
|
PKG_CHECK_MODULES(LIBVA_X11, [$LIBVA_X11_PKGNAME],
|
|
|
|
[ac_cv_have_vaapi_x11="yes"],
|
|
|
|
[ac_cv_have_vaapi_x11="no"]
|
|
|
|
)
|
|
|
|
if test "$ac_cv_have_vaapi_x11" = "no"; then
|
|
|
|
if test "$ac_cv_have_vaapi_old" = "yes"; then
|
|
|
|
LIBVA_X11_PKGNAME="libva"
|
2010-03-24 16:21:20 +00:00
|
|
|
CFLAGS="$CFLAGS $LIBVA_EXTRA_CFLAGS"
|
|
|
|
LIBS="$LIBS $LIBVA_EXTRA_LIBS"
|
2010-03-24 16:17:49 +00:00
|
|
|
else
|
|
|
|
AC_MSG_ERROR([could not find VA-API])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST(LIBVA_X11_PKGNAME)
|
|
|
|
|
2010-03-30 13:01:34 +00:00
|
|
|
dnl ... VA-API >= 0.31 or -sds (VA/GLX extensions)
|
|
|
|
USE_VAAPI_GLX=0
|
|
|
|
if test $USE_GLX -eq 1; then
|
|
|
|
if test "$enable_vaapi_glx" = "yes"; then
|
|
|
|
LIBVA_GLX_PKGNAME="libva-glx"
|
|
|
|
PKG_CHECK_MODULES(LIBVA_GLX, [$LIBVA_GLX_PKGNAME],
|
|
|
|
[ac_cv_have_vaapi_glx="yes" USE_VAAPI_GLX=1],
|
|
|
|
[ac_cv_have_vaapi_glx="no"]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
if test $USE_VAAPI_GLX -eq 0; then
|
|
|
|
AC_MSG_WARN([VA/GLX not found or disabled. Fallbacking to TFP+FBO])
|
|
|
|
LIBVA_GLX_PKGNAME="$LIBVA_X11_PKGNAME"
|
|
|
|
fi
|
2010-03-25 17:28:49 +00:00
|
|
|
fi
|
|
|
|
AC_SUBST(LIBVA_GLX_PKGNAME)
|
|
|
|
|
2010-03-24 16:17:49 +00:00
|
|
|
AC_SUBST(LIBVA_EXTRA_CFLAGS)
|
|
|
|
AC_SUBST(LIBVA_EXTRA_LIBS)
|
|
|
|
|
2010-04-29 17:56:42 +00:00
|
|
|
dnl Check for OpenGL support to vaapisink
|
2010-03-29 15:03:30 +00:00
|
|
|
if test "$enable_vaapisink_glx:$USE_GLX" = "yes:1"; then
|
|
|
|
USE_VAAPISINK_GLX=1
|
|
|
|
else
|
|
|
|
USE_VAAPISINK_GLX=0
|
|
|
|
fi
|
|
|
|
|
2010-04-23 16:05:58 +00:00
|
|
|
dnl Check for FFmpeg
|
|
|
|
PKG_CHECK_MODULES(LIBAVCODEC, [libavcodec])
|
2010-07-01 11:11:18 +00:00
|
|
|
AC_CHECK_HEADERS([libavcodec/avcodec.h ffmpeg/avcodec.h])
|
|
|
|
AC_CHECK_HEADERS([libavcodec/vaapi.h ffmpeg/vaapi.h], [break],
|
2010-04-28 09:07:45 +00:00
|
|
|
AC_MSG_ERROR([The system FFmpeg headers do not support VA-API]))
|
2010-04-23 16:05:58 +00:00
|
|
|
|
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)
|
|
|
|
|
2010-03-30 13:01:34 +00:00
|
|
|
AC_DEFINE_UNQUOTED(USE_VAAPI_GLX, $USE_VAAPI_GLX,
|
|
|
|
[Defined to 1 if VA/GLX is enabled])
|
|
|
|
AM_CONDITIONAL(USE_VAAPI_GLX, test $USE_VAAPI_GLX -eq 1)
|
|
|
|
|
2010-03-29 15:03:30 +00:00
|
|
|
AC_DEFINE_UNQUOTED(USE_VAAPISINK_GLX, $USE_VAAPISINK_GLX,
|
|
|
|
[Defined to 1 to enable GLX support to vaapisink])
|
|
|
|
AM_CONDITIONAL(USE_VAAPISINK_GLX, test $USE_VAAPISINK_GLX -eq 1)
|
|
|
|
|
2010-01-12 15:51:39 +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`
|
2010-03-24 16:35:36 +00:00
|
|
|
VA_MICRO_VERSION=`echo "$VA_VERSION" | cut -d'.' -f3`
|
|
|
|
VA_VERSION_STR="$VA_VERSION"
|
2010-01-12 15:51:39 +00:00
|
|
|
|
2010-03-16 09:57:25 +00:00
|
|
|
pkgconfigdir=${libdir}/pkgconfig
|
|
|
|
AC_SUBST(pkgconfigdir)
|
|
|
|
|
2010-01-12 15:51:39 +00:00
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
2010-03-23 18:45:09 +00:00
|
|
|
debian.upstream/Makefile
|
|
|
|
debian.upstream/changelog
|
|
|
|
debian.upstream/control
|
|
|
|
debian.upstream/gstreamer$GST_MAJORMINOR-vaapi.install:\
|
|
|
|
debian.upstream/gstreamer-vaapi.install.in
|
|
|
|
debian.upstream/gstreamer$GST_MAJORMINOR-vaapi-doc.install:\
|
|
|
|
debian.upstream/gstreamer-vaapi-doc.install.in
|
|
|
|
debian.upstream/libgstvaapi$GST_VAAPI_MAJOR_VERSION.install:\
|
|
|
|
debian.upstream/libgstvaapi.install.in
|
2010-03-30 13:29:34 +00:00
|
|
|
debian.upstream/libgstvaapi-dev.install
|
2010-03-23 18:45:09 +00:00
|
|
|
debian.upstream/libgstvaapi-x11-$GST_VAAPI_MAJOR_VERSION.install:\
|
|
|
|
debian.upstream/libgstvaapi-x11.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
|
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
|
2010-01-12 15:51:39 +00:00
|
|
|
gst-libs/Makefile
|
|
|
|
gst-libs/gst/Makefile
|
2011-12-07 17:40:35 +00:00
|
|
|
gst-libs/gst/gstutils_version.h
|
2010-01-12 15:51:39 +00:00
|
|
|
gst-libs/gst/vaapi/Makefile
|
2010-03-16 09:57:25 +00:00
|
|
|
pkgconfig/Makefile
|
2010-03-25 17:28:49 +00:00
|
|
|
pkgconfig/gstreamer-vaapi-$GST_MAJORMINOR.pc:\
|
|
|
|
pkgconfig/gstreamer-vaapi.pc.in
|
|
|
|
pkgconfig/gstreamer-vaapi-glx-$GST_MAJORMINOR.pc:\
|
|
|
|
pkgconfig/gstreamer-vaapi-glx.pc.in
|
|
|
|
pkgconfig/gstreamer-vaapi-x11-$GST_MAJORMINOR.pc:\
|
|
|
|
pkgconfig/gstreamer-vaapi-x11.pc.in
|
2010-03-30 07:46:47 +00:00
|
|
|
gst/Makefile
|
2011-09-14 19:12:41 +00:00
|
|
|
gst/vaapi/Makefile
|
2010-01-25 15:04:10 +00:00
|
|
|
tests/Makefile
|
2010-01-12 15:51:39 +00:00
|
|
|
])
|
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
|
|
|
|
}
|
|
|
|
|
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
|
2010-03-24 16:35:36 +00:00
|
|
|
echo VA-API version ................... : $VA_VERSION_STR
|
2010-03-30 16:41:21 +00:00
|
|
|
echo GLX support ...................... : $(yesno $USE_GLX)
|
|
|
|
echo VA/GLX support ................... : $(yesno $USE_VAAPI_GLX)
|
|
|
|
echo VaapiSink/GL ..................... : $(yesno $USE_VAAPISINK_GLX)
|
2010-03-24 16:17:49 +00:00
|
|
|
echo
|