summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-07-26 22:55:37 +0000
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-07-26 22:55:37 +0000
commit8010e313c4effbda3c9a63bad010f292350cc5ef (patch)
tree77d9d83a1a92719699406f54d73739741112f4da /configure
parent3ab5b4654c5fad76dc8704423d2dcd0c5bc3a1e5 (diff)
downloadmpv-8010e313c4effbda3c9a63bad010f292350cc5ef.tar.bz2
mpv-8010e313c4effbda3c9a63bad010f292350cc5ef.tar.xz
xvmc fixes - check for xv presence and fix libs order
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10475 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index 57f97129fe..f1841da7aa 100755
--- a/configure
+++ b/configure
@@ -2772,7 +2772,7 @@ echores "$_xv"
echocheck "XvMC"
-if test "$_x11" = yes && test "$_xv" && test "$_xvmc" != no ; then
+if test "$_x11" = yes && test "$_xv" = yes && test "$_xvmc" != no ; then
_xvmc=no
cat > $TMPC <<EOF
#include <X11/Xlib.h>
@@ -2783,7 +2783,7 @@ int main(void) {
(void) XvMCCreateContext(0,0,0,0,0,0,0);
return 0; }
EOF
- cc_check $_inc_x11 $_ld_x11 $_ld_xv -lXvMC -l$_xvmclib && _xvmc=yes
+ cc_check $_inc_x11 -lXvMC -l$_xvmclib $_ld_xv $_ld_x11 && _xvmc=yes
fi
if test "$_xvmc" = yes ; then
_def_xvmc='#define HAVE_XVMC 1'
@@ -5372,6 +5372,8 @@ STATIC_LIB = $_ld_static
X11_INC = $_inc_x11
X11DIR = $_ld_x11
+HAVE_XVMC_ACCEL = $_xvmc
+
# for libavcodec:
SRC_PATH=.