comparison configure @ 2888:7be29f66db55

--target and some Intel checks fixed
author gabucino
date Wed, 14 Nov 2001 00:19:22 +0000
parents b5fde2e72aef
children 1db780ee8117
comparison
equal deleted inserted replaced
2887:bc648c6a464a 2888:7be29f66db55
3 # 3 #
4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz 4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz
5 # pontscho@makacs.poliod.hu 5 # pontscho@makacs.poliod.hu
6 # 6 #
7 # Changes in reversed order: 7 # Changes in reversed order:
8 # 2001/11/14 by Gabucino
9 # - dunno who made the --target option but now it even works
10 # - fixed some Intel arch test for --target
8 # 11 #
9 # 2001/10/26 by al3x 12 # 2001/10/26 by al3x
10 # - added detection of zlib (used by libmpdemux/demux_mov.c) 13 # - added detection of zlib (used by libmpdemux/demux_mov.c)
11 # 14 #
12 # 2001/10/22 by Jeroen Dobbelaere 15 # 2001/10/22 by Jeroen Dobbelaere
523 if test -z "$_as" ; then 526 if test -z "$_as" ; then
524 _as=as 527 _as=as
525 fi 528 fi
526 fi 529 fi
527 530
528 if test "$host_arch" = i386 ; then 531 if test "$host_arch" = i386 || test "$host_arch" = i486 || test "$host_arch" = i586 || test "$host_arch" = i686; then
529 if test -r /proc/cpuinfo ; then 532 if test -r /proc/cpuinfo ; then
530 # linux with /proc mounted, extract cpu information from it 533 # linux with /proc mounted, extract cpu information from it
531 _cpuinfo="cat /proc/cpuinfo" 534 _cpuinfo="cat /proc/cpuinfo"
532 elif test -r /compat/linux/proc/cpuinfo ; then 535 elif test -r /compat/linux/proc/cpuinfo ; then
533 # FreeBSD with linux emulation /proc mounted, 536 # FreeBSD with linux emulation /proc mounted,
696 cat > $TMPC << EOF 699 cat > $TMPC << EOF
697 int main( void ) { return 0; } 700 int main( void ) { return 0; }
698 EOF 701 EOF
699 702
700 case "$host_arch" in 703 case "$host_arch" in
701 i386) 704 i386|i486|i586|i686)
702 _arch="#define ARCH_X86 1" 705 _arch="#define ARCH_X86 1"
703 _target_arch="TARGET_ARCH_X86=yes" 706 _target_arch="TARGET_ARCH_X86=yes"
704 _words_endian="#undef WORDS_BIGENDIAN" 707 _words_endian="#undef WORDS_BIGENDIAN"
705 proc=pentium 708 proc=pentium
706 iproc=586 709 iproc=586
880 echo "It seems noone has ported MPlayer to your OS or CPU type yet." 883 echo "It seems noone has ported MPlayer to your OS or CPU type yet."
881 die "unsupported architecture $host_arch" 884 die "unsupported architecture $host_arch"
882 ;; 885 ;;
883 esac 886 esac
884 887
888 ##
889 ## Gabucino : --target takes effect here (hopefully...) by overwriting
890 ## autodetected mcpu/march parameters
891 ##
892
893 if test "$_target" ; then
894 _march="-march=$host_arch"
895 _mcpu="-mcpu=$host_arch"
896 proc="$_target" # a little cosmetic
897 fi
898
885 # --- 899 # ---
886 900
887 # Checking for localization ... 901 # Checking for localization ...
888 if test -z "$LINGUAS" ; then 902 if test -z "$LINGUAS" ; then
889 LINGUAS="en" 903 LINGUAS="en"
1616 ;; 1630 ;;
1617 --cc=*) 1631 --cc=*)
1618 ;; 1632 ;;
1619 --as=*) 1633 --as=*)
1620 ;; 1634 ;;
1635 --target=*)
1636 ;;
1621 *) 1637 *)
1622 echo "Unknown parameter: $ac_option" 1638 echo "Unknown parameter: $ac_option"
1623 ;; 1639 ;;
1624 esac 1640 esac
1625 done 1641 done
1766 fi 1782 fi
1767 1783
1768 # to screen. 1784 # to screen.
1769 echo "Install prefix: $_prefix" 1785 echo "Install prefix: $_prefix"
1770 echo "Data directory: $_datadir" 1786 echo "Data directory: $_datadir"
1771 if test "$host_arch" = i386 ; then 1787 if test "$host_arch" = i386 || test "$host_arch" = i486 || test "$host_arch" = i586 || test "$host_arch" = i686 ; then
1772 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )" 1788 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )"
1773 echo "Checking for cpu type ... $pname" 1789 echo "Checking for cpu type ... $pname"
1774 fi 1790 fi
1775 echo "Optimizing to ... $proc" 1791 echo "Optimizing to ... $proc"
1776 if test "$host_arch" = i386 ; then 1792 if test "$host_arch" = i386 || test "$host_arch" = i486 || test "$host_arch" = i586 || test "$host_arch" = i686 ; then
1777 echo "Checking for mmx support ... $_mmx" 1793 echo "Checking for mmx support ... $_mmx"
1778 echo "Checking for mmx2 support ... $_mmx2" 1794 echo "Checking for mmx2 support ... $_mmx2"
1779 echo "Checking for 3dnow support ... $_3dnow" 1795 echo "Checking for 3dnow support ... $_3dnow"
1780 echo "Checking for 3dnowex support ... $_3dnowex" 1796 echo "Checking for 3dnowex support ... $_3dnowex"
1781 echo "Checking for sse support ... $_sse" 1797 echo "Checking for sse support ... $_sse"
2886 2902
2887 Use --enable-sdl to force usage of libSDL. 2903 Use --enable-sdl to force usage of libSDL.
2888 EOF 2904 EOF
2889 fi 2905 fi
2890 2906
2891 if test "$host_arch" = "i386" ; then 2907 if test "$host_arch" = "i386" || test "$host_arch" = "i486" || test "$host_arch" = "i586" || test "$host_arch" = "i686" ; then
2892 if test "$_win32" = no ; then 2908 if test "$_win32" = no ; then
2893 if test "$_win32libdir" ; then 2909 if test "$_win32libdir" ; then
2894 cat <<EOF 2910 cat <<EOF
2895 Failed to find a WIN32 codecs dir at $_win32libdir! 2911 Failed to find a WIN32 codecs dir at $_win32libdir!
2896 Create it and copy the DLL files there! (You can get them from your windows 2912 Create it and copy the DLL files there! (You can get them from your windows