config.sub
changeset 16 3f4734b3c97e
parent 2 e273b0e38b8b
child 112 18ef1756e699
     1.1 --- a/config.sub	Mon Dec 18 10:47:12 2000 +0000
     1.2 +++ b/config.sub	Wed Jan 17 17:17:51 2001 +0000
     1.3 @@ -1,9 +1,9 @@
     1.4  #! /bin/sh
     1.5 -# Configuration validation subroutine script, version 1.1.
     1.6 -#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
     1.7 +# Configuration validation subroutine script.
     1.8 +#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     1.9  #   Free Software Foundation, Inc.
    1.10  
    1.11 -version='2000-07-27'
    1.12 +timestamp='2001-01-12'
    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 @@ -60,16 +60,30 @@
    1.17  Canonicalize a configuration name.
    1.18  
    1.19  Operation modes:
    1.20 -  -h, --help               print this help, then exit
    1.21 -  -V, --version            print version number, then exit"
    1.22 +  -h, --help         print this help, then exit
    1.23 +  -t, --time-stamp   print date of last modification, then exit
    1.24 +  -v, --version      print version number, then exit
    1.25 +
    1.26 +Report bugs and patches to <config-patches@gnu.org>."
    1.27 +
    1.28 +version="\
    1.29 +GNU config.sub ($timestamp)
    1.30 +
    1.31 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    1.32 +Free Software Foundation, Inc.
    1.33 +
    1.34 +This is free software; see the source for copying conditions.  There is NO
    1.35 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    1.36  
    1.37  help="
    1.38  Try \`$me --help' for more information."
    1.39  
    1.40  # Parse command line
    1.41  while test $# -gt 0 ; do
    1.42 -  case "$1" in
    1.43 -    --version | --vers* | -V )
    1.44 +  case $1 in
    1.45 +    --time-stamp | --time* | -t )
    1.46 +       echo "$timestamp" ; exit 0 ;;
    1.47 +    --version | -v )
    1.48         echo "$version" ; exit 0 ;;
    1.49      --help | --h* | -h )
    1.50         echo "$usage"; exit 0 ;;
    1.51 @@ -78,9 +92,7 @@
    1.52      - )	# Use stdin as input.
    1.53         break ;;
    1.54      -* )
    1.55 -       exec >&2
    1.56 -       echo "$me: invalid option $1"
    1.57 -       echo "$help"
    1.58 +       echo "$me: invalid option $1$help"
    1.59         exit 1 ;;
    1.60  
    1.61      *local*)
    1.62 @@ -105,7 +117,7 @@
    1.63  # Here we must recognize all the valid KERNEL-OS combinations.
    1.64  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    1.65  case $maybe_os in
    1.66 -  nto-qnx* | linux-gnu*)
    1.67 +  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*)
    1.68      os=-$maybe_os
    1.69      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    1.70      ;;
    1.71 @@ -203,22 +215,24 @@
    1.72  case $basic_machine in
    1.73  	# Recognize the basic CPU types without company name.
    1.74  	# Some are omitted here because they have special meanings below.
    1.75 -	tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
    1.76 -		| arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
    1.77 +	tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
    1.78 +	        | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
    1.79 +		| pyramid | mn10200 | mn10300 | tron | a29k \
    1.80  		| 580 | i960 | h8300 \
    1.81 -		| x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \
    1.82 +		| x86 | ppcbe | mipsbe | mipsle | shbe | shle \
    1.83  		| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
    1.84  		| hppa64 \
    1.85  		| alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
    1.86  		| alphaev6[78] \
    1.87  		| we32k | ns16k | clipper | i370 | sh | sh[34] \
    1.88  		| powerpc | powerpcle \
    1.89 -		| 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
    1.90 +		| 1750a | dsp16xx | pdp10 | pdp11 \
    1.91 +		| mips16 | mips64 | mipsel | mips64el \
    1.92  		| mips64orion | mips64orionel | mipstx39 | mipstx39el \
    1.93  		| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
    1.94  		| mips64vr5000 | miprs64vr5000el | mcore \
    1.95  		| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
    1.96 -		| thumb | d10v | d30v | fr30 | avr)
    1.97 +		| thumb | d10v | d30v | fr30 | avr | openrisc)
    1.98  		basic_machine=$basic_machine-unknown
    1.99  		;;
   1.100  	m6811 | m68hc11 | m6812 | m68hc12)
   1.101 @@ -232,7 +246,7 @@
   1.102  	# We use `pc' rather than `unknown'
   1.103  	# because (1) that's what they normally are, and
   1.104  	# (2) the word "unknown" tends to confuse beginning users.
   1.105 -	i[234567]86)
   1.106 +	i[234567]86 | x86_64)
   1.107  	  basic_machine=$basic_machine-pc
   1.108  	  ;;
   1.109  	# Object if more than one company name word.
   1.110 @@ -243,26 +257,27 @@
   1.111  	# Recognize the basic CPU types with company name.
   1.112  	# FIXME: clean up the formatting here.
   1.113  	vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
   1.114 -	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
   1.115 +	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
   1.116 +	      | arm-*  | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
   1.117  	      | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
   1.118  	      | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
   1.119  	      | xmp-* | ymp-* \
   1.120 -	      | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \
   1.121 +	      | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
   1.122  	      | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
   1.123  	      | hppa2.0n-* | hppa64-* \
   1.124  	      | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
   1.125  	      | alphaev6[78]-* \
   1.126  	      | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
   1.127  	      | clipper-* | orion-* \
   1.128 -	      | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
   1.129 +	      | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
   1.130  	      | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
   1.131  	      | mips64el-* | mips64orion-* | mips64orionel-* \
   1.132  	      | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
   1.133  	      | mipstx39-* | mipstx39el-* | mcore-* \
   1.134 -	      | f301-* | armv*-* | s390-* | sv1-* | t3e-* \
   1.135 +	      | f30[01]-* | f700-* | s390-* | sv1-* | t3e-* \
   1.136  	      | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
   1.137  	      | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
   1.138 -	      | bs2000-* | tic54x-* | c54x-*)
   1.139 +	      | bs2000-* | tic54x-* | c54x-* | x86_64-*)
   1.140  		;;
   1.141  	# Recognize the various machine names and aliases which stand
   1.142  	# for a CPU type and a company and sometimes even an OS.
   1.143 @@ -517,6 +532,10 @@
   1.144  		basic_machine=i386-unknown
   1.145  		os=-mingw32
   1.146  		;;
   1.147 +	i[34567]86-pw32 | pw32)
   1.148 +		basic_machine=i586-unknown
   1.149 +		os=-pw32
   1.150 +		;;
   1.151  	iris | iris4d)
   1.152  		basic_machine=mips-sgi
   1.153  		case $os in
   1.154 @@ -636,6 +655,10 @@
   1.155  		basic_machine=i960-intel
   1.156  		os=-mon960
   1.157  		;;
   1.158 +	nonstopux)
   1.159 +		basic_machine=mips-compaq
   1.160 +		os=-nonstopux
   1.161 +		;;
   1.162  	np1)
   1.163  		basic_machine=np1-gould
   1.164  		;;
   1.165 @@ -671,28 +694,28 @@
   1.166          pc532 | pc532-*)
   1.167  		basic_machine=ns32k-pc532
   1.168  		;;
   1.169 -	pentium | p5 | k5 | k6 | nexen)
   1.170 +	pentium | p5 | k5 | k6 | nexgen)
   1.171  		basic_machine=i586-pc
   1.172  		;;
   1.173  	pentiumpro | p6 | 6x86 | athlon)
   1.174  		basic_machine=i686-pc
   1.175  		;;
   1.176  	pentiumii | pentium2)
   1.177 -		basic_machine=i786-pc
   1.178 +		basic_machine=i686-pc
   1.179  		;;
   1.180 -	pentium-* | p5-* | k5-* | k6-* | nexen-*)
   1.181 +	pentium-* | p5-* | k5-* | k6-* | nexgen-*)
   1.182  		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.183  		;;
   1.184  	pentiumpro-* | p6-* | 6x86-* | athlon-*)
   1.185  		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.186  		;;
   1.187  	pentiumii-* | pentium2-*)
   1.188 -		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.189 +		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.190  		;;
   1.191  	pn)
   1.192  		basic_machine=pn-gould
   1.193  		;;
   1.194 -	power)	basic_machine=rs6000-ibm
   1.195 +	power)	basic_machine=power-ibm
   1.196  		;;
   1.197  	ppc)	basic_machine=powerpc-unknown
   1.198  	        ;;
   1.199 @@ -897,6 +920,10 @@
   1.200  	vax)
   1.201  		basic_machine=vax-dec
   1.202  		;;
   1.203 +	pdp10)
   1.204 +		# there are many clones, so DEC is not a safe bet
   1.205 +		basic_machine=pdp10-unknown
   1.206 +		;;
   1.207  	pdp11)
   1.208  		basic_machine=pdp11-dec
   1.209  		;;
   1.210 @@ -904,7 +931,7 @@
   1.211  		basic_machine=we32k-att
   1.212  		;;
   1.213  	sh3 | sh4)
   1.214 -		base_machine=sh-unknown
   1.215 +		basic_machine=sh-unknown
   1.216  		;;
   1.217  	sparc | sparcv9)
   1.218  		basic_machine=sparc-sun
   1.219 @@ -987,7 +1014,8 @@
   1.220  	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
   1.221  	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
   1.222  	      | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
   1.223 -	      | -openstep* | -oskit*)
   1.224 +	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
   1.225 +	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
   1.226  	# Remember, each alternative MUST END IN *, to match a version number.
   1.227  		;;
   1.228  	-qnx*)
   1.229 @@ -1048,7 +1076,7 @@
   1.230  	-ns2 )
   1.231  	        os=-nextstep2
   1.232  		;;
   1.233 -	-nsk)
   1.234 +	-nsk*)
   1.235  		os=-nsk
   1.236  		;;
   1.237  	# Preserve the version number of sinix5.
   1.238 @@ -1085,7 +1113,7 @@
   1.239  	-xenix)
   1.240  		os=-xenix
   1.241  		;;
   1.242 -        -*mint | -*MiNT)
   1.243 +        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
   1.244  	        os=-mint
   1.245  		;;
   1.246  	-none)
   1.247 @@ -1119,6 +1147,9 @@
   1.248  	arm*-semi)
   1.249  		os=-aout
   1.250  		;;
   1.251 +	pdp10-*)
   1.252 +		os=-tops20
   1.253 +		;;
   1.254          pdp11-*)
   1.255  		os=-none
   1.256  		;;
   1.257 @@ -1227,7 +1258,7 @@
   1.258  	*-masscomp)
   1.259  		os=-rtu
   1.260  		;;
   1.261 -	f301-fujitsu)
   1.262 +	f30[01]-fujitsu | f700-fujitsu)
   1.263  		os=-uxpv
   1.264  		;;
   1.265  	*-rom68k)
   1.266 @@ -1305,7 +1336,7 @@
   1.267  			-mpw* | -macos*)
   1.268  				vendor=apple
   1.269  				;;
   1.270 -			-*mint | -*MiNT)
   1.271 +			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
   1.272  				vendor=atari
   1.273  				;;
   1.274  		esac
   1.275 @@ -1318,7 +1349,7 @@
   1.276  
   1.277  # Local variables:
   1.278  # eval: (add-hook 'write-file-hooks 'time-stamp)
   1.279 -# time-stamp-start: "version='"
   1.280 +# time-stamp-start: "timestamp='"
   1.281  # time-stamp-format: "%:y-%02m-%02d"
   1.282  # time-stamp-end: "'"
   1.283  # End: