Mercurial > mplayer.hg
comparison configure @ 10474:80f9c51b88bb
xvmc fixes - check for xv presence and fix libs order
author | iive |
---|---|
date | Sat, 26 Jul 2003 22:55:37 +0000 |
parents | 75b8b4340d84 |
children | ec04f41e2480 |
comparison
equal
deleted
inserted
replaced
10473:e6130b0c5bde | 10474:80f9c51b88bb |
---|---|
2770 fi | 2770 fi |
2771 echores "$_xv" | 2771 echores "$_xv" |
2772 | 2772 |
2773 | 2773 |
2774 echocheck "XvMC" | 2774 echocheck "XvMC" |
2775 if test "$_x11" = yes && test "$_xv" && test "$_xvmc" != no ; then | 2775 if test "$_x11" = yes && test "$_xv" = yes && test "$_xvmc" != no ; then |
2776 _xvmc=no | 2776 _xvmc=no |
2777 cat > $TMPC <<EOF | 2777 cat > $TMPC <<EOF |
2778 #include <X11/Xlib.h> | 2778 #include <X11/Xlib.h> |
2779 #include <X11/extensions/Xvlib.h> | 2779 #include <X11/extensions/Xvlib.h> |
2780 #include <X11/extensions/XvMClib.h> | 2780 #include <X11/extensions/XvMClib.h> |
2781 int main(void) { | 2781 int main(void) { |
2782 (void) XvMCQueryExtension(0,0,0); | 2782 (void) XvMCQueryExtension(0,0,0); |
2783 (void) XvMCCreateContext(0,0,0,0,0,0,0); | 2783 (void) XvMCCreateContext(0,0,0,0,0,0,0); |
2784 return 0; } | 2784 return 0; } |
2785 EOF | 2785 EOF |
2786 cc_check $_inc_x11 $_ld_x11 $_ld_xv -lXvMC -l$_xvmclib && _xvmc=yes | 2786 cc_check $_inc_x11 -lXvMC -l$_xvmclib $_ld_xv $_ld_x11 && _xvmc=yes |
2787 fi | 2787 fi |
2788 if test "$_xvmc" = yes ; then | 2788 if test "$_xvmc" = yes ; then |
2789 _def_xvmc='#define HAVE_XVMC 1' | 2789 _def_xvmc='#define HAVE_XVMC 1' |
2790 _ld_xvmc="-lXvMC -l$_xvmclib" | 2790 _ld_xvmc="-lXvMC -l$_xvmclib" |
2791 _vosrc="$_vosrc vo_xvmc.c" | 2791 _vosrc="$_vosrc vo_xvmc.c" |
5369 WIN32_LIB = $_ld_win32libs | 5369 WIN32_LIB = $_ld_win32libs |
5370 STATIC_LIB = $_ld_static | 5370 STATIC_LIB = $_ld_static |
5371 | 5371 |
5372 X11_INC = $_inc_x11 | 5372 X11_INC = $_inc_x11 |
5373 X11DIR = $_ld_x11 | 5373 X11DIR = $_ld_x11 |
5374 | |
5375 HAVE_XVMC_ACCEL = $_xvmc | |
5374 | 5376 |
5375 # for libavcodec: | 5377 # for libavcodec: |
5376 SRC_PATH=. | 5378 SRC_PATH=. |
5377 | 5379 |
5378 # video output | 5380 # video output |