aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Zwickert <dilaroga@free.fr>2011-11-04 20:34:52 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-04 21:38:40 +0100
commit38a444e05dd980af321211b1584421fb28b67faa (patch)
treeb43fbd28a38325e77cf5e2e1b33d48def344854f
parentf5cd136f2bcdb69abbd5b8335b247be41259da31 (diff)
downloadffmpeg-38a444e05dd980af321211b1584421fb28b67faa.tar.gz
configure: fixes vda compilation issue.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rwxr-xr-xconfigure10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure b/configure
index 279e4167d7..1d7987a06e 100755
--- a/configure
+++ b/configure
@@ -2959,7 +2959,6 @@ check_func_headers windows.h MapViewOfFile
check_func_headers windows.h VirtualAlloc
check_header dlfcn.h
-check_header VideoDecodeAcceleration/VDADecoder.h
check_header dxva2api.h -D_WIN32_WINNT=0x0600
check_header libcrystalhd/libcrystalhd_if.h
check_header malloc.h
@@ -2975,9 +2974,12 @@ check_header X11/extensions/XvMClib.h
disabled zlib || check_lib zlib.h zlibVersion -lz || disable zlib
disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion -lbz2 || disable bzlib
-# adds ldflags for VDA module
-if enabled vda; then
- add_ldflags -framework CoreFoundation -framework VideoDecodeAcceleration -framework QuartzCore
+# check for VDA header
+if ! disabled vda; then
+ if check_header VideoDecodeAcceleration/VDADecoder.h; then
+ enable vda
+ add_ldflags -framework CoreFoundation -framework VideoDecodeAcceleration -framework QuartzCore
+ fi
fi
# check for some common methods of building with pthread support