1 |
#! /bin/sh |
#! /bin/sh |
2 |
# Configuration validation subroutine script, version 1.1. |
# Configuration validation subroutine script. |
3 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 |
# Free Software Foundation, Inc. |
# 2000, 2001, 2002 Free Software Foundation, Inc. |
5 |
# |
|
6 |
|
timestamp='2002-03-07' |
7 |
|
|
8 |
# This file is (in principle) common to ALL GNU software. |
# This file is (in principle) common to ALL GNU software. |
9 |
# The presence of a machine in this file suggests that SOME GNU software |
# The presence of a machine in this file suggests that SOME GNU software |
10 |
# can handle that machine. It does not imply ALL GNU software can. |
# can handle that machine. It does not imply ALL GNU software can. |
29 |
# configuration script generated by Autoconf, you may include it under |
# configuration script generated by Autoconf, you may include it under |
30 |
# the same distribution terms that you use for the rest of that program. |
# the same distribution terms that you use for the rest of that program. |
31 |
|
|
32 |
# Written by Per Bothner <bothner@cygnus.com>. |
# Please send patches to <config-patches@gnu.org>. Submit a context |
33 |
# Please send patches to <config-patches@gnu.org>. |
# diff and a properly formatted ChangeLog entry. |
34 |
# |
# |
35 |
# Configuration subroutine to validate and canonicalize a configuration type. |
# Configuration subroutine to validate and canonicalize a configuration type. |
36 |
# Supply the specified configuration type as an argument. |
# Supply the specified configuration type as an argument. |
52 |
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
53 |
# It is wrong to echo any other type of specification. |
# It is wrong to echo any other type of specification. |
54 |
|
|
55 |
if [ x$1 = x ] |
me=`echo "$0" | sed -e 's,.*/,,'` |
|
then |
|
|
echo Configuration name missing. 1>&2 |
|
|
echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 |
|
|
echo "or $0 ALIAS" 1>&2 |
|
|
echo where ALIAS is a recognized configuration type. 1>&2 |
|
|
exit 1 |
|
|
fi |
|
56 |
|
|
57 |
# First pass through any local machine types. |
usage="\ |
58 |
case $1 in |
Usage: $0 [OPTION] CPU-MFR-OPSYS |
59 |
*local*) |
$0 [OPTION] ALIAS |
60 |
echo $1 |
|
61 |
exit 0 |
Canonicalize a configuration name. |
62 |
;; |
|
63 |
*) |
Operation modes: |
64 |
;; |
-h, --help print this help, then exit |
65 |
|
-t, --time-stamp print date of last modification, then exit |
66 |
|
-v, --version print version number, then exit |
67 |
|
|
68 |
|
Report bugs and patches to <config-patches@gnu.org>." |
69 |
|
|
70 |
|
version="\ |
71 |
|
GNU config.sub ($timestamp) |
72 |
|
|
73 |
|
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
74 |
|
Free Software Foundation, Inc. |
75 |
|
|
76 |
|
This is free software; see the source for copying conditions. There is NO |
77 |
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
78 |
|
|
79 |
|
help=" |
80 |
|
Try \`$me --help' for more information." |
81 |
|
|
82 |
|
# Parse command line |
83 |
|
while test $# -gt 0 ; do |
84 |
|
case $1 in |
85 |
|
--time-stamp | --time* | -t ) |
86 |
|
echo "$timestamp" ; exit 0 ;; |
87 |
|
--version | -v ) |
88 |
|
echo "$version" ; exit 0 ;; |
89 |
|
--help | --h* | -h ) |
90 |
|
echo "$usage"; exit 0 ;; |
91 |
|
-- ) # Stop option processing |
92 |
|
shift; break ;; |
93 |
|
- ) # Use stdin as input. |
94 |
|
break ;; |
95 |
|
-* ) |
96 |
|
echo "$me: invalid option $1$help" |
97 |
|
exit 1 ;; |
98 |
|
|
99 |
|
*local*) |
100 |
|
# First pass through any local machine types. |
101 |
|
echo $1 |
102 |
|
exit 0;; |
103 |
|
|
104 |
|
* ) |
105 |
|
break ;; |
106 |
|
esac |
107 |
|
done |
108 |
|
|
109 |
|
case $# in |
110 |
|
0) echo "$me: missing argument$help" >&2 |
111 |
|
exit 1;; |
112 |
|
1) ;; |
113 |
|
*) echo "$me: too many arguments$help" >&2 |
114 |
|
exit 1;; |
115 |
esac |
esac |
116 |
|
|
117 |
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
118 |
# Here we must recognize all the valid KERNEL-OS combinations. |
# Here we must recognize all the valid KERNEL-OS combinations. |
119 |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
120 |
case $maybe_os in |
case $maybe_os in |
121 |
nto-qnx* | linux-gnu*) |
nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*) |
122 |
os=-$maybe_os |
os=-$maybe_os |
123 |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
124 |
;; |
;; |
144 |
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
145 |
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
146 |
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
147 |
-apple) |
-apple | -axis) |
148 |
os= |
os= |
149 |
basic_machine=$1 |
basic_machine=$1 |
150 |
;; |
;; |
158 |
os=-vxworks |
os=-vxworks |
159 |
basic_machine=$1 |
basic_machine=$1 |
160 |
;; |
;; |
161 |
|
-chorusos*) |
162 |
|
os=-chorusos |
163 |
|
basic_machine=$1 |
164 |
|
;; |
165 |
|
-chorusrdb) |
166 |
|
os=-chorusrdb |
167 |
|
basic_machine=$1 |
168 |
|
;; |
169 |
-hiux*) |
-hiux*) |
170 |
os=-hiuxwe2 |
os=-hiuxwe2 |
171 |
;; |
;; |
224 |
case $basic_machine in |
case $basic_machine in |
225 |
# Recognize the basic CPU types without company name. |
# Recognize the basic CPU types without company name. |
226 |
# Some are omitted here because they have special meanings below. |
# Some are omitted here because they have special meanings below. |
227 |
tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ |
1750a | 580 \ |
228 |
| arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ |
| a29k \ |
229 |
| 580 | i960 | h8300 \ |
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
230 |
| x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \ |
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
231 |
| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ |
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
232 |
| alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ |
| c4x | clipper \ |
233 |
| alphaev6[78] \ |
| d10v | d30v | dsp16xx \ |
234 |
| we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ |
| fr30 \ |
235 |
| 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ |
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
236 |
| mips64orion | mips64orionel | mipstx39 | mipstx39el \ |
| i370 | i860 | i960 | ia64 \ |
237 |
| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ |
| m32r | m68000 | m68k | m88k | mcore \ |
238 |
| mips64vr5000 | miprs64vr5000el | mcore \ |
| mips | mips16 | mips64 | mips64el | mips64orion | mips64orionel \ |
239 |
| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ |
| mips64vr4100 | mips64vr4100el | mips64vr4300 \ |
240 |
| powerpc64 | sparcv8 | supersparc | microsparc | ultrasparc \ |
| mips64vr4300el | mips64vr5000 | mips64vr5000el \ |
241 |
| thumb | d10v | fr30 | avr) |
| mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \ |
242 |
|
| mipsisa32 | mipsisa64 \ |
243 |
|
| mn10200 | mn10300 \ |
244 |
|
| ns16k | ns32k \ |
245 |
|
| openrisc | or32 \ |
246 |
|
| pdp10 | pdp11 | pj | pjl \ |
247 |
|
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
248 |
|
| pyramid \ |
249 |
|
| sh | sh[34] | sh[34]eb | shbe | shle | sh64 \ |
250 |
|
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ |
251 |
|
| strongarm \ |
252 |
|
| tahoe | thumb | tic80 | tron \ |
253 |
|
| v850 | v850e \ |
254 |
|
| we32k \ |
255 |
|
| x86 | xscale | xstormy16 | xtensa \ |
256 |
|
| z8k) |
257 |
basic_machine=$basic_machine-unknown |
basic_machine=$basic_machine-unknown |
258 |
;; |
;; |
259 |
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl) |
m6811 | m68hc11 | m6812 | m68hc12) |
260 |
|
# Motorola 68HC11/12. |
261 |
|
basic_machine=$basic_machine-unknown |
262 |
|
os=-none |
263 |
|
;; |
264 |
|
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
265 |
;; |
;; |
266 |
|
|
267 |
# We use `pc' rather than `unknown' |
# We use `pc' rather than `unknown' |
268 |
# because (1) that's what they normally are, and |
# because (1) that's what they normally are, and |
269 |
# (2) the word "unknown" tends to confuse beginning users. |
# (2) the word "unknown" tends to confuse beginning users. |
270 |
i[34567]86 | pentium[23] | k[56] | k6[23] | athlon) |
i*86 | x86_64) |
271 |
basic_machine=$basic_machine-pc |
basic_machine=$basic_machine-pc |
272 |
;; |
;; |
273 |
# Object if more than one company name word. |
# Object if more than one company name word. |
276 |
exit 1 |
exit 1 |
277 |
;; |
;; |
278 |
# Recognize the basic CPU types with company name. |
# Recognize the basic CPU types with company name. |
279 |
vax-* | tahoe-* | i[34567]86-* | pentium[23]-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ |
580-* \ |
280 |
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ |
| a29k-* \ |
281 |
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ |
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
282 |
| power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ |
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
283 |
| xmp-* | ymp-* \ |
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
284 |
| x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \ |
| arm-* | armbe-* | armle-* | armv*-* \ |
285 |
| hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \ |
| avr-* \ |
286 |
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ |
| bs2000-* \ |
287 |
| alphaev6[78]-* \ |
| c[123]* | c30-* | [cjt]90-* | c54x-* \ |
288 |
| we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ |
| clipper-* | cydra-* \ |
289 |
| clipper-* | orion-* \ |
| d10v-* | d30v-* \ |
290 |
| sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ |
| elxsi-* \ |
291 |
| sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ |
| f30[01]-* | f700-* | fr30-* | fx80-* \ |
292 |
| mips64el-* | mips64orion-* | mips64orionel-* \ |
| h8300-* | h8500-* \ |
293 |
| mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ |
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
294 |
| mipstx39-* | mipstx39el-* | mcore-* \ |
| i*86-* | i860-* | i960-* | ia64-* \ |
295 |
| f301-* | armv*-* | s390-* | sv1-* | t3e-* \ |
| m32r-* \ |
296 |
| m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ |
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
297 |
| k[56]-* | k6[23]-* | athlon-* | powerpc64-* \ |
| m88110-* | m88k-* | mcore-* \ |
298 |
| sparcv8-* | supersparc-* | microsparc-* | ultrasparc-* \ |
| mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \ |
299 |
| thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* ) |
| mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \ |
300 |
|
| mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \ |
301 |
|
| mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \ |
302 |
|
| none-* | np1-* | ns16k-* | ns32k-* \ |
303 |
|
| orion-* \ |
304 |
|
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
305 |
|
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
306 |
|
| pyramid-* \ |
307 |
|
| romp-* | rs6000-* \ |
308 |
|
| sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* | sh64-* \ |
309 |
|
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ |
310 |
|
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
311 |
|
| tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \ |
312 |
|
| v850-* | v850e-* | vax-* \ |
313 |
|
| we32k-* \ |
314 |
|
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ |
315 |
|
| xtensa-* \ |
316 |
|
| ymp-* \ |
317 |
|
| z8k-*) |
318 |
;; |
;; |
319 |
# Recognize the various machine names and aliases which stand |
# Recognize the various machine names and aliases which stand |
320 |
# for a CPU type and a company and sometimes even an OS. |
# for a CPU type and a company and sometimes even an OS. |
321 |
|
386bsd) |
322 |
|
basic_machine=i386-unknown |
323 |
|
os=-bsd |
324 |
|
;; |
325 |
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
326 |
basic_machine=m68000-att |
basic_machine=m68000-att |
327 |
;; |
;; |
351 |
os=-sysv |
os=-sysv |
352 |
;; |
;; |
353 |
amiga | amiga-*) |
amiga | amiga-*) |
354 |
basic_machine=m68k-cbm |
basic_machine=m68k-unknown |
355 |
;; |
;; |
356 |
amigaos | amigados) |
amigaos | amigados) |
357 |
basic_machine=m68k-cbm |
basic_machine=m68k-unknown |
358 |
os=-amigaos |
os=-amigaos |
359 |
;; |
;; |
360 |
amigaunix | amix) |
amigaunix | amix) |
361 |
basic_machine=m68k-cbm |
basic_machine=m68k-unknown |
362 |
os=-sysv4 |
os=-sysv4 |
363 |
;; |
;; |
364 |
apollo68) |
apollo68) |
377 |
basic_machine=ns32k-sequent |
basic_machine=ns32k-sequent |
378 |
os=-dynix |
os=-dynix |
379 |
;; |
;; |
380 |
|
c90) |
381 |
|
basic_machine=c90-cray |
382 |
|
os=-unicos |
383 |
|
;; |
384 |
convex-c1) |
convex-c1) |
385 |
basic_machine=c1-convex |
basic_machine=c1-convex |
386 |
os=-bsd |
os=-bsd |
401 |
basic_machine=c38-convex |
basic_machine=c38-convex |
402 |
os=-bsd |
os=-bsd |
403 |
;; |
;; |
404 |
cray | ymp) |
cray | j90) |
405 |
basic_machine=ymp-cray |
basic_machine=j90-cray |
|
os=-unicos |
|
|
;; |
|
|
cray2) |
|
|
basic_machine=cray2-cray |
|
|
os=-unicos |
|
|
;; |
|
|
[ctj]90-cray) |
|
|
basic_machine=c90-cray |
|
406 |
os=-unicos |
os=-unicos |
407 |
;; |
;; |
408 |
crds | unos) |
crds | unos) |
409 |
basic_machine=m68k-crds |
basic_machine=m68k-crds |
410 |
;; |
;; |
411 |
|
cris | cris-* | etrax*) |
412 |
|
basic_machine=cris-axis |
413 |
|
;; |
414 |
da30 | da30-*) |
da30 | da30-*) |
415 |
basic_machine=m68k-da30 |
basic_machine=m68k-da30 |
416 |
;; |
;; |
417 |
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) |
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) |
418 |
basic_machine=mips-dec |
basic_machine=mips-dec |
419 |
;; |
;; |
420 |
|
decsystem10* | dec10*) |
421 |
|
basic_machine=pdp10-dec |
422 |
|
os=-tops10 |
423 |
|
;; |
424 |
|
decsystem20* | dec20*) |
425 |
|
basic_machine=pdp10-dec |
426 |
|
os=-tops20 |
427 |
|
;; |
428 |
delta | 3300 | motorola-3300 | motorola-delta \ |
delta | 3300 | motorola-3300 | motorola-delta \ |
429 |
| 3300-motorola | delta-motorola) |
| 3300-motorola | delta-motorola) |
430 |
basic_machine=m68k-motorola |
basic_machine=m68k-motorola |
466 |
basic_machine=tron-gmicro |
basic_machine=tron-gmicro |
467 |
os=-sysv |
os=-sysv |
468 |
;; |
;; |
469 |
|
go32) |
470 |
|
basic_machine=i386-pc |
471 |
|
os=-go32 |
472 |
|
;; |
473 |
h3050r* | hiux*) |
h3050r* | hiux*) |
474 |
basic_machine=hppa1.1-hitachi |
basic_machine=hppa1.1-hitachi |
475 |
os=-hiuxwe2 |
os=-hiuxwe2 |
517 |
basic_machine=hppa1.1-hp |
basic_machine=hppa1.1-hp |
518 |
;; |
;; |
519 |
hp9k78[0-9] | hp78[0-9]) |
hp9k78[0-9] | hp78[0-9]) |
520 |
basic_machine=hppa2.0-hp |
# FIXME: really hppa2.0-hp |
521 |
|
basic_machine=hppa1.1-hp |
522 |
;; |
;; |
523 |
hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) |
hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) |
524 |
basic_machine=hppa2.0-hp |
# FIXME: really hppa2.0-hp |
525 |
|
basic_machine=hppa1.1-hp |
526 |
;; |
;; |
527 |
hp9k8[0-9][13679] | hp8[0-9][13679]) |
hp9k8[0-9][13679] | hp8[0-9][13679]) |
528 |
basic_machine=hppa1.1-hp |
basic_machine=hppa1.1-hp |
545 |
basic_machine=i370-ibm |
basic_machine=i370-ibm |
546 |
;; |
;; |
547 |
# I'm not sure what "Sysv32" means. Should this be sysv3.2? |
# I'm not sure what "Sysv32" means. Should this be sysv3.2? |
548 |
i[34567]86v32) |
i*86v32) |
549 |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
550 |
os=-sysv32 |
os=-sysv32 |
551 |
;; |
;; |
552 |
i[34567]86v4*) |
i*86v4*) |
553 |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
554 |
os=-sysv4 |
os=-sysv4 |
555 |
;; |
;; |
556 |
i[34567]86v) |
i*86v) |
557 |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
558 |
os=-sysv |
os=-sysv |
559 |
;; |
;; |
560 |
i[34567]86sol2) |
i*86sol2) |
561 |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
562 |
os=-solaris2 |
os=-solaris2 |
563 |
;; |
;; |
569 |
basic_machine=i386-unknown |
basic_machine=i386-unknown |
570 |
os=-vsta |
os=-vsta |
571 |
;; |
;; |
|
i386-go32 | go32) |
|
|
basic_machine=i386-unknown |
|
|
os=-go32 |
|
|
;; |
|
|
i386-mingw32 | mingw32) |
|
|
basic_machine=i386-unknown |
|
|
os=-mingw32 |
|
|
;; |
|
572 |
iris | iris4d) |
iris | iris4d) |
573 |
basic_machine=mips-sgi |
basic_machine=mips-sgi |
574 |
case $os in |
case $os in |
583 |
basic_machine=m68k-isi |
basic_machine=m68k-isi |
584 |
os=-sysv |
os=-sysv |
585 |
;; |
;; |
|
macppc*) |
|
|
basic_machine=powerpc-apple |
|
|
;; |
|
586 |
m88k-omron*) |
m88k-omron*) |
587 |
basic_machine=m88k-omron |
basic_machine=m88k-omron |
588 |
;; |
;; |
594 |
basic_machine=ns32k-utek |
basic_machine=ns32k-utek |
595 |
os=-sysv |
os=-sysv |
596 |
;; |
;; |
597 |
|
mingw32) |
598 |
|
basic_machine=i386-pc |
599 |
|
os=-mingw32 |
600 |
|
;; |
601 |
miniframe) |
miniframe) |
602 |
basic_machine=m68000-convergent |
basic_machine=m68000-convergent |
603 |
;; |
;; |
605 |
basic_machine=m68k-atari |
basic_machine=m68k-atari |
606 |
os=-mint |
os=-mint |
607 |
;; |
;; |
|
mipsel*-linux*) |
|
|
basic_machine=mipsel-unknown |
|
|
os=-linux-gnu |
|
|
;; |
|
|
mips*-linux*) |
|
|
basic_machine=mips-unknown |
|
|
os=-linux-gnu |
|
|
;; |
|
608 |
mips3*-*) |
mips3*-*) |
609 |
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
610 |
;; |
;; |
619 |
basic_machine=m68k-rom68k |
basic_machine=m68k-rom68k |
620 |
os=-coff |
os=-coff |
621 |
;; |
;; |
622 |
|
morphos) |
623 |
|
basic_machine=powerpc-unknown |
624 |
|
os=-morphos |
625 |
|
;; |
626 |
msdos) |
msdos) |
627 |
basic_machine=i386-unknown |
basic_machine=i386-pc |
628 |
os=-msdos |
os=-msdos |
629 |
;; |
;; |
630 |
mvs) |
mvs) |
688 |
basic_machine=i960-intel |
basic_machine=i960-intel |
689 |
os=-mon960 |
os=-mon960 |
690 |
;; |
;; |
691 |
|
nonstopux) |
692 |
|
basic_machine=mips-compaq |
693 |
|
os=-nonstopux |
694 |
|
;; |
695 |
np1) |
np1) |
696 |
basic_machine=np1-gould |
basic_machine=np1-gould |
697 |
;; |
;; |
702 |
basic_machine=hppa1.1-oki |
basic_machine=hppa1.1-oki |
703 |
os=-proelf |
os=-proelf |
704 |
;; |
;; |
705 |
|
or32 | or32-*) |
706 |
|
basic_machine=or32-unknown |
707 |
|
os=-coff |
708 |
|
;; |
709 |
OSE68000 | ose68000) |
OSE68000 | ose68000) |
710 |
basic_machine=m68000-ericsson |
basic_machine=m68000-ericsson |
711 |
os=-ose |
os=-ose |
731 |
pc532 | pc532-*) |
pc532 | pc532-*) |
732 |
basic_machine=ns32k-pc532 |
basic_machine=ns32k-pc532 |
733 |
;; |
;; |
734 |
pentiummmx | p55) |
pentium | p5 | k5 | k6 | nexgen | viac3) |
735 |
basic_machine=pentiummmx-pc |
basic_machine=i586-pc |
|
;; |
|
|
pentium | p5 | i586) |
|
|
basic_machine=pentium-pc |
|
736 |
;; |
;; |
737 |
pentiumpro | p6) |
pentiumpro | p6 | 6x86 | athlon) |
738 |
basic_machine=pentiumpro-pc |
basic_machine=i686-pc |
739 |
;; |
;; |
740 |
pentiummmx-* | p55-*) |
pentiumii | pentium2) |
741 |
basic_machine=pentiummmx-`echo $basic_machine | sed 's/^[^-]*-//'` |
basic_machine=i686-pc |
742 |
;; |
;; |
743 |
pentium-* | p5-* | i586-*) |
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
744 |
basic_machine=pentium-`echo $basic_machine | sed 's/^[^-]*-//'` |
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
745 |
;; |
;; |
746 |
pentiumpro-* | p6-*) |
pentiumpro-* | p6-* | 6x86-* | athlon-*) |
747 |
basic_machine=pentiumpro-`echo $basic_machine | sed 's/^[^-]*-//'` |
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
748 |
;; |
;; |
749 |
nexen) |
pentiumii-* | pentium2-*) |
750 |
# We don't have specific support for Nexgen yet, so just call it a Pentium |
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
basic_machine=i586-nexgen |
|
751 |
;; |
;; |
752 |
pn) |
pn) |
753 |
basic_machine=pn-gould |
basic_machine=pn-gould |
754 |
;; |
;; |
755 |
power) basic_machine=rs6000-ibm |
power) basic_machine=power-ibm |
756 |
;; |
;; |
757 |
ppc) basic_machine=powerpc-unknown |
ppc) basic_machine=powerpc-unknown |
758 |
;; |
;; |
759 |
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
760 |
;; |
;; |
|
ppc64) basic_machine=powerpc64-unknown |
|
|
;; |
|
|
ppc64-*) |
|
|
basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
;; |
|
761 |
ppcle | powerpclittle | ppc-le | powerpc-little) |
ppcle | powerpclittle | ppc-le | powerpc-little) |
762 |
basic_machine=powerpcle-unknown |
basic_machine=powerpcle-unknown |
763 |
;; |
;; |
764 |
ppcle-* | powerpclittle-*) |
ppcle-* | powerpclittle-*) |
765 |
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
766 |
;; |
;; |
767 |
|
ppc64) basic_machine=powerpc64-unknown |
768 |
|
;; |
769 |
|
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` |
770 |
|
;; |
771 |
|
ppc64le | powerpc64little | ppc64-le | powerpc64-little) |
772 |
|
basic_machine=powerpc64le-unknown |
773 |
|
;; |
774 |
|
ppc64le-* | powerpc64little-*) |
775 |
|
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` |
776 |
|
;; |
777 |
ps2) |
ps2) |
778 |
basic_machine=i386-ibm |
basic_machine=i386-ibm |
779 |
;; |
;; |
780 |
|
pw32) |
781 |
|
basic_machine=i586-unknown |
782 |
|
os=-pw32 |
783 |
|
;; |
784 |
rom68k) |
rom68k) |
785 |
basic_machine=m68k-rom68k |
basic_machine=m68k-rom68k |
786 |
os=-coff |
os=-coff |
791 |
rtpc | rtpc-*) |
rtpc | rtpc-*) |
792 |
basic_machine=romp-ibm |
basic_machine=romp-ibm |
793 |
;; |
;; |
794 |
|
s390 | s390-*) |
795 |
|
basic_machine=s390-ibm |
796 |
|
;; |
797 |
|
s390x | s390x-*) |
798 |
|
basic_machine=s390x-ibm |
799 |
|
;; |
800 |
sa29200) |
sa29200) |
801 |
basic_machine=a29k-amd |
basic_machine=a29k-amd |
802 |
os=-udi |
os=-udi |
808 |
basic_machine=sh-hitachi |
basic_machine=sh-hitachi |
809 |
os=-hms |
os=-hms |
810 |
;; |
;; |
811 |
sparclite-wrs) |
sparclite-wrs | simso-wrs) |
812 |
basic_machine=sparclite-wrs |
basic_machine=sparclite-wrs |
813 |
os=-vxworks |
os=-vxworks |
814 |
;; |
;; |
866 |
sun386 | sun386i | roadrunner) |
sun386 | sun386i | roadrunner) |
867 |
basic_machine=i386-sun |
basic_machine=i386-sun |
868 |
;; |
;; |
869 |
sv1) |
sv1) |
870 |
basic_machine=sv1-cray |
basic_machine=sv1-cray |
871 |
os=-unicos |
os=-unicos |
872 |
;; |
;; |
874 |
basic_machine=i386-sequent |
basic_machine=i386-sequent |
875 |
os=-dynix |
os=-dynix |
876 |
;; |
;; |
877 |
|
t3d) |
878 |
|
basic_machine=alpha-cray |
879 |
|
os=-unicos |
880 |
|
;; |
881 |
t3e) |
t3e) |
882 |
basic_machine=t3e-cray |
basic_machine=alphaev5-cray |
883 |
|
os=-unicos |
884 |
|
;; |
885 |
|
t90) |
886 |
|
basic_machine=t90-cray |
887 |
os=-unicos |
os=-unicos |
888 |
;; |
;; |
889 |
|
tic54x | c54x*) |
890 |
|
basic_machine=tic54x-unknown |
891 |
|
os=-coff |
892 |
|
;; |
893 |
tx39) |
tx39) |
894 |
basic_machine=mipstx39-unknown |
basic_machine=mipstx39-unknown |
895 |
;; |
;; |
896 |
tx39el) |
tx39el) |
897 |
basic_machine=mipstx39el-unknown |
basic_machine=mipstx39el-unknown |
898 |
;; |
;; |
899 |
|
toad1) |
900 |
|
basic_machine=pdp10-xkl |
901 |
|
os=-tops20 |
902 |
|
;; |
903 |
tower | tower-32) |
tower | tower-32) |
904 |
basic_machine=m68k-ncr |
basic_machine=m68k-ncr |
905 |
;; |
;; |
946 |
basic_machine=hppa1.1-winbond |
basic_machine=hppa1.1-winbond |
947 |
os=-proelf |
os=-proelf |
948 |
;; |
;; |
949 |
xmp) |
windows32) |
950 |
basic_machine=xmp-cray |
basic_machine=i386-pc |
951 |
os=-unicos |
os=-windows32-msvcrt |
952 |
;; |
;; |
953 |
xps | xps100) |
xps | xps100) |
954 |
basic_machine=xps100-honeywell |
basic_machine=xps100-honeywell |
955 |
;; |
;; |
956 |
|
ymp) |
957 |
|
basic_machine=ymp-cray |
958 |
|
os=-unicos |
959 |
|
;; |
960 |
z8k-*-coff) |
z8k-*-coff) |
961 |
basic_machine=z8k-unknown |
basic_machine=z8k-unknown |
962 |
os=-sim |
os=-sim |
977 |
op60c) |
op60c) |
978 |
basic_machine=hppa1.1-oki |
basic_machine=hppa1.1-oki |
979 |
;; |
;; |
|
mips) |
|
|
if [ x$os = x-linux-gnu ]; then |
|
|
basic_machine=mips-unknown |
|
|
else |
|
|
basic_machine=mips-mips |
|
|
fi |
|
|
;; |
|
980 |
romp) |
romp) |
981 |
basic_machine=romp-ibm |
basic_machine=romp-ibm |
982 |
;; |
;; |
986 |
vax) |
vax) |
987 |
basic_machine=vax-dec |
basic_machine=vax-dec |
988 |
;; |
;; |
989 |
|
pdp10) |
990 |
|
# there are many clones, so DEC is not a safe bet |
991 |
|
basic_machine=pdp10-unknown |
992 |
|
;; |
993 |
pdp11) |
pdp11) |
994 |
basic_machine=pdp11-dec |
basic_machine=pdp11-dec |
995 |
;; |
;; |
996 |
we32k) |
we32k) |
997 |
basic_machine=we32k-att |
basic_machine=we32k-att |
998 |
;; |
;; |
999 |
sparc | sparcv9) |
sh3 | sh4 | sh3eb | sh4eb) |
1000 |
|
basic_machine=sh-unknown |
1001 |
|
;; |
1002 |
|
sh64) |
1003 |
|
basic_machine=sh64-unknown |
1004 |
|
;; |
1005 |
|
sparc | sparcv9 | sparcv9b) |
1006 |
basic_machine=sparc-sun |
basic_machine=sparc-sun |
1007 |
;; |
;; |
1008 |
cydra) |
cydra) |
1024 |
basic_machine=c4x-none |
basic_machine=c4x-none |
1025 |
os=-coff |
os=-coff |
1026 |
;; |
;; |
1027 |
|
*-unknown) |
1028 |
|
# Make sure to match an already-canonicalized machine name. |
1029 |
|
;; |
1030 |
*) |
*) |
1031 |
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
1032 |
exit 1 |
exit 1 |
1083 |
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1084 |
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1085 |
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1086 |
|
| -chorusos* | -chorusrdb* \ |
1087 |
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1088 |
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
1089 |
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ |
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ |
1090 |
| -openstep* | -oskit*) |
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1091 |
|
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1092 |
|
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1093 |
|
| -morphos* | -superux* | -rtmk* | -rtmk-nova*) |
1094 |
# Remember, each alternative MUST END IN *, to match a version number. |
# Remember, each alternative MUST END IN *, to match a version number. |
1095 |
;; |
;; |
1096 |
-qnx*) |
-qnx*) |
1097 |
case $basic_machine in |
case $basic_machine in |
1098 |
x86-* | i[34567]86-*) |
x86-* | i*86-*) |
1099 |
;; |
;; |
1100 |
*) |
*) |
1101 |
os=-nto$os |
os=-nto$os |
1142 |
-acis*) |
-acis*) |
1143 |
os=-aos |
os=-aos |
1144 |
;; |
;; |
1145 |
|
-atheos*) |
1146 |
|
os=-atheos |
1147 |
|
;; |
1148 |
-386bsd) |
-386bsd) |
1149 |
os=-bsd |
os=-bsd |
1150 |
;; |
;; |
1151 |
-ctix* | -uts*) |
-ctix* | -uts*) |
1152 |
os=-sysv |
os=-sysv |
1153 |
;; |
;; |
1154 |
|
-nova*) |
1155 |
|
os=-rtmk-nova |
1156 |
|
;; |
1157 |
-ns2 ) |
-ns2 ) |
1158 |
os=-nextstep2 |
os=-nextstep2 |
1159 |
;; |
;; |
1160 |
-nsk) |
-nsk*) |
1161 |
os=-nsk |
os=-nsk |
1162 |
;; |
;; |
1163 |
# Preserve the version number of sinix5. |
# Preserve the version number of sinix5. |
1194 |
-xenix) |
-xenix) |
1195 |
os=-xenix |
os=-xenix |
1196 |
;; |
;; |
1197 |
-*mint | -*MiNT) |
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1198 |
os=-mint |
os=-mint |
1199 |
;; |
;; |
1200 |
-none) |
-none) |
1228 |
arm*-semi) |
arm*-semi) |
1229 |
os=-aout |
os=-aout |
1230 |
;; |
;; |
1231 |
|
# This must come before the *-dec entry. |
1232 |
|
pdp10-*) |
1233 |
|
os=-tops20 |
1234 |
|
;; |
1235 |
pdp11-*) |
pdp11-*) |
1236 |
os=-none |
os=-none |
1237 |
;; |
;; |
1259 |
mips*-*) |
mips*-*) |
1260 |
os=-elf |
os=-elf |
1261 |
;; |
;; |
1262 |
|
or32-*) |
1263 |
|
os=-coff |
1264 |
|
;; |
1265 |
*-tti) # must be before sparc entry or we get the wrong os. |
*-tti) # must be before sparc entry or we get the wrong os. |
1266 |
os=-sysv3 |
os=-sysv3 |
1267 |
;; |
;; |
1343 |
*-masscomp) |
*-masscomp) |
1344 |
os=-rtu |
os=-rtu |
1345 |
;; |
;; |
1346 |
f301-fujitsu) |
f30[01]-fujitsu | f700-fujitsu) |
1347 |
os=-uxpv |
os=-uxpv |
1348 |
;; |
;; |
1349 |
*-rom68k) |
*-rom68k) |
1421 |
-mpw* | -macos*) |
-mpw* | -macos*) |
1422 |
vendor=apple |
vendor=apple |
1423 |
;; |
;; |
1424 |
-*mint | -*MiNT) |
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1425 |
vendor=atari |
vendor=atari |
1426 |
;; |
;; |
1427 |
|
-vos*) |
1428 |
|
vendor=stratus |
1429 |
|
;; |
1430 |
esac |
esac |
1431 |
basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1432 |
;; |
;; |
1433 |
esac |
esac |
1434 |
|
|
1435 |
echo $basic_machine$os |
echo $basic_machine$os |
1436 |
|
exit 0 |
1437 |
|
|
1438 |
|
# Local variables: |
1439 |
|
# eval: (add-hook 'write-file-hooks 'time-stamp) |
1440 |
|
# time-stamp-start: "timestamp='" |
1441 |
|
# time-stamp-format: "%:y-%02m-%02d" |
1442 |
|
# time-stamp-end: "'" |
1443 |
|
# End: |