config.guess: Remove SH5 support.
[gcc.git] / config.sub
1 #! /bin/sh
2 # Configuration validation subroutine script.
3 # Copyright 1992-2016 Free Software Foundation, Inc.
4
5 timestamp='2016-01-01'
6
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
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, see <http://www.gnu.org/licenses/>.
19 #
20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that
24 # program. This Exception is an additional permission under section 7
25 # of the GNU General Public License, version 3 ("GPLv3").
26
27
28 # Please send patches to <config-patches@gnu.org>.
29 #
30 # Configuration subroutine to validate and canonicalize a configuration type.
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.
33 # Otherwise, we print the canonical config type on stdout and succeed.
34
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
37
38 # This file is supposed to be the same for all GNU packages
39 # and recognize all the CPU types, system types and aliases
40 # that are meaningful with *any* GNU software.
41 # Each package is responsible for reporting which valid configurations
42 # it does not support. The user should be able to distinguish
43 # a failure to support a valid configuration from a meaningless
44 # configuration.
45
46 # The goal of this file is to map all the various variations of a given
47 # machine specification into a single specification in the form:
48 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
49 # or in some cases, the newer four-part form:
50 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
51 # It is wrong to echo any other type of specification.
52
53 me=`echo "$0" | sed -e 's,.*/,,'`
54
55 usage="\
56 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
57
58 Canonicalize a configuration name.
59
60 Operation modes:
61 -h, --help print this help, then exit
62 -t, --time-stamp print date of last modification, then exit
63 -v, --version print version number, then exit
64
65 Report bugs and patches to <config-patches@gnu.org>."
66
67 version="\
68 GNU config.sub ($timestamp)
69
70 Copyright 1992-2016 Free Software Foundation, Inc.
71
72 This is free software; see the source for copying conditions. There is NO
73 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
74
75 help="
76 Try \`$me --help' for more information."
77
78 # Parse command line
79 while test $# -gt 0 ; do
80 case $1 in
81 --time-stamp | --time* | -t )
82 echo "$timestamp" ; exit ;;
83 --version | -v )
84 echo "$version" ; exit ;;
85 --help | --h* | -h )
86 echo "$usage"; exit ;;
87 -- ) # Stop option processing
88 shift; break ;;
89 - ) # Use stdin as input.
90 break ;;
91 -* )
92 echo "$me: invalid option $1$help"
93 exit 1 ;;
94
95 *local*)
96 # First pass through any local machine types.
97 echo $1
98 exit ;;
99
100 * )
101 break ;;
102 esac
103 done
104
105 case $# in
106 0) echo "$me: missing argument$help" >&2
107 exit 1;;
108 1) ;;
109 *) echo "$me: too many arguments$help" >&2
110 exit 1;;
111 esac
112
113 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114 # Here we must recognize all the valid KERNEL-OS combinations.
115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
116 case $maybe_os in
117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
120 kopensolaris*-gnu* | \
121 storm-chaos* | os2-emx* | rtmk-nova*)
122 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;;
125 android-linux)
126 os=-linux-android
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128 ;;
129 *)
130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131 if [ $basic_machine != $1 ]
132 then os=`echo $1 | sed 's/.*-/-/'`
133 else os=; fi
134 ;;
135 esac
136
137 ### Let's recognize common machines as not being operating systems so
138 ### that things like config.sub decstation-3100 work. We also
139 ### recognize some manufacturers as not being operating systems, so we
140 ### can provide default operating systems below.
141 case $os in
142 -sun*os*)
143 # Prevent following clause from handling this invalid input.
144 ;;
145 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
146 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
147 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151 -apple | -axis | -knuth | -cray | -microblaze*)
152 os=
153 basic_machine=$1
154 ;;
155 -bluegene*)
156 os=-cnk
157 ;;
158 -sim | -cisco | -oki | -wec | -winbond)
159 os=
160 basic_machine=$1
161 ;;
162 -scout)
163 ;;
164 -wrs)
165 os=-vxworks
166 basic_machine=$1
167 ;;
168 -chorusos*)
169 os=-chorusos
170 basic_machine=$1
171 ;;
172 -chorusrdb)
173 os=-chorusrdb
174 basic_machine=$1
175 ;;
176 -hiux*)
177 os=-hiuxwe2
178 ;;
179 -sco6)
180 os=-sco5v6
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182 ;;
183 -sco5)
184 os=-sco3.2v5
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 ;;
187 -sco4)
188 os=-sco3.2v4
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190 ;;
191 -sco3.2.[4-9]*)
192 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -sco3.2v[4-9]*)
196 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -sco5v6*)
200 # Don't forget version if it is 3.2v4 or newer.
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202 ;;
203 -sco*)
204 os=-sco3.2v2
205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
206 ;;
207 -udk*)
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -isc)
211 os=-isc2.2
212 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
213 ;;
214 -clix*)
215 basic_machine=clipper-intergraph
216 ;;
217 -isc*)
218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
219 ;;
220 -lynx*178)
221 os=-lynxos178
222 ;;
223 -lynx*5)
224 os=-lynxos5
225 ;;
226 -lynx*)
227 os=-lynxos
228 ;;
229 -ptx*)
230 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
231 ;;
232 -windowsnt*)
233 os=`echo $os | sed -e 's/windowsnt/winnt/'`
234 ;;
235 -psos*)
236 os=-psos
237 ;;
238 -mint | -mint[0-9]*)
239 basic_machine=m68k-atari
240 os=-mint
241 ;;
242 esac
243
244 # Decode aliases for certain CPU-COMPANY combinations.
245 case $basic_machine in
246 # Recognize the basic CPU types without company name.
247 # Some are omitted here because they have special meanings below.
248 1750a | 580 \
249 | a29k \
250 | aarch64 | aarch64_be \
251 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
252 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
253 | am33_2.0 \
254 | arc | arceb \
255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256 | avr | avr32 \
257 | ba \
258 | be32 | be64 \
259 | bfin \
260 | c4x | c8051 | clipper \
261 | d10v | d30v | dlx | dsp16xx \
262 | e2k | epiphany \
263 | fido | fr30 | frv | ft32 \
264 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265 | hexagon \
266 | i370 | i860 | i960 | ia64 \
267 | ip2k | iq2000 \
268 | k1om \
269 | le32 | le64 \
270 | lm32 \
271 | m32c | m32r | m32rle | m68000 | m68k | m88k \
272 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
273 | mips | mipsbe | mipseb | mipsel | mipsle \
274 | mips16 \
275 | mips64 | mips64el \
276 | mips64octeon | mips64octeonel \
277 | mips64orion | mips64orionel \
278 | mips64r5900 | mips64r5900el \
279 | mips64vr | mips64vrel \
280 | mips64vr4100 | mips64vr4100el \
281 | mips64vr4300 | mips64vr4300el \
282 | mips64vr5000 | mips64vr5000el \
283 | mips64vr5900 | mips64vr5900el \
284 | mipsisa32 | mipsisa32el \
285 | mipsisa32r2 | mipsisa32r2el \
286 | mipsisa32r6 | mipsisa32r6el \
287 | mipsisa64 | mipsisa64el \
288 | mipsisa64r2 | mipsisa64r2el \
289 | mipsisa64r6 | mipsisa64r6el \
290 | mipsisa64sb1 | mipsisa64sb1el \
291 | mipsisa64sr71k | mipsisa64sr71kel \
292 | mipsr5900 | mipsr5900el \
293 | mipstx39 | mipstx39el \
294 | mn10200 | mn10300 \
295 | moxie \
296 | mt \
297 | msp430 \
298 | nds32 | nds32le | nds32be \
299 | nios | nios2 | nios2eb | nios2el \
300 | ns16k | ns32k \
301 | open8 | or1k | or1knd | or32 \
302 | pdp10 | pdp11 | pj | pjl \
303 | powerpc | powerpc64 | powerpc64le | powerpcle \
304 | pyramid \
305 | riscv32 | riscv64 \
306 | rl78 | rx \
307 | score \
308 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
309 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
310 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
311 | spu \
312 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
313 | ubicom32 \
314 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
315 | visium \
316 | we32k \
317 | x86 | xc16x | xstormy16 | xtensa \
318 | z8k | z80)
319 basic_machine=$basic_machine-unknown
320 ;;
321 c54x)
322 basic_machine=tic54x-unknown
323 ;;
324 c55x)
325 basic_machine=tic55x-unknown
326 ;;
327 c6x)
328 basic_machine=tic6x-unknown
329 ;;
330 leon|leon[3-9])
331 basic_machine=sparc-$basic_machine
332 ;;
333 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
334 basic_machine=$basic_machine-unknown
335 os=-none
336 ;;
337 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
338 ;;
339 ms1)
340 basic_machine=mt-unknown
341 ;;
342
343 strongarm | thumb | xscale)
344 basic_machine=arm-unknown
345 ;;
346 xgate)
347 basic_machine=$basic_machine-unknown
348 os=-none
349 ;;
350 xscaleeb)
351 basic_machine=armeb-unknown
352 ;;
353
354 xscaleel)
355 basic_machine=armel-unknown
356 ;;
357
358 # We use `pc' rather than `unknown'
359 # because (1) that's what they normally are, and
360 # (2) the word "unknown" tends to confuse beginning users.
361 i*86 | x86_64)
362 basic_machine=$basic_machine-pc
363 ;;
364 # Object if more than one company name word.
365 *-*-*)
366 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
367 exit 1
368 ;;
369 # Recognize the basic CPU types with company name.
370 580-* \
371 | a29k-* \
372 | aarch64-* | aarch64_be-* \
373 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
374 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
375 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
376 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
377 | avr-* | avr32-* \
378 | ba-* \
379 | be32-* | be64-* \
380 | bfin-* | bs2000-* \
381 | c[123]* | c30-* | [cjt]90-* | c4x-* \
382 | c8051-* | clipper-* | craynv-* | cydra-* \
383 | d10v-* | d30v-* | dlx-* \
384 | e2k-* | elxsi-* \
385 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
386 | h8300-* | h8500-* \
387 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
388 | hexagon-* \
389 | i*86-* | i860-* | i960-* | ia64-* \
390 | ip2k-* | iq2000-* \
391 | k1om-* \
392 | le32-* | le64-* \
393 | lm32-* \
394 | m32c-* | m32r-* | m32rle-* \
395 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
396 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
397 | microblaze-* | microblazeel-* \
398 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
399 | mips16-* \
400 | mips64-* | mips64el-* \
401 | mips64octeon-* | mips64octeonel-* \
402 | mips64orion-* | mips64orionel-* \
403 | mips64r5900-* | mips64r5900el-* \
404 | mips64vr-* | mips64vrel-* \
405 | mips64vr4100-* | mips64vr4100el-* \
406 | mips64vr4300-* | mips64vr4300el-* \
407 | mips64vr5000-* | mips64vr5000el-* \
408 | mips64vr5900-* | mips64vr5900el-* \
409 | mipsisa32-* | mipsisa32el-* \
410 | mipsisa32r2-* | mipsisa32r2el-* \
411 | mipsisa32r6-* | mipsisa32r6el-* \
412 | mipsisa64-* | mipsisa64el-* \
413 | mipsisa64r2-* | mipsisa64r2el-* \
414 | mipsisa64r6-* | mipsisa64r6el-* \
415 | mipsisa64sb1-* | mipsisa64sb1el-* \
416 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
417 | mipsr5900-* | mipsr5900el-* \
418 | mipstx39-* | mipstx39el-* \
419 | mmix-* \
420 | mt-* \
421 | msp430-* \
422 | nds32-* | nds32le-* | nds32be-* \
423 | nios-* | nios2-* | nios2eb-* | nios2el-* \
424 | none-* | np1-* | ns16k-* | ns32k-* \
425 | open8-* \
426 | or1k*-* \
427 | orion-* \
428 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
429 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
430 | pyramid-* \
431 | riscv32-* | riscv64-* \
432 | rl78-* | romp-* | rs6000-* | rx-* \
433 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
434 | shle-* | sh[1234]le-* | sh3ele-* \
435 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
436 | sparclite-* \
437 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
438 | tahoe-* \
439 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
440 | tile*-* \
441 | tron-* \
442 | ubicom32-* \
443 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
444 | vax-* \
445 | visium-* \
446 | we32k-* \
447 | x86-* | x86_64-* | xc16x-* | xps100-* \
448 | xstormy16-* | xtensa*-* \
449 | ymp-* \
450 | z8k-* | z80-*)
451 ;;
452 # Recognize the basic CPU types without company name, with glob match.
453 xtensa*)
454 basic_machine=$basic_machine-unknown
455 ;;
456 # Recognize the various machine names and aliases which stand
457 # for a CPU type and a company and sometimes even an OS.
458 386bsd)
459 basic_machine=i386-unknown
460 os=-bsd
461 ;;
462 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
463 basic_machine=m68000-att
464 ;;
465 3b*)
466 basic_machine=we32k-att
467 ;;
468 a29khif)
469 basic_machine=a29k-amd
470 os=-udi
471 ;;
472 abacus)
473 basic_machine=abacus-unknown
474 ;;
475 adobe68k)
476 basic_machine=m68010-adobe
477 os=-scout
478 ;;
479 alliant | fx80)
480 basic_machine=fx80-alliant
481 ;;
482 altos | altos3068)
483 basic_machine=m68k-altos
484 ;;
485 am29k)
486 basic_machine=a29k-none
487 os=-bsd
488 ;;
489 amd64)
490 basic_machine=x86_64-pc
491 ;;
492 amd64-*)
493 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
494 ;;
495 amdahl)
496 basic_machine=580-amdahl
497 os=-sysv
498 ;;
499 amiga | amiga-*)
500 basic_machine=m68k-unknown
501 ;;
502 amigaos | amigados)
503 basic_machine=m68k-unknown
504 os=-amigaos
505 ;;
506 amigaunix | amix)
507 basic_machine=m68k-unknown
508 os=-sysv4
509 ;;
510 apollo68)
511 basic_machine=m68k-apollo
512 os=-sysv
513 ;;
514 apollo68bsd)
515 basic_machine=m68k-apollo
516 os=-bsd
517 ;;
518 aros)
519 basic_machine=i386-pc
520 os=-aros
521 ;;
522 asmjs)
523 basic_machine=asmjs-unknown
524 ;;
525 aux)
526 basic_machine=m68k-apple
527 os=-aux
528 ;;
529 balance)
530 basic_machine=ns32k-sequent
531 os=-dynix
532 ;;
533 blackfin)
534 basic_machine=bfin-unknown
535 os=-linux
536 ;;
537 blackfin-*)
538 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
539 os=-linux
540 ;;
541 bluegene*)
542 basic_machine=powerpc-ibm
543 os=-cnk
544 ;;
545 c54x-*)
546 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
547 ;;
548 c55x-*)
549 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
550 ;;
551 c6x-*)
552 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
553 ;;
554 c90)
555 basic_machine=c90-cray
556 os=-unicos
557 ;;
558 cegcc)
559 basic_machine=arm-unknown
560 os=-cegcc
561 ;;
562 convex-c1)
563 basic_machine=c1-convex
564 os=-bsd
565 ;;
566 convex-c2)
567 basic_machine=c2-convex
568 os=-bsd
569 ;;
570 convex-c32)
571 basic_machine=c32-convex
572 os=-bsd
573 ;;
574 convex-c34)
575 basic_machine=c34-convex
576 os=-bsd
577 ;;
578 convex-c38)
579 basic_machine=c38-convex
580 os=-bsd
581 ;;
582 cray | j90)
583 basic_machine=j90-cray
584 os=-unicos
585 ;;
586 craynv)
587 basic_machine=craynv-cray
588 os=-unicosmp
589 ;;
590 cr16 | cr16-*)
591 basic_machine=cr16-unknown
592 os=-elf
593 ;;
594 crds | unos)
595 basic_machine=m68k-crds
596 ;;
597 crisv32 | crisv32-* | etraxfs*)
598 basic_machine=crisv32-axis
599 ;;
600 cris | cris-* | etrax*)
601 basic_machine=cris-axis
602 ;;
603 crx)
604 basic_machine=crx-unknown
605 os=-elf
606 ;;
607 da30 | da30-*)
608 basic_machine=m68k-da30
609 ;;
610 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
611 basic_machine=mips-dec
612 ;;
613 decsystem10* | dec10*)
614 basic_machine=pdp10-dec
615 os=-tops10
616 ;;
617 decsystem20* | dec20*)
618 basic_machine=pdp10-dec
619 os=-tops20
620 ;;
621 delta | 3300 | motorola-3300 | motorola-delta \
622 | 3300-motorola | delta-motorola)
623 basic_machine=m68k-motorola
624 ;;
625 delta88)
626 basic_machine=m88k-motorola
627 os=-sysv3
628 ;;
629 dicos)
630 basic_machine=i686-pc
631 os=-dicos
632 ;;
633 djgpp)
634 basic_machine=i586-pc
635 os=-msdosdjgpp
636 ;;
637 dpx20 | dpx20-*)
638 basic_machine=rs6000-bull
639 os=-bosx
640 ;;
641 dpx2* | dpx2*-bull)
642 basic_machine=m68k-bull
643 os=-sysv3
644 ;;
645 ebmon29k)
646 basic_machine=a29k-amd
647 os=-ebmon
648 ;;
649 elxsi)
650 basic_machine=elxsi-elxsi
651 os=-bsd
652 ;;
653 encore | umax | mmax)
654 basic_machine=ns32k-encore
655 ;;
656 es1800 | OSE68k | ose68k | ose | OSE)
657 basic_machine=m68k-ericsson
658 os=-ose
659 ;;
660 fx2800)
661 basic_machine=i860-alliant
662 ;;
663 genix)
664 basic_machine=ns32k-ns
665 ;;
666 gmicro)
667 basic_machine=tron-gmicro
668 os=-sysv
669 ;;
670 go32)
671 basic_machine=i386-pc
672 os=-go32
673 ;;
674 h3050r* | hiux*)
675 basic_machine=hppa1.1-hitachi
676 os=-hiuxwe2
677 ;;
678 h8300hms)
679 basic_machine=h8300-hitachi
680 os=-hms
681 ;;
682 h8300xray)
683 basic_machine=h8300-hitachi
684 os=-xray
685 ;;
686 h8500hms)
687 basic_machine=h8500-hitachi
688 os=-hms
689 ;;
690 harris)
691 basic_machine=m88k-harris
692 os=-sysv3
693 ;;
694 hp300-*)
695 basic_machine=m68k-hp
696 ;;
697 hp300bsd)
698 basic_machine=m68k-hp
699 os=-bsd
700 ;;
701 hp300hpux)
702 basic_machine=m68k-hp
703 os=-hpux
704 ;;
705 hp3k9[0-9][0-9] | hp9[0-9][0-9])
706 basic_machine=hppa1.0-hp
707 ;;
708 hp9k2[0-9][0-9] | hp9k31[0-9])
709 basic_machine=m68000-hp
710 ;;
711 hp9k3[2-9][0-9])
712 basic_machine=m68k-hp
713 ;;
714 hp9k6[0-9][0-9] | hp6[0-9][0-9])
715 basic_machine=hppa1.0-hp
716 ;;
717 hp9k7[0-79][0-9] | hp7[0-79][0-9])
718 basic_machine=hppa1.1-hp
719 ;;
720 hp9k78[0-9] | hp78[0-9])
721 # FIXME: really hppa2.0-hp
722 basic_machine=hppa1.1-hp
723 ;;
724 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
725 # FIXME: really hppa2.0-hp
726 basic_machine=hppa1.1-hp
727 ;;
728 hp9k8[0-9][13679] | hp8[0-9][13679])
729 basic_machine=hppa1.1-hp
730 ;;
731 hp9k8[0-9][0-9] | hp8[0-9][0-9])
732 basic_machine=hppa1.0-hp
733 ;;
734 hppa-next)
735 os=-nextstep3
736 ;;
737 hppaosf)
738 basic_machine=hppa1.1-hp
739 os=-osf
740 ;;
741 hppro)
742 basic_machine=hppa1.1-hp
743 os=-proelf
744 ;;
745 i370-ibm* | ibm*)
746 basic_machine=i370-ibm
747 ;;
748 i*86v32)
749 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
750 os=-sysv32
751 ;;
752 i*86v4*)
753 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
754 os=-sysv4
755 ;;
756 i*86v)
757 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
758 os=-sysv
759 ;;
760 i*86sol2)
761 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
762 os=-solaris2
763 ;;
764 i386mach)
765 basic_machine=i386-mach
766 os=-mach
767 ;;
768 i386-vsta | vsta)
769 basic_machine=i386-unknown
770 os=-vsta
771 ;;
772 iris | iris4d)
773 basic_machine=mips-sgi
774 case $os in
775 -irix*)
776 ;;
777 *)
778 os=-irix4
779 ;;
780 esac
781 ;;
782 isi68 | isi)
783 basic_machine=m68k-isi
784 os=-sysv
785 ;;
786 leon-*|leon[3-9]-*)
787 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
788 ;;
789 m68knommu)
790 basic_machine=m68k-unknown
791 os=-linux
792 ;;
793 m68knommu-*)
794 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
795 os=-linux
796 ;;
797 m88k-omron*)
798 basic_machine=m88k-omron
799 ;;
800 magnum | m3230)
801 basic_machine=mips-mips
802 os=-sysv
803 ;;
804 merlin)
805 basic_machine=ns32k-utek
806 os=-sysv
807 ;;
808 microblaze*)
809 basic_machine=microblaze-xilinx
810 ;;
811 mingw64)
812 basic_machine=x86_64-pc
813 os=-mingw64
814 ;;
815 mingw32)
816 basic_machine=i686-pc
817 os=-mingw32
818 ;;
819 mingw32ce)
820 basic_machine=arm-unknown
821 os=-mingw32ce
822 ;;
823 miniframe)
824 basic_machine=m68000-convergent
825 ;;
826 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
827 basic_machine=m68k-atari
828 os=-mint
829 ;;
830 mips3*-*)
831 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
832 ;;
833 mips3*)
834 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
835 ;;
836 monitor)
837 basic_machine=m68k-rom68k
838 os=-coff
839 ;;
840 morphos)
841 basic_machine=powerpc-unknown
842 os=-morphos
843 ;;
844 moxiebox)
845 basic_machine=moxie-unknown
846 os=-moxiebox
847 ;;
848 msdos)
849 basic_machine=i386-pc
850 os=-msdos
851 ;;
852 ms1-*)
853 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
854 ;;
855 msys)
856 basic_machine=i686-pc
857 os=-msys
858 ;;
859 mvs)
860 basic_machine=i370-ibm
861 os=-mvs
862 ;;
863 nacl)
864 basic_machine=le32-unknown
865 os=-nacl
866 ;;
867 ncr3000)
868 basic_machine=i486-ncr
869 os=-sysv4
870 ;;
871 netbsd386)
872 basic_machine=i386-unknown
873 os=-netbsd
874 ;;
875 netwinder)
876 basic_machine=armv4l-rebel
877 os=-linux
878 ;;
879 news | news700 | news800 | news900)
880 basic_machine=m68k-sony
881 os=-newsos
882 ;;
883 news1000)
884 basic_machine=m68030-sony
885 os=-newsos
886 ;;
887 news-3600 | risc-news)
888 basic_machine=mips-sony
889 os=-newsos
890 ;;
891 necv70)
892 basic_machine=v70-nec
893 os=-sysv
894 ;;
895 next | m*-next )
896 basic_machine=m68k-next
897 case $os in
898 -nextstep* )
899 ;;
900 -ns2*)
901 os=-nextstep2
902 ;;
903 *)
904 os=-nextstep3
905 ;;
906 esac
907 ;;
908 nh3000)
909 basic_machine=m68k-harris
910 os=-cxux
911 ;;
912 nh[45]000)
913 basic_machine=m88k-harris
914 os=-cxux
915 ;;
916 nindy960)
917 basic_machine=i960-intel
918 os=-nindy
919 ;;
920 mon960)
921 basic_machine=i960-intel
922 os=-mon960
923 ;;
924 nonstopux)
925 basic_machine=mips-compaq
926 os=-nonstopux
927 ;;
928 np1)
929 basic_machine=np1-gould
930 ;;
931 neo-tandem)
932 basic_machine=neo-tandem
933 ;;
934 nse-tandem)
935 basic_machine=nse-tandem
936 ;;
937 nsr-tandem)
938 basic_machine=nsr-tandem
939 ;;
940 op50n-* | op60c-*)
941 basic_machine=hppa1.1-oki
942 os=-proelf
943 ;;
944 openrisc | openrisc-*)
945 basic_machine=or32-unknown
946 ;;
947 os400)
948 basic_machine=powerpc-ibm
949 os=-os400
950 ;;
951 OSE68000 | ose68000)
952 basic_machine=m68000-ericsson
953 os=-ose
954 ;;
955 os68k)
956 basic_machine=m68k-none
957 os=-os68k
958 ;;
959 pa-hitachi)
960 basic_machine=hppa1.1-hitachi
961 os=-hiuxwe2
962 ;;
963 paragon)
964 basic_machine=i860-intel
965 os=-osf
966 ;;
967 parisc)
968 basic_machine=hppa-unknown
969 os=-linux
970 ;;
971 parisc-*)
972 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
973 os=-linux
974 ;;
975 pbd)
976 basic_machine=sparc-tti
977 ;;
978 pbb)
979 basic_machine=m68k-tti
980 ;;
981 pc532 | pc532-*)
982 basic_machine=ns32k-pc532
983 ;;
984 pc98)
985 basic_machine=i386-pc
986 ;;
987 pc98-*)
988 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
989 ;;
990 pentium | p5 | k5 | k6 | nexgen | viac3)
991 basic_machine=i586-pc
992 ;;
993 pentiumpro | p6 | 6x86 | athlon | athlon_*)
994 basic_machine=i686-pc
995 ;;
996 pentiumii | pentium2 | pentiumiii | pentium3)
997 basic_machine=i686-pc
998 ;;
999 pentium4)
1000 basic_machine=i786-pc
1001 ;;
1002 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1003 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
1004 ;;
1005 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1006 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1007 ;;
1008 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1009 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1010 ;;
1011 pentium4-*)
1012 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
1013 ;;
1014 pn)
1015 basic_machine=pn-gould
1016 ;;
1017 power) basic_machine=power-ibm
1018 ;;
1019 ppc | ppcbe) basic_machine=powerpc-unknown
1020 ;;
1021 ppc-* | ppcbe-*)
1022 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1023 ;;
1024 ppcle | powerpclittle | ppc-le | powerpc-little)
1025 basic_machine=powerpcle-unknown
1026 ;;
1027 ppcle-* | powerpclittle-*)
1028 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1029 ;;
1030 ppc64) basic_machine=powerpc64-unknown
1031 ;;
1032 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1033 ;;
1034 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
1035 basic_machine=powerpc64le-unknown
1036 ;;
1037 ppc64le-* | powerpc64little-*)
1038 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1039 ;;
1040 ps2)
1041 basic_machine=i386-ibm
1042 ;;
1043 pw32)
1044 basic_machine=i586-unknown
1045 os=-pw32
1046 ;;
1047 rdos | rdos64)
1048 basic_machine=x86_64-pc
1049 os=-rdos
1050 ;;
1051 rdos32)
1052 basic_machine=i386-pc
1053 os=-rdos
1054 ;;
1055 rom68k)
1056 basic_machine=m68k-rom68k
1057 os=-coff
1058 ;;
1059 rm[46]00)
1060 basic_machine=mips-siemens
1061 ;;
1062 rtpc | rtpc-*)
1063 basic_machine=romp-ibm
1064 ;;
1065 s390 | s390-*)
1066 basic_machine=s390-ibm
1067 ;;
1068 s390x | s390x-*)
1069 basic_machine=s390x-ibm
1070 ;;
1071 sa29200)
1072 basic_machine=a29k-amd
1073 os=-udi
1074 ;;
1075 sb1)
1076 basic_machine=mipsisa64sb1-unknown
1077 ;;
1078 sb1el)
1079 basic_machine=mipsisa64sb1el-unknown
1080 ;;
1081 sde)
1082 basic_machine=mipsisa32-sde
1083 os=-elf
1084 ;;
1085 sei)
1086 basic_machine=mips-sei
1087 os=-seiux
1088 ;;
1089 sequent)
1090 basic_machine=i386-sequent
1091 ;;
1092 sh)
1093 basic_machine=sh-hitachi
1094 os=-hms
1095 ;;
1096 sparclite-wrs | simso-wrs)
1097 basic_machine=sparclite-wrs
1098 os=-vxworks
1099 ;;
1100 sps7)
1101 basic_machine=m68k-bull
1102 os=-sysv2
1103 ;;
1104 spur)
1105 basic_machine=spur-unknown
1106 ;;
1107 st2000)
1108 basic_machine=m68k-tandem
1109 ;;
1110 stratus)
1111 basic_machine=i860-stratus
1112 os=-sysv4
1113 ;;
1114 strongarm-* | thumb-*)
1115 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1116 ;;
1117 sun2)
1118 basic_machine=m68000-sun
1119 ;;
1120 sun2os3)
1121 basic_machine=m68000-sun
1122 os=-sunos3
1123 ;;
1124 sun2os4)
1125 basic_machine=m68000-sun
1126 os=-sunos4
1127 ;;
1128 sun3os3)
1129 basic_machine=m68k-sun
1130 os=-sunos3
1131 ;;
1132 sun3os4)
1133 basic_machine=m68k-sun
1134 os=-sunos4
1135 ;;
1136 sun4os3)
1137 basic_machine=sparc-sun
1138 os=-sunos3
1139 ;;
1140 sun4os4)
1141 basic_machine=sparc-sun
1142 os=-sunos4
1143 ;;
1144 sun4sol2)
1145 basic_machine=sparc-sun
1146 os=-solaris2
1147 ;;
1148 sun3 | sun3-*)
1149 basic_machine=m68k-sun
1150 ;;
1151 sun4)
1152 basic_machine=sparc-sun
1153 ;;
1154 sun386 | sun386i | roadrunner)
1155 basic_machine=i386-sun
1156 ;;
1157 sv1)
1158 basic_machine=sv1-cray
1159 os=-unicos
1160 ;;
1161 symmetry)
1162 basic_machine=i386-sequent
1163 os=-dynix
1164 ;;
1165 t3e)
1166 basic_machine=alphaev5-cray
1167 os=-unicos
1168 ;;
1169 t90)
1170 basic_machine=t90-cray
1171 os=-unicos
1172 ;;
1173 tile*)
1174 basic_machine=$basic_machine-unknown
1175 os=-linux-gnu
1176 ;;
1177 tx39)
1178 basic_machine=mipstx39-unknown
1179 ;;
1180 tx39el)
1181 basic_machine=mipstx39el-unknown
1182 ;;
1183 toad1)
1184 basic_machine=pdp10-xkl
1185 os=-tops20
1186 ;;
1187 tower | tower-32)
1188 basic_machine=m68k-ncr
1189 ;;
1190 tpf)
1191 basic_machine=s390x-ibm
1192 os=-tpf
1193 ;;
1194 udi29k)
1195 basic_machine=a29k-amd
1196 os=-udi
1197 ;;
1198 ultra3)
1199 basic_machine=a29k-nyu
1200 os=-sym1
1201 ;;
1202 v810 | necv810)
1203 basic_machine=v810-nec
1204 os=-none
1205 ;;
1206 vaxv)
1207 basic_machine=vax-dec
1208 os=-sysv
1209 ;;
1210 vms)
1211 basic_machine=vax-dec
1212 os=-vms
1213 ;;
1214 vpp*|vx|vx-*)
1215 basic_machine=f301-fujitsu
1216 ;;
1217 vxworks960)
1218 basic_machine=i960-wrs
1219 os=-vxworks
1220 ;;
1221 vxworks68)
1222 basic_machine=m68k-wrs
1223 os=-vxworks
1224 ;;
1225 vxworks29k)
1226 basic_machine=a29k-wrs
1227 os=-vxworks
1228 ;;
1229 w65*)
1230 basic_machine=w65-wdc
1231 os=-none
1232 ;;
1233 w89k-*)
1234 basic_machine=hppa1.1-winbond
1235 os=-proelf
1236 ;;
1237 xbox)
1238 basic_machine=i686-pc
1239 os=-mingw32
1240 ;;
1241 xps | xps100)
1242 basic_machine=xps100-honeywell
1243 ;;
1244 xscale-* | xscalee[bl]-*)
1245 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1246 ;;
1247 ymp)
1248 basic_machine=ymp-cray
1249 os=-unicos
1250 ;;
1251 z8k-*-coff)
1252 basic_machine=z8k-unknown
1253 os=-sim
1254 ;;
1255 z80-*-coff)
1256 basic_machine=z80-unknown
1257 os=-sim
1258 ;;
1259 none)
1260 basic_machine=none-none
1261 os=-none
1262 ;;
1263
1264 # Here we handle the default manufacturer of certain CPU types. It is in
1265 # some cases the only manufacturer, in others, it is the most popular.
1266 w89k)
1267 basic_machine=hppa1.1-winbond
1268 ;;
1269 op50n)
1270 basic_machine=hppa1.1-oki
1271 ;;
1272 op60c)
1273 basic_machine=hppa1.1-oki
1274 ;;
1275 romp)
1276 basic_machine=romp-ibm
1277 ;;
1278 mmix)
1279 basic_machine=mmix-knuth
1280 ;;
1281 rs6000)
1282 basic_machine=rs6000-ibm
1283 ;;
1284 vax)
1285 basic_machine=vax-dec
1286 ;;
1287 pdp10)
1288 # there are many clones, so DEC is not a safe bet
1289 basic_machine=pdp10-unknown
1290 ;;
1291 pdp11)
1292 basic_machine=pdp11-dec
1293 ;;
1294 we32k)
1295 basic_machine=we32k-att
1296 ;;
1297 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1298 basic_machine=sh-unknown
1299 ;;
1300 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1301 basic_machine=sparc-sun
1302 ;;
1303 cydra)
1304 basic_machine=cydra-cydrome
1305 ;;
1306 orion)
1307 basic_machine=orion-highlevel
1308 ;;
1309 orion105)
1310 basic_machine=clipper-highlevel
1311 ;;
1312 mac | mpw | mac-mpw)
1313 basic_machine=m68k-apple
1314 ;;
1315 pmac | pmac-mpw)
1316 basic_machine=powerpc-apple
1317 ;;
1318 *-unknown)
1319 # Make sure to match an already-canonicalized machine name.
1320 ;;
1321 *)
1322 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1323 exit 1
1324 ;;
1325 esac
1326
1327 # Here we canonicalize certain aliases for manufacturers.
1328 case $basic_machine in
1329 *-digital*)
1330 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1331 ;;
1332 *-commodore*)
1333 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1334 ;;
1335 *)
1336 ;;
1337 esac
1338
1339 # Decode manufacturer-specific aliases for certain operating systems.
1340
1341 if [ x"$os" != x"" ]
1342 then
1343 case $os in
1344 # First match some system type aliases
1345 # that might get confused with valid system types.
1346 # -solaris* is a basic system type, with this one exception.
1347 -auroraux)
1348 os=-auroraux
1349 ;;
1350 -solaris1 | -solaris1.*)
1351 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1352 ;;
1353 -solaris)
1354 os=-solaris2
1355 ;;
1356 -svr4*)
1357 os=-sysv4
1358 ;;
1359 -unixware*)
1360 os=-sysv4.2uw
1361 ;;
1362 -gnu/linux*)
1363 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1364 ;;
1365 # First accept the basic system types.
1366 # The portable systems comes first.
1367 # Each alternative MUST END IN A *, to match a version number.
1368 # -sysv* is not here because it comes later, after sysvr4.
1369 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1370 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1371 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1372 | -sym* | -kopensolaris* | -plan9* \
1373 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1374 | -aos* | -aros* | -cloudabi* | -sortix* \
1375 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1376 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1377 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1378 | -bitrig* | -openbsd* | -solidbsd* \
1379 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1380 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1381 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1382 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1383 | -chorusos* | -chorusrdb* | -cegcc* \
1384 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1385 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1386 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1387 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1388 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1389 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1390 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1391 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1392 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1393 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1394 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1395 | -onefs* | -tirtos*)
1396 # Remember, each alternative MUST END IN *, to match a version number.
1397 ;;
1398 -qnx*)
1399 case $basic_machine in
1400 x86-* | i*86-*)
1401 ;;
1402 *)
1403 os=-nto$os
1404 ;;
1405 esac
1406 ;;
1407 -nto-qnx*)
1408 ;;
1409 -nto*)
1410 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1411 ;;
1412 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1413 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1414 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1415 ;;
1416 -mac*)
1417 os=`echo $os | sed -e 's|mac|macos|'`
1418 ;;
1419 -linux-dietlibc)
1420 os=-linux-dietlibc
1421 ;;
1422 -linux*)
1423 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1424 ;;
1425 -sunos5*)
1426 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1427 ;;
1428 -sunos6*)
1429 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1430 ;;
1431 -opened*)
1432 os=-openedition
1433 ;;
1434 -os400*)
1435 os=-os400
1436 ;;
1437 -wince*)
1438 os=-wince
1439 ;;
1440 -osfrose*)
1441 os=-osfrose
1442 ;;
1443 -osf*)
1444 os=-osf
1445 ;;
1446 -utek*)
1447 os=-bsd
1448 ;;
1449 -dynix*)
1450 os=-bsd
1451 ;;
1452 -acis*)
1453 os=-aos
1454 ;;
1455 -atheos*)
1456 os=-atheos
1457 ;;
1458 -syllable*)
1459 os=-syllable
1460 ;;
1461 -386bsd)
1462 os=-bsd
1463 ;;
1464 -ctix* | -uts*)
1465 os=-sysv
1466 ;;
1467 -nova*)
1468 os=-rtmk-nova
1469 ;;
1470 -ns2 )
1471 os=-nextstep2
1472 ;;
1473 -nsk*)
1474 os=-nsk
1475 ;;
1476 # Preserve the version number of sinix5.
1477 -sinix5.*)
1478 os=`echo $os | sed -e 's|sinix|sysv|'`
1479 ;;
1480 -sinix*)
1481 os=-sysv4
1482 ;;
1483 -tpf*)
1484 os=-tpf
1485 ;;
1486 -triton*)
1487 os=-sysv3
1488 ;;
1489 -oss*)
1490 os=-sysv3
1491 ;;
1492 -svr4)
1493 os=-sysv4
1494 ;;
1495 -svr3)
1496 os=-sysv3
1497 ;;
1498 -sysvr4)
1499 os=-sysv4
1500 ;;
1501 # This must come after -sysvr4.
1502 -sysv*)
1503 ;;
1504 -ose*)
1505 os=-ose
1506 ;;
1507 -es1800*)
1508 os=-ose
1509 ;;
1510 -xenix)
1511 os=-xenix
1512 ;;
1513 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1514 os=-mint
1515 ;;
1516 -aros*)
1517 os=-aros
1518 ;;
1519 -zvmoe)
1520 os=-zvmoe
1521 ;;
1522 -dicos*)
1523 os=-dicos
1524 ;;
1525 -nacl*)
1526 ;;
1527 -none)
1528 ;;
1529 *)
1530 # Get rid of the `-' at the beginning of $os.
1531 os=`echo $os | sed 's/[^-]*-//'`
1532 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1533 exit 1
1534 ;;
1535 esac
1536 else
1537
1538 # Here we handle the default operating systems that come with various machines.
1539 # The value should be what the vendor currently ships out the door with their
1540 # machine or put another way, the most popular os provided with the machine.
1541
1542 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1543 # "-sun"), then you have to tell the case statement up towards the top
1544 # that MANUFACTURER isn't an operating system. Otherwise, code above
1545 # will signal an error saying that MANUFACTURER isn't an operating
1546 # system, and we'll never get to this point.
1547
1548 case $basic_machine in
1549 score-*)
1550 os=-elf
1551 ;;
1552 spu-*)
1553 os=-elf
1554 ;;
1555 *-acorn)
1556 os=-riscix1.2
1557 ;;
1558 arm*-rebel)
1559 os=-linux
1560 ;;
1561 arm*-semi)
1562 os=-aout
1563 ;;
1564 c4x-* | tic4x-*)
1565 os=-coff
1566 ;;
1567 c8051-*)
1568 os=-elf
1569 ;;
1570 hexagon-*)
1571 os=-elf
1572 ;;
1573 tic54x-*)
1574 os=-coff
1575 ;;
1576 tic55x-*)
1577 os=-coff
1578 ;;
1579 tic6x-*)
1580 os=-coff
1581 ;;
1582 # This must come before the *-dec entry.
1583 pdp10-*)
1584 os=-tops20
1585 ;;
1586 pdp11-*)
1587 os=-none
1588 ;;
1589 *-dec | vax-*)
1590 os=-ultrix4.2
1591 ;;
1592 m68*-apollo)
1593 os=-domain
1594 ;;
1595 i386-sun)
1596 os=-sunos4.0.2
1597 ;;
1598 m68000-sun)
1599 os=-sunos3
1600 ;;
1601 m68*-cisco)
1602 os=-aout
1603 ;;
1604 mep-*)
1605 os=-elf
1606 ;;
1607 mips*-cisco)
1608 os=-elf
1609 ;;
1610 mips*-*)
1611 os=-elf
1612 ;;
1613 or32-*)
1614 os=-coff
1615 ;;
1616 *-tti) # must be before sparc entry or we get the wrong os.
1617 os=-sysv3
1618 ;;
1619 sparc-* | *-sun)
1620 os=-sunos4.1.1
1621 ;;
1622 *-be)
1623 os=-beos
1624 ;;
1625 *-haiku)
1626 os=-haiku
1627 ;;
1628 *-ibm)
1629 os=-aix
1630 ;;
1631 *-knuth)
1632 os=-mmixware
1633 ;;
1634 *-wec)
1635 os=-proelf
1636 ;;
1637 *-winbond)
1638 os=-proelf
1639 ;;
1640 *-oki)
1641 os=-proelf
1642 ;;
1643 *-hp)
1644 os=-hpux
1645 ;;
1646 *-hitachi)
1647 os=-hiux
1648 ;;
1649 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1650 os=-sysv
1651 ;;
1652 *-cbm)
1653 os=-amigaos
1654 ;;
1655 *-dg)
1656 os=-dgux
1657 ;;
1658 *-dolphin)
1659 os=-sysv3
1660 ;;
1661 m68k-ccur)
1662 os=-rtu
1663 ;;
1664 m88k-omron*)
1665 os=-luna
1666 ;;
1667 *-next )
1668 os=-nextstep
1669 ;;
1670 *-sequent)
1671 os=-ptx
1672 ;;
1673 *-crds)
1674 os=-unos
1675 ;;
1676 *-ns)
1677 os=-genix
1678 ;;
1679 i370-*)
1680 os=-mvs
1681 ;;
1682 *-next)
1683 os=-nextstep3
1684 ;;
1685 *-gould)
1686 os=-sysv
1687 ;;
1688 *-highlevel)
1689 os=-bsd
1690 ;;
1691 *-encore)
1692 os=-bsd
1693 ;;
1694 *-sgi)
1695 os=-irix
1696 ;;
1697 *-siemens)
1698 os=-sysv4
1699 ;;
1700 *-masscomp)
1701 os=-rtu
1702 ;;
1703 f30[01]-fujitsu | f700-fujitsu)
1704 os=-uxpv
1705 ;;
1706 *-rom68k)
1707 os=-coff
1708 ;;
1709 *-*bug)
1710 os=-coff
1711 ;;
1712 *-apple)
1713 os=-macos
1714 ;;
1715 *-atari*)
1716 os=-mint
1717 ;;
1718 *)
1719 os=-none
1720 ;;
1721 esac
1722 fi
1723
1724 # Here we handle the case where we know the os, and the CPU type, but not the
1725 # manufacturer. We pick the logical manufacturer.
1726 vendor=unknown
1727 case $basic_machine in
1728 *-unknown)
1729 case $os in
1730 -riscix*)
1731 vendor=acorn
1732 ;;
1733 -sunos*)
1734 vendor=sun
1735 ;;
1736 -cnk*|-aix*)
1737 vendor=ibm
1738 ;;
1739 -beos*)
1740 vendor=be
1741 ;;
1742 -hpux*)
1743 vendor=hp
1744 ;;
1745 -mpeix*)
1746 vendor=hp
1747 ;;
1748 -hiux*)
1749 vendor=hitachi
1750 ;;
1751 -unos*)
1752 vendor=crds
1753 ;;
1754 -dgux*)
1755 vendor=dg
1756 ;;
1757 -luna*)
1758 vendor=omron
1759 ;;
1760 -genix*)
1761 vendor=ns
1762 ;;
1763 -mvs* | -opened*)
1764 vendor=ibm
1765 ;;
1766 -os400*)
1767 vendor=ibm
1768 ;;
1769 -ptx*)
1770 vendor=sequent
1771 ;;
1772 -tpf*)
1773 vendor=ibm
1774 ;;
1775 -vxsim* | -vxworks* | -windiss*)
1776 vendor=wrs
1777 ;;
1778 -aux*)
1779 vendor=apple
1780 ;;
1781 -hms*)
1782 vendor=hitachi
1783 ;;
1784 -mpw* | -macos*)
1785 vendor=apple
1786 ;;
1787 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1788 vendor=atari
1789 ;;
1790 -vos*)
1791 vendor=stratus
1792 ;;
1793 esac
1794 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1795 ;;
1796 esac
1797
1798 echo $basic_machine$os
1799 exit
1800
1801 # Local variables:
1802 # eval: (add-hook 'write-file-hooks 'time-stamp)
1803 # time-stamp-start: "timestamp='"
1804 # time-stamp-format: "%:y-%02m-%02d"
1805 # time-stamp-end: "'"
1806 # End: