Commit 2610c952 authored by Diego Biurrun's avatar Diego Biurrun

configure: Move initial VAAPI check to a more sensible place

parent 5b5ed92d
...@@ -4579,7 +4579,6 @@ disabled zlib || check_lib zlib.h zlibVersion -lz || disable zlib ...@@ -4579,7 +4579,6 @@ disabled zlib || check_lib zlib.h zlibVersion -lz || disable zlib
disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion -lbz2 || disable bzlib disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion -lbz2 || disable bzlib
check_lib math.h sin -lm && LIBM="-lm" check_lib math.h sin -lm && LIBM="-lm"
enabled vaapi && require vaapi va/va.h vaInitialize -lva
atan2f_args=2 atan2f_args=2
ldexpf_args=2 ldexpf_args=2
...@@ -4775,6 +4774,8 @@ if enabled libxcb; then ...@@ -4775,6 +4774,8 @@ if enabled libxcb; then
add_extralibs "$xcb_event_libs $xcb_shm_libs $xcb_xfixes_libs" add_extralibs "$xcb_event_libs $xcb_shm_libs $xcb_xfixes_libs"
fi fi
enabled vaapi && require vaapi va/va.h vaInitialize -lva
enabled vaapi && enabled vaapi &&
check_code cc "va/va.h" "vaCreateSurfaces(0, 0, 0, 0, 0, 0, 0, 0)" || check_code cc "va/va.h" "vaCreateSurfaces(0, 0, 0, 0, 0, 0, 0, 0)" ||
disable vaapi disable vaapi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment