build-scripts/config.sub
changeset 2294 386ebf50dd91
parent 1361 19418e4422cb
child 3086 0102ed19c21a
child 4134 31c7c57af8a4
     1.1 --- a/build-scripts/config.sub	Tue Jan 01 15:26:11 2008 +0000
     1.2 +++ b/build-scripts/config.sub	Thu Jan 03 06:07:30 2008 +0000
     1.3 @@ -1,9 +1,10 @@
     1.4  #! /bin/sh
     1.5  # Configuration validation subroutine script.
     1.6  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     1.7 -#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
     1.8 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
     1.9 +#   Inc.
    1.10  
    1.11 -timestamp='2006-01-02'
    1.12 +timestamp='2007-12-05'
    1.13  
    1.14  # This file is (in principle) common to ALL GNU software.
    1.15  # The presence of a machine in this file suggests that SOME GNU software
    1.16 @@ -240,15 +241,16 @@
    1.17  	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
    1.18  	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
    1.19  	| am33_2.0 \
    1.20 -	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
    1.21 +	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
    1.22  	| bfin \
    1.23  	| c4x | clipper \
    1.24  	| d10v | d30v | dlx | dsp16xx \
    1.25 -	| fr30 | frv \
    1.26 +	| fido | fr30 | frv \
    1.27  	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    1.28  	| i370 | i860 | i960 | ia64 \
    1.29  	| ip2k | iq2000 \
    1.30 -	| m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
    1.31 +	| m32c | m32r | m32rle | m68000 | m68k | m88k \
    1.32 +	| maxq | mb | microblaze | mcore | mep \
    1.33  	| mips | mipsbe | mipseb | mipsel | mipsle \
    1.34  	| mips16 \
    1.35  	| mips64 | mips64el \
    1.36 @@ -268,26 +270,25 @@
    1.37  	| mn10200 | mn10300 \
    1.38  	| mt \
    1.39  	| msp430 \
    1.40 +	| nios | nios2 \
    1.41  	| ns16k | ns32k \
    1.42  	| or32 \
    1.43  	| pdp10 | pdp11 | pj | pjl \
    1.44  	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
    1.45  	| pyramid \
    1.46 -	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
    1.47 +	| score \
    1.48 +	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
    1.49  	| sh64 | sh64le \
    1.50 -	| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
    1.51 -	| sparcv8 | sparcv9 | sparcv9b \
    1.52 -	| strongarm \
    1.53 +	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
    1.54 +	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
    1.55 +	| spu | strongarm \
    1.56  	| tahoe | thumb | tic4x | tic80 | tron \
    1.57  	| v850 | v850e \
    1.58  	| we32k \
    1.59 -	| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
    1.60 +	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
    1.61  	| z8k)
    1.62  		basic_machine=$basic_machine-unknown
    1.63  		;;
    1.64 -	m32c)
    1.65 -		basic_machine=$basic_machine-unknown
    1.66 -		;;
    1.67  	m6811 | m68hc11 | m6812 | m68hc12)
    1.68  		# Motorola 68HC11/12.
    1.69  		basic_machine=$basic_machine-unknown
    1.70 @@ -317,18 +318,18 @@
    1.71  	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
    1.72  	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
    1.73  	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
    1.74 -	| avr-* \
    1.75 +	| avr-* | avr32-* \
    1.76  	| bfin-* | bs2000-* \
    1.77  	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
    1.78  	| clipper-* | craynv-* | cydra-* \
    1.79  	| d10v-* | d30v-* | dlx-* \
    1.80  	| elxsi-* \
    1.81 -	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
    1.82 +	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
    1.83  	| h8300-* | h8500-* \
    1.84  	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
    1.85  	| i*86-* | i860-* | i960-* | ia64-* \
    1.86  	| ip2k-* | iq2000-* \
    1.87 -	| m32r-* | m32rle-* \
    1.88 +	| m32c-* | m32r-* | m32rle-* \
    1.89  	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
    1.90  	| m88110-* | m88k-* | maxq-* | mcore-* \
    1.91  	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
    1.92 @@ -350,28 +351,31 @@
    1.93  	| mmix-* \
    1.94  	| mt-* \
    1.95  	| msp430-* \
    1.96 +	| nios-* | nios2-* \
    1.97  	| none-* | np1-* | ns16k-* | ns32k-* \
    1.98  	| orion-* \
    1.99  	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
   1.100  	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
   1.101  	| pyramid-* \
   1.102  	| romp-* | rs6000-* \
   1.103 -	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
   1.104 +	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
   1.105  	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
   1.106 -	| sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
   1.107 +	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
   1.108  	| sparclite-* \
   1.109 -	| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
   1.110 +	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
   1.111  	| tahoe-* | thumb-* \
   1.112  	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
   1.113  	| tron-* \
   1.114  	| v850-* | v850e-* | vax-* \
   1.115  	| we32k-* \
   1.116 -	| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
   1.117 -	| xstormy16-* | xtensa-* \
   1.118 +	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
   1.119 +	| xstormy16-* | xtensa*-* \
   1.120  	| ymp-* \
   1.121  	| z8k-*)
   1.122  		;;
   1.123 -	m32c-*)
   1.124 +	# Recognize the basic CPU types without company name, with glob match.
   1.125 +	xtensa*)
   1.126 +		basic_machine=$basic_machine-unknown
   1.127  		;;
   1.128  	# Recognize the various machine names and aliases which stand
   1.129  	# for a CPU type and a company and sometimes even an OS.
   1.130 @@ -443,6 +447,14 @@
   1.131  		basic_machine=ns32k-sequent
   1.132  		os=-dynix
   1.133  		;;
   1.134 +	blackfin)
   1.135 +		basic_machine=bfin-unknown
   1.136 +		os=-linux
   1.137 +		;;
   1.138 +	blackfin-*)
   1.139 +		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.140 +		os=-linux
   1.141 +		;;
   1.142  	c90)
   1.143  		basic_machine=c90-cray
   1.144  		os=-unicos
   1.145 @@ -475,8 +487,8 @@
   1.146  		basic_machine=craynv-cray
   1.147  		os=-unicosmp
   1.148  		;;
   1.149 -	cr16c)
   1.150 -		basic_machine=cr16c-unknown
   1.151 +	cr16)
   1.152 +		basic_machine=cr16-unknown
   1.153  		os=-elf
   1.154  		;;
   1.155  	crds | unos)
   1.156 @@ -668,6 +680,14 @@
   1.157  		basic_machine=m68k-isi
   1.158  		os=-sysv
   1.159  		;;
   1.160 +	m68knommu)
   1.161 +		basic_machine=m68k-unknown
   1.162 +		os=-linux
   1.163 +		;;
   1.164 +	m68knommu-*)
   1.165 +		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.166 +		os=-linux
   1.167 +		;;
   1.168  	m88k-omron*)
   1.169  		basic_machine=m88k-omron
   1.170  		;;
   1.171 @@ -683,6 +703,10 @@
   1.172  		basic_machine=i386-pc
   1.173  		os=-mingw32
   1.174  		;;
   1.175 +	mingw32ce)
   1.176 +		basic_machine=arm-unknown
   1.177 +		os=-mingw32ce
   1.178 +		;;
   1.179  	miniframe)
   1.180  		basic_machine=m68000-convergent
   1.181  		;;
   1.182 @@ -809,6 +833,14 @@
   1.183  		basic_machine=i860-intel
   1.184  		os=-osf
   1.185  		;;
   1.186 +	parisc)
   1.187 +		basic_machine=hppa-unknown
   1.188 +		os=-linux
   1.189 +		;;
   1.190 +	parisc-*)
   1.191 +		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.192 +		os=-linux
   1.193 +		;;
   1.194  	pbd)
   1.195  		basic_machine=sparc-tti
   1.196  		;;
   1.197 @@ -910,6 +942,10 @@
   1.198  	sb1el)
   1.199  		basic_machine=mipsisa64sb1el-unknown
   1.200  		;;
   1.201 +	sde)
   1.202 +		basic_machine=mipsisa32-sde
   1.203 +		os=-elf
   1.204 +		;;
   1.205  	sei)
   1.206  		basic_machine=mips-sei
   1.207  		os=-seiux
   1.208 @@ -921,6 +957,9 @@
   1.209  		basic_machine=sh-hitachi
   1.210  		os=-hms
   1.211  		;;
   1.212 +	sh5el)
   1.213 +		basic_machine=sh5le-unknown
   1.214 +		;;
   1.215  	sh64)
   1.216  		basic_machine=sh64-unknown
   1.217  		;;
   1.218 @@ -1126,7 +1165,7 @@
   1.219  	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
   1.220  		basic_machine=sh-unknown
   1.221  		;;
   1.222 -	sparc | sparcv8 | sparcv9 | sparcv9b)
   1.223 +	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
   1.224  		basic_machine=sparc-sun
   1.225  		;;
   1.226  	cydra)
   1.227 @@ -1215,7 +1254,7 @@
   1.228  	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
   1.229  	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
   1.230  	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
   1.231 -	      | -skyos* | -haiku* | -rdos*)
   1.232 +	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
   1.233  	# Remember, each alternative MUST END IN *, to match a version number.
   1.234  		;;
   1.235  	-qnx*)
   1.236 @@ -1367,6 +1406,12 @@
   1.237  # system, and we'll never get to this point.
   1.238  
   1.239  case $basic_machine in
   1.240 +        score-*)
   1.241 +		os=-elf
   1.242 +		;;
   1.243 +        spu-*)
   1.244 +		os=-elf
   1.245 +		;;
   1.246  	*-acorn)
   1.247  		os=-riscix1.2
   1.248  		;;
   1.249 @@ -1376,9 +1421,9 @@
   1.250  	arm*-semi)
   1.251  		os=-aout
   1.252  		;;
   1.253 -    c4x-* | tic4x-*)
   1.254 -        os=-coff
   1.255 -        ;;
   1.256 +        c4x-* | tic4x-*)
   1.257 +        	os=-coff
   1.258 +		;;
   1.259  	# This must come before the *-dec entry.
   1.260  	pdp10-*)
   1.261  		os=-tops20
   1.262 @@ -1404,6 +1449,9 @@
   1.263  	m68*-cisco)
   1.264  		os=-aout
   1.265  		;;
   1.266 +        mep-*)
   1.267 +		os=-elf
   1.268 +		;;
   1.269  	mips*-cisco)
   1.270  		os=-elf
   1.271  		;;