comparison configure @ 987:9ad2313db4bf

Hard checking versions of gcc and as
author nickols_k
date Mon, 04 Jun 2001 08:07:57 +0000
parents f8bc0e5eae0d
children c6f88600d409
comparison
equal deleted inserted replaced
986:fadb8eeff7a8 987:9ad2313db4bf
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 #
9 # 2001/06/04 by Nick Kurshev
10 # - added hard checking of gcc and soft of assembler
8 # 11 #
9 # 2001/05/40 by LGB 12 # 2001/05/40 by LGB
10 # - added --prefix support 13 # - added --prefix support
11 # 14 #
12 # 2001/05/22 by Nick Kurshev 15 # 2001/05/22 by Nick Kurshev
186 _x11=no 189 _x11=no
187 ;; 190 ;;
188 esac 191 esac
189 done 192 done
190 193
194 # Checking CC version...
195 echo "checking version of $CC""... $_cc"
196 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'`
197 case $cc_version in
198 '') cc_version="v. ?.??, bad"; cc_verc_fail=yes;;
199 2.95.[2-9]|3.[0-9])
200 cc_version="$cc_version, ok";;
201 *) cc_version="$cc_version, bad"; cc_verc_fail=yes;;
202 esac
203 echo "$cc_version"
204 if ! test -z "$cc_verc_fail"; then
205 echo "Please downgrade(upgrade) gcc compiler to gcc-2.95.2+ or gcc-3.0+ version"
206 exit
207 fi
191 # --- 208 # ---
192 209
193 pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2` 210 pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2`
194 pparam=`cat /proc/cpuinfo | grep 'features' | cut -d ':' -f 2` 211 pparam=`cat /proc/cpuinfo | grep 'features' | cut -d ':' -f 2`
195 if [ -z "$pparam" ]; then 212 if [ -z "$pparam" ]; then
728 --cc=*) 745 --cc=*)
729 ;; 746 ;;
730 esac 747 esac
731 done 748 done
732 749
750 # Checking as compatibility...
751 if [ $_mmx = 'yes' ]; then
752 cat > astest.S <<EOF
753 emms
754 EOF
755 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes
756 fi
757 if [ $_3dnow = 'yes' ]; then
758 cat >> astest.S <<EOF
759 femms
760 EOF
761 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes
762 fi
763 if [ $_mmx2 = 'yes' ]; then
764 cat >> astest.S <<EOF
765 movntq %mm0, (%eax)
766 EOF
767 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes
768 fi
769 if [ $_sse = 'yes' ]; then
770 cat >> astest.S <<EOF
771 xorps %xmm0, %xmm0
772 EOF
773 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes
774 rm -f astest.S astest.o
775 fi
776 if test -z "$as_verc_fail"; then
777 echo "checking assembler...o'k"
778 fi
779 if ! test -z "$as_verc_fail"; then
780 echo "Please upgrade binutils..."
781 exit
782 fi
783
784
733 if [ $_x11 = 'yes' ]; then 785 if [ $_x11 = 'yes' ]; then
734 if [ $_mga = 'yes' ]; then 786 if [ $_mga = 'yes' ]; then
735 _xmga=yes 787 _xmga=yes
736 fi 788 fi
737 fi 789 fi
738 790
739 # to screen. 791 # to screen.
740 echo -n "Kernel: " 792 echo -n "Kernel: "
741 uname -a 793 uname -a
742 echo "Using C compiler: $_cc"
743 echo "Install prefix: $_prefix" 794 echo "Install prefix: $_prefix"
744 $_cc -v
745 as --version | head -n 1
746 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )" 795 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )"
747 echo "Checking for cpu type ... $pname" 796 echo "Checking for cpu type ... $pname"
748 echo "Optimizing to ... $proc" 797 echo "Optimizing to ... $proc"
749 echo "Checking for mmx support ... $_mmx" 798 echo "Checking for mmx support ... $_mmx"
750 echo "Checking for mmx2 support ... $_mmx2" 799 echo "Checking for mmx2 support ... $_mmx2"