mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
configure: fix check for VA/DRM API.
This commit is contained in:
parent
de2a18012d
commit
eb73aa3061
1 changed files with 10 additions and 2 deletions
12
configure.ac
12
configure.ac
|
@ -397,9 +397,17 @@ VA_MICRO_VERSION=`echo "$VA_VERSION" | cut -d'.' -f3`
|
||||||
VA_VERSION_STR="$VA_VERSION"
|
VA_VERSION_STR="$VA_VERSION"
|
||||||
|
|
||||||
dnl VA/DRM API
|
dnl VA/DRM API
|
||||||
if test "$enable_drm" = "yes"; then
|
HAVE_VA_DRM=0
|
||||||
|
if test $USE_DRM -eq 1; then
|
||||||
PKG_CHECK_MODULES([LIBVA_DRM], [libva-drm >= va_api_drm_version],
|
PKG_CHECK_MODULES([LIBVA_DRM], [libva-drm >= va_api_drm_version],
|
||||||
[:], [USE_DRM=0])
|
[HAVE_VA_DRM=1], [USE_DRM=0])
|
||||||
|
|
||||||
|
if test $HAVE_VA_DRM -eq 1; then
|
||||||
|
saved_CPPFLAGS="$CPPFLAGS"
|
||||||
|
CPPFLAGS="$LIBVA_DRM_CPPFLAGS"
|
||||||
|
AC_CHECK_HEADERS([va/va_drm.h], [:], [HAVE_VA_DRM=0 USE_DRM=0])
|
||||||
|
CPPFLAGS="$saved_CPPFLAGS"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl VA/X11 API
|
dnl VA/X11 API
|
||||||
|
|
Loading…
Reference in a new issue