ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/config.sub
(Generate patch)

Comparing rxvt-unicode/config.sub (file contents):
Revision 1.1 by ayin, Tue Jan 17 12:20:04 2006 UTC vs.
Revision 1.3 by sf-exg, Sun Jan 31 11:34:28 2010 UTC

1#! /bin/sh 1#! /bin/sh
2# Configuration validation subroutine script. 2# Configuration validation subroutine script.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5# Free Software Foundation, Inc.
5 6
6timestamp='2005-07-08' 7timestamp='2010-01-22'
7 8
8# This file is (in principle) common to ALL GNU software. 9# This file is (in principle) common to ALL GNU software.
9# The presence of a machine in this file suggests that SOME GNU software 10# The presence of a machine in this file suggests that SOME GNU software
10# can handle that machine. It does not imply ALL GNU software can. 11# can handle that machine. It does not imply ALL GNU software can.
11# 12#
29# configuration script generated by Autoconf, you may include it under 30# configuration script generated by Autoconf, you may include it under
30# the same distribution terms that you use for the rest of that program. 31# the same distribution terms that you use for the rest of that program.
31 32
32 33
33# Please send patches to <config-patches@gnu.org>. Submit a context 34# Please send patches to <config-patches@gnu.org>. Submit a context
34# diff and a properly formatted ChangeLog entry. 35# diff and a properly formatted GNU ChangeLog entry.
35# 36#
36# Configuration subroutine to validate and canonicalize a configuration type. 37# Configuration subroutine to validate and canonicalize a configuration type.
37# Supply the specified configuration type as an argument. 38# Supply the specified configuration type as an argument.
38# If it is invalid, we print an error message on stderr and exit with code 1. 39# If it is invalid, we print an error message on stderr and exit with code 1.
39# Otherwise, we print the canonical config type on stdout and succeed. 40# Otherwise, we print the canonical config type on stdout and succeed.
41
42# You can get the latest version of this script from:
43# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
40 44
41# This file is supposed to be the same for all GNU packages 45# This file is supposed to be the same for all GNU packages
42# and recognize all the CPU types, system types and aliases 46# and recognize all the CPU types, system types and aliases
43# that are meaningful with *any* GNU software. 47# that are meaningful with *any* GNU software.
44# Each package is responsible for reporting which valid configurations 48# Each package is responsible for reporting which valid configurations
69Report bugs and patches to <config-patches@gnu.org>." 73Report bugs and patches to <config-patches@gnu.org>."
70 74
71version="\ 75version="\
72GNU config.sub ($timestamp) 76GNU config.sub ($timestamp)
73 77
74Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 78Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
792001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
75Free Software Foundation, Inc. 80Software Foundation, Inc.
76 81
77This is free software; see the source for copying conditions. There is NO 82This is free software; see the source for copying conditions. There is NO
78warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 83warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
79 84
80help=" 85help="
117 122
118# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 123# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
119# Here we must recognize all the valid KERNEL-OS combinations. 124# Here we must recognize all the valid KERNEL-OS combinations.
120maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 125maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121case $maybe_os in 126case $maybe_os in
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 127 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 128 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
129 kopensolaris*-gnu* | \
130 storm-chaos* | os2-emx* | rtmk-nova*)
124 os=-$maybe_os 131 os=-$maybe_os
125 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 132 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
126 ;; 133 ;;
127 *) 134 *)
128 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 135 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
144 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 151 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
145 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 152 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
146 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 153 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
147 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 154 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
148 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 155 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
149 -apple | -axis | -knuth | -cray) 156 -apple | -axis | -knuth | -cray | -microblaze)
150 os= 157 os=
151 basic_machine=$1 158 basic_machine=$1
159 ;;
160 -bluegene*)
161 os=-cnk
152 ;; 162 ;;
153 -sim | -cisco | -oki | -wec | -winbond) 163 -sim | -cisco | -oki | -wec | -winbond)
154 os= 164 os=
155 basic_machine=$1 165 basic_machine=$1
156 ;; 166 ;;
169 basic_machine=$1 179 basic_machine=$1
170 ;; 180 ;;
171 -hiux*) 181 -hiux*)
172 os=-hiuxwe2 182 os=-hiuxwe2
173 ;; 183 ;;
184 -sco6)
185 os=-sco5v6
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187 ;;
174 -sco5) 188 -sco5)
175 os=-sco3.2v5 189 os=-sco3.2v5
176 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
177 ;; 191 ;;
178 -sco4) 192 -sco4)
182 -sco3.2.[4-9]*) 196 -sco3.2.[4-9]*)
183 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 197 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
184 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
185 ;; 199 ;;
186 -sco3.2v[4-9]*) 200 -sco3.2v[4-9]*)
201 # Don't forget version if it is 3.2v4 or newer.
202 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
203 ;;
204 -sco5v6*)
187 # Don't forget version if it is 3.2v4 or newer. 205 # Don't forget version if it is 3.2v4 or newer.
188 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 206 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
189 ;; 207 ;;
190 -sco*) 208 -sco*)
191 os=-sco3.2v2 209 os=-sco3.2v2
229 1750a | 580 \ 247 1750a | 580 \
230 | a29k \ 248 | a29k \
231 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 249 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
232 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 250 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
233 | am33_2.0 \ 251 | am33_2.0 \
234 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 252 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
235 | bfin \ 253 | bfin \
236 | c4x | clipper \ 254 | c4x | clipper \
237 | d10v | d30v | dlx | dsp16xx \ 255 | d10v | d30v | dlx | dsp16xx \
238 | fr30 | frv \ 256 | fido | fr30 | frv \
239 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 257 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
240 | i370 | i860 | i960 | ia64 \ 258 | i370 | i860 | i960 | ia64 \
241 | ip2k | iq2000 \ 259 | ip2k | iq2000 \
260 | lm32 \
242 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 261 | m32c | m32r | m32rle | m68000 | m68k | m88k \
262 | maxq | mb | microblaze | mcore | mep | metag \
243 | mips | mipsbe | mipseb | mipsel | mipsle \ 263 | mips | mipsbe | mipseb | mipsel | mipsle \
244 | mips16 \ 264 | mips16 \
245 | mips64 | mips64el \ 265 | mips64 | mips64el \
266 | mips64octeon | mips64octeonel \
267 | mips64orion | mips64orionel \
268 | mips64r5900 | mips64r5900el \
246 | mips64vr | mips64vrel \ 269 | mips64vr | mips64vrel \
247 | mips64orion | mips64orionel \
248 | mips64vr4100 | mips64vr4100el \ 270 | mips64vr4100 | mips64vr4100el \
249 | mips64vr4300 | mips64vr4300el \ 271 | mips64vr4300 | mips64vr4300el \
250 | mips64vr5000 | mips64vr5000el \ 272 | mips64vr5000 | mips64vr5000el \
251 | mips64vr5900 | mips64vr5900el \ 273 | mips64vr5900 | mips64vr5900el \
252 | mipsisa32 | mipsisa32el \ 274 | mipsisa32 | mipsisa32el \
255 | mipsisa64r2 | mipsisa64r2el \ 277 | mipsisa64r2 | mipsisa64r2el \
256 | mipsisa64sb1 | mipsisa64sb1el \ 278 | mipsisa64sb1 | mipsisa64sb1el \
257 | mipsisa64sr71k | mipsisa64sr71kel \ 279 | mipsisa64sr71k | mipsisa64sr71kel \
258 | mipstx39 | mipstx39el \ 280 | mipstx39 | mipstx39el \
259 | mn10200 | mn10300 \ 281 | mn10200 | mn10300 \
282 | moxie \
260 | ms1 \ 283 | mt \
261 | msp430 \ 284 | msp430 \
285 | nios | nios2 \
262 | ns16k | ns32k \ 286 | ns16k | ns32k \
263 | or32 \ 287 | or32 \
264 | pdp10 | pdp11 | pj | pjl \ 288 | pdp10 | pdp11 | pj | pjl \
265 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 289 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
266 | pyramid \ 290 | pyramid \
291 | rx \
292 | score \
267 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 293 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
268 | sh64 | sh64le \ 294 | sh64 | sh64le \
269 | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ 295 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
270 | sparcv8 | sparcv9 | sparcv9b \ 296 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
271 | strongarm \ 297 | spu | strongarm \
272 | tahoe | thumb | tic4x | tic80 | tron \ 298 | tahoe | thumb | tic4x | tic80 | tron \
299 | ubicom32 \
273 | v850 | v850e \ 300 | v850 | v850e \
274 | we32k \ 301 | we32k \
275 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 302 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
276 | z8k) 303 | z8k | z80)
277 basic_machine=$basic_machine-unknown 304 basic_machine=$basic_machine-unknown
278 ;; 305 ;;
279 m32c)
280 basic_machine=$basic_machine-unknown
281 ;;
282 m6811 | m68hc11 | m6812 | m68hc12) 306 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
283 # Motorola 68HC11/12. 307 # Motorola 68HC11/12.
284 basic_machine=$basic_machine-unknown 308 basic_machine=$basic_machine-unknown
285 os=-none 309 os=-none
286 ;; 310 ;;
287 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 311 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
312 ;;
313 ms1)
314 basic_machine=mt-unknown
288 ;; 315 ;;
289 316
290 # We use `pc' rather than `unknown' 317 # We use `pc' rather than `unknown'
291 # because (1) that's what they normally are, and 318 # because (1) that's what they normally are, and
292 # (2) the word "unknown" tends to confuse beginning users. 319 # (2) the word "unknown" tends to confuse beginning users.
303 | a29k-* \ 330 | a29k-* \
304 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 331 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
305 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 332 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
306 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 333 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
307 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 334 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
308 | avr-* \ 335 | avr-* | avr32-* \
309 | bfin-* | bs2000-* \ 336 | bfin-* | bs2000-* \
310 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 337 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
311 | clipper-* | craynv-* | cydra-* \ 338 | clipper-* | craynv-* | cydra-* \
312 | d10v-* | d30v-* | dlx-* \ 339 | d10v-* | d30v-* | dlx-* \
313 | elxsi-* \ 340 | elxsi-* \
314 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 341 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
315 | h8300-* | h8500-* \ 342 | h8300-* | h8500-* \
316 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 343 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
317 | i*86-* | i860-* | i960-* | ia64-* \ 344 | i*86-* | i860-* | i960-* | ia64-* \
318 | ip2k-* | iq2000-* \ 345 | ip2k-* | iq2000-* \
346 | lm32-* \
319 | m32r-* | m32rle-* \ 347 | m32c-* | m32r-* | m32rle-* \
320 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 348 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
321 | m88110-* | m88k-* | maxq-* | mcore-* \ 349 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
322 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 350 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
323 | mips16-* \ 351 | mips16-* \
324 | mips64-* | mips64el-* \ 352 | mips64-* | mips64el-* \
353 | mips64octeon-* | mips64octeonel-* \
354 | mips64orion-* | mips64orionel-* \
355 | mips64r5900-* | mips64r5900el-* \
325 | mips64vr-* | mips64vrel-* \ 356 | mips64vr-* | mips64vrel-* \
326 | mips64orion-* | mips64orionel-* \
327 | mips64vr4100-* | mips64vr4100el-* \ 357 | mips64vr4100-* | mips64vr4100el-* \
328 | mips64vr4300-* | mips64vr4300el-* \ 358 | mips64vr4300-* | mips64vr4300el-* \
329 | mips64vr5000-* | mips64vr5000el-* \ 359 | mips64vr5000-* | mips64vr5000el-* \
330 | mips64vr5900-* | mips64vr5900el-* \ 360 | mips64vr5900-* | mips64vr5900el-* \
331 | mipsisa32-* | mipsisa32el-* \ 361 | mipsisa32-* | mipsisa32el-* \
334 | mipsisa64r2-* | mipsisa64r2el-* \ 364 | mipsisa64r2-* | mipsisa64r2el-* \
335 | mipsisa64sb1-* | mipsisa64sb1el-* \ 365 | mipsisa64sb1-* | mipsisa64sb1el-* \
336 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 366 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
337 | mipstx39-* | mipstx39el-* \ 367 | mipstx39-* | mipstx39el-* \
338 | mmix-* \ 368 | mmix-* \
339 | ms1-* \ 369 | mt-* \
340 | msp430-* \ 370 | msp430-* \
371 | nios-* | nios2-* \
341 | none-* | np1-* | ns16k-* | ns32k-* \ 372 | none-* | np1-* | ns16k-* | ns32k-* \
342 | orion-* \ 373 | orion-* \
343 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 374 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
344 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 375 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
345 | pyramid-* \ 376 | pyramid-* \
346 | romp-* | rs6000-* \ 377 | romp-* | rs6000-* | rx-* \
347 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 378 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
348 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 379 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
349 | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ 380 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
350 | sparclite-* \ 381 | sparclite-* \
351 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 382 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
352 | tahoe-* | thumb-* \ 383 | tahoe-* | thumb-* \
353 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 384 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
385 | tile-* | tilegx-* \
354 | tron-* \ 386 | tron-* \
387 | ubicom32-* \
355 | v850-* | v850e-* | vax-* \ 388 | v850-* | v850e-* | vax-* \
356 | we32k-* \ 389 | we32k-* \
357 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ 390 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
358 | xstormy16-* | xtensa-* \ 391 | xstormy16-* | xtensa*-* \
359 | ymp-* \ 392 | ymp-* \
360 | z8k-*) 393 | z8k-* | z80-*)
361 ;; 394 ;;
362 m32c-*) 395 # Recognize the basic CPU types without company name, with glob match.
396 xtensa*)
397 basic_machine=$basic_machine-unknown
363 ;; 398 ;;
364 # Recognize the various machine names and aliases which stand 399 # Recognize the various machine names and aliases which stand
365 # for a CPU type and a company and sometimes even an OS. 400 # for a CPU type and a company and sometimes even an OS.
366 386bsd) 401 386bsd)
367 basic_machine=i386-unknown 402 basic_machine=i386-unknown
421 ;; 456 ;;
422 apollo68bsd) 457 apollo68bsd)
423 basic_machine=m68k-apollo 458 basic_machine=m68k-apollo
424 os=-bsd 459 os=-bsd
425 ;; 460 ;;
461 aros)
462 basic_machine=i386-pc
463 os=-aros
464 ;;
426 aux) 465 aux)
427 basic_machine=m68k-apple 466 basic_machine=m68k-apple
428 os=-aux 467 os=-aux
429 ;; 468 ;;
430 balance) 469 balance)
431 basic_machine=ns32k-sequent 470 basic_machine=ns32k-sequent
432 os=-dynix 471 os=-dynix
433 ;; 472 ;;
473 blackfin)
474 basic_machine=bfin-unknown
475 os=-linux
476 ;;
477 blackfin-*)
478 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
479 os=-linux
480 ;;
481 bluegene*)
482 basic_machine=powerpc-ibm
483 os=-cnk
484 ;;
434 c90) 485 c90)
435 basic_machine=c90-cray 486 basic_machine=c90-cray
436 os=-unicos 487 os=-unicos
437 ;; 488 ;;
489 cegcc)
490 basic_machine=arm-unknown
491 os=-cegcc
492 ;;
438 convex-c1) 493 convex-c1)
439 basic_machine=c1-convex 494 basic_machine=c1-convex
440 os=-bsd 495 os=-bsd
441 ;; 496 ;;
442 convex-c2) 497 convex-c2)
461 ;; 516 ;;
462 craynv) 517 craynv)
463 basic_machine=craynv-cray 518 basic_machine=craynv-cray
464 os=-unicosmp 519 os=-unicosmp
465 ;; 520 ;;
466 cr16c) 521 cr16)
467 basic_machine=cr16c-unknown 522 basic_machine=cr16-unknown
468 os=-elf 523 os=-elf
469 ;; 524 ;;
470 crds | unos) 525 crds | unos)
471 basic_machine=m68k-crds 526 basic_machine=m68k-crds
472 ;; 527 ;;
499 basic_machine=m68k-motorola 554 basic_machine=m68k-motorola
500 ;; 555 ;;
501 delta88) 556 delta88)
502 basic_machine=m88k-motorola 557 basic_machine=m88k-motorola
503 os=-sysv3 558 os=-sysv3
559 ;;
560 dicos)
561 basic_machine=i686-pc
562 os=-dicos
504 ;; 563 ;;
505 djgpp) 564 djgpp)
506 basic_machine=i586-pc 565 basic_machine=i586-pc
507 os=-msdosdjgpp 566 os=-msdosdjgpp
508 ;; 567 ;;
654 ;; 713 ;;
655 isi68 | isi) 714 isi68 | isi)
656 basic_machine=m68k-isi 715 basic_machine=m68k-isi
657 os=-sysv 716 os=-sysv
658 ;; 717 ;;
718 m68knommu)
719 basic_machine=m68k-unknown
720 os=-linux
721 ;;
722 m68knommu-*)
723 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
724 os=-linux
725 ;;
659 m88k-omron*) 726 m88k-omron*)
660 basic_machine=m88k-omron 727 basic_machine=m88k-omron
661 ;; 728 ;;
662 magnum | m3230) 729 magnum | m3230)
663 basic_machine=mips-mips 730 basic_machine=mips-mips
665 ;; 732 ;;
666 merlin) 733 merlin)
667 basic_machine=ns32k-utek 734 basic_machine=ns32k-utek
668 os=-sysv 735 os=-sysv
669 ;; 736 ;;
737 microblaze)
738 basic_machine=microblaze-xilinx
739 ;;
670 mingw32) 740 mingw32)
671 basic_machine=i386-pc 741 basic_machine=i386-pc
672 os=-mingw32 742 os=-mingw32
673 ;; 743 ;;
744 mingw32ce)
745 basic_machine=arm-unknown
746 os=-mingw32ce
747 ;;
674 miniframe) 748 miniframe)
675 basic_machine=m68000-convergent 749 basic_machine=m68000-convergent
676 ;; 750 ;;
677 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 751 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
678 basic_machine=m68k-atari 752 basic_machine=m68k-atari
693 os=-morphos 767 os=-morphos
694 ;; 768 ;;
695 msdos) 769 msdos)
696 basic_machine=i386-pc 770 basic_machine=i386-pc
697 os=-msdos 771 os=-msdos
772 ;;
773 ms1-*)
774 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
698 ;; 775 ;;
699 mvs) 776 mvs)
700 basic_machine=i370-ibm 777 basic_machine=i370-ibm
701 os=-mvs 778 os=-mvs
702 ;; 779 ;;
792 ;; 869 ;;
793 paragon) 870 paragon)
794 basic_machine=i860-intel 871 basic_machine=i860-intel
795 os=-osf 872 os=-osf
796 ;; 873 ;;
874 parisc)
875 basic_machine=hppa-unknown
876 os=-linux
877 ;;
878 parisc-*)
879 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
880 os=-linux
881 ;;
797 pbd) 882 pbd)
798 basic_machine=sparc-tti 883 basic_machine=sparc-tti
799 ;; 884 ;;
800 pbb) 885 pbb)
801 basic_machine=m68k-tti 886 basic_machine=m68k-tti
802 ;; 887 ;;
803 pc532 | pc532-*) 888 pc532 | pc532-*)
804 basic_machine=ns32k-pc532 889 basic_machine=ns32k-pc532
890 ;;
891 pc98)
892 basic_machine=i386-pc
893 ;;
894 pc98-*)
895 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
805 ;; 896 ;;
806 pentium | p5 | k5 | k6 | nexgen | viac3) 897 pentium | p5 | k5 | k6 | nexgen | viac3)
807 basic_machine=i586-pc 898 basic_machine=i586-pc
808 ;; 899 ;;
809 pentiumpro | p6 | 6x86 | athlon | athlon_*) 900 pentiumpro | p6 | 6x86 | athlon | athlon_*)
857 ;; 948 ;;
858 pw32) 949 pw32)
859 basic_machine=i586-unknown 950 basic_machine=i586-unknown
860 os=-pw32 951 os=-pw32
861 ;; 952 ;;
953 rdos)
954 basic_machine=i386-pc
955 os=-rdos
956 ;;
862 rom68k) 957 rom68k)
863 basic_machine=m68k-rom68k 958 basic_machine=m68k-rom68k
864 os=-coff 959 os=-coff
865 ;; 960 ;;
866 rm[46]00) 961 rm[46]00)
883 basic_machine=mipsisa64sb1-unknown 978 basic_machine=mipsisa64sb1-unknown
884 ;; 979 ;;
885 sb1el) 980 sb1el)
886 basic_machine=mipsisa64sb1el-unknown 981 basic_machine=mipsisa64sb1el-unknown
887 ;; 982 ;;
983 sde)
984 basic_machine=mipsisa32-sde
985 os=-elf
986 ;;
888 sei) 987 sei)
889 basic_machine=mips-sei 988 basic_machine=mips-sei
890 os=-seiux 989 os=-seiux
891 ;; 990 ;;
892 sequent) 991 sequent)
894 ;; 993 ;;
895 sh) 994 sh)
896 basic_machine=sh-hitachi 995 basic_machine=sh-hitachi
897 os=-hms 996 os=-hms
898 ;; 997 ;;
998 sh5el)
999 basic_machine=sh5le-unknown
1000 ;;
899 sh64) 1001 sh64)
900 basic_machine=sh64-unknown 1002 basic_machine=sh64-unknown
901 ;; 1003 ;;
902 sparclite-wrs | simso-wrs) 1004 sparclite-wrs | simso-wrs)
903 basic_machine=sparclite-wrs 1005 basic_machine=sparclite-wrs
983 ;; 1085 ;;
984 tic6x | c6x*) 1086 tic6x | c6x*)
985 basic_machine=tic6x-unknown 1087 basic_machine=tic6x-unknown
986 os=-coff 1088 os=-coff
987 ;; 1089 ;;
1090 # This must be matched before tile*.
1091 tilegx*)
1092 basic_machine=tilegx-unknown
1093 os=-linux-gnu
1094 ;;
1095 tile*)
1096 basic_machine=tile-unknown
1097 os=-linux-gnu
1098 ;;
988 tx39) 1099 tx39)
989 basic_machine=mipstx39-unknown 1100 basic_machine=mipstx39-unknown
990 ;; 1101 ;;
991 tx39el) 1102 tx39el)
992 basic_machine=mipstx39el-unknown 1103 basic_machine=mipstx39el-unknown
1056 basic_machine=ymp-cray 1167 basic_machine=ymp-cray
1057 os=-unicos 1168 os=-unicos
1058 ;; 1169 ;;
1059 z8k-*-coff) 1170 z8k-*-coff)
1060 basic_machine=z8k-unknown 1171 basic_machine=z8k-unknown
1172 os=-sim
1173 ;;
1174 z80-*-coff)
1175 basic_machine=z80-unknown
1061 os=-sim 1176 os=-sim
1062 ;; 1177 ;;
1063 none) 1178 none)
1064 basic_machine=none-none 1179 basic_machine=none-none
1065 os=-none 1180 os=-none
1096 basic_machine=pdp11-dec 1211 basic_machine=pdp11-dec
1097 ;; 1212 ;;
1098 we32k) 1213 we32k)
1099 basic_machine=we32k-att 1214 basic_machine=we32k-att
1100 ;; 1215 ;;
1101 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) 1216 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1102 basic_machine=sh-unknown 1217 basic_machine=sh-unknown
1103 ;; 1218 ;;
1104 sparc | sparcv8 | sparcv9 | sparcv9b) 1219 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1105 basic_machine=sparc-sun 1220 basic_machine=sparc-sun
1106 ;; 1221 ;;
1107 cydra) 1222 cydra)
1108 basic_machine=cydra-cydrome 1223 basic_machine=cydra-cydrome
1109 ;; 1224 ;;
1146then 1261then
1147case $os in 1262case $os in
1148 # First match some system type aliases 1263 # First match some system type aliases
1149 # that might get confused with valid system types. 1264 # that might get confused with valid system types.
1150 # -solaris* is a basic system type, with this one exception. 1265 # -solaris* is a basic system type, with this one exception.
1266 -auroraux)
1267 os=-auroraux
1268 ;;
1151 -solaris1 | -solaris1.*) 1269 -solaris1 | -solaris1.*)
1152 os=`echo $os | sed -e 's|solaris1|sunos4|'` 1270 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1153 ;; 1271 ;;
1154 -solaris) 1272 -solaris)
1155 os=-solaris2 1273 os=-solaris2
1166 # First accept the basic system types. 1284 # First accept the basic system types.
1167 # The portable systems comes first. 1285 # The portable systems comes first.
1168 # Each alternative MUST END IN A *, to match a version number. 1286 # Each alternative MUST END IN A *, to match a version number.
1169 # -sysv* is not here because it comes later, after sysvr4. 1287 # -sysv* is not here because it comes later, after sysvr4.
1170 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1288 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1171 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 1289 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1172 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1290 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1291 | -sym* | -kopensolaris* \
1173 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1292 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1174 | -aos* \ 1293 | -aos* | -aros* \
1175 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1294 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1176 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1295 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1177 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1296 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1297 | -openbsd* | -solidbsd* \
1178 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1298 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1179 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1299 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1180 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1300 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1181 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1301 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1182 | -chorusos* | -chorusrdb* \ 1302 | -chorusos* | -chorusrdb* | -cegcc* \
1183 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1303 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1184 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1304 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1305 | -uxpv* | -beos* | -mpeix* | -udk* \
1185 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1306 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1186 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1307 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1187 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1308 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1188 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1309 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1189 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1310 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1190 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1311 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1191 | -skyos* | -haiku*) 1312 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1192 # Remember, each alternative MUST END IN *, to match a version number. 1313 # Remember, each alternative MUST END IN *, to match a version number.
1193 ;; 1314 ;;
1194 -qnx*) 1315 -qnx*)
1195 case $basic_machine in 1316 case $basic_machine in
1196 x86-* | i*86-*) 1317 x86-* | i*86-*)
1316 os=-kaos 1437 os=-kaos
1317 ;; 1438 ;;
1318 -zvmoe) 1439 -zvmoe)
1319 os=-zvmoe 1440 os=-zvmoe
1320 ;; 1441 ;;
1442 -dicos*)
1443 os=-dicos
1444 ;;
1445 -nacl*)
1446 ;;
1321 -none) 1447 -none)
1322 ;; 1448 ;;
1323 *) 1449 *)
1324 # Get rid of the `-' at the beginning of $os. 1450 # Get rid of the `-' at the beginning of $os.
1325 os=`echo $os | sed 's/[^-]*-//'` 1451 os=`echo $os | sed 's/[^-]*-//'`
1338# that MANUFACTURER isn't an operating system. Otherwise, code above 1464# that MANUFACTURER isn't an operating system. Otherwise, code above
1339# will signal an error saying that MANUFACTURER isn't an operating 1465# will signal an error saying that MANUFACTURER isn't an operating
1340# system, and we'll never get to this point. 1466# system, and we'll never get to this point.
1341 1467
1342case $basic_machine in 1468case $basic_machine in
1469 score-*)
1470 os=-elf
1471 ;;
1472 spu-*)
1473 os=-elf
1474 ;;
1343 *-acorn) 1475 *-acorn)
1344 os=-riscix1.2 1476 os=-riscix1.2
1345 ;; 1477 ;;
1346 arm*-rebel) 1478 arm*-rebel)
1347 os=-linux 1479 os=-linux
1348 ;; 1480 ;;
1349 arm*-semi) 1481 arm*-semi)
1350 os=-aout 1482 os=-aout
1351 ;; 1483 ;;
1352 c4x-* | tic4x-*) 1484 c4x-* | tic4x-*)
1353 os=-coff 1485 os=-coff
1354 ;; 1486 ;;
1355 # This must come before the *-dec entry. 1487 # This must come before the *-dec entry.
1356 pdp10-*) 1488 pdp10-*)
1357 os=-tops20 1489 os=-tops20
1358 ;; 1490 ;;
1359 pdp11-*) 1491 pdp11-*)
1374 # default. 1506 # default.
1375 # os=-sunos4 1507 # os=-sunos4
1376 ;; 1508 ;;
1377 m68*-cisco) 1509 m68*-cisco)
1378 os=-aout 1510 os=-aout
1511 ;;
1512 mep-*)
1513 os=-elf
1379 ;; 1514 ;;
1380 mips*-cisco) 1515 mips*-cisco)
1381 os=-elf 1516 os=-elf
1382 ;; 1517 ;;
1383 mips*-*) 1518 mips*-*)
1504 vendor=acorn 1639 vendor=acorn
1505 ;; 1640 ;;
1506 -sunos*) 1641 -sunos*)
1507 vendor=sun 1642 vendor=sun
1508 ;; 1643 ;;
1509 -aix*) 1644 -cnk*|-aix*)
1510 vendor=ibm 1645 vendor=ibm
1511 ;; 1646 ;;
1512 -beos*) 1647 -beos*)
1513 vendor=be 1648 vendor=be
1514 ;; 1649 ;;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines