summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-21 15:16:52 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-21 15:16:52 +0000
commitccb96512e78a43462b616491c7acfba287ffadf1 (patch)
treec1929caacccc3ecabfb63b5995fe1ed84f8a94a1 /configure
parent83e2caa277f2bb9f8dea60c245fcf219a59c2dc4 (diff)
downloadmpv-ccb96512e78a43462b616491c7acfba287ffadf1.tar.bz2
mpv-ccb96512e78a43462b616491c7acfba287ffadf1.tar.xz
--disable-xmga and alsa detection bug fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1179 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure32
1 files changed, 14 insertions, 18 deletions
diff --git a/configure b/configure
index c3e98bad8f..dca9e69df8 100755
--- a/configure
+++ b/configure
@@ -345,7 +345,7 @@ _3dfx=no
_syncfb=no
_mlib=no
_mpg123=no
-_xmga=no
+_xmga=autodetect
_dga=no
_dga2=no
_svga=no
@@ -392,21 +392,10 @@ for i in `echo $pparam`; do
mmxext)
_mmx2=yes
;;
- mtrr)
+ mtrr|k6_mtrr)
_mtrr=yes
;;
- k6_mtrr)
- _mtrr=yes
- ;;
- xmm)
- _sse=yes
- _mmx2=yes
- ;;
- sse)
- _sse=yes
- _mmx2=yes
- ;;
- kni)
+ xmm|sse|kni)
_sse=yes
_mmx2=yes
;;
@@ -736,7 +725,7 @@ int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==5)return 0; return 1; }
EOF
_alsaver='not found'
-$_cc -o $TMPO -lasound $TMPC 2> /dev/null || _alsa=no
+$_cc -o $TMPO -lasound -ldl -lpthread $TMPC 2> /dev/null || _alsa=no
[ $_alsa = 'yes' ] && $TMPO && { _alsaver='0.5.x'; }
if [ "$_alsaver" = 'not found' ]; then
@@ -747,7 +736,7 @@ int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==9)return 0; return 1; }
EOF
_alsaver='not found'
-$_cc -o $TMPO -lasound $TMPC 2> /dev/null || _alsa=no
+$_cc -o $TMPO -lasound -ldl -lpthread $TMPC 2> /dev/null || _alsa=no
[ $_alsa = 'yes' ] && $TMPO && { _alsaver='0.9.x'; }
fi
@@ -1085,9 +1074,11 @@ echo "$kernel_version, ok"
fi
fi
-if [ $_x11 = 'yes' ]; then
- if [ $_mga = 'yes' ]; then
+if [ "$_xmga" == "autodetect" ]; then
+ if [ $_x11 = 'yes' ] && [ $_mga = 'yes' ]; then
_xmga=yes
+ else
+ _xmga=no
fi
fi
@@ -1420,8 +1411,12 @@ if [ $_mga = yes ]; then
else
_mga='#undef HAVE_MGA'
fi
+
if [ $_xmga = yes ]; then
_vosrc=$_vosrc' vo_xmga.c'
+ _xmga='#define HAVE_XMGA'
+else
+ _xmga='#undef HAVE_XMGA'
fi
if [ $_syncfb = yes ]; then
@@ -1610,6 +1605,7 @@ $_sdlbuggy
$_ggi
$_3dfx
$_mga
+$_xmga
$_syncfb
$_fbdev
$_svga