test/config.sub
changeset 51 fba28d77901f
parent 0 74212992fb08
child 53 25dfe480c75e
     1.1 --- a/test/config.sub	Thu Jun 07 15:04:04 2001 +0000
     1.2 +++ b/test/config.sub	Sun Jun 10 04:54:53 2001 +0000
     1.3 @@ -1,10 +1,6 @@
     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 -#   Free Software Foundation, Inc.
     1.8 -
     1.9 -version='2000-09-11'
    1.10 -
    1.11 +#   Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
    1.12  # This file is (in principle) common to ALL GNU software.
    1.13  # The presence of a machine in this file suggests that SOME GNU software
    1.14  # can handle that machine.  It does not imply ALL GNU software can.
    1.15 @@ -29,8 +25,6 @@
    1.16  # configuration script generated by Autoconf, you may include it under
    1.17  # the same distribution terms that you use for the rest of that program.
    1.18  
    1.19 -# Please send patches to <config-patches@gnu.org>.
    1.20 -#
    1.21  # Configuration subroutine to validate and canonicalize a configuration type.
    1.22  # Supply the specified configuration type as an argument.
    1.23  # If it is invalid, we print an error message on stderr and exit with code 1.
    1.24 @@ -51,61 +45,30 @@
    1.25  #	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
    1.26  # It is wrong to echo any other type of specification.
    1.27  
    1.28 -me=`echo "$0" | sed -e 's,.*/,,'`
    1.29 -
    1.30 -usage="\
    1.31 -Usage: $0 [OPTION] CPU-MFR-OPSYS
    1.32 -       $0 [OPTION] ALIAS
    1.33 -
    1.34 -Canonicalize a configuration name.
    1.35 -
    1.36 -Operation modes:
    1.37 -  -h, --help               print this help, then exit
    1.38 -  -V, --version            print version number, then exit"
    1.39 -
    1.40 -help="
    1.41 -Try \`$me --help' for more information."
    1.42 +if [ x$1 = x ]
    1.43 +then
    1.44 +	echo Configuration name missing. 1>&2
    1.45 +	echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
    1.46 +	echo "or     $0 ALIAS" 1>&2
    1.47 +	echo where ALIAS is a recognized configuration type. 1>&2
    1.48 +	exit 1
    1.49 +fi
    1.50  
    1.51 -# Parse command line
    1.52 -while test $# -gt 0 ; do
    1.53 -  case "$1" in
    1.54 -    --version | --vers* | -V )
    1.55 -       echo "$version" ; exit 0 ;;
    1.56 -    --help | --h* | -h )
    1.57 -       echo "$usage"; exit 0 ;;
    1.58 -    -- )     # Stop option processing
    1.59 -       shift; break ;;
    1.60 -    - )	# Use stdin as input.
    1.61 -       break ;;
    1.62 -    -* )
    1.63 -       exec >&2
    1.64 -       echo "$me: invalid option $1"
    1.65 -       echo "$help"
    1.66 -       exit 1 ;;
    1.67 -
    1.68 -    *local*)
    1.69 -       # First pass through any local machine types.
    1.70 -       echo $1
    1.71 -       exit 0;;
    1.72 -
    1.73 -    * )
    1.74 -       break ;;
    1.75 -  esac
    1.76 -done
    1.77 -
    1.78 -case $# in
    1.79 - 0) echo "$me: missing argument$help" >&2
    1.80 -    exit 1;;
    1.81 - 1) ;;
    1.82 - *) echo "$me: too many arguments$help" >&2
    1.83 -    exit 1;;
    1.84 +# First pass through any local machine types.
    1.85 +case $1 in
    1.86 +	*local*)
    1.87 +		echo $1
    1.88 +		exit 0
    1.89 +		;;
    1.90 +	*)
    1.91 +	;;
    1.92  esac
    1.93  
    1.94  # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
    1.95  # Here we must recognize all the valid KERNEL-OS combinations.
    1.96  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    1.97  case $maybe_os in
    1.98 -  nto-qnx* | linux-gnu*)
    1.99 +  linux-gnu*)
   1.100      os=-$maybe_os
   1.101      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
   1.102      ;;
   1.103 @@ -131,7 +94,7 @@
   1.104  	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
   1.105  	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
   1.106  	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
   1.107 -	-apple | -axis)
   1.108 +	-apple)
   1.109  		os=
   1.110  		basic_machine=$1
   1.111  		;;
   1.112 @@ -142,7 +105,7 @@
   1.113  	-scout)
   1.114  		;;
   1.115  	-wrs)
   1.116 -		os=-vxworks
   1.117 +		os=vxworks
   1.118  		basic_machine=$1
   1.119  		;;
   1.120  	-hiux*)
   1.121 @@ -193,46 +156,33 @@
   1.122  	-psos*)
   1.123  		os=-psos
   1.124  		;;
   1.125 -	-mint | -mint[0-9]*)
   1.126 -		basic_machine=m68k-atari
   1.127 -		os=-mint
   1.128 -		;;
   1.129  esac
   1.130  
   1.131  # Decode aliases for certain CPU-COMPANY combinations.
   1.132  case $basic_machine in
   1.133  	# Recognize the basic CPU types without company name.
   1.134  	# Some are omitted here because they have special meanings below.
   1.135 -	tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
   1.136 -		| arme[lb] | armv[2345] | armv[345][lb] | pyramid | mn10200 | mn10300 | tron | a29k \
   1.137 +	tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
   1.138 +		| arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
   1.139  		| 580 | i960 | h8300 \
   1.140 -		| x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \
   1.141  		| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
   1.142 -		| hppa64 \
   1.143 -		| alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
   1.144 -		| alphaev6[78] \
   1.145 -		| we32k | ns16k | clipper | i370 | sh | sh[34] \
   1.146 -		| powerpc | powerpcle \
   1.147 +		| alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
   1.148 +		| we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
   1.149  		| 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
   1.150  		| mips64orion | mips64orionel | mipstx39 | mipstx39el \
   1.151  		| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
   1.152 -		| mips64vr5000 | miprs64vr5000el | mcore \
   1.153 -		| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
   1.154 -		| thumb | d10v | d30v | fr30 | avr)
   1.155 +		| mips64vr5000 | miprs64vr5000el \
   1.156 +		| armv[34][lb] | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
   1.157 +		| thumb | d10v)
   1.158  		basic_machine=$basic_machine-unknown
   1.159  		;;
   1.160 -	m6811 | m68hc11 | m6812 | m68hc12)
   1.161 -		# Motorola 68HC11/12.
   1.162 -		basic_machine=$basic_machine-unknown
   1.163 -		os=-none
   1.164 -		;;
   1.165 -	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
   1.166 +	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65)
   1.167  		;;
   1.168  
   1.169  	# We use `pc' rather than `unknown'
   1.170  	# because (1) that's what they normally are, and
   1.171  	# (2) the word "unknown" tends to confuse beginning users.
   1.172 -	i[234567]86 | x86_64)
   1.173 +	i[34567]86)
   1.174  	  basic_machine=$basic_machine-pc
   1.175  	  ;;
   1.176  	# Object if more than one company name word.
   1.177 @@ -241,28 +191,24 @@
   1.178  		exit 1
   1.179  		;;
   1.180  	# Recognize the basic CPU types with company name.
   1.181 -	# FIXME: clean up the formatting here.
   1.182 -	vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
   1.183 +	vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \
   1.184  	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
   1.185  	      | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
   1.186  	      | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
   1.187  	      | xmp-* | ymp-* \
   1.188 -	      | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \
   1.189 -	      | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
   1.190 -	      | hppa2.0n-* | hppa64-* \
   1.191 -	      | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
   1.192 -	      | alphaev6[78]-* \
   1.193 +	      | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
   1.194 +	      | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
   1.195  	      | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
   1.196  	      | clipper-* | orion-* \
   1.197  	      | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
   1.198  	      | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
   1.199  	      | mips64el-* | mips64orion-* | mips64orionel-* \
   1.200  	      | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
   1.201 -	      | mipstx39-* | mipstx39el-* | mcore-* \
   1.202 -	      | f301-* | armv*-* | s390-* | sv1-* | t3e-* \
   1.203 +	      | mipstx39-* | mipstx39el-* \
   1.204 +	      | armv[34][lb]-* \
   1.205 +	      | f301-* | armv*-* | t3e-* \
   1.206  	      | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
   1.207 -	      | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
   1.208 -	      | bs2000-* | tic54x-* | c54x-* | x86_64-*)
   1.209 +	      | thumb-* | v850-* | d30v-* | tic30-* | c30-* )
   1.210  		;;
   1.211  	# Recognize the various machine names and aliases which stand
   1.212  	# for a CPU type and a company and sometimes even an OS.
   1.213 @@ -299,14 +245,14 @@
   1.214  		os=-sysv
   1.215  		;;
   1.216  	amiga | amiga-*)
   1.217 -		basic_machine=m68k-unknown
   1.218 +		basic_machine=m68k-cbm
   1.219  		;;
   1.220  	amigaos | amigados)
   1.221 -		basic_machine=m68k-unknown
   1.222 +		basic_machine=m68k-cbm
   1.223  		os=-amigaos
   1.224  		;;
   1.225  	amigaunix | amix)
   1.226 -		basic_machine=m68k-unknown
   1.227 +		basic_machine=m68k-cbm
   1.228  		os=-sysv4
   1.229  		;;
   1.230  	apollo68)
   1.231 @@ -360,9 +306,6 @@
   1.232  	crds | unos)
   1.233  		basic_machine=m68k-crds
   1.234  		;;
   1.235 -	cris | cris-* | etrax*)
   1.236 -		basic_machine=cris-axis
   1.237 -		;;
   1.238  	da30 | da30-*)
   1.239  		basic_machine=m68k-da30
   1.240  		;;
   1.241 @@ -483,6 +426,7 @@
   1.242  		;;
   1.243  	i370-ibm* | ibm*)
   1.244  		basic_machine=i370-ibm
   1.245 +		os=-mvs
   1.246  		;;
   1.247  # I'm not sure what "Sysv32" means.  Should this be sysv3.2?
   1.248  	i[34567]86v32)
   1.249 @@ -517,10 +461,6 @@
   1.250  		basic_machine=i386-unknown
   1.251  		os=-mingw32
   1.252  		;;
   1.253 -	i[34567]86-pw32 | pw32)
   1.254 -		basic_machine=i586-unknown
   1.255 -		os=-pw32
   1.256 -		;;
   1.257  	iris | iris4d)
   1.258  		basic_machine=mips-sgi
   1.259  		case $os in
   1.260 @@ -549,7 +489,7 @@
   1.261  	miniframe)
   1.262  		basic_machine=m68000-convergent
   1.263  		;;
   1.264 -	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
   1.265 +	*mint | *MiNT)
   1.266  		basic_machine=m68k-atari
   1.267  		os=-mint
   1.268  		;;
   1.269 @@ -567,10 +507,6 @@
   1.270  	mips3*)
   1.271  		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
   1.272  		;;
   1.273 -	mmix*)
   1.274 -		basic_machine=mmix-knuth
   1.275 -		os=-mmixware
   1.276 -		;;
   1.277  	monitor)
   1.278  		basic_machine=m68k-rom68k
   1.279  		os=-coff
   1.280 @@ -579,10 +515,6 @@
   1.281  		basic_machine=i386-unknown
   1.282  		os=-msdos
   1.283  		;;
   1.284 -	mvs)
   1.285 -		basic_machine=i370-ibm
   1.286 -		os=-mvs
   1.287 -		;;
   1.288  	ncr3000)
   1.289  		basic_machine=i486-ncr
   1.290  		os=-sysv4
   1.291 @@ -592,7 +524,7 @@
   1.292  		os=-netbsd
   1.293  		;;
   1.294  	netwinder)
   1.295 -		basic_machine=armv4l-rebel
   1.296 +		basic_machine=armv4l-corel
   1.297  		os=-linux
   1.298  		;;
   1.299  	news | news700 | news800 | news900)
   1.300 @@ -643,9 +575,6 @@
   1.301  	np1)
   1.302  		basic_machine=np1-gould
   1.303  		;;
   1.304 -	nsr-tandem)
   1.305 -		basic_machine=nsr-tandem
   1.306 -		;;
   1.307  	op50n-* | op60c-*)
   1.308  		basic_machine=hppa1.1-oki
   1.309  		os=-proelf
   1.310 @@ -678,7 +607,7 @@
   1.311  	pentium | p5 | k5 | k6 | nexen)
   1.312  		basic_machine=i586-pc
   1.313  		;;
   1.314 -	pentiumpro | p6 | 6x86 | athlon)
   1.315 +	pentiumpro | p6 | 6x86)
   1.316  		basic_machine=i686-pc
   1.317  		;;
   1.318  	pentiumii | pentium2)
   1.319 @@ -687,7 +616,7 @@
   1.320  	pentium-* | p5-* | k5-* | k6-* | nexen-*)
   1.321  		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.322  		;;
   1.323 -	pentiumpro-* | p6-* | 6x86-* | athlon-*)
   1.324 +	pentiumpro-* | p6-* | 6x86-*)
   1.325  		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.326  		;;
   1.327  	pentiumii-* | pentium2-*)
   1.328 @@ -790,10 +719,6 @@
   1.329  	sun386 | sun386i | roadrunner)
   1.330  		basic_machine=i386-sun
   1.331  		;;
   1.332 -	sv1)
   1.333 -		basic_machine=sv1-cray
   1.334 -		os=-unicos
   1.335 -		;;
   1.336  	symmetry)
   1.337  		basic_machine=i386-sequent
   1.338  		os=-dynix
   1.339 @@ -802,10 +727,6 @@
   1.340  		basic_machine=t3e-cray
   1.341  		os=-unicos
   1.342  		;;
   1.343 -	tic54x | c54x*)
   1.344 -		basic_machine=tic54x-unknown
   1.345 -		os=-coff
   1.346 -		;;
   1.347  	tx39)
   1.348  		basic_machine=mipstx39-unknown
   1.349  		;;
   1.350 @@ -907,9 +828,6 @@
   1.351  	we32k)
   1.352  		basic_machine=we32k-att
   1.353  		;;
   1.354 -	sh3 | sh4)
   1.355 -		base_machine=sh-unknown
   1.356 -		;;
   1.357  	sparc | sparcv9)
   1.358  		basic_machine=sparc-sun
   1.359  		;;
   1.360 @@ -990,25 +908,12 @@
   1.361  	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
   1.362  	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
   1.363  	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
   1.364 -	      | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
   1.365 -	      | -openstep* | -oskit* | -conix* | -pw32*)
   1.366 +	      | -interix* | -uwin* | -rhapsody* | -openstep* | -oskit*)
   1.367  	# Remember, each alternative MUST END IN *, to match a version number.
   1.368  		;;
   1.369 -	-qnx*)
   1.370 -		case $basic_machine in
   1.371 -		    x86-* | i[34567]86-*)
   1.372 -			;;
   1.373 -		    *)
   1.374 -			os=-nto$os
   1.375 -			;;
   1.376 -		esac
   1.377 -		;;
   1.378 -	-nto*)
   1.379 -		os=-nto-qnx
   1.380 -		;;
   1.381  	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
   1.382  	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
   1.383 -	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
   1.384 +	      | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
   1.385  		;;
   1.386  	-mac*)
   1.387  		os=`echo $os | sed -e 's|mac|macos|'`
   1.388 @@ -1022,12 +927,6 @@
   1.389  	-sunos6*)
   1.390  		os=`echo $os | sed -e 's|sunos6|solaris3|'`
   1.391  		;;
   1.392 -	-opened*)
   1.393 -		os=-openedition
   1.394 -		;;
   1.395 -	-wince*)
   1.396 -		os=-wince
   1.397 -		;;
   1.398  	-osfrose*)
   1.399  		os=-osfrose
   1.400  		;;
   1.401 @@ -1052,9 +951,6 @@
   1.402  	-ns2 )
   1.403  	        os=-nextstep2
   1.404  		;;
   1.405 -	-nsk*)
   1.406 -		os=-nsk
   1.407 -		;;
   1.408  	# Preserve the version number of sinix5.
   1.409  	-sinix5.*)
   1.410  		os=`echo $os | sed -e 's|sinix|sysv|'`
   1.411 @@ -1117,7 +1013,7 @@
   1.412  	*-acorn)
   1.413  		os=-riscix1.2
   1.414  		;;
   1.415 -	arm*-rebel)
   1.416 +	arm*-corel)
   1.417  		os=-linux
   1.418  		;;
   1.419  	arm*-semi)
   1.420 @@ -1291,7 +1187,7 @@
   1.421  			-genix*)
   1.422  				vendor=ns
   1.423  				;;
   1.424 -			-mvs* | -opened*)
   1.425 +			-mvs*)
   1.426  				vendor=ibm
   1.427  				;;
   1.428  			-ptx*)
   1.429 @@ -1318,11 +1214,3 @@
   1.430  esac
   1.431  
   1.432  echo $basic_machine$os
   1.433 -exit 0
   1.434 -
   1.435 -# Local variables:
   1.436 -# eval: (add-hook 'write-file-hooks 'time-stamp)
   1.437 -# time-stamp-start: "version='"
   1.438 -# time-stamp-format: "%:y-%02m-%02d"
   1.439 -# time-stamp-end: "'"
   1.440 -# End: