comparison configure @ 734:bab1d9b1056a

K7 3dnow-dsp detection
author nickols_k
date Wed, 09 May 2001 07:54:56 +0000
parents e14114170e01
children cd1f0d4de0b8
comparison
equal deleted inserted replaced
733:97a4bb050fae 734:bab1d9b1056a
79 --enable-debug[=1-3] compile debugging information into mplayer [disable] 79 --enable-debug[=1-3] compile debugging information into mplayer [disable]
80 --enable-profile compile profiling information into mplayer [disable] 80 --enable-profile compile profiling information into mplayer [disable]
81 --enable-mmx build with mmx support [autodetect] 81 --enable-mmx build with mmx support [autodetect]
82 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect] 82 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect]
83 --enable-3dnow build with 3dnow! support [autodetect] 83 --enable-3dnow build with 3dnow! support [autodetect]
84 --enable-3dnowex build with 3dnow-dsp! support (K7) [autodetect]
84 --enable-sse build with sse support [autodetect] 85 --enable-sse build with sse support [autodetect]
85 --enable-gl build with OpenGL render support [autodetect] 86 --enable-gl build with OpenGL render support [autodetect]
86 --enable-dga build with DGA support [autodetect] 87 --enable-dga build with DGA support [autodetect]
87 --enable-svga build with SVGAlib support [autodetect] 88 --enable-svga build with SVGAlib support [autodetect]
88 --enable-sdl build with SDL render support [autodetect] 89 --enable-sdl build with SDL render support [autodetect]
194 pstepping=`cat /proc/cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2` 195 pstepping=`cat /proc/cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2`
195 196
196 _mmx=no 197 _mmx=no
197 _mmx2=no 198 _mmx2=no
198 _3dnow=no 199 _3dnow=no
200 _3dnowex=no
199 _mtrr=no 201 _mtrr=no
200 _sse=no 202 _sse=no
201 203
202 _mga=no 204 _mga=no
203 _gl=no 205 _gl=no
234 for i in `echo $pparam`; do 236 for i in `echo $pparam`; do
235 237
236 case "$i" in 238 case "$i" in
237 3dnow) 239 3dnow)
238 _3dnow=yes 240 _3dnow=yes
241 _mpg123=yes
242 ;;
243 3dnowext)
244 _3dnow=yes
245 _3dnowex=yes
239 _mpg123=yes 246 _mpg123=yes
240 ;; 247 ;;
241 mmx) 248 mmx)
242 _mmx=yes 249 _mmx=yes
243 ;; 250 ;;
529 _sse=yes 536 _sse=yes
530 ;; 537 ;;
531 --enable-3dnow) 538 --enable-3dnow)
532 _3dnow=yes 539 _3dnow=yes
533 ;; 540 ;;
541 --enable-3dnowex)
542 _3dnow=yes
543 _3dnowex=yes
544 ;;
534 --enable-mmx) 545 --enable-mmx)
535 _mmx=yes 546 _mmx=yes
536 ;; 547 ;;
537 --enable-mmx2) 548 --enable-mmx2)
538 _mmx2=yes 549 _mmx2=yes
603 --disable-sse) 614 --disable-sse)
604 _sse=no 615 _sse=no
605 ;; 616 ;;
606 --disable-3dnow) 617 --disable-3dnow)
607 _3dnow=no 618 _3dnow=no
619 _3dnowex=no
620 ;;
621 --disable-3dnowex)
622 _3dnowex=no
608 ;; 623 ;;
609 --disable-mmx) 624 --disable-mmx)
610 _mmx=no 625 _mmx=no
611 _mmx2=no 626 _mmx2=no
612 ;; 627 ;;
701 echo "Checking for cpu type ... $pname" 716 echo "Checking for cpu type ... $pname"
702 echo "Optimizing to ... $proc" 717 echo "Optimizing to ... $proc"
703 echo "Checking for mmx support ... $_mmx" 718 echo "Checking for mmx support ... $_mmx"
704 echo "Checking for mmx2 support ... $_mmx2" 719 echo "Checking for mmx2 support ... $_mmx2"
705 echo "Checking for 3dnow support ... $_3dnow" 720 echo "Checking for 3dnow support ... $_3dnow"
721 echo "Checking for 3dnowex support ... $_3dnowex"
706 echo "Checking for sse support ... $_sse" 722 echo "Checking for sse support ... $_sse"
707 echo "Checking for mtrr support ... $_mtrr" 723 echo "Checking for mtrr support ... $_mtrr"
708 echo "Screen size ... ${_x}x${_y}" 724 echo "Screen size ... ${_x}x${_y}"
709 echo "Checking for X11 libs ... $_x11libdir" 725 echo "Checking for X11 libs ... $_x11libdir"
710 echo "Checking mga_vid device ... $_mga" 726 echo "Checking mga_vid device ... $_mga"
868 _3dnowm='#define HAVE_3DNOW' 884 _3dnowm='#define HAVE_3DNOW'
869 else 885 else
870 _3dnowm='#undef HAVE_3DNOW' 886 _3dnowm='#undef HAVE_3DNOW'
871 fi 887 fi
872 888
889 if [ $_3dnowex = yes ]; then
890 _3dnowexm='#define HAVE_3DNOWEX'
891 else
892 _3dnowexm='#undef HAVE_3DNOWEX'
893 fi
894
873 if [ $_sse = yes ]; then 895 if [ $_sse = yes ]; then
874 _ssem='#define HAVE_SSE' 896 _ssem='#define HAVE_SSE'
875 else 897 else
876 _ssem='#undef HAVE_SSE' 898 _ssem='#undef HAVE_SSE'
877 fi 899 fi
1079 $_png 1101 $_png
1080 1102
1081 /* Extension defines */ 1103 /* Extension defines */
1082 $_mlib // available only on solaris 1104 $_mlib // available only on solaris
1083 $_3dnowm // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.) 1105 $_3dnowm // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.)
1106 $_3dnowexm // only define if you have 3DNOWEX (AMD Athlon, etc.)
1084 $_mmx // only define if you have MMX 1107 $_mmx // only define if you have MMX
1085 $_mmx2 // only define if you have MMX2 1108 $_mmx2 // only define if you have MMX2
1086 $_ssem // only define if you have SSE (Intel Pentium III or Celeron II) 1109 $_ssem // only define if you have SSE (Intel Pentium III or Celeron II)
1087 1110
1088 /* libvo options */ 1111 /* libvo options */
1152 1175
1153 EOF 1176 EOF
1154 1177
1155 echo "Creating mp3lib/config.mak" 1178 echo "Creating mp3lib/config.mak"
1156 1179
1180 if [ $_3dnowex = yes ]; then
1181 _3dnowobjectsrcs='dct36_k7.s dct64_k7.s decode_k7.s dct36_3dnow.s dct64_3dnow.s decode_3dnow.s'
1182 _3dnowobjectobjs='dct36_k7.o dct64_k7.o decode_k7.o dct36_3dnow.o dct64_3dnow.o decode_3dnow.o'
1183 else
1157 if [ $_3dnow = yes ]; then 1184 if [ $_3dnow = yes ]; then
1158 _3dnowobjectsrcs='dct36_3dnow.s dct64_3dnow.s decode_3dnow.s' 1185 _3dnowobjectsrcs='dct36_3dnow.s dct64_3dnow.s decode_3dnow.s'
1159 _3dnowobjectobjs='dct36_3dnow.o dct64_3dnow.o decode_3dnow.o' 1186 _3dnowobjectobjs='dct36_3dnow.o dct64_3dnow.o decode_3dnow.o'
1160 else 1187 else
1161 _3dnowobjectsrcs= 1188 _3dnowobjectsrcs=
1162 _3dnowobjectobjs= 1189 _3dnowobjectobjs=
1190 fi
1163 fi 1191 fi
1164 1192
1165 cat > mp3lib/config.mak << EOF 1193 cat > mp3lib/config.mak << EOF
1166 1194
1167 include ../config.mak 1195 include ../config.mak