2 # Configuration validation subroutine script.
\r
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
\r
4 # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
\r
6 timestamp='2005-07-08'
\r
8 # This file is (in principle) common to ALL GNU software.
\r
9 # The presence of a machine in this file suggests that SOME GNU software
\r
10 # can handle that machine. It does not imply ALL GNU software can.
\r
12 # This file is free software; you can redistribute it and/or modify
\r
13 # it under the terms of the GNU General Public License as published by
\r
14 # the Free Software Foundation; either version 2 of the License, or
\r
15 # (at your option) any later version.
\r
17 # This program is distributed in the hope that it will be useful,
\r
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
20 # GNU General Public License for more details.
\r
22 # You should have received a copy of the GNU General Public License
\r
23 # along with this program; if not, write to the Free Software
\r
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
\r
27 # As a special exception to the GNU General Public License, if you
\r
28 # distribute this file as part of a program that contains a
\r
29 # configuration script generated by Autoconf, you may include it under
\r
30 # the same distribution terms that you use for the rest of that program.
\r
33 # Please send patches to <config-patches@gnu.org>. Submit a context
\r
34 # diff and a properly formatted ChangeLog entry.
\r
36 # Configuration subroutine to validate and canonicalize a configuration type.
\r
37 # Supply the specified configuration type as an argument.
\r
38 # If it is invalid, we print an error message on stderr and exit with code 1.
\r
39 # Otherwise, we print the canonical config type on stdout and succeed.
\r
41 # This file is supposed to be the same for all GNU packages
\r
42 # and recognize all the CPU types, system types and aliases
\r
43 # that are meaningful with *any* GNU software.
\r
44 # Each package is responsible for reporting which valid configurations
\r
45 # it does not support. The user should be able to distinguish
\r
46 # a failure to support a valid configuration from a meaningless
\r
49 # The goal of this file is to map all the various variations of a given
\r
50 # machine specification into a single specification in the form:
\r
51 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
\r
52 # or in some cases, the newer four-part form:
\r
53 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
\r
54 # It is wrong to echo any other type of specification.
\r
56 me=`echo "$0" | sed -e 's,.*/,,'`
\r
59 Usage: $0 [OPTION] CPU-MFR-OPSYS
\r
62 Canonicalize a configuration name.
\r
65 -h, --help print this help, then exit
\r
66 -t, --time-stamp print date of last modification, then exit
\r
67 -v, --version print version number, then exit
\r
69 Report bugs and patches to <config-patches@gnu.org>."
\r
72 GNU config.sub ($timestamp)
\r
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
\r
75 Free Software Foundation, Inc.
\r
77 This is free software; see the source for copying conditions. There is NO
\r
78 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
\r
81 Try \`$me --help' for more information."
\r
83 # Parse command line
\r
84 while test $# -gt 0 ; do
\r
86 --time-stamp | --time* | -t )
\r
87 echo "$timestamp" ; exit ;;
\r
89 echo "$version" ; exit ;;
\r
90 --help | --h* | -h )
\r
91 echo "$usage"; exit ;;
\r
92 -- ) # Stop option processing
\r
94 - ) # Use stdin as input.
\r
97 echo "$me: invalid option $1$help"
\r
101 # First pass through any local machine types.
\r
111 0) echo "$me: missing argument$help" >&2
\r
114 *) echo "$me: too many arguments$help" >&2
\r
118 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
\r
119 # Here we must recognize all the valid KERNEL-OS combinations.
\r
120 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
\r
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
\r
123 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
\r
125 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
\r
128 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
\r
129 if [ $basic_machine != $1 ]
\r
130 then os=`echo $1 | sed 's/.*-/-/'`
\r
135 ### Let's recognize common machines as not being operating systems so
\r
136 ### that things like config.sub decstation-3100 work. We also
\r
137 ### recognize some manufacturers as not being operating systems, so we
\r
138 ### can provide default operating systems below.
\r
141 # Prevent following clause from handling this invalid input.
\r
143 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
\r
144 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
\r
145 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
\r
146 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
\r
147 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
\r
148 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
\r
149 -apple | -axis | -knuth | -cray)
\r
153 -sim | -cisco | -oki | -wec | -winbond)
\r
176 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
\r
180 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
\r
183 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
\r
184 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
\r
187 # Don't forget version if it is 3.2v4 or newer.
\r
188 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
\r
192 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
\r
195 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
\r
199 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
\r
202 basic_machine=clipper-intergraph
\r
205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
\r
211 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
\r
214 os=`echo $os | sed -e 's/windowsnt/winnt/'`
\r
219 -mint | -mint[0-9]*)
\r
220 basic_machine=m68k-atari
\r
225 # Decode aliases for certain CPU-COMPANY combinations.
\r
226 case $basic_machine in
\r
227 # Recognize the basic CPU types without company name.
\r
228 # Some are omitted here because they have special meanings below.
\r
231 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
\r
232 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
\r
234 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
\r
237 | d10v | d30v | dlx | dsp16xx \
\r
239 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
\r
240 | i370 | i860 | i960 | ia64 \
\r
242 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
\r
243 | mips | mipsbe | mipseb | mipsel | mipsle \
\r
245 | mips64 | mips64el \
\r
246 | mips64vr | mips64vrel \
\r
247 | mips64orion | mips64orionel \
\r
248 | mips64vr4100 | mips64vr4100el \
\r
249 | mips64vr4300 | mips64vr4300el \
\r
250 | mips64vr5000 | mips64vr5000el \
\r
251 | mips64vr5900 | mips64vr5900el \
\r
252 | mipsisa32 | mipsisa32el \
\r
253 | mipsisa32r2 | mipsisa32r2el \
\r
254 | mipsisa64 | mipsisa64el \
\r
255 | mipsisa64r2 | mipsisa64r2el \
\r
256 | mipsisa64sb1 | mipsisa64sb1el \
\r
257 | mipsisa64sr71k | mipsisa64sr71kel \
\r
258 | mipstx39 | mipstx39el \
\r
259 | mn10200 | mn10300 \
\r
264 | pdp10 | pdp11 | pj | pjl \
\r
265 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
\r
267 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
\r
269 | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
\r
270 | sparcv8 | sparcv9 | sparcv9b \
\r
272 | tahoe | thumb | tic4x | tic80 | tron \
\r
275 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
\r
277 basic_machine=$basic_machine-unknown
\r
280 basic_machine=$basic_machine-unknown
\r
282 m6811 | m68hc11 | m6812 | m68hc12)
\r
283 # Motorola 68HC11/12.
\r
284 basic_machine=$basic_machine-unknown
\r
287 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
\r
290 # We use `pc' rather than `unknown'
\r
291 # because (1) that's what they normally are, and
\r
292 # (2) the word "unknown" tends to confuse beginning users.
\r
294 basic_machine=$basic_machine-pc
\r
296 # Object if more than one company name word.
\r
298 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
\r
301 # Recognize the basic CPU types with company name.
\r
304 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
\r
305 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
\r
306 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
\r
307 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
\r
309 | bfin-* | bs2000-* \
\r
310 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
\r
311 | clipper-* | craynv-* | cydra-* \
\r
312 | d10v-* | d30v-* | dlx-* \
\r
314 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
\r
315 | h8300-* | h8500-* \
\r
316 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
\r
317 | i*86-* | i860-* | i960-* | ia64-* \
\r
318 | ip2k-* | iq2000-* \
\r
319 | m32r-* | m32rle-* \
\r
320 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
\r
321 | m88110-* | m88k-* | maxq-* | mcore-* \
\r
322 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
\r
324 | mips64-* | mips64el-* \
\r
325 | mips64vr-* | mips64vrel-* \
\r
326 | mips64orion-* | mips64orionel-* \
\r
327 | mips64vr4100-* | mips64vr4100el-* \
\r
328 | mips64vr4300-* | mips64vr4300el-* \
\r
329 | mips64vr5000-* | mips64vr5000el-* \
\r
330 | mips64vr5900-* | mips64vr5900el-* \
\r
331 | mipsisa32-* | mipsisa32el-* \
\r
332 | mipsisa32r2-* | mipsisa32r2el-* \
\r
333 | mipsisa64-* | mipsisa64el-* \
\r
334 | mipsisa64r2-* | mipsisa64r2el-* \
\r
335 | mipsisa64sb1-* | mipsisa64sb1el-* \
\r
336 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
\r
337 | mipstx39-* | mipstx39el-* \
\r
341 | none-* | np1-* | ns16k-* | ns32k-* \
\r
343 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
\r
344 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
\r
346 | romp-* | rs6000-* \
\r
347 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
\r
348 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
\r
349 | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
\r
351 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
\r
352 | tahoe-* | thumb-* \
\r
353 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
\r
355 | v850-* | v850e-* | vax-* \
\r
357 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
\r
358 | xstormy16-* | xtensa-* \
\r
364 # Recognize the various machine names and aliases which stand
\r
365 # for a CPU type and a company and sometimes even an OS.
\r
367 basic_machine=i386-unknown
\r
370 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
\r
371 basic_machine=m68000-att
\r
374 basic_machine=we32k-att
\r
377 basic_machine=a29k-amd
\r
381 basic_machine=abacus-unknown
\r
384 basic_machine=m68010-adobe
\r
388 basic_machine=fx80-alliant
\r
391 basic_machine=m68k-altos
\r
394 basic_machine=a29k-none
\r
398 basic_machine=x86_64-pc
\r
401 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
\r
404 basic_machine=580-amdahl
\r
408 basic_machine=m68k-unknown
\r
410 amigaos | amigados)
\r
411 basic_machine=m68k-unknown
\r
415 basic_machine=m68k-unknown
\r
419 basic_machine=m68k-apollo
\r
423 basic_machine=m68k-apollo
\r
427 basic_machine=m68k-apple
\r
431 basic_machine=ns32k-sequent
\r
435 basic_machine=c90-cray
\r
439 basic_machine=c1-convex
\r
443 basic_machine=c2-convex
\r
447 basic_machine=c32-convex
\r
451 basic_machine=c34-convex
\r
455 basic_machine=c38-convex
\r
459 basic_machine=j90-cray
\r
463 basic_machine=craynv-cray
\r
467 basic_machine=cr16c-unknown
\r
471 basic_machine=m68k-crds
\r
473 crisv32 | crisv32-* | etraxfs*)
\r
474 basic_machine=crisv32-axis
\r
476 cris | cris-* | etrax*)
\r
477 basic_machine=cris-axis
\r
480 basic_machine=crx-unknown
\r
484 basic_machine=m68k-da30
\r
486 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
\r
487 basic_machine=mips-dec
\r
489 decsystem10* | dec10*)
\r
490 basic_machine=pdp10-dec
\r
493 decsystem20* | dec20*)
\r
494 basic_machine=pdp10-dec
\r
497 delta | 3300 | motorola-3300 | motorola-delta \
\r
498 | 3300-motorola | delta-motorola)
\r
499 basic_machine=m68k-motorola
\r
502 basic_machine=m88k-motorola
\r
506 basic_machine=i586-pc
\r
510 basic_machine=rs6000-bull
\r
513 dpx2* | dpx2*-bull)
\r
514 basic_machine=m68k-bull
\r
518 basic_machine=a29k-amd
\r
522 basic_machine=elxsi-elxsi
\r
525 encore | umax | mmax)
\r
526 basic_machine=ns32k-encore
\r
528 es1800 | OSE68k | ose68k | ose | OSE)
\r
529 basic_machine=m68k-ericsson
\r
533 basic_machine=i860-alliant
\r
536 basic_machine=ns32k-ns
\r
539 basic_machine=tron-gmicro
\r
543 basic_machine=i386-pc
\r
547 basic_machine=hppa1.1-hitachi
\r
551 basic_machine=h8300-hitachi
\r
555 basic_machine=h8300-hitachi
\r
559 basic_machine=h8500-hitachi
\r
563 basic_machine=m88k-harris
\r
567 basic_machine=m68k-hp
\r
570 basic_machine=m68k-hp
\r
574 basic_machine=m68k-hp
\r
577 hp3k9[0-9][0-9] | hp9[0-9][0-9])
\r
578 basic_machine=hppa1.0-hp
\r
580 hp9k2[0-9][0-9] | hp9k31[0-9])
\r
581 basic_machine=m68000-hp
\r
584 basic_machine=m68k-hp
\r
586 hp9k6[0-9][0-9] | hp6[0-9][0-9])
\r
587 basic_machine=hppa1.0-hp
\r
589 hp9k7[0-79][0-9] | hp7[0-79][0-9])
\r
590 basic_machine=hppa1.1-hp
\r
592 hp9k78[0-9] | hp78[0-9])
\r
593 # FIXME: really hppa2.0-hp
\r
594 basic_machine=hppa1.1-hp
\r
596 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
\r
597 # FIXME: really hppa2.0-hp
\r
598 basic_machine=hppa1.1-hp
\r
600 hp9k8[0-9][13679] | hp8[0-9][13679])
\r
601 basic_machine=hppa1.1-hp
\r
603 hp9k8[0-9][0-9] | hp8[0-9][0-9])
\r
604 basic_machine=hppa1.0-hp
\r
610 basic_machine=hppa1.1-hp
\r
614 basic_machine=hppa1.1-hp
\r
618 basic_machine=i370-ibm
\r
620 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
\r
622 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
\r
626 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
\r
630 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
\r
634 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
\r
638 basic_machine=i386-mach
\r
642 basic_machine=i386-unknown
\r
646 basic_machine=mips-sgi
\r
656 basic_machine=m68k-isi
\r
660 basic_machine=m88k-omron
\r
663 basic_machine=mips-mips
\r
667 basic_machine=ns32k-utek
\r
671 basic_machine=i386-pc
\r
675 basic_machine=m68000-convergent
\r
677 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
\r
678 basic_machine=m68k-atari
\r
682 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
\r
685 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
\r
688 basic_machine=m68k-rom68k
\r
692 basic_machine=powerpc-unknown
\r
696 basic_machine=i386-pc
\r
700 basic_machine=i370-ibm
\r
704 basic_machine=i486-ncr
\r
708 basic_machine=i386-unknown
\r
712 basic_machine=armv4l-rebel
\r
715 news | news700 | news800 | news900)
\r
716 basic_machine=m68k-sony
\r
720 basic_machine=m68030-sony
\r
723 news-3600 | risc-news)
\r
724 basic_machine=mips-sony
\r
728 basic_machine=v70-nec
\r
732 basic_machine=m68k-next
\r
745 basic_machine=m68k-harris
\r
749 basic_machine=m88k-harris
\r
753 basic_machine=i960-intel
\r
757 basic_machine=i960-intel
\r
761 basic_machine=mips-compaq
\r
765 basic_machine=np1-gould
\r
768 basic_machine=nsr-tandem
\r
771 basic_machine=hppa1.1-oki
\r
774 openrisc | openrisc-*)
\r
775 basic_machine=or32-unknown
\r
778 basic_machine=powerpc-ibm
\r
781 OSE68000 | ose68000)
\r
782 basic_machine=m68000-ericsson
\r
786 basic_machine=m68k-none
\r
790 basic_machine=hppa1.1-hitachi
\r
794 basic_machine=i860-intel
\r
798 basic_machine=sparc-tti
\r
801 basic_machine=m68k-tti
\r
804 basic_machine=ns32k-pc532
\r
806 pentium | p5 | k5 | k6 | nexgen | viac3)
\r
807 basic_machine=i586-pc
\r
809 pentiumpro | p6 | 6x86 | athlon | athlon_*)
\r
810 basic_machine=i686-pc
\r
812 pentiumii | pentium2 | pentiumiii | pentium3)
\r
813 basic_machine=i686-pc
\r
816 basic_machine=i786-pc
\r
818 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
\r
819 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
\r
821 pentiumpro-* | p6-* | 6x86-* | athlon-*)
\r
822 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
\r
824 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
\r
825 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
\r
828 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
\r
831 basic_machine=pn-gould
\r
833 power) basic_machine=power-ibm
\r
835 ppc) basic_machine=powerpc-unknown
\r
837 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
\r
839 ppcle | powerpclittle | ppc-le | powerpc-little)
\r
840 basic_machine=powerpcle-unknown
\r
842 ppcle-* | powerpclittle-*)
\r
843 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
\r
845 ppc64) basic_machine=powerpc64-unknown
\r
847 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
\r
849 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
\r
850 basic_machine=powerpc64le-unknown
\r
852 ppc64le-* | powerpc64little-*)
\r
853 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
\r
856 basic_machine=i386-ibm
\r
859 basic_machine=i586-unknown
\r
863 basic_machine=m68k-rom68k
\r
867 basic_machine=mips-siemens
\r
870 basic_machine=romp-ibm
\r
873 basic_machine=s390-ibm
\r
876 basic_machine=s390x-ibm
\r
879 basic_machine=a29k-amd
\r
883 basic_machine=mipsisa64sb1-unknown
\r
886 basic_machine=mipsisa64sb1el-unknown
\r
889 basic_machine=mips-sei
\r
893 basic_machine=i386-sequent
\r
896 basic_machine=sh-hitachi
\r
900 basic_machine=sh64-unknown
\r
902 sparclite-wrs | simso-wrs)
\r
903 basic_machine=sparclite-wrs
\r
907 basic_machine=m68k-bull
\r
911 basic_machine=spur-unknown
\r
914 basic_machine=m68k-tandem
\r
917 basic_machine=i860-stratus
\r
921 basic_machine=m68000-sun
\r
924 basic_machine=m68000-sun
\r
928 basic_machine=m68000-sun
\r
932 basic_machine=m68k-sun
\r
936 basic_machine=m68k-sun
\r
940 basic_machine=sparc-sun
\r
944 basic_machine=sparc-sun
\r
948 basic_machine=sparc-sun
\r
952 basic_machine=m68k-sun
\r
955 basic_machine=sparc-sun
\r
957 sun386 | sun386i | roadrunner)
\r
958 basic_machine=i386-sun
\r
961 basic_machine=sv1-cray
\r
965 basic_machine=i386-sequent
\r
969 basic_machine=alphaev5-cray
\r
973 basic_machine=t90-cray
\r
977 basic_machine=tic54x-unknown
\r
981 basic_machine=tic55x-unknown
\r
985 basic_machine=tic6x-unknown
\r
989 basic_machine=mipstx39-unknown
\r
992 basic_machine=mipstx39el-unknown
\r
995 basic_machine=pdp10-xkl
\r
999 basic_machine=m68k-ncr
\r
1002 basic_machine=s390x-ibm
\r
1006 basic_machine=a29k-amd
\r
1010 basic_machine=a29k-nyu
\r
1014 basic_machine=v810-nec
\r
1018 basic_machine=vax-dec
\r
1022 basic_machine=vax-dec
\r
1026 basic_machine=f301-fujitsu
\r
1029 basic_machine=i960-wrs
\r
1033 basic_machine=m68k-wrs
\r
1037 basic_machine=a29k-wrs
\r
1041 basic_machine=w65-wdc
\r
1045 basic_machine=hppa1.1-winbond
\r
1049 basic_machine=i686-pc
\r
1053 basic_machine=xps100-honeywell
\r
1056 basic_machine=ymp-cray
\r
1060 basic_machine=z8k-unknown
\r
1064 basic_machine=none-none
\r
1068 # Here we handle the default manufacturer of certain CPU types. It is in
\r
1069 # some cases the only manufacturer, in others, it is the most popular.
\r
1071 basic_machine=hppa1.1-winbond
\r
1074 basic_machine=hppa1.1-oki
\r
1077 basic_machine=hppa1.1-oki
\r
1080 basic_machine=romp-ibm
\r
1083 basic_machine=mmix-knuth
\r
1086 basic_machine=rs6000-ibm
\r
1089 basic_machine=vax-dec
\r
1092 # there are many clones, so DEC is not a safe bet
\r
1093 basic_machine=pdp10-unknown
\r
1096 basic_machine=pdp11-dec
\r
1099 basic_machine=we32k-att
\r
1101 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
\r
1102 basic_machine=sh-unknown
\r
1104 sparc | sparcv8 | sparcv9 | sparcv9b)
\r
1105 basic_machine=sparc-sun
\r
1108 basic_machine=cydra-cydrome
\r
1111 basic_machine=orion-highlevel
\r
1114 basic_machine=clipper-highlevel
\r
1116 mac | mpw | mac-mpw)
\r
1117 basic_machine=m68k-apple
\r
1120 basic_machine=powerpc-apple
\r
1123 # Make sure to match an already-canonicalized machine name.
\r
1126 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
\r
1131 # Here we canonicalize certain aliases for manufacturers.
\r
1132 case $basic_machine in
\r
1134 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
\r
1137 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
\r
1143 # Decode manufacturer-specific aliases for certain operating systems.
\r
1145 if [ x"$os" != x"" ]
\r
1148 # First match some system type aliases
\r
1149 # that might get confused with valid system types.
\r
1150 # -solaris* is a basic system type, with this one exception.
\r
1151 -solaris1 | -solaris1.*)
\r
1152 os=`echo $os | sed -e 's|solaris1|sunos4|'`
\r
1164 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
\r
1166 # First accept the basic system types.
\r
1167 # The portable systems comes first.
\r
1168 # Each alternative MUST END IN A *, to match a version number.
\r
1169 # -sysv* is not here because it comes later, after sysvr4.
\r
1170 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
\r
1171 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
\r
1172 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
\r
1173 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
\r
1175 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
\r
1176 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
\r
1177 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
\r
1178 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
\r
1179 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
\r
1180 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
\r
1181 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
\r
1182 | -chorusos* | -chorusrdb* \
\r
1183 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
\r
1184 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
\r
1185 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
\r
1186 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
\r
1187 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
\r
1188 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
\r
1189 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
\r
1190 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
\r
1191 | -skyos* | -haiku*)
\r
1192 # Remember, each alternative MUST END IN *, to match a version number.
\r
1195 case $basic_machine in
\r
1206 os=`echo $os | sed -e 's|nto|nto-qnx|'`
\r
1208 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
\r
1209 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
\r
1210 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
\r
1213 os=`echo $os | sed -e 's|mac|macos|'`
\r
1216 os=-linux-dietlibc
\r
1219 os=`echo $os | sed -e 's|linux|linux-gnu|'`
\r
1222 os=`echo $os | sed -e 's|sunos5|solaris2|'`
\r
1225 os=`echo $os | sed -e 's|sunos6|solaris3|'`
\r
1272 # Preserve the version number of sinix5.
\r
1274 os=`echo $os | sed -e 's|sinix|sysv|'`
\r
1297 # This must come after -sysvr4.
\r
1309 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
\r
1324 # Get rid of the `-' at the beginning of $os.
\r
1325 os=`echo $os | sed 's/[^-]*-//'`
\r
1326 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
\r
1332 # Here we handle the default operating systems that come with various machines.
\r
1333 # The value should be what the vendor currently ships out the door with their
\r
1334 # machine or put another way, the most popular os provided with the machine.
\r
1336 # Note that if you're going to try to match "-MANUFACTURER" here (say,
\r
1337 # "-sun"), then you have to tell the case statement up towards the top
\r
1338 # that MANUFACTURER isn't an operating system. Otherwise, code above
\r
1339 # will signal an error saying that MANUFACTURER isn't an operating
\r
1340 # system, and we'll never get to this point.
\r
1342 case $basic_machine in
\r
1355 # This must come before the *-dec entry.
\r
1373 # This also exists in the configure program, but was not the
\r
1389 *-tti) # must be before sparc entry or we get the wrong os.
\r
1422 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
\r
1476 f30[01]-fujitsu | f700-fujitsu)
\r
1497 # Here we handle the case where we know the os, and the CPU type, but not the
\r
1498 # manufacturer. We pick the logical manufacturer.
\r
1500 case $basic_machine in
\r
1548 -vxsim* | -vxworks* | -windiss*)
\r
1560 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
\r
1567 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
\r
1571 echo $basic_machine$os
\r
1574 # Local variables:
\r
1575 # eval: (add-hook 'write-file-hooks 'time-stamp)
\r
1576 # time-stamp-start: "timestamp='"
\r
1577 # time-stamp-format: "%:y-%02m-%02d"
\r
1578 # time-stamp-end: "'"
\r