projects
/
profile
/
ivi
/
gstreamer-vaapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de2a180
)
configure: fix check for VA/DRM API.
author
Gwenole Beauchesne
<gwenole.beauchesne@intel.com>
Fri, 7 Sep 2012 09:44:44 +0000
(11:44 +0200)
committer
Gwenole Beauchesne
<gwenole.beauchesne@intel.com>
Fri, 7 Sep 2012 09:44:44 +0000
(11:44 +0200)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
227aa64
..
c598efa
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-397,9
+397,17
@@
VA_MICRO_VERSION=`echo "$VA_VERSION" | cut -d'.' -f3`
VA_VERSION_STR="$VA_VERSION"
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],
- [:], [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
dnl VA/X11 API