Mercurial > mplayer.hg
comparison configure @ 1012:f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
author | arpi_esp |
---|---|
date | Mon, 04 Jun 2001 20:12:41 +0000 |
parents | d1e70889094e |
children | 990047bcb1b8 |
comparison
equal
deleted
inserted
replaced
1011:d1e70889094e | 1012:f736cf67a5ab |
---|---|
178 _x11libdir=-L/usr/X11/lib | 178 _x11libdir=-L/usr/X11/lib |
179 fi | 179 fi |
180 fi | 180 fi |
181 | 181 |
182 _skip_cc_check=no | 182 _skip_cc_check=no |
183 _skip_as_check=no | |
183 _sdlconfig='sdl-config' | 184 _sdlconfig='sdl-config' |
184 | 185 |
185 for ac_option | 186 for ac_option |
186 do | 187 do |
187 case "$ac_option" in | 188 case "$ac_option" in |
188 --cc=*) | 189 --cc=*) |
189 _cc=`echo $ac_option | cut -d '=' -f 2` | 190 _cc=`echo $ac_option | cut -d '=' -f 2` |
190 ;; | 191 ;; |
191 --disable-gcc-checking) | 192 --disable-gcc-checking) |
192 _skip_cc_check=yes | 193 _skip_cc_check=yes |
194 ;; | |
195 --disable-as-checking) | |
196 _skip_as_check=yes | |
193 ;; | 197 ;; |
194 --with-x11libdir=*) | 198 --with-x11libdir=*) |
195 _x11libdir=-L`echo $ac_option | cut -d '=' -f 2` | 199 _x11libdir=-L`echo $ac_option | cut -d '=' -f 2` |
196 ;; | 200 ;; |
197 --enable-x11) | 201 --enable-x11) |
219 echo "$cc_version" | 223 echo "$cc_version" |
220 if ! test -z "$cc_verc_fail"; then | 224 if ! test -z "$cc_verc_fail"; then |
221 echo "Please downgrade(upgrade) gcc compiler to gcc-2.95.2+ or gcc-3.0+ version" | 225 echo "Please downgrade(upgrade) gcc compiler to gcc-2.95.2+ or gcc-3.0+ version" |
222 exit | 226 exit |
223 fi | 227 fi |
224 fi | 228 else |
225 if test "$_skip_cc_check" = "yes"; then | |
226 echo "YOU'VE SELECTED '--disable-gcc-checking'. PLEASE DON'T SEND US ANY BUGREPORTS!" | 229 echo "YOU'VE SELECTED '--disable-gcc-checking'. PLEASE DON'T SEND US ANY BUGREPORTS!" |
227 fi | 230 fi |
228 # --- | 231 # --- |
229 | 232 |
230 pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2` | 233 pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2` |
517 $_cc $TMPC -o $TMPO -lpng -lz&> /dev/null && _png=yes | 520 $_cc $TMPC -o $TMPO -lpng -lz&> /dev/null && _png=yes |
518 | 521 |
519 _binutils=no | 522 _binutils=no |
520 as libac3/downmix/downmix_i386.S -o $TMPO &> /dev/null && _binutils=yes | 523 as libac3/downmix/downmix_i386.S -o $TMPO &> /dev/null && _binutils=yes |
521 | 524 |
525 # echo binutils: $_binutils | |
526 | |
522 # ----------- Check X11 and related libs (GL, Xxf86vm, Xv, DGA) -------------- | 527 # ----------- Check X11 and related libs (GL, Xxf86vm, Xv, DGA) -------------- |
523 | 528 |
524 if [ $_x11 = auto ]; then | 529 if [ $_x11 = auto ]; then |
525 _x11=no | 530 _x11=no |
526 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext &> /dev/null && _x11=yes | 531 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext &> /dev/null && _x11=yes |
576 #include <sys/asoundlib.h> | 581 #include <sys/asoundlib.h> |
577 #include <soundcard.h> | 582 #include <soundcard.h> |
578 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==5)return 1; return 0; } | 583 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==5)return 1; return 0; } |
579 EOF | 584 EOF |
580 | 585 |
581 _alsaver='not found' | 586 _alsaver='notfound' |
582 $_cc -o $TMPO -lasound $TMPC &> /dev/null || _alsa=no | 587 $_cc -o $TMPO -lasound $TMPC &> /dev/null || _alsa=no |
588 | |
583 [ $_alsa == "yes" ] && $TMPO && { _alsaver='0.5.x'; } | 589 [ $_alsa == "yes" ] && $TMPO && { _alsaver='0.5.x'; } |
584 | 590 |
585 if [ $_alsaver == 'not found' ]; then | 591 if [ $_alsaver = 'notfound' ]; then |
586 cat > $TMPC << EOF | 592 cat > $TMPC << EOF |
587 #include <sys/asoundlib.h> | 593 #include <sys/asoundlib.h> |
588 #include <soundcard.h> | 594 #include <soundcard.h> |
589 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==9)return 1; return 0; } | 595 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==9)return 1; return 0; } |
590 EOF | 596 EOF |
591 | 597 |
592 _alsaver='not found' | 598 _alsaver='notfound' |
593 $_cc -o $TMPO -lasound $TMPC &> /dev/null || _alsa=no | 599 $_cc -o $TMPO -lasound $TMPC &> /dev/null || _alsa=no |
594 [ $_alsa == "yes" ] && $TMPO && { _alsaver='0.9.x'; } | 600 [ $_alsa == "yes" ] && $TMPO && { _alsaver='0.9.x'; } |
595 fi | 601 fi |
596 | 602 |
597 # --- | 603 # --- |
764 ;; | 770 ;; |
765 --disable-gui) | 771 --disable-gui) |
766 _gui=no | 772 _gui=no |
767 ;; | 773 ;; |
768 --disable-alsa) | 774 --disable-alsa) |
769 _alsaver='not found' | 775 _alsaver='notfound' |
770 _alsa=no | 776 _alsa=no |
771 ;; | 777 ;; |
772 --with-win32libdir=*) | 778 --with-win32libdir=*) |
773 _win32libdir=`echo $ac_option | cut -d '=' -f 2` | 779 _win32libdir=`echo $ac_option | cut -d '=' -f 2` |
774 _win32libdirnotify=no | 780 _win32libdirnotify=no |
797 esac | 803 esac |
798 done | 804 done |
799 | 805 |
800 # Checking as compatibility... | 806 # Checking as compatibility... |
801 echo -n "Checking assembler (as) ... " | 807 echo -n "Checking assembler (as) ... " |
802 cat > astest.S <<EOF | 808 |
803 filds -2(%ebp) | 809 ### this test disabled, see _binutils test above! --A'rpi |
804 EOF | 810 # cat > astest.S <<EOF |
805 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | 811 # filds -2(%ebp) |
812 # EOF | |
813 # as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | |
814 | |
806 if [ $_mmx = 'yes' ]; then | 815 if [ $_mmx = 'yes' ]; then |
807 cat > astest.S <<EOF | 816 cat > astest.S <<EOF |
808 emms | 817 emms |
809 EOF | 818 EOF |
810 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | 819 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes |
811 fi | 820 fi |
821 | |
812 if [ $_3dnow = 'yes' ]; then | 822 if [ $_3dnow = 'yes' ]; then |
813 cat >> astest.S <<EOF | 823 cat >> astest.S <<EOF |
814 femms | 824 femms |
815 EOF | 825 EOF |
816 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | 826 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes |
817 fi | 827 fi |
828 | |
818 if [ $_3dnowex = 'yes' ]; then | 829 if [ $_3dnowex = 'yes' ]; then |
819 cat >> astest.S <<EOF | 830 cat >> astest.S <<EOF |
820 pswapd %mm0, %mm0 | 831 pswapd %mm0, %mm0 |
821 EOF | 832 EOF |
822 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | 833 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes |
823 fi | 834 fi |
835 | |
824 if [ $_mmx2 = 'yes' ]; then | 836 if [ $_mmx2 = 'yes' ]; then |
825 cat >> astest.S <<EOF | 837 cat >> astest.S <<EOF |
826 movntq %mm0, (%eax) | 838 movntq %mm0, (%eax) |
827 EOF | 839 EOF |
828 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | 840 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes |
829 fi | 841 fi |
842 | |
830 if [ $_sse = 'yes' ]; then | 843 if [ $_sse = 'yes' ]; then |
831 cat >> astest.S <<EOF | 844 cat >> astest.S <<EOF |
832 xorps %xmm0, %xmm0 | 845 xorps %xmm0, %xmm0 |
833 EOF | 846 EOF |
834 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | 847 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes |
835 rm -f astest.S astest.o | 848 rm -f astest.S astest.o |
836 fi | 849 fi |
850 | |
837 if test "$as_verc_fail" != "yes"; then | 851 if test "$as_verc_fail" != "yes"; then |
838 echo "ok" | 852 echo "ok" |
839 else | 853 else |
840 echo "failed" | 854 echo "failed" |
841 echo "Please upgrade binutils..." # to which version? - Atmos | 855 echo "Please upgrade binutils..." # to which version? - Atmos |
1163 _gui='#define HAVE_GUI' | 1177 _gui='#define HAVE_GUI' |
1164 else | 1178 else |
1165 _gui='#undef HAVE_GUI' | 1179 _gui='#undef HAVE_GUI' |
1166 fi | 1180 fi |
1167 | 1181 |
1168 if [ "$_alsaver" != "not found" ]; then | 1182 if [ "$_alsaver" != "notfound" ]; then |
1169 [ $_alsaver == '0.5.x' ] && { _aosrc="$_aosrc ao_alsa5.c"; $_alsa='#define HAVE_ALSA5'; } | 1183 [ $_alsaver == '0.5.x' ] && { _aosrc="$_aosrc ao_alsa5.c"; $_alsa='#define HAVE_ALSA5'; } |
1170 # [ $_alsaver == '0.9.x' ] && { _aosrc="$_aosrc ao_alsa9.c"; } | 1184 # [ $_alsaver == '0.9.x' ] && { _aosrc="$_aosrc ao_alsa9.c"; } |
1171 else | 1185 else |
1172 _alsa=' ' | 1186 _alsa=' ' |
1173 fi | 1187 fi |
1343 _downmixc='downmix/downmix.c' | 1357 _downmixc='downmix/downmix.c' |
1344 _downmixo='downmix/downmix.o' | 1358 _downmixo='downmix/downmix.o' |
1345 cat << EOF | 1359 cat << EOF |
1346 | 1360 |
1347 !!! Warning! fallback to slow downmix.c due the old binutils. | 1361 !!! Warning! fallback to slow downmix.c due the old binutils. |
1348 !!! Upgrade for better audio decoding performance. | 1362 !!! Upgrade it for better AC3 audio decoding performance! |
1349 | 1363 |
1350 EOF | 1364 EOF |
1351 fi | 1365 fi |
1352 fi | 1366 fi |
1353 fi | 1367 fi |