1 |
#! /bin/sh |
#! /bin/sh |
2 |
# Configuration validation subroutine script. |
# Configuration validation subroutine script. |
3 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
# Copyright 1992-2013 Free Software Foundation, Inc. |
|
# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
|
4 |
|
|
5 |
timestamp='2006-02-23' |
timestamp='2013-10-01' |
6 |
|
|
7 |
# This file is (in principle) common to ALL GNU software. |
# This file is free software; you can redistribute it and/or modify it |
8 |
# The presence of a machine in this file suggests that SOME GNU software |
# under the terms of the GNU General Public License as published by |
9 |
# can handle that machine. It does not imply ALL GNU software can. |
# the Free Software Foundation; either version 3 of the License, or |
|
# |
|
|
# This file is free software; you can redistribute it and/or modify |
|
|
# it under the terms of the GNU General Public License as published by |
|
|
# the Free Software Foundation; either version 2 of the License, or |
|
10 |
# (at your option) any later version. |
# (at your option) any later version. |
11 |
# |
# |
12 |
# This program is distributed in the hope that it will be useful, |
# This program is distributed in the hope that it will be useful, but |
13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 |
# GNU General Public License for more details. |
# General Public License for more details. |
16 |
# |
# |
17 |
# You should have received a copy of the GNU General Public License |
# You should have received a copy of the GNU General Public License |
18 |
# along with this program; if not, write to the Free Software |
# along with this program; if not, see <http://www.gnu.org/licenses/>. |
|
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
|
|
# 02110-1301, USA. |
|
19 |
# |
# |
20 |
# As a special exception to the GNU General Public License, if you |
# As a special exception to the GNU General Public License, if you |
21 |
# distribute this file as part of a program that contains a |
# distribute this file as part of a program that contains a |
22 |
# configuration script generated by Autoconf, you may include it under |
# configuration script generated by Autoconf, you may include it under |
23 |
# 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 |
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>. Submit a context |
# Please send patches with a ChangeLog entry to config-patches@gnu.org. |
|
# diff and a properly formatted ChangeLog entry. |
|
29 |
# |
# |
30 |
# Configuration subroutine to validate and canonicalize a configuration type. |
# Configuration subroutine to validate and canonicalize a configuration type. |
31 |
# Supply the specified configuration type as an argument. |
# 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. |
# 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. |
# 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;hb=HEAD |
37 |
|
|
38 |
# This file is supposed to be the same for all GNU packages |
# This file is supposed to be the same for all GNU packages |
39 |
# and recognize all the CPU types, system types and aliases |
# and recognize all the CPU types, system types and aliases |
40 |
# that are meaningful with *any* GNU software. |
# that are meaningful with *any* GNU software. |
68 |
version="\ |
version="\ |
69 |
GNU config.sub ($timestamp) |
GNU config.sub ($timestamp) |
70 |
|
|
71 |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
Copyright 1992-2013 Free Software Foundation, Inc. |
|
Free Software Foundation, Inc. |
|
72 |
|
|
73 |
This is free software; see the source for copying conditions. There is NO |
This is free software; see the source for copying conditions. There is NO |
74 |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
115 |
# Here we must recognize all the valid KERNEL-OS combinations. |
# Here we must recognize all the valid KERNEL-OS combinations. |
116 |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
117 |
case $maybe_os in |
case $maybe_os in |
118 |
nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ |
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
119 |
uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ |
linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
120 |
|
knetbsd*-gnu* | netbsd*-gnu* | \ |
121 |
|
kopensolaris*-gnu* | \ |
122 |
storm-chaos* | os2-emx* | rtmk-nova*) |
storm-chaos* | os2-emx* | rtmk-nova*) |
123 |
os=-$maybe_os |
os=-$maybe_os |
124 |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
125 |
;; |
;; |
126 |
|
android-linux) |
127 |
|
os=-linux-android |
128 |
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown |
129 |
|
;; |
130 |
*) |
*) |
131 |
basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
132 |
if [ $basic_machine != $1 ] |
if [ $basic_machine != $1 ] |
149 |
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
150 |
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
151 |
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
152 |
-apple | -axis | -knuth | -cray) |
-apple | -axis | -knuth | -cray | -microblaze*) |
153 |
os= |
os= |
154 |
basic_machine=$1 |
basic_machine=$1 |
155 |
;; |
;; |
156 |
|
-bluegene*) |
157 |
|
os=-cnk |
158 |
|
;; |
159 |
-sim | -cisco | -oki | -wec | -winbond) |
-sim | -cisco | -oki | -wec | -winbond) |
160 |
os= |
os= |
161 |
basic_machine=$1 |
basic_machine=$1 |
170 |
os=-chorusos |
os=-chorusos |
171 |
basic_machine=$1 |
basic_machine=$1 |
172 |
;; |
;; |
173 |
-chorusrdb) |
-chorusrdb) |
174 |
os=-chorusrdb |
os=-chorusrdb |
175 |
basic_machine=$1 |
basic_machine=$1 |
176 |
;; |
;; |
177 |
-hiux*) |
-hiux*) |
178 |
os=-hiuxwe2 |
os=-hiuxwe2 |
179 |
;; |
;; |
218 |
-isc*) |
-isc*) |
219 |
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
220 |
;; |
;; |
221 |
|
-lynx*178) |
222 |
|
os=-lynxos178 |
223 |
|
;; |
224 |
|
-lynx*5) |
225 |
|
os=-lynxos5 |
226 |
|
;; |
227 |
-lynx*) |
-lynx*) |
228 |
os=-lynxos |
os=-lynxos |
229 |
;; |
;; |
248 |
# Some are omitted here because they have special meanings below. |
# Some are omitted here because they have special meanings below. |
249 |
1750a | 580 \ |
1750a | 580 \ |
250 |
| a29k \ |
| a29k \ |
251 |
|
| aarch64 | aarch64_be \ |
252 |
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
253 |
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
254 |
| am33_2.0 \ |
| am33_2.0 \ |
255 |
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
| arc | arceb \ |
256 |
|
| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ |
257 |
|
| avr | avr32 \ |
258 |
|
| be32 | be64 \ |
259 |
| bfin \ |
| bfin \ |
260 |
| c4x | clipper \ |
| c4x | c8051 | clipper \ |
261 |
| d10v | d30v | dlx | dsp16xx \ |
| d10v | d30v | dlx | dsp16xx \ |
262 |
| fr30 | frv \ |
| epiphany \ |
263 |
|
| fido | fr30 | frv \ |
264 |
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
265 |
|
| hexagon \ |
266 |
| i370 | i860 | i960 | ia64 \ |
| i370 | i860 | i960 | ia64 \ |
267 |
| ip2k | iq2000 \ |
| ip2k | iq2000 \ |
268 |
| m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ |
| 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 \ |
| mips | mipsbe | mipseb | mipsel | mipsle \ |
274 |
| mips16 \ |
| mips16 \ |
275 |
| mips64 | mips64el \ |
| mips64 | mips64el \ |
276 |
| mips64vr | mips64vrel \ |
| mips64octeon | mips64octeonel \ |
277 |
| mips64orion | mips64orionel \ |
| mips64orion | mips64orionel \ |
278 |
|
| mips64r5900 | mips64r5900el \ |
279 |
|
| mips64vr | mips64vrel \ |
280 |
| mips64vr4100 | mips64vr4100el \ |
| mips64vr4100 | mips64vr4100el \ |
281 |
| mips64vr4300 | mips64vr4300el \ |
| mips64vr4300 | mips64vr4300el \ |
282 |
| mips64vr5000 | mips64vr5000el \ |
| mips64vr5000 | mips64vr5000el \ |
287 |
| mipsisa64r2 | mipsisa64r2el \ |
| mipsisa64r2 | mipsisa64r2el \ |
288 |
| mipsisa64sb1 | mipsisa64sb1el \ |
| mipsisa64sb1 | mipsisa64sb1el \ |
289 |
| mipsisa64sr71k | mipsisa64sr71kel \ |
| mipsisa64sr71k | mipsisa64sr71kel \ |
290 |
|
| mipsr5900 | mipsr5900el \ |
291 |
| mipstx39 | mipstx39el \ |
| mipstx39 | mipstx39el \ |
292 |
| mn10200 | mn10300 \ |
| mn10200 | mn10300 \ |
293 |
|
| moxie \ |
294 |
| mt \ |
| mt \ |
295 |
| msp430 \ |
| msp430 \ |
296 |
| nios | nios2 \ |
| nds32 | nds32le | nds32be \ |
297 |
|
| nios | nios2 | nios2eb | nios2el \ |
298 |
| ns16k | ns32k \ |
| ns16k | ns32k \ |
299 |
| or32 \ |
| open8 \ |
300 |
|
| or1k | or32 \ |
301 |
| pdp10 | pdp11 | pj | pjl \ |
| pdp10 | pdp11 | pj | pjl \ |
302 |
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
| powerpc | powerpc64 | powerpc64le | powerpcle \ |
303 |
| pyramid \ |
| pyramid \ |
304 |
| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
| rl78 | rx \ |
305 |
|
| score \ |
306 |
|
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
307 |
| sh64 | sh64le \ |
| sh64 | sh64le \ |
308 |
| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ |
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
309 |
| sparcv8 | sparcv9 | sparcv9b \ |
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
310 |
| strongarm \ |
| spu \ |
311 |
| tahoe | thumb | tic4x | tic80 | tron \ |
| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ |
312 |
| v850 | v850e \ |
| ubicom32 \ |
313 |
|
| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ |
314 |
| we32k \ |
| we32k \ |
315 |
| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ |
| x86 | xc16x | xstormy16 | xtensa \ |
316 |
| z8k) |
| z8k | z80) |
317 |
basic_machine=$basic_machine-unknown |
basic_machine=$basic_machine-unknown |
318 |
;; |
;; |
319 |
m32c) |
c54x) |
320 |
basic_machine=$basic_machine-unknown |
basic_machine=tic54x-unknown |
321 |
|
;; |
322 |
|
c55x) |
323 |
|
basic_machine=tic55x-unknown |
324 |
;; |
;; |
325 |
m6811 | m68hc11 | m6812 | m68hc12) |
c6x) |
326 |
# Motorola 68HC11/12. |
basic_machine=tic6x-unknown |
327 |
|
;; |
328 |
|
m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) |
329 |
basic_machine=$basic_machine-unknown |
basic_machine=$basic_machine-unknown |
330 |
os=-none |
os=-none |
331 |
;; |
;; |
335 |
basic_machine=mt-unknown |
basic_machine=mt-unknown |
336 |
;; |
;; |
337 |
|
|
338 |
|
strongarm | thumb | xscale) |
339 |
|
basic_machine=arm-unknown |
340 |
|
;; |
341 |
|
xgate) |
342 |
|
basic_machine=$basic_machine-unknown |
343 |
|
os=-none |
344 |
|
;; |
345 |
|
xscaleeb) |
346 |
|
basic_machine=armeb-unknown |
347 |
|
;; |
348 |
|
|
349 |
|
xscaleel) |
350 |
|
basic_machine=armel-unknown |
351 |
|
;; |
352 |
|
|
353 |
# We use `pc' rather than `unknown' |
# We use `pc' rather than `unknown' |
354 |
# because (1) that's what they normally are, and |
# because (1) that's what they normally are, and |
355 |
# (2) the word "unknown" tends to confuse beginning users. |
# (2) the word "unknown" tends to confuse beginning users. |
364 |
# Recognize the basic CPU types with company name. |
# Recognize the basic CPU types with company name. |
365 |
580-* \ |
580-* \ |
366 |
| a29k-* \ |
| a29k-* \ |
367 |
|
| aarch64-* | aarch64_be-* \ |
368 |
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
369 |
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
370 |
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ |
371 |
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
372 |
| avr-* \ |
| avr-* | avr32-* \ |
373 |
|
| be32-* | be64-* \ |
374 |
| bfin-* | bs2000-* \ |
| bfin-* | bs2000-* \ |
375 |
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
| c[123]* | c30-* | [cjt]90-* | c4x-* \ |
376 |
| clipper-* | craynv-* | cydra-* \ |
| c8051-* | clipper-* | craynv-* | cydra-* \ |
377 |
| d10v-* | d30v-* | dlx-* \ |
| d10v-* | d30v-* | dlx-* \ |
378 |
| elxsi-* \ |
| elxsi-* \ |
379 |
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
380 |
| h8300-* | h8500-* \ |
| h8300-* | h8500-* \ |
381 |
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
382 |
|
| hexagon-* \ |
383 |
| i*86-* | i860-* | i960-* | ia64-* \ |
| i*86-* | i860-* | i960-* | ia64-* \ |
384 |
| ip2k-* | iq2000-* \ |
| ip2k-* | iq2000-* \ |
385 |
| m32r-* | m32rle-* \ |
| k1om-* \ |
386 |
|
| le32-* | le64-* \ |
387 |
|
| lm32-* \ |
388 |
|
| m32c-* | m32r-* | m32rle-* \ |
389 |
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
390 |
| m88110-* | m88k-* | maxq-* | mcore-* \ |
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ |
391 |
|
| microblaze-* | microblazeel-* \ |
392 |
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
393 |
| mips16-* \ |
| mips16-* \ |
394 |
| mips64-* | mips64el-* \ |
| mips64-* | mips64el-* \ |
395 |
| mips64vr-* | mips64vrel-* \ |
| mips64octeon-* | mips64octeonel-* \ |
396 |
| mips64orion-* | mips64orionel-* \ |
| mips64orion-* | mips64orionel-* \ |
397 |
|
| mips64r5900-* | mips64r5900el-* \ |
398 |
|
| mips64vr-* | mips64vrel-* \ |
399 |
| mips64vr4100-* | mips64vr4100el-* \ |
| mips64vr4100-* | mips64vr4100el-* \ |
400 |
| mips64vr4300-* | mips64vr4300el-* \ |
| mips64vr4300-* | mips64vr4300el-* \ |
401 |
| mips64vr5000-* | mips64vr5000el-* \ |
| mips64vr5000-* | mips64vr5000el-* \ |
406 |
| mipsisa64r2-* | mipsisa64r2el-* \ |
| mipsisa64r2-* | mipsisa64r2el-* \ |
407 |
| mipsisa64sb1-* | mipsisa64sb1el-* \ |
| mipsisa64sb1-* | mipsisa64sb1el-* \ |
408 |
| mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
| mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
409 |
|
| mipsr5900-* | mipsr5900el-* \ |
410 |
| mipstx39-* | mipstx39el-* \ |
| mipstx39-* | mipstx39el-* \ |
411 |
| mmix-* \ |
| mmix-* \ |
412 |
| mt-* \ |
| mt-* \ |
413 |
| msp430-* \ |
| msp430-* \ |
414 |
| nios-* | nios2-* \ |
| nds32-* | nds32le-* | nds32be-* \ |
415 |
|
| nios-* | nios2-* | nios2eb-* | nios2el-* \ |
416 |
| none-* | np1-* | ns16k-* | ns32k-* \ |
| none-* | np1-* | ns16k-* | ns32k-* \ |
417 |
|
| open8-* \ |
418 |
| orion-* \ |
| orion-* \ |
419 |
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
420 |
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
421 |
| pyramid-* \ |
| pyramid-* \ |
422 |
| romp-* | rs6000-* \ |
| rl78-* | romp-* | rs6000-* | rx-* \ |
423 |
| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
424 |
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
425 |
| sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ |
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
426 |
| sparclite-* \ |
| sparclite-* \ |
427 |
| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ |
428 |
| tahoe-* | thumb-* \ |
| tahoe-* \ |
429 |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
430 |
|
| tile*-* \ |
431 |
| tron-* \ |
| tron-* \ |
432 |
| v850-* | v850e-* | vax-* \ |
| ubicom32-* \ |
433 |
|
| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ |
434 |
|
| vax-* \ |
435 |
| we32k-* \ |
| we32k-* \ |
436 |
| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ |
| x86-* | x86_64-* | xc16x-* | xps100-* \ |
437 |
| xstormy16-* | xtensa-* \ |
| xstormy16-* | xtensa*-* \ |
438 |
| ymp-* \ |
| ymp-* \ |
439 |
| z8k-*) |
| z8k-* | z80-*) |
440 |
;; |
;; |
441 |
m32c-*) |
# Recognize the basic CPU types without company name, with glob match. |
442 |
|
xtensa*) |
443 |
|
basic_machine=$basic_machine-unknown |
444 |
;; |
;; |
445 |
# Recognize the various machine names and aliases which stand |
# Recognize the various machine names and aliases which stand |
446 |
# for a CPU type and a company and sometimes even an OS. |
# for a CPU type and a company and sometimes even an OS. |
458 |
basic_machine=a29k-amd |
basic_machine=a29k-amd |
459 |
os=-udi |
os=-udi |
460 |
;; |
;; |
461 |
abacus) |
abacus) |
462 |
basic_machine=abacus-unknown |
basic_machine=abacus-unknown |
463 |
;; |
;; |
464 |
adobe68k) |
adobe68k) |
504 |
basic_machine=m68k-apollo |
basic_machine=m68k-apollo |
505 |
os=-bsd |
os=-bsd |
506 |
;; |
;; |
507 |
|
aros) |
508 |
|
basic_machine=i386-pc |
509 |
|
os=-aros |
510 |
|
;; |
511 |
aux) |
aux) |
512 |
basic_machine=m68k-apple |
basic_machine=m68k-apple |
513 |
os=-aux |
os=-aux |
516 |
basic_machine=ns32k-sequent |
basic_machine=ns32k-sequent |
517 |
os=-dynix |
os=-dynix |
518 |
;; |
;; |
519 |
|
blackfin) |
520 |
|
basic_machine=bfin-unknown |
521 |
|
os=-linux |
522 |
|
;; |
523 |
|
blackfin-*) |
524 |
|
basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` |
525 |
|
os=-linux |
526 |
|
;; |
527 |
|
bluegene*) |
528 |
|
basic_machine=powerpc-ibm |
529 |
|
os=-cnk |
530 |
|
;; |
531 |
|
c54x-*) |
532 |
|
basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` |
533 |
|
;; |
534 |
|
c55x-*) |
535 |
|
basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` |
536 |
|
;; |
537 |
|
c6x-*) |
538 |
|
basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` |
539 |
|
;; |
540 |
c90) |
c90) |
541 |
basic_machine=c90-cray |
basic_machine=c90-cray |
542 |
os=-unicos |
os=-unicos |
543 |
;; |
;; |
544 |
|
cegcc) |
545 |
|
basic_machine=arm-unknown |
546 |
|
os=-cegcc |
547 |
|
;; |
548 |
convex-c1) |
convex-c1) |
549 |
basic_machine=c1-convex |
basic_machine=c1-convex |
550 |
os=-bsd |
os=-bsd |
573 |
basic_machine=craynv-cray |
basic_machine=craynv-cray |
574 |
os=-unicosmp |
os=-unicosmp |
575 |
;; |
;; |
576 |
cr16c) |
cr16 | cr16-*) |
577 |
basic_machine=cr16c-unknown |
basic_machine=cr16-unknown |
578 |
os=-elf |
os=-elf |
579 |
;; |
;; |
580 |
crds | unos) |
crds | unos) |
612 |
basic_machine=m88k-motorola |
basic_machine=m88k-motorola |
613 |
os=-sysv3 |
os=-sysv3 |
614 |
;; |
;; |
615 |
|
dicos) |
616 |
|
basic_machine=i686-pc |
617 |
|
os=-dicos |
618 |
|
;; |
619 |
djgpp) |
djgpp) |
620 |
basic_machine=i586-pc |
basic_machine=i586-pc |
621 |
os=-msdosdjgpp |
os=-msdosdjgpp |
731 |
i370-ibm* | ibm*) |
i370-ibm* | ibm*) |
732 |
basic_machine=i370-ibm |
basic_machine=i370-ibm |
733 |
;; |
;; |
|
# I'm not sure what "Sysv32" means. Should this be sysv3.2? |
|
734 |
i*86v32) |
i*86v32) |
735 |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
736 |
os=-sysv32 |
os=-sysv32 |
769 |
basic_machine=m68k-isi |
basic_machine=m68k-isi |
770 |
os=-sysv |
os=-sysv |
771 |
;; |
;; |
772 |
|
m68knommu) |
773 |
|
basic_machine=m68k-unknown |
774 |
|
os=-linux |
775 |
|
;; |
776 |
|
m68knommu-*) |
777 |
|
basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` |
778 |
|
os=-linux |
779 |
|
;; |
780 |
m88k-omron*) |
m88k-omron*) |
781 |
basic_machine=m88k-omron |
basic_machine=m88k-omron |
782 |
;; |
;; |
788 |
basic_machine=ns32k-utek |
basic_machine=ns32k-utek |
789 |
os=-sysv |
os=-sysv |
790 |
;; |
;; |
791 |
|
microblaze*) |
792 |
|
basic_machine=microblaze-xilinx |
793 |
|
;; |
794 |
|
mingw64) |
795 |
|
basic_machine=x86_64-pc |
796 |
|
os=-mingw64 |
797 |
|
;; |
798 |
mingw32) |
mingw32) |
799 |
basic_machine=i386-pc |
basic_machine=i686-pc |
800 |
os=-mingw32 |
os=-mingw32 |
801 |
;; |
;; |
802 |
|
mingw32ce) |
803 |
|
basic_machine=arm-unknown |
804 |
|
os=-mingw32ce |
805 |
|
;; |
806 |
miniframe) |
miniframe) |
807 |
basic_machine=m68000-convergent |
basic_machine=m68000-convergent |
808 |
;; |
;; |
831 |
ms1-*) |
ms1-*) |
832 |
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
833 |
;; |
;; |
834 |
|
msys) |
835 |
|
basic_machine=i686-pc |
836 |
|
os=-msys |
837 |
|
;; |
838 |
mvs) |
mvs) |
839 |
basic_machine=i370-ibm |
basic_machine=i370-ibm |
840 |
os=-mvs |
os=-mvs |
841 |
;; |
;; |
842 |
|
nacl) |
843 |
|
basic_machine=le32-unknown |
844 |
|
os=-nacl |
845 |
|
;; |
846 |
ncr3000) |
ncr3000) |
847 |
basic_machine=i486-ncr |
basic_machine=i486-ncr |
848 |
os=-sysv4 |
os=-sysv4 |
907 |
np1) |
np1) |
908 |
basic_machine=np1-gould |
basic_machine=np1-gould |
909 |
;; |
;; |
910 |
|
neo-tandem) |
911 |
|
basic_machine=neo-tandem |
912 |
|
;; |
913 |
|
nse-tandem) |
914 |
|
basic_machine=nse-tandem |
915 |
|
;; |
916 |
nsr-tandem) |
nsr-tandem) |
917 |
basic_machine=nsr-tandem |
basic_machine=nsr-tandem |
918 |
;; |
;; |
943 |
basic_machine=i860-intel |
basic_machine=i860-intel |
944 |
os=-osf |
os=-osf |
945 |
;; |
;; |
946 |
|
parisc) |
947 |
|
basic_machine=hppa-unknown |
948 |
|
os=-linux |
949 |
|
;; |
950 |
|
parisc-*) |
951 |
|
basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` |
952 |
|
os=-linux |
953 |
|
;; |
954 |
pbd) |
pbd) |
955 |
basic_machine=sparc-tti |
basic_machine=sparc-tti |
956 |
;; |
;; |
995 |
;; |
;; |
996 |
power) basic_machine=power-ibm |
power) basic_machine=power-ibm |
997 |
;; |
;; |
998 |
ppc) basic_machine=powerpc-unknown |
ppc | ppcbe) basic_machine=powerpc-unknown |
999 |
;; |
;; |
1000 |
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
ppc-* | ppcbe-*) |
1001 |
|
basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
1002 |
;; |
;; |
1003 |
ppcle | powerpclittle | ppc-le | powerpc-little) |
ppcle | powerpclittle | ppc-le | powerpc-little) |
1004 |
basic_machine=powerpcle-unknown |
basic_machine=powerpcle-unknown |
1023 |
basic_machine=i586-unknown |
basic_machine=i586-unknown |
1024 |
os=-pw32 |
os=-pw32 |
1025 |
;; |
;; |
1026 |
rdos) |
rdos | rdos64) |
1027 |
|
basic_machine=x86_64-pc |
1028 |
|
os=-rdos |
1029 |
|
;; |
1030 |
|
rdos32) |
1031 |
basic_machine=i386-pc |
basic_machine=i386-pc |
1032 |
os=-rdos |
os=-rdos |
1033 |
;; |
;; |
1057 |
sb1el) |
sb1el) |
1058 |
basic_machine=mipsisa64sb1el-unknown |
basic_machine=mipsisa64sb1el-unknown |
1059 |
;; |
;; |
1060 |
|
sde) |
1061 |
|
basic_machine=mipsisa32-sde |
1062 |
|
os=-elf |
1063 |
|
;; |
1064 |
sei) |
sei) |
1065 |
basic_machine=mips-sei |
basic_machine=mips-sei |
1066 |
os=-seiux |
os=-seiux |
1072 |
basic_machine=sh-hitachi |
basic_machine=sh-hitachi |
1073 |
os=-hms |
os=-hms |
1074 |
;; |
;; |
1075 |
|
sh5el) |
1076 |
|
basic_machine=sh5le-unknown |
1077 |
|
;; |
1078 |
sh64) |
sh64) |
1079 |
basic_machine=sh64-unknown |
basic_machine=sh64-unknown |
1080 |
;; |
;; |
1096 |
basic_machine=i860-stratus |
basic_machine=i860-stratus |
1097 |
os=-sysv4 |
os=-sysv4 |
1098 |
;; |
;; |
1099 |
|
strongarm-* | thumb-*) |
1100 |
|
basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` |
1101 |
|
;; |
1102 |
sun2) |
sun2) |
1103 |
basic_machine=m68000-sun |
basic_machine=m68000-sun |
1104 |
;; |
;; |
1155 |
basic_machine=t90-cray |
basic_machine=t90-cray |
1156 |
os=-unicos |
os=-unicos |
1157 |
;; |
;; |
1158 |
tic54x | c54x*) |
tile*) |
1159 |
basic_machine=tic54x-unknown |
basic_machine=$basic_machine-unknown |
1160 |
os=-coff |
os=-linux-gnu |
|
;; |
|
|
tic55x | c55x*) |
|
|
basic_machine=tic55x-unknown |
|
|
os=-coff |
|
|
;; |
|
|
tic6x | c6x*) |
|
|
basic_machine=tic6x-unknown |
|
|
os=-coff |
|
1161 |
;; |
;; |
1162 |
tx39) |
tx39) |
1163 |
basic_machine=mipstx39-unknown |
basic_machine=mipstx39-unknown |
1226 |
xps | xps100) |
xps | xps100) |
1227 |
basic_machine=xps100-honeywell |
basic_machine=xps100-honeywell |
1228 |
;; |
;; |
1229 |
|
xscale-* | xscalee[bl]-*) |
1230 |
|
basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` |
1231 |
|
;; |
1232 |
ymp) |
ymp) |
1233 |
basic_machine=ymp-cray |
basic_machine=ymp-cray |
1234 |
os=-unicos |
os=-unicos |
1237 |
basic_machine=z8k-unknown |
basic_machine=z8k-unknown |
1238 |
os=-sim |
os=-sim |
1239 |
;; |
;; |
1240 |
|
z80-*-coff) |
1241 |
|
basic_machine=z80-unknown |
1242 |
|
os=-sim |
1243 |
|
;; |
1244 |
none) |
none) |
1245 |
basic_machine=none-none |
basic_machine=none-none |
1246 |
os=-none |
os=-none |
1279 |
we32k) |
we32k) |
1280 |
basic_machine=we32k-att |
basic_machine=we32k-att |
1281 |
;; |
;; |
1282 |
sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) |
sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) |
1283 |
basic_machine=sh-unknown |
basic_machine=sh-unknown |
1284 |
;; |
;; |
1285 |
sparc | sparcv8 | sparcv9 | sparcv9b) |
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) |
1286 |
basic_machine=sparc-sun |
basic_machine=sparc-sun |
1287 |
;; |
;; |
1288 |
cydra) |
cydra) |
1326 |
if [ x"$os" != x"" ] |
if [ x"$os" != x"" ] |
1327 |
then |
then |
1328 |
case $os in |
case $os in |
1329 |
# First match some system type aliases |
# First match some system type aliases |
1330 |
# that might get confused with valid system types. |
# that might get confused with valid system types. |
1331 |
# -solaris* is a basic system type, with this one exception. |
# -solaris* is a basic system type, with this one exception. |
1332 |
|
-auroraux) |
1333 |
|
os=-auroraux |
1334 |
|
;; |
1335 |
-solaris1 | -solaris1.*) |
-solaris1 | -solaris1.*) |
1336 |
os=`echo $os | sed -e 's|solaris1|sunos4|'` |
os=`echo $os | sed -e 's|solaris1|sunos4|'` |
1337 |
;; |
;; |
1352 |
# Each alternative MUST END IN A *, to match a version number. |
# Each alternative MUST END IN A *, to match a version number. |
1353 |
# -sysv* is not here because it comes later, after sysvr4. |
# -sysv* is not here because it comes later, after sysvr4. |
1354 |
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1355 |
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ |
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
1356 |
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
1357 |
|
| -sym* | -kopensolaris* | -plan9* \ |
1358 |
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1359 |
| -aos* \ |
| -aos* | -aros* \ |
1360 |
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1361 |
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1362 |
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
1363 |
| -openbsd* | -solidbsd* \ |
| -bitrig* | -openbsd* | -solidbsd* \ |
1364 |
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1365 |
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1366 |
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1367 |
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1368 |
| -chorusos* | -chorusrdb* \ |
| -chorusos* | -chorusrdb* | -cegcc* \ |
1369 |
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1370 |
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ |
| -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ |
1371 |
|
| -linux-newlib* | -linux-musl* | -linux-uclibc* \ |
1372 |
| -uxpv* | -beos* | -mpeix* | -udk* \ |
| -uxpv* | -beos* | -mpeix* | -udk* \ |
1373 |
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1374 |
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1376 |
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1377 |
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1378 |
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1379 |
| -skyos* | -haiku* | -rdos*) |
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) |
1380 |
# Remember, each alternative MUST END IN *, to match a version number. |
# Remember, each alternative MUST END IN *, to match a version number. |
1381 |
;; |
;; |
1382 |
-qnx*) |
-qnx*) |
1415 |
-opened*) |
-opened*) |
1416 |
os=-openedition |
os=-openedition |
1417 |
;; |
;; |
1418 |
-os400*) |
-os400*) |
1419 |
os=-os400 |
os=-os400 |
1420 |
;; |
;; |
1421 |
-wince*) |
-wince*) |
1464 |
-sinix*) |
-sinix*) |
1465 |
os=-sysv4 |
os=-sysv4 |
1466 |
;; |
;; |
1467 |
-tpf*) |
-tpf*) |
1468 |
os=-tpf |
os=-tpf |
1469 |
;; |
;; |
1470 |
-triton*) |
-triton*) |
1500 |
-aros*) |
-aros*) |
1501 |
os=-aros |
os=-aros |
1502 |
;; |
;; |
|
-kaos*) |
|
|
os=-kaos |
|
|
;; |
|
1503 |
-zvmoe) |
-zvmoe) |
1504 |
os=-zvmoe |
os=-zvmoe |
1505 |
;; |
;; |
1506 |
|
-dicos*) |
1507 |
|
os=-dicos |
1508 |
|
;; |
1509 |
|
-nacl*) |
1510 |
|
;; |
1511 |
-none) |
-none) |
1512 |
;; |
;; |
1513 |
*) |
*) |
1530 |
# system, and we'll never get to this point. |
# system, and we'll never get to this point. |
1531 |
|
|
1532 |
case $basic_machine in |
case $basic_machine in |
1533 |
|
score-*) |
1534 |
|
os=-elf |
1535 |
|
;; |
1536 |
|
spu-*) |
1537 |
|
os=-elf |
1538 |
|
;; |
1539 |
*-acorn) |
*-acorn) |
1540 |
os=-riscix1.2 |
os=-riscix1.2 |
1541 |
;; |
;; |
1545 |
arm*-semi) |
arm*-semi) |
1546 |
os=-aout |
os=-aout |
1547 |
;; |
;; |
1548 |
c4x-* | tic4x-*) |
c4x-* | tic4x-*) |
1549 |
os=-coff |
os=-coff |
1550 |
;; |
;; |
1551 |
|
c8051-*) |
1552 |
|
os=-elf |
1553 |
|
;; |
1554 |
|
hexagon-*) |
1555 |
|
os=-elf |
1556 |
|
;; |
1557 |
|
tic54x-*) |
1558 |
|
os=-coff |
1559 |
|
;; |
1560 |
|
tic55x-*) |
1561 |
|
os=-coff |
1562 |
|
;; |
1563 |
|
tic6x-*) |
1564 |
|
os=-coff |
1565 |
|
;; |
1566 |
# This must come before the *-dec entry. |
# This must come before the *-dec entry. |
1567 |
pdp10-*) |
pdp10-*) |
1568 |
os=-tops20 |
os=-tops20 |
1581 |
;; |
;; |
1582 |
m68000-sun) |
m68000-sun) |
1583 |
os=-sunos3 |
os=-sunos3 |
|
# This also exists in the configure program, but was not the |
|
|
# default. |
|
|
# os=-sunos4 |
|
1584 |
;; |
;; |
1585 |
m68*-cisco) |
m68*-cisco) |
1586 |
os=-aout |
os=-aout |
1587 |
;; |
;; |
1588 |
|
mep-*) |
1589 |
|
os=-elf |
1590 |
|
;; |
1591 |
mips*-cisco) |
mips*-cisco) |
1592 |
os=-elf |
os=-elf |
1593 |
;; |
;; |
1594 |
mips*-*) |
mips*-*) |
1595 |
os=-elf |
os=-elf |
1596 |
;; |
;; |
1597 |
|
or1k-*) |
1598 |
|
os=-elf |
1599 |
|
;; |
1600 |
or32-*) |
or32-*) |
1601 |
os=-coff |
os=-coff |
1602 |
;; |
;; |
1615 |
*-ibm) |
*-ibm) |
1616 |
os=-aix |
os=-aix |
1617 |
;; |
;; |
1618 |
*-knuth) |
*-knuth) |
1619 |
os=-mmixware |
os=-mmixware |
1620 |
;; |
;; |
1621 |
*-wec) |
*-wec) |
1720 |
-sunos*) |
-sunos*) |
1721 |
vendor=sun |
vendor=sun |
1722 |
;; |
;; |
1723 |
-aix*) |
-cnk*|-aix*) |
1724 |
vendor=ibm |
vendor=ibm |
1725 |
;; |
;; |
1726 |
-beos*) |
-beos*) |