summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-11 22:26:38 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-11 22:26:38 +0000
commit153cac185c2d38aef1c322ea3bfa2b97befbb8d9 (patch)
tree07f47702d62f1a9f5200599859afdc209c07638c /configure
parent629eee5817083e42d20ff4176aceab0dc5a9f566 (diff)
downloadmpv-153cac185c2d38aef1c322ea3bfa2b97befbb8d9.tar.bz2
mpv-153cac185c2d38aef1c322ea3bfa2b97befbb8d9.tar.xz
Do not dynamically load libvdpau.so.1, but link at compile time.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29903 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure b/configure
index 7b100affd2..809d3f9250 100755
--- a/configure
+++ b/configure
@@ -4348,13 +4348,16 @@ if test "$_vdpau" = auto ; then
if test "$_dl" = yes ; then
cat > $TMPC <<EOF
#include <vdpau/vdpau_x11.h>
-int main(void) {return VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1;}
+int main(void) {
+ (void) vdp_device_create_x11(0, 0, 0, 0);
+ return VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1; }
EOF
- cc_check && _vdpau=yes
+ cc_check -lvdpau && _vdpau=yes
fi
fi
if test "$_vdpau" = yes ; then
def_vdpau='#define CONFIG_VDPAU 1'
+ libs_mplayer="$libs_mplayer -lvdpau"
_vomodules="vdpau $_vomodules"
else
def_vdpau='#define CONFIG_VDPAU 0'