llvm.org GIT mirror llvm / c84f975
Update config.sub in the sample project. This change replaces projects/sample/autoconf/config.sub with a copy of autoconf/config.sub. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155703 91177308-0d34-0410-b5e6-96231b3b80d8 Evgeniy Stepanov 8 years ago
1 changed file(s) with 378 addition(s) and 101 deletion(s). Raw diff Collapse all Expand all
0 #! /bin/sh
11 # Configuration validation subroutine script.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
4
5 timestamp='2003-02-22'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011 Free Software Foundation, Inc.
5
6 timestamp='2011-11-02'
67
78 # This file is (in principle) common to ALL GNU software.
89 # The presence of a machine in this file suggests that SOME GNU software
2021 #
2122 # You should have received a copy of the GNU General Public License
2223 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 59 Temple Place - Suite 330,
24 # Boston, MA 02111-1307, USA.
25
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
26 #
2627 # As a special exception to the GNU General Public License, if you
2728 # distribute this file as part of a program that contains a
2829 # configuration script generated by Autoconf, you may include it under
2930 # the same distribution terms that you use for the rest of that program.
3031
32
3133 # Please send patches to . Submit a context
32 # diff and a properly formatted ChangeLog entry.
34 # diff and a properly formatted GNU ChangeLog entry.
3335 #
3436 # Configuration subroutine to validate and canonicalize a configuration type.
3537 # Supply the specified configuration type as an argument.
3638 # If it is invalid, we print an error message on stderr and exit with code 1.
3739 # Otherwise, we print the canonical config type on stdout and succeed.
40
41 # You can get the latest version of this script from:
42 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
3843
3944 # This file is supposed to be the same for all GNU packages
4045 # and recognize all the CPU types, system types and aliases
6974 version="\
7075 GNU config.sub ($timestamp)
7176
72 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
73 Free Software Foundation, Inc.
77 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
79 Software Foundation, Inc.
7480
7581 This is free software; see the source for copying conditions. There is NO
7682 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8288 while test $# -gt 0 ; do
8389 case $1 in
8490 --time-stamp | --time* | -t )
85 echo "$timestamp" ; exit 0 ;;
91 echo "$timestamp" ; exit ;;
8692 --version | -v )
87 echo "$version" ; exit 0 ;;
93 echo "$version" ; exit ;;
8894 --help | --h* | -h )
89 echo "$usage"; exit 0 ;;
95 echo "$usage"; exit ;;
9096 -- ) # Stop option processing
9197 shift; break ;;
9298 - ) # Use stdin as input.
98104 *local*)
99105 # First pass through any local machine types.
100106 echo $1
101 exit 0;;
107 exit ;;
102108
103109 * )
104110 break ;;
117123 # Here we must recognize all the valid KERNEL-OS combinations.
118124 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
119125 case $maybe_os in
120 nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
126 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
127 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
128 knetbsd*-gnu* | netbsd*-gnu* | \
129 kopensolaris*-gnu* | \
130 storm-chaos* | os2-emx* | rtmk-nova*)
121131 os=-$maybe_os
122132 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123133 ;;
143153 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
144154 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
145155 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
146 -apple | -axis)
156 -apple | -axis | -knuth | -cray | -microblaze)
147157 os=
148158 basic_machine=$1
159 ;;
160 -bluegene*)
161 os=-cnk
149162 ;;
150163 -sim | -cisco | -oki | -wec | -winbond)
151164 os=
161174 os=-chorusos
162175 basic_machine=$1
163176 ;;
164 -chorusrdb)
165 os=-chorusrdb
177 -chorusrdb)
178 os=-chorusrdb
166179 basic_machine=$1
167 ;;
180 ;;
168181 -hiux*)
169182 os=-hiuxwe2
183 ;;
184 -sco6)
185 os=-sco5v6
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
170187 ;;
171188 -sco5)
172189 os=-sco3.2v5
181198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182199 ;;
183200 -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*)
184205 # Don't forget version if it is 3.2v4 or newer.
185206 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186207 ;;
227248 | a29k \
228249 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
229250 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
230 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
231 | clipper \
251 | am33_2.0 \
252 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
253 | be32 | be64 \
254 | bfin \
255 | c4x | clipper \
232256 | d10v | d30v | dlx | dsp16xx \
233 | fr30 | frv \
257 | fido | fr30 | frv \
258 | hexagon \
234259 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
235260 | i370 | i860 | i960 | ia64 \
236 | ip2k \
237 | m32r | m68000 | m68k | m88k | mcore \
261 | ip2k | iq2000 \
262 | le32 | le64 \
263 | lm32 \
264 | m32c | m32r | m32rle | m68000 | m68k | m88k \
265 | maxq | mb | microblaze | mcore | mep | metag \
238266 | mips | mipsbe | mipseb | mipsel | mipsle \
239267 | mips16 \
240268 | mips64 | mips64el \
269 | mips64octeon | mips64octeonel \
270 | mips64orion | mips64orionel \
271 | mips64r5900 | mips64r5900el \
241272 | mips64vr | mips64vrel \
242 | mips64orion | mips64orionel \
243273 | mips64vr4100 | mips64vr4100el \
244274 | mips64vr4300 | mips64vr4300el \
245275 | mips64vr5000 | mips64vr5000el \
276 | mips64vr5900 | mips64vr5900el \
246277 | mipsisa32 | mipsisa32el \
247278 | mipsisa32r2 | mipsisa32r2el \
248279 | mipsisa64 | mipsisa64el \
280 | mipsisa64r2 | mipsisa64r2el \
249281 | mipsisa64sb1 | mipsisa64sb1el \
250282 | mipsisa64sr71k | mipsisa64sr71kel \
251283 | mipstx39 | mipstx39el \
252284 | mn10200 | mn10300 \
285 | moxie \
286 | mt \
253287 | msp430 \
288 | nds32 | nds32le | nds32be \
289 | nios | nios2 \
254290 | ns16k | ns32k \
255 | openrisc | or32 \
291 | open8 \
292 | or32 \
256293 | pdp10 | pdp11 | pj | pjl \
257 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
294 | powerpc | powerpc64 | powerpc64le | powerpcle \
258295 | pyramid \
259 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
296 | rx \
297 | score \
298 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
260299 | sh64 | sh64le \
261 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
262 | strongarm \
263 | tahoe | thumb | tic80 | tron \
264 | v850 | v850e \
300 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
301 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
302 | spu \
303 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
304 | ubicom32 \
305 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
265306 | we32k \
266 | x86 | xscale | xstormy16 | xtensa \
267 | z8k)
307 | x86 | xc16x | xstormy16 | xtensa \
308 | z8k | z80)
268309 basic_machine=$basic_machine-unknown
269310 ;;
270 m6811 | m68hc11 | m6812 | m68hc12)
311 c54x)
312 basic_machine=tic54x-unknown
313 ;;
314 c55x)
315 basic_machine=tic55x-unknown
316 ;;
317 c6x)
318 basic_machine=tic6x-unknown
319 ;;
320 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
271321 # Motorola 68HC11/12.
272322 basic_machine=$basic_machine-unknown
273323 os=-none
274324 ;;
275325 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
326 ;;
327 ms1)
328 basic_machine=mt-unknown
329 ;;
330
331 strongarm | thumb | xscale)
332 basic_machine=arm-unknown
333 ;;
334
335 xscaleeb)
336 basic_machine=armeb-unknown
337 ;;
338
339 xscaleel)
340 basic_machine=armel-unknown
276341 ;;
277342
278343 # We use `pc' rather than `unknown'
293358 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
294359 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
295360 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
296 | avr-* \
297 | bs2000-* \
298 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
299 | clipper-* | cydra-* \
361 | avr-* | avr32-* \
362 | be32-* | be64-* \
363 | bfin-* | bs2000-* \
364 | c[123]* | c30-* | [cjt]90-* | c4x-* \
365 | clipper-* | craynv-* | cydra-* \
300366 | d10v-* | d30v-* | dlx-* \
301367 | elxsi-* \
302 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
368 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
303369 | h8300-* | h8500-* \
370 | hexagon-* \
304371 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
305372 | i*86-* | i860-* | i960-* | ia64-* \
306 | ip2k-* \
307 | m32r-* \
373 | ip2k-* | iq2000-* \
374 | le32-* | le64-* \
375 | lm32-* \
376 | m32c-* | m32r-* | m32rle-* \
308377 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
309 | m88110-* | m88k-* | mcore-* \
378 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
310379 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
311380 | mips16-* \
312381 | mips64-* | mips64el-* \
382 | mips64octeon-* | mips64octeonel-* \
383 | mips64orion-* | mips64orionel-* \
384 | mips64r5900-* | mips64r5900el-* \
313385 | mips64vr-* | mips64vrel-* \
314 | mips64orion-* | mips64orionel-* \
315386 | mips64vr4100-* | mips64vr4100el-* \
316387 | mips64vr4300-* | mips64vr4300el-* \
317388 | mips64vr5000-* | mips64vr5000el-* \
389 | mips64vr5900-* | mips64vr5900el-* \
318390 | mipsisa32-* | mipsisa32el-* \
319391 | mipsisa32r2-* | mipsisa32r2el-* \
320392 | mipsisa64-* | mipsisa64el-* \
393 | mipsisa64r2-* | mipsisa64r2el-* \
321394 | mipsisa64sb1-* | mipsisa64sb1el-* \
322395 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
323396 | mipstx39-* | mipstx39el-* \
397 | mmix-* \
398 | mt-* \
324399 | msp430-* \
325 | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
400 | nds32-* | nds32le-* | nds32be-* \
401 | nios-* | nios2-* \
402 | none-* | np1-* | ns16k-* | ns32k-* \
403 | open8-* \
326404 | orion-* \
327405 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
328 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
406 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
329407 | pyramid-* \
330 | romp-* | rs6000-* \
331 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
408 | romp-* | rs6000-* | rx-* \
409 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
332410 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
333 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
334 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
335 | tahoe-* | thumb-* \
411 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
412 | sparclite-* \
413 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
414 | tahoe-* \
336415 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
416 | tile*-* \
337417 | tron-* \
338 | v850-* | v850e-* | vax-* \
418 | ubicom32-* \
419 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
420 | vax-* \
339421 | we32k-* \
340 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
341 | xtensa-* \
422 | x86-* | x86_64-* | xc16x-* | xps100-* \
423 | xstormy16-* | xtensa*-* \
342424 | ymp-* \
343 | z8k-*)
425 | z8k-* | z80-*)
426 ;;
427 # Recognize the basic CPU types without company name, with glob match.
428 xtensa*)
429 basic_machine=$basic_machine-unknown
344430 ;;
345431 # Recognize the various machine names and aliases which stand
346432 # for a CPU type and a company and sometimes even an OS.
358444 basic_machine=a29k-amd
359445 os=-udi
360446 ;;
447 abacus)
448 basic_machine=abacus-unknown
449 ;;
361450 adobe68k)
362451 basic_machine=m68010-adobe
363452 os=-scout
372461 basic_machine=a29k-none
373462 os=-bsd
374463 ;;
464 amd64)
465 basic_machine=x86_64-pc
466 ;;
467 amd64-*)
468 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
469 ;;
375470 amdahl)
376471 basic_machine=580-amdahl
377472 os=-sysv
395490 basic_machine=m68k-apollo
396491 os=-bsd
397492 ;;
493 aros)
494 basic_machine=i386-pc
495 os=-aros
496 ;;
398497 aux)
399498 basic_machine=m68k-apple
400499 os=-aux
403502 basic_machine=ns32k-sequent
404503 os=-dynix
405504 ;;
505 blackfin)
506 basic_machine=bfin-unknown
507 os=-linux
508 ;;
509 blackfin-*)
510 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
511 os=-linux
512 ;;
513 bluegene*)
514 basic_machine=powerpc-ibm
515 os=-cnk
516 ;;
517 c54x-*)
518 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
519 ;;
520 c55x-*)
521 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
522 ;;
523 c6x-*)
524 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
525 ;;
406526 c90)
407527 basic_machine=c90-cray
408528 os=-unicos
409529 ;;
530 cegcc)
531 basic_machine=arm-unknown
532 os=-cegcc
533 ;;
410534 convex-c1)
411535 basic_machine=c1-convex
412536 os=-bsd
431555 basic_machine=j90-cray
432556 os=-unicos
433557 ;;
558 craynv)
559 basic_machine=craynv-cray
560 os=-unicosmp
561 ;;
562 cr16 | cr16-*)
563 basic_machine=cr16-unknown
564 os=-elf
565 ;;
434566 crds | unos)
435567 basic_machine=m68k-crds
436568 ;;
569 crisv32 | crisv32-* | etraxfs*)
570 basic_machine=crisv32-axis
571 ;;
437572 cris | cris-* | etrax*)
438573 basic_machine=cris-axis
574 ;;
575 crx)
576 basic_machine=crx-unknown
577 os=-elf
439578 ;;
440579 da30 | da30-*)
441580 basic_machine=m68k-da30
458597 delta88)
459598 basic_machine=m88k-motorola
460599 os=-sysv3
600 ;;
601 dicos)
602 basic_machine=i686-pc
603 os=-dicos
604 ;;
605 djgpp)
606 basic_machine=i586-pc
607 os=-msdosdjgpp
461608 ;;
462609 dpx20 | dpx20-*)
463610 basic_machine=rs6000-bull
609756 basic_machine=m68k-isi
610757 os=-sysv
611758 ;;
759 m68knommu)
760 basic_machine=m68k-unknown
761 os=-linux
762 ;;
763 m68knommu-*)
764 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
765 os=-linux
766 ;;
612767 m88k-omron*)
613768 basic_machine=m88k-omron
614769 ;;
620775 basic_machine=ns32k-utek
621776 os=-sysv
622777 ;;
778 microblaze)
779 basic_machine=microblaze-xilinx
780 ;;
623781 mingw32)
624782 basic_machine=i386-pc
625783 os=-mingw32
626784 ;;
785 mingw32ce)
786 basic_machine=arm-unknown
787 os=-mingw32ce
788 ;;
627789 miniframe)
628790 basic_machine=m68000-convergent
629791 ;;
637799 mips3*)
638800 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
639801 ;;
640 mmix*)
641 basic_machine=mmix-knuth
642 os=-mmixware
643 ;;
644802 monitor)
645803 basic_machine=m68k-rom68k
646804 os=-coff
653811 basic_machine=i386-pc
654812 os=-msdos
655813 ;;
814 ms1-*)
815 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
816 ;;
656817 mvs)
657818 basic_machine=i370-ibm
658819 os=-mvs
820 ;;
821 nacl)
822 basic_machine=le32-unknown
823 os=-nacl
659824 ;;
660825 ncr3000)
661826 basic_machine=i486-ncr
721886 np1)
722887 basic_machine=np1-gould
723888 ;;
724 nv1)
725 basic_machine=nv1-cray
726 os=-unicosmp
889 neo-tandem)
890 basic_machine=neo-tandem
891 ;;
892 nse-tandem)
893 basic_machine=nse-tandem
727894 ;;
728895 nsr-tandem)
729896 basic_machine=nsr-tandem
732899 basic_machine=hppa1.1-oki
733900 os=-proelf
734901 ;;
735 or32 | or32-*)
902 openrisc | openrisc-*)
736903 basic_machine=or32-unknown
737 os=-coff
904 ;;
905 os400)
906 basic_machine=powerpc-ibm
907 os=-os400
738908 ;;
739909 OSE68000 | ose68000)
740910 basic_machine=m68000-ericsson
752922 basic_machine=i860-intel
753923 os=-osf
754924 ;;
925 parisc)
926 basic_machine=hppa-unknown
927 os=-linux
928 ;;
929 parisc-*)
930 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
931 os=-linux
932 ;;
755933 pbd)
756934 basic_machine=sparc-tti
757935 ;;
761939 pc532 | pc532-*)
762940 basic_machine=ns32k-pc532
763941 ;;
942 pc98)
943 basic_machine=i386-pc
944 ;;
945 pc98-*)
946 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
947 ;;
764948 pentium | p5 | k5 | k6 | nexgen | viac3)
765949 basic_machine=i586-pc
766950 ;;
767951 pentiumpro | p6 | 6x86 | athlon | athlon_*)
768952 basic_machine=i686-pc
769953 ;;
770 pentiumii | pentium2)
954 pentiumii | pentium2 | pentiumiii | pentium3)
771955 basic_machine=i686-pc
956 ;;
957 pentium4)
958 basic_machine=i786-pc
772959 ;;
773960 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
774961 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
776963 pentiumpro-* | p6-* | 6x86-* | athlon-*)
777964 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
778965 ;;
779 pentiumii-* | pentium2-*)
966 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
780967 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
968 ;;
969 pentium4-*)
970 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
781971 ;;
782972 pn)
783973 basic_machine=pn-gould
784974 ;;
785975 power) basic_machine=power-ibm
786976 ;;
787 ppc) basic_machine=powerpc-unknown
788 ;;
789 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
977 ppc | ppcbe) basic_machine=powerpc-unknown
978 ;;
979 ppc-* | ppcbe-*)
980 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
790981 ;;
791982 ppcle | powerpclittle | ppc-le | powerpc-little)
792983 basic_machine=powerpcle-unknown
8111002 basic_machine=i586-unknown
8121003 os=-pw32
8131004 ;;
1005 rdos)
1006 basic_machine=i386-pc
1007 os=-rdos
1008 ;;
8141009 rom68k)
8151010 basic_machine=m68k-rom68k
8161011 os=-coff
8371032 sb1el)
8381033 basic_machine=mipsisa64sb1el-unknown
8391034 ;;
1035 sde)
1036 basic_machine=mipsisa32-sde
1037 os=-elf
1038 ;;
1039 sei)
1040 basic_machine=mips-sei
1041 os=-seiux
1042 ;;
8401043 sequent)
8411044 basic_machine=i386-sequent
8421045 ;;
8441047 basic_machine=sh-hitachi
8451048 os=-hms
8461049 ;;
1050 sh5el)
1051 basic_machine=sh5le-unknown
1052 ;;
1053 sh64)
1054 basic_machine=sh64-unknown
1055 ;;
8471056 sparclite-wrs | simso-wrs)
8481057 basic_machine=sparclite-wrs
8491058 os=-vxworks
8621071 basic_machine=i860-stratus
8631072 os=-sysv4
8641073 ;;
1074 strongarm-* | thumb-*)
1075 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1076 ;;
8651077 sun2)
8661078 basic_machine=m68000-sun
8671079 ;;
9181130 basic_machine=t90-cray
9191131 os=-unicos
9201132 ;;
921 tic4x | c4x*)
922 basic_machine=tic4x-unknown
923 os=-coff
924 ;;
925 tic54x | c54x*)
926 basic_machine=tic54x-unknown
927 os=-coff
928 ;;
929 tic55x | c55x*)
930 basic_machine=tic55x-unknown
931 os=-coff
932 ;;
933 tic6x | c6x*)
934 basic_machine=tic6x-unknown
935 os=-coff
1133 tile*)
1134 basic_machine=$basic_machine-unknown
1135 os=-linux-gnu
9361136 ;;
9371137 tx39)
9381138 basic_machine=mipstx39-unknown
9471147 tower | tower-32)
9481148 basic_machine=m68k-ncr
9491149 ;;
1150 tpf)
1151 basic_machine=s390x-ibm
1152 os=-tpf
1153 ;;
9501154 udi29k)
9511155 basic_machine=a29k-amd
9521156 os=-udi
9901194 basic_machine=hppa1.1-winbond
9911195 os=-proelf
9921196 ;;
1197 xbox)
1198 basic_machine=i686-pc
1199 os=-mingw32
1200 ;;
9931201 xps | xps100)
9941202 basic_machine=xps100-honeywell
1203 ;;
1204 xscale-* | xscalee[bl]-*)
1205 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
9951206 ;;
9961207 ymp)
9971208 basic_machine=ymp-cray
9991210 ;;
10001211 z8k-*-coff)
10011212 basic_machine=z8k-unknown
1213 os=-sim
1214 ;;
1215 z80-*-coff)
1216 basic_machine=z80-unknown
10021217 os=-sim
10031218 ;;
10041219 none)
10201235 romp)
10211236 basic_machine=romp-ibm
10221237 ;;
1238 mmix)
1239 basic_machine=mmix-knuth
1240 ;;
10231241 rs6000)
10241242 basic_machine=rs6000-ibm
10251243 ;;
10361254 we32k)
10371255 basic_machine=we32k-att
10381256 ;;
1039 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
1257 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
10401258 basic_machine=sh-unknown
10411259 ;;
1042 sh64)
1043 basic_machine=sh64-unknown
1044 ;;
1045 sparc | sparcv9 | sparcv9b)
1260 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
10461261 basic_machine=sparc-sun
10471262 ;;
10481263 cydra)
10861301 if [ x"$os" != x"" ]
10871302 then
10881303 case $os in
1089 # First match some system type aliases
1090 # that might get confused with valid system types.
1304 # First match some system type aliases
1305 # that might get confused with valid system types.
10911306 # -solaris* is a basic system type, with this one exception.
1307 -auroraux)
1308 os=-auroraux
1309 ;;
10921310 -solaris1 | -solaris1.*)
10931311 os=`echo $os | sed -e 's|solaris1|sunos4|'`
10941312 ;;
11091327 # Each alternative MUST END IN A *, to match a version number.
11101328 # -sysv* is not here because it comes later, after sysvr4.
11111329 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1112 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1113 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1330 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1331 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1332 | -sym* | -kopensolaris* \
11141333 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1115 | -aos* \
1334 | -aos* | -aros* \
11161335 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
11171336 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1118 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1119 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1337 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1338 | -openbsd* | -solidbsd* \
1339 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1340 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
11201341 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
11211342 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1122 | -chorusos* | -chorusrdb* \
1343 | -chorusos* | -chorusrdb* | -cegcc* \
11231344 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1124 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1345 | -mingw32* | -linux-gnu* | -linux-android* \
1346 | -linux-newlib* | -linux-uclibc* \
1347 | -uxpv* | -beos* | -mpeix* | -udk* \
11251348 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
11261349 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
11271350 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
11281351 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
11291352 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1130 | -powermax* | -dnix*)
1353 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1354 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
11311355 # Remember, each alternative MUST END IN *, to match a version number.
11321356 ;;
11331357 -qnx*)
11451369 os=`echo $os | sed -e 's|nto|nto-qnx|'`
11461370 ;;
11471371 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1148 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1372 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
11491373 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
11501374 ;;
11511375 -mac*)
11521376 os=`echo $os | sed -e 's|mac|macos|'`
11531377 ;;
1378 -linux-dietlibc)
1379 os=-linux-dietlibc
1380 ;;
11541381 -linux*)
11551382 os=`echo $os | sed -e 's|linux|linux-gnu|'`
11561383 ;;
11631390 -opened*)
11641391 os=-openedition
11651392 ;;
1393 -os400*)
1394 os=-os400
1395 ;;
11661396 -wince*)
11671397 os=-wince
11681398 ;;
11831413 ;;
11841414 -atheos*)
11851415 os=-atheos
1416 ;;
1417 -syllable*)
1418 os=-syllable
11861419 ;;
11871420 -386bsd)
11881421 os=-bsd
12061439 -sinix*)
12071440 os=-sysv4
12081441 ;;
1442 -tpf*)
1443 os=-tpf
1444 ;;
12091445 -triton*)
12101446 os=-sysv3
12111447 ;;
12411477 ;;
12421478 -kaos*)
12431479 os=-kaos
1480 ;;
1481 -zvmoe)
1482 os=-zvmoe
1483 ;;
1484 -dicos*)
1485 os=-dicos
1486 ;;
1487 -nacl*)
12441488 ;;
12451489 -none)
12461490 ;;
12641508 # system, and we'll never get to this point.
12651509
12661510 case $basic_machine in
1511 score-*)
1512 os=-elf
1513 ;;
1514 spu-*)
1515 os=-elf
1516 ;;
12671517 *-acorn)
12681518 os=-riscix1.2
12691519 ;;
12721522 ;;
12731523 arm*-semi)
12741524 os=-aout
1525 ;;
1526 c4x-* | tic4x-*)
1527 os=-coff
1528 ;;
1529 tic54x-*)
1530 os=-coff
1531 ;;
1532 tic55x-*)
1533 os=-coff
1534 ;;
1535 tic6x-*)
1536 os=-coff
12751537 ;;
12761538 # This must come before the *-dec entry.
12771539 pdp10-*)
12981560 m68*-cisco)
12991561 os=-aout
13001562 ;;
1563 mep-*)
1564 os=-elf
1565 ;;
13011566 mips*-cisco)
13021567 os=-elf
13031568 ;;
13161581 *-be)
13171582 os=-beos
13181583 ;;
1584 *-haiku)
1585 os=-haiku
1586 ;;
13191587 *-ibm)
13201588 os=-aix
1589 ;;
1590 *-knuth)
1591 os=-mmixware
13211592 ;;
13221593 *-wec)
13231594 os=-proelf
14211692 -sunos*)
14221693 vendor=sun
14231694 ;;
1424 -aix*)
1695 -cnk*|-aix*)
14251696 vendor=ibm
14261697 ;;
14271698 -beos*)
14511722 -mvs* | -opened*)
14521723 vendor=ibm
14531724 ;;
1725 -os400*)
1726 vendor=ibm
1727 ;;
14541728 -ptx*)
14551729 vendor=sequent
14561730 ;;
1731 -tpf*)
1732 vendor=ibm
1733 ;;
14571734 -vxsim* | -vxworks* | -windiss*)
14581735 vendor=wrs
14591736 ;;
14781755 esac
14791756
14801757 echo $basic_machine$os
1481 exit 0
1758 exit
14821759
14831760 # Local variables:
14841761 # eval: (add-hook 'write-file-hooks 'time-stamp)