comparison tools/config.sub @ 4459:698a649c0375

sync config.guess and config.sub from upstream * config.guess: Update from upstream config repo. * config.sub: Likewise.
author Mike Miller <mtmiller@octave.org>
date Thu, 31 Aug 2017 15:49:33 -0700
parents 4f9b72cf7ee7
children
comparison
equal deleted inserted replaced
4458:8f0a309bf280 4459:698a649c0375
1 #! /bin/sh 1 #! /bin/sh
2 # Configuration validation subroutine script. 2 # Configuration validation subroutine script.
3 # Copyright 1992-2013 Free Software Foundation, Inc. 3 # Copyright 1992-2017 Free Software Foundation, Inc.
4 4
5 timestamp='2013-02-12' 5 timestamp='2017-04-02'
6 6
7 # This file is free software; you can redistribute it and/or modify it 7 # This file is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by 8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or 9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version. 10 # (at your option) any later version.
23 # the same distribution terms that you use for the rest of that 23 # the same distribution terms that you use for the rest of that
24 # program. This Exception is an additional permission under section 7 24 # program. This Exception is an additional permission under section 7
25 # of the GNU General Public License, version 3 ("GPLv3"). 25 # of the GNU General Public License, version 3 ("GPLv3").
26 26
27 27
28 # Please send patches with a ChangeLog entry to config-patches@gnu.org. 28 # Please send patches to <config-patches@gnu.org>.
29 # 29 #
30 # Configuration subroutine to validate and canonicalize a configuration type. 30 # Configuration subroutine to validate and canonicalize a configuration type.
31 # Supply the specified configuration type as an argument. 31 # Supply the specified configuration type as an argument.
32 # If it is invalid, we print an error message on stderr and exit with code 1. 32 # If it is invalid, we print an error message on stderr and exit with code 1.
33 # Otherwise, we print the canonical config type on stdout and succeed. 33 # Otherwise, we print the canonical config type on stdout and succeed.
34 34
35 # You can get the latest version of this script from: 35 # You can get the latest version of this script from:
36 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 36 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
37 37
38 # This file is supposed to be the same for all GNU packages 38 # This file is supposed to be the same for all GNU packages
39 # and recognize all the CPU types, system types and aliases 39 # and recognize all the CPU types, system types and aliases
40 # that are meaningful with *any* GNU software. 40 # that are meaningful with *any* GNU software.
41 # Each package is responsible for reporting which valid configurations 41 # Each package is responsible for reporting which valid configurations
51 # It is wrong to echo any other type of specification. 51 # It is wrong to echo any other type of specification.
52 52
53 me=`echo "$0" | sed -e 's,.*/,,'` 53 me=`echo "$0" | sed -e 's,.*/,,'`
54 54
55 usage="\ 55 usage="\
56 Usage: $0 [OPTION] CPU-MFR-OPSYS 56 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
57 $0 [OPTION] ALIAS
58 57
59 Canonicalize a configuration name. 58 Canonicalize a configuration name.
60 59
61 Operation modes: 60 Operation modes:
62 -h, --help print this help, then exit 61 -h, --help print this help, then exit
66 Report bugs and patches to <config-patches@gnu.org>." 65 Report bugs and patches to <config-patches@gnu.org>."
67 66
68 version="\ 67 version="\
69 GNU config.sub ($timestamp) 68 GNU config.sub ($timestamp)
70 69
71 Copyright 1992-2013 Free Software Foundation, Inc. 70 Copyright 1992-2017 Free Software Foundation, Inc.
72 71
73 This is free software; see the source for copying conditions. There is NO 72 This is free software; see the source for copying conditions. There is NO
74 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 73 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
75 74
76 help=" 75 help="
115 # Here we must recognize all the valid KERNEL-OS combinations. 114 # Here we must recognize all the valid KERNEL-OS combinations.
116 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
117 case $maybe_os in 116 case $maybe_os in
118 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ 117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
119 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ 118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
120 knetbsd*-gnu* | netbsd*-gnu* | \ 119 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
121 kopensolaris*-gnu* | \ 120 kopensolaris*-gnu* | cloudabi*-eabi* | \
122 storm-chaos* | os2-emx* | rtmk-nova*) 121 storm-chaos* | os2-emx* | rtmk-nova*)
123 os=-$maybe_os 122 os=-$maybe_os
124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
125 ;; 124 ;;
126 android-linux) 125 android-linux)
250 | a29k \ 249 | a29k \
251 | aarch64 | aarch64_be \ 250 | aarch64 | aarch64_be \
252 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 251 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
253 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 252 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
254 | am33_2.0 \ 253 | am33_2.0 \
255 | arc \ 254 | arc | arceb \
256 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ 255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
257 | avr | avr32 \ 256 | avr | avr32 \
257 | ba \
258 | be32 | be64 \ 258 | be32 | be64 \
259 | bfin \ 259 | bfin \
260 | c4x | clipper \ 260 | c4x | c8051 | clipper \
261 | d10v | d30v | dlx | dsp16xx \ 261 | d10v | d30v | dlx | dsp16xx \
262 | epiphany \ 262 | e2k | epiphany \
263 | fido | fr30 | frv \ 263 | fido | fr30 | frv | ft32 \
264 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 264 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265 | hexagon \ 265 | hexagon \
266 | i370 | i860 | i960 | ia64 \ 266 | i370 | i860 | i960 | ia16 | ia64 \
267 | ip2k | iq2000 \ 267 | ip2k | iq2000 \
268 | k1om \
268 | le32 | le64 \ 269 | le32 | le64 \
269 | lm32 \ 270 | lm32 \
270 | m32c | m32r | m32rle | m68000 | m68k | m88k \ 271 | m32c | m32r | m32rle | m68000 | m68k | m88k \
271 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ 272 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
272 | mips | mipsbe | mipseb | mipsel | mipsle \ 273 | mips | mipsbe | mipseb | mipsel | mipsle \
280 | mips64vr4300 | mips64vr4300el \ 281 | mips64vr4300 | mips64vr4300el \
281 | mips64vr5000 | mips64vr5000el \ 282 | mips64vr5000 | mips64vr5000el \
282 | mips64vr5900 | mips64vr5900el \ 283 | mips64vr5900 | mips64vr5900el \
283 | mipsisa32 | mipsisa32el \ 284 | mipsisa32 | mipsisa32el \
284 | mipsisa32r2 | mipsisa32r2el \ 285 | mipsisa32r2 | mipsisa32r2el \
286 | mipsisa32r6 | mipsisa32r6el \
285 | mipsisa64 | mipsisa64el \ 287 | mipsisa64 | mipsisa64el \
286 | mipsisa64r2 | mipsisa64r2el \ 288 | mipsisa64r2 | mipsisa64r2el \
289 | mipsisa64r6 | mipsisa64r6el \
287 | mipsisa64sb1 | mipsisa64sb1el \ 290 | mipsisa64sb1 | mipsisa64sb1el \
288 | mipsisa64sr71k | mipsisa64sr71kel \ 291 | mipsisa64sr71k | mipsisa64sr71kel \
289 | mipsr5900 | mipsr5900el \ 292 | mipsr5900 | mipsr5900el \
290 | mipstx39 | mipstx39el \ 293 | mipstx39 | mipstx39el \
291 | mn10200 | mn10300 \ 294 | mn10200 | mn10300 \
293 | mt \ 296 | mt \
294 | msp430 \ 297 | msp430 \
295 | nds32 | nds32le | nds32be \ 298 | nds32 | nds32le | nds32be \
296 | nios | nios2 | nios2eb | nios2el \ 299 | nios | nios2 | nios2eb | nios2el \
297 | ns16k | ns32k \ 300 | ns16k | ns32k \
298 | open8 \ 301 | open8 | or1k | or1knd | or32 \
299 | or1k | or32 \
300 | pdp10 | pdp11 | pj | pjl \ 302 | pdp10 | pdp11 | pj | pjl \
301 | powerpc | powerpc64 | powerpc64le | powerpcle \ 303 | powerpc | powerpc64 | powerpc64le | powerpcle \
304 | pru \
302 | pyramid \ 305 | pyramid \
306 | riscv32 | riscv64 \
303 | rl78 | rx \ 307 | rl78 | rx \
304 | score \ 308 | score \
305 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 309 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
306 | sh64 | sh64le \ 310 | sh64 | sh64le \
307 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 311 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
308 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 312 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
309 | spu \ 313 | spu \
310 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ 314 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
311 | ubicom32 \ 315 | ubicom32 \
312 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ 316 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
317 | visium \
318 | wasm32 \
313 | we32k \ 319 | we32k \
314 | x86 | xc16x | xstormy16 | xtensa \ 320 | x86 | xc16x | xstormy16 | xtensa \
315 | z8k | z80) 321 | z8k | z80)
316 basic_machine=$basic_machine-unknown 322 basic_machine=$basic_machine-unknown
317 ;; 323 ;;
322 basic_machine=tic55x-unknown 328 basic_machine=tic55x-unknown
323 ;; 329 ;;
324 c6x) 330 c6x)
325 basic_machine=tic6x-unknown 331 basic_machine=tic6x-unknown
326 ;; 332 ;;
327 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) 333 leon|leon[3-9])
334 basic_machine=sparc-$basic_machine
335 ;;
336 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
328 basic_machine=$basic_machine-unknown 337 basic_machine=$basic_machine-unknown
329 os=-none 338 os=-none
330 ;; 339 ;;
331 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 340 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
332 ;; 341 ;;
364 580-* \ 373 580-* \
365 | a29k-* \ 374 | a29k-* \
366 | aarch64-* | aarch64_be-* \ 375 | aarch64-* | aarch64_be-* \
367 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 376 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
368 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 377 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
369 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 378 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
370 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 379 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
371 | avr-* | avr32-* \ 380 | avr-* | avr32-* \
381 | ba-* \
372 | be32-* | be64-* \ 382 | be32-* | be64-* \
373 | bfin-* | bs2000-* \ 383 | bfin-* | bs2000-* \
374 | c[123]* | c30-* | [cjt]90-* | c4x-* \ 384 | c[123]* | c30-* | [cjt]90-* | c4x-* \
375 | clipper-* | craynv-* | cydra-* \ 385 | c8051-* | clipper-* | craynv-* | cydra-* \
376 | d10v-* | d30v-* | dlx-* \ 386 | d10v-* | d30v-* | dlx-* \
377 | elxsi-* \ 387 | e2k-* | elxsi-* \
378 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 388 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
379 | h8300-* | h8500-* \ 389 | h8300-* | h8500-* \
380 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 390 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
381 | hexagon-* \ 391 | hexagon-* \
382 | i*86-* | i860-* | i960-* | ia64-* \ 392 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
383 | ip2k-* | iq2000-* \ 393 | ip2k-* | iq2000-* \
394 | k1om-* \
384 | le32-* | le64-* \ 395 | le32-* | le64-* \
385 | lm32-* \ 396 | lm32-* \
386 | m32c-* | m32r-* | m32rle-* \ 397 | m32c-* | m32r-* | m32rle-* \
387 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 398 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
388 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ 399 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
398 | mips64vr4300-* | mips64vr4300el-* \ 409 | mips64vr4300-* | mips64vr4300el-* \
399 | mips64vr5000-* | mips64vr5000el-* \ 410 | mips64vr5000-* | mips64vr5000el-* \
400 | mips64vr5900-* | mips64vr5900el-* \ 411 | mips64vr5900-* | mips64vr5900el-* \
401 | mipsisa32-* | mipsisa32el-* \ 412 | mipsisa32-* | mipsisa32el-* \
402 | mipsisa32r2-* | mipsisa32r2el-* \ 413 | mipsisa32r2-* | mipsisa32r2el-* \
414 | mipsisa32r6-* | mipsisa32r6el-* \
403 | mipsisa64-* | mipsisa64el-* \ 415 | mipsisa64-* | mipsisa64el-* \
404 | mipsisa64r2-* | mipsisa64r2el-* \ 416 | mipsisa64r2-* | mipsisa64r2el-* \
417 | mipsisa64r6-* | mipsisa64r6el-* \
405 | mipsisa64sb1-* | mipsisa64sb1el-* \ 418 | mipsisa64sb1-* | mipsisa64sb1el-* \
406 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 419 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
407 | mipsr5900-* | mipsr5900el-* \ 420 | mipsr5900-* | mipsr5900el-* \
408 | mipstx39-* | mipstx39el-* \ 421 | mipstx39-* | mipstx39el-* \
409 | mmix-* \ 422 | mmix-* \
411 | msp430-* \ 424 | msp430-* \
412 | nds32-* | nds32le-* | nds32be-* \ 425 | nds32-* | nds32le-* | nds32be-* \
413 | nios-* | nios2-* | nios2eb-* | nios2el-* \ 426 | nios-* | nios2-* | nios2eb-* | nios2el-* \
414 | none-* | np1-* | ns16k-* | ns32k-* \ 427 | none-* | np1-* | ns16k-* | ns32k-* \
415 | open8-* \ 428 | open8-* \
429 | or1k*-* \
416 | orion-* \ 430 | orion-* \
417 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 431 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
418 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ 432 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
433 | pru-* \
419 | pyramid-* \ 434 | pyramid-* \
435 | riscv32-* | riscv64-* \
420 | rl78-* | romp-* | rs6000-* | rx-* \ 436 | rl78-* | romp-* | rs6000-* | rx-* \
421 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 437 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
422 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 438 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
423 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 439 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
424 | sparclite-* \ 440 | sparclite-* \
425 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ 441 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
426 | tahoe-* \ 442 | tahoe-* \
427 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 443 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
428 | tile*-* \ 444 | tile*-* \
429 | tron-* \ 445 | tron-* \
430 | ubicom32-* \ 446 | ubicom32-* \
431 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ 447 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
432 | vax-* \ 448 | vax-* \
449 | visium-* \
450 | wasm32-* \
433 | we32k-* \ 451 | we32k-* \
434 | x86-* | x86_64-* | xc16x-* | xps100-* \ 452 | x86-* | x86_64-* | xc16x-* | xps100-* \
435 | xstormy16-* | xtensa*-* \ 453 | xstormy16-* | xtensa*-* \
436 | ymp-* \ 454 | ymp-* \
437 | z8k-* | z80-*) 455 | z8k-* | z80-*)
504 ;; 522 ;;
505 aros) 523 aros)
506 basic_machine=i386-pc 524 basic_machine=i386-pc
507 os=-aros 525 os=-aros
508 ;; 526 ;;
527 asmjs)
528 basic_machine=asmjs-unknown
529 ;;
509 aux) 530 aux)
510 basic_machine=m68k-apple 531 basic_machine=m68k-apple
511 os=-aux 532 os=-aux
512 ;; 533 ;;
513 balance) 534 balance)
623 os=-bosx 644 os=-bosx
624 ;; 645 ;;
625 dpx2* | dpx2*-bull) 646 dpx2* | dpx2*-bull)
626 basic_machine=m68k-bull 647 basic_machine=m68k-bull
627 os=-sysv3 648 os=-sysv3
649 ;;
650 e500v[12])
651 basic_machine=powerpc-unknown
652 os=$os"spe"
653 ;;
654 e500v[12]-*)
655 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
656 os=$os"spe"
628 ;; 657 ;;
629 ebmon29k) 658 ebmon29k)
630 basic_machine=a29k-amd 659 basic_machine=a29k-amd
631 os=-ebmon 660 os=-ebmon
632 ;; 661 ;;
765 ;; 794 ;;
766 isi68 | isi) 795 isi68 | isi)
767 basic_machine=m68k-isi 796 basic_machine=m68k-isi
768 os=-sysv 797 os=-sysv
769 ;; 798 ;;
799 leon-*|leon[3-9]-*)
800 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
801 ;;
770 m68knommu) 802 m68knommu)
771 basic_machine=m68k-unknown 803 basic_machine=m68k-unknown
772 os=-linux 804 os=-linux
773 ;; 805 ;;
774 m68knommu-*) 806 m68knommu-*)
792 mingw64) 824 mingw64)
793 basic_machine=x86_64-pc 825 basic_machine=x86_64-pc
794 os=-mingw64 826 os=-mingw64
795 ;; 827 ;;
796 mingw32) 828 mingw32)
797 basic_machine=i386-pc 829 basic_machine=i686-pc
798 os=-mingw32 830 os=-mingw32
799 ;; 831 ;;
800 mingw32ce) 832 mingw32ce)
801 basic_machine=arm-unknown 833 basic_machine=arm-unknown
802 os=-mingw32ce 834 os=-mingw32ce
820 ;; 852 ;;
821 morphos) 853 morphos)
822 basic_machine=powerpc-unknown 854 basic_machine=powerpc-unknown
823 os=-morphos 855 os=-morphos
824 ;; 856 ;;
857 moxiebox)
858 basic_machine=moxie-unknown
859 os=-moxiebox
860 ;;
825 msdos) 861 msdos)
826 basic_machine=i386-pc 862 basic_machine=i386-pc
827 os=-msdos 863 os=-msdos
828 ;; 864 ;;
829 ms1-*) 865 ms1-*)
830 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 866 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
831 ;; 867 ;;
832 msys) 868 msys)
833 basic_machine=i386-pc 869 basic_machine=i686-pc
834 os=-msys 870 os=-msys
835 ;; 871 ;;
836 mvs) 872 mvs)
837 basic_machine=i370-ibm 873 basic_machine=i370-ibm
838 os=-mvs 874 os=-mvs
912 basic_machine=nse-tandem 948 basic_machine=nse-tandem
913 ;; 949 ;;
914 nsr-tandem) 950 nsr-tandem)
915 basic_machine=nsr-tandem 951 basic_machine=nsr-tandem
916 ;; 952 ;;
953 nsx-tandem)
954 basic_machine=nsx-tandem
955 ;;
917 op50n-* | op60c-*) 956 op50n-* | op60c-*)
918 basic_machine=hppa1.1-oki 957 basic_machine=hppa1.1-oki
919 os=-proelf 958 os=-proelf
920 ;; 959 ;;
921 openrisc | openrisc-*) 960 openrisc | openrisc-*)
996 ppc | ppcbe) basic_machine=powerpc-unknown 1035 ppc | ppcbe) basic_machine=powerpc-unknown
997 ;; 1036 ;;
998 ppc-* | ppcbe-*) 1037 ppc-* | ppcbe-*)
999 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 1038 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1000 ;; 1039 ;;
1001 ppcle | powerpclittle | ppc-le | powerpc-little) 1040 ppcle | powerpclittle)
1002 basic_machine=powerpcle-unknown 1041 basic_machine=powerpcle-unknown
1003 ;; 1042 ;;
1004 ppcle-* | powerpclittle-*) 1043 ppcle-* | powerpclittle-*)
1005 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 1044 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1006 ;; 1045 ;;
1007 ppc64) basic_machine=powerpc64-unknown 1046 ppc64) basic_machine=powerpc64-unknown
1008 ;; 1047 ;;
1009 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 1048 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1010 ;; 1049 ;;
1011 ppc64le | powerpc64little | ppc64-le | powerpc64-little) 1050 ppc64le | powerpc64little)
1012 basic_machine=powerpc64le-unknown 1051 basic_machine=powerpc64le-unknown
1013 ;; 1052 ;;
1014 ppc64le-* | powerpc64little-*) 1053 ppc64le-* | powerpc64little-*)
1015 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 1054 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1016 ;; 1055 ;;
1206 os=-vxworks 1245 os=-vxworks
1207 ;; 1246 ;;
1208 vxworks29k) 1247 vxworks29k)
1209 basic_machine=a29k-wrs 1248 basic_machine=a29k-wrs
1210 os=-vxworks 1249 os=-vxworks
1250 ;;
1251 wasm32)
1252 basic_machine=wasm32-unknown
1211 ;; 1253 ;;
1212 w65*) 1254 w65*)
1213 basic_machine=w65-wdc 1255 basic_machine=w65-wdc
1214 os=-none 1256 os=-none
1215 ;; 1257 ;;
1352 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1394 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1353 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ 1395 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1354 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ 1396 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1355 | -sym* | -kopensolaris* | -plan9* \ 1397 | -sym* | -kopensolaris* | -plan9* \
1356 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1398 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1357 | -aos* | -aros* \ 1399 | -aos* | -aros* | -cloudabi* | -sortix* \
1358 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1400 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1359 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1401 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1360 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 1402 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1361 | -bitrig* | -openbsd* | -solidbsd* \ 1403 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
1362 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1404 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1363 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1405 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1364 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1406 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1365 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1407 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1366 | -chorusos* | -chorusrdb* | -cegcc* \ 1408 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
1367 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1409 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1368 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ 1410 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1369 | -linux-newlib* | -linux-musl* | -linux-uclibc* \ 1411 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1370 | -uxpv* | -beos* | -mpeix* | -udk* \ 1412 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1371 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1413 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1372 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1414 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1373 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1415 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1374 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1416 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1375 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1417 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1376 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1418 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1377 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) 1419 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1420 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)
1378 # Remember, each alternative MUST END IN *, to match a version number. 1421 # Remember, each alternative MUST END IN *, to match a version number.
1379 ;; 1422 ;;
1380 -qnx*) 1423 -qnx*)
1381 case $basic_machine in 1424 case $basic_machine in
1382 x86-* | i*86-*) 1425 x86-* | i*86-*)
1504 -dicos*) 1547 -dicos*)
1505 os=-dicos 1548 os=-dicos
1506 ;; 1549 ;;
1507 -nacl*) 1550 -nacl*)
1508 ;; 1551 ;;
1552 -ios)
1553 ;;
1509 -none) 1554 -none)
1510 ;; 1555 ;;
1511 *) 1556 *)
1512 # Get rid of the `-' at the beginning of $os. 1557 # Get rid of the `-' at the beginning of $os.
1513 os=`echo $os | sed 's/[^-]*-//'` 1558 os=`echo $os | sed 's/[^-]*-//'`
1544 os=-aout 1589 os=-aout
1545 ;; 1590 ;;
1546 c4x-* | tic4x-*) 1591 c4x-* | tic4x-*)
1547 os=-coff 1592 os=-coff
1548 ;; 1593 ;;
1594 c8051-*)
1595 os=-elf
1596 ;;
1549 hexagon-*) 1597 hexagon-*)
1550 os=-elf 1598 os=-elf
1551 ;; 1599 ;;
1552 tic54x-*) 1600 tic54x-*)
1553 os=-coff 1601 os=-coff
1587 os=-elf 1635 os=-elf
1588 ;; 1636 ;;
1589 mips*-*) 1637 mips*-*)
1590 os=-elf 1638 os=-elf
1591 ;; 1639 ;;
1592 or1k-*)
1593 os=-elf
1594 ;;
1595 or32-*) 1640 or32-*)
1596 os=-coff 1641 os=-coff
1597 ;; 1642 ;;
1598 *-tti) # must be before sparc entry or we get the wrong os. 1643 *-tti) # must be before sparc entry or we get the wrong os.
1599 os=-sysv3 1644 os=-sysv3
1600 ;; 1645 ;;
1601 sparc-* | *-sun) 1646 sparc-* | *-sun)
1602 os=-sunos4.1.1 1647 os=-sunos4.1.1
1648 ;;
1649 pru-*)
1650 os=-elf
1603 ;; 1651 ;;
1604 *-be) 1652 *-be)
1605 os=-beos 1653 os=-beos
1606 ;; 1654 ;;
1607 *-haiku) 1655 *-haiku)