comparison configure @ 1023:a30a74ae4e18

some more information during as checking
author nickols_k
date Tue, 05 Jun 2001 07:10:00 +0000
parents e8cc983945fe
children ee73458f8f69
comparison
equal deleted inserted replaced
1022:655441d69aaa 1023:a30a74ae4e18
212 _sdlconfig=`echo $ac_option | cut -d '=' -f 2` 212 _sdlconfig=`echo $ac_option | cut -d '=' -f 2`
213 ;; 213 ;;
214 esac 214 esac
215 done 215 done
216 216
217 # Checking CC version... what's with egcs, pgcc? - Atmos 217 # Checking CC version...
218 # Q: what's with egcs, pgcc? - Atmos
219 # A: same as with agcc! These compilers always were introduced as experimental
220 # ones. Now gcc-3.0 should introduce all features of these compilers.
221 # Since 3.0 is almost released we don't need to support them. - Nick 07 jun 2001
218 if test "$_skip_cc_check" != "yes"; then 222 if test "$_skip_cc_check" != "yes"; then
219 echo -n "Checking version of $_cc ... " 223 echo -n "Checking version of $_cc ... "
220 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'` 224 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'`
221 case $cc_version in 225 case $cc_version in
222 '') cc_version="v. ?.??, bad"; cc_verc_fail=yes;; 226 '') cc_version="v. ?.??, bad"; cc_verc_fail=yes;;
810 --cc=*) 814 --cc=*)
811 ;; 815 ;;
812 esac 816 esac
813 done 817 done
814 818
815 # Checking as compatibility... 819 # Checking assembler (as) compatibility...
816 echo -n "Checking assembler (as) ... " 820 #as_version=`as --version 2>&1 | sed -n 's/^.*assembler \([aegcygnustp-]*[0-9.]*\).*$/\1/p'`
817 821 as_version=`as --version 2>&1 | sed -n 's/^.*assembler \([0-9.]*\).*$/\1/p'`
822 echo -n "Checking assembler (as) ... $as_version, "
823 _pref_as_version='2.9.1'
818 ### this test disabled, see _binutils test above! --A'rpi 824 ### this test disabled, see _binutils test above! --A'rpi
819 # cat > astest.S <<EOF 825 # cat > astest.S <<EOF
820 # filds -2(%ebp) 826 # filds -2(%ebp)
821 # EOF 827 # EOF
822 # as astest.S -o astest.o &> /dev/null || as_verc_fail=yes 828 # as astest.S -o astest.o &> /dev/null || as_verc_fail=yes
823 829
824 if [ $_mmx = 'yes' ]; then 830 if [ $_mmx = 'yes' ]; then
825 cat > $TMPS <<EOF 831 cat > $TMPS <<EOF
826 emms 832 emms
827 EOF 833 EOF
828 as $TMPS -o $TMPO &> /dev/null || as_verc_fail=yes
829 fi 834 fi
830 835
831 if [ $_3dnow = 'yes' ]; then 836 if [ $_3dnow = 'yes' ]; then
837 _pref_as_version='2.10.1'
832 cat >> $TMPS <<EOF 838 cat >> $TMPS <<EOF
833 femms 839 femms
834 EOF 840 EOF
835 as $TMPS -o $TMPO &> /dev/null || as_verc_fail=yes
836 fi 841 fi
837 842
838 if [ $_3dnowex = 'yes' ]; then 843 if [ $_3dnowex = 'yes' ]; then
844 _pref_as_version='2.10.1'
839 cat >> $TMPS <<EOF 845 cat >> $TMPS <<EOF
840 pswapd %mm0, %mm0 846 pswapd %mm0, %mm0
841 EOF 847 EOF
842 as $TMPS -o $TMPO &> /dev/null || as_verc_fail=yes
843 fi 848 fi
844 849
845 if [ $_mmx2 = 'yes' ]; then 850 if [ $_mmx2 = 'yes' ]; then
851 _pref_as_version='2.10.1'
846 cat >> $TMPS <<EOF 852 cat >> $TMPS <<EOF
847 movntq %mm0, (%eax) 853 movntq %mm0, (%eax)
848 EOF 854 EOF
849 as $TMPS -o $TMPO &> /dev/null || as_verc_fail=yes
850 fi 855 fi
851 856
852 if [ $_sse = 'yes' ]; then 857 if [ $_sse = 'yes' ]; then
858 _pref_as_version='2.10.1'
853 cat >> $TMPS <<EOF 859 cat >> $TMPS <<EOF
854 xorps %xmm0, %xmm0 860 xorps %xmm0, %xmm0
855 EOF 861 EOF
862 fi
863 # Note: for SSE2 assembler v2.11 should be preferred --Nick
864 #if [ $_sse2 = 'yes' ]; then
865 #_pref_as_version='2.11'
866 #cat >> $TMPS <<EOF
867 #xorpd %xmm0, %xmm0
868 #EOF
869 #fi
856 as $TMPS -o $TMPO &> /dev/null || as_verc_fail=yes 870 as $TMPS -o $TMPO &> /dev/null || as_verc_fail=yes
857 fi 871 rm -f $TMPS $TMPO $TMPC
858 872
859 if test "$as_verc_fail" != "yes"; then 873 if test "$as_verc_fail" != "yes"; then
860 echo "ok" 874 echo "ok"
861 else 875 else
862 echo "failed" 876 echo "failed"
863 echo "Please upgrade binutils..." # to which version? - Atmos 877 echo "Please upgrade(downgrade) binutils to "$_pref_as_version"..."
864 rm -f $TMPS $TMPO $TMPC
865 exit 878 exit
866 fi 879 fi
867 880
868 881
869 if [ $_x11 = 'yes' ]; then 882 if [ $_x11 = 'yes' ]; then