config.sub (b652778e426d00b6a1df29bbd86869db86f36e25) config.sub (5b91e83f530b59d5c1b5d180a4e6009caac8718c)
1#! /bin/sh
2# Configuration validation subroutine script.
1#! /bin/sh
2# Configuration validation subroutine script.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5# 2011 Free Software Foundation, Inc.
3# Copyright 1992-2013 Free Software Foundation, Inc.
6
4
7timestamp='2011-04-01'
5timestamp='2013-02-04'
8
6
9# This file is (in principle) common to ALL GNU software.
10# The presence of a machine in this file suggests that SOME GNU software
11# can handle that machine. It does not imply ALL GNU software can.
12#
13# This file is free software; you can redistribute it and/or modify
14# it under the terms of the GNU General Public License as published by
15# the Free Software Foundation; either version 2 of the License, or
7# This file is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 3 of the License, or
16# (at your option) any later version.
17#
10# (at your option) any later version.
11#
18# This program is distributed in the hope that it will be useful,
19# but WITHOUT ANY WARRANTY; without even the implied warranty of
20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21# GNU General Public License for more details.
12# This program is distributed in the hope that it will be useful, but
13# WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15# General Public License for more details.
22#
23# You should have received a copy of the GNU General Public License
16#
17# You should have received a copy of the GNU General Public License
24# along with this program; if not, write to the Free Software
25# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26# 02110-1301, USA.
18# along with this program; if not, see <http://www.gnu.org/licenses/>.
27#
28# As a special exception to the GNU General Public License, if you
29# distribute this file as part of a program that contains a
30# configuration script generated by Autoconf, you may include it under
19#
20# As a special exception to the GNU General Public License, if you
21# distribute this file as part of a program that contains a
22# configuration script generated by Autoconf, you may include it under
31# the same distribution terms that you use for the rest of that program.
23# the same distribution terms that you use for the rest of that
24# program. This Exception is an additional permission under section 7
25# of the GNU General Public License, version 3 ("GPLv3").
32
33
26
27
34# Please send patches to <config-patches@gnu.org>. Submit a context
35# diff and a properly formatted GNU ChangeLog entry.
28# Please send patches with a ChangeLog entry to config-patches@gnu.org.
36#
37# Configuration subroutine to validate and canonicalize a configuration type.
38# Supply the specified configuration type as an argument.
39# If it is invalid, we print an error message on stderr and exit with code 1.
40# Otherwise, we print the canonical config type on stdout and succeed.
41
42# You can get the latest version of this script from:
43# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

--- 26 unchanged lines hidden (view full) ---

70 -t, --time-stamp print date of last modification, then exit
71 -v, --version print version number, then exit
72
73Report bugs and patches to <config-patches@gnu.org>."
74
75version="\
76GNU config.sub ($timestamp)
77
29#
30# Configuration subroutine to validate and canonicalize a configuration type.
31# Supply the specified configuration type as an argument.
32# If it is invalid, we print an error message on stderr and exit with code 1.
33# Otherwise, we print the canonical config type on stdout and succeed.
34
35# You can get the latest version of this script from:
36# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

--- 26 unchanged lines hidden (view full) ---

63 -t, --time-stamp print date of last modification, then exit
64 -v, --version print version number, then exit
65
66Report bugs and patches to <config-patches@gnu.org>."
67
68version="\
69GNU config.sub ($timestamp)
70
78Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
792001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
80Free Software Foundation, Inc.
71Copyright 1992-2013 Free Software Foundation, Inc.
81
82This is free software; see the source for copying conditions. There is NO
83warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
84
85help="
86Try \`$me --help' for more information."
87
88# Parse command line

--- 31 unchanged lines hidden (view full) ---

120 exit 1;;
121esac
122
123# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
124# Here we must recognize all the valid KERNEL-OS combinations.
125maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
126case $maybe_os in
127 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
72
73This is free software; see the source for copying conditions. There is NO
74warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
75
76help="
77Try \`$me --help' for more information."
78
79# Parse command line

--- 31 unchanged lines hidden (view full) ---

111 exit 1;;
112esac
113
114# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
115# Here we must recognize all the valid KERNEL-OS combinations.
116maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
117case $maybe_os in
118 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
128 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
129 knetbsd*-gnu* | netbsd*-gnu* | \
130 kopensolaris*-gnu* | \
131 storm-chaos* | os2-emx* | rtmk-nova*)
132 os=-$maybe_os
133 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
134 ;;
120 knetbsd*-gnu* | netbsd*-gnu* | \
121 kopensolaris*-gnu* | \
122 storm-chaos* | os2-emx* | rtmk-nova*)
123 os=-$maybe_os
124 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 ;;
135 *)
136 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
137 if [ $basic_machine != $1 ]
138 then os=`echo $1 | sed 's/.*-/-/'`
139 else os=; fi
140 ;;
141esac
142

--- 6 unchanged lines hidden (view full) ---

149 # Prevent following clause from handling this invalid input.
150 ;;
151 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
152 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
153 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
154 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
155 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
156 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
130 *)
131 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
132 if [ $basic_machine != $1 ]
133 then os=`echo $1 | sed 's/.*-/-/'`
134 else os=; fi
135 ;;
136esac
137

--- 6 unchanged lines hidden (view full) ---

144 # Prevent following clause from handling this invalid input.
145 ;;
146 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
147 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
148 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
149 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
150 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
151 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
157 -apple | -axis | -knuth | -cray | -microblaze)
152 -apple | -axis | -knuth | -cray | -microblaze*)
158 os=
159 basic_machine=$1
160 ;;
161 -bluegene*)
162 os=-cnk
163 ;;
164 -sim | -cisco | -oki | -wec | -winbond)
165 os=

--- 52 unchanged lines hidden (view full) ---

218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
219 ;;
220 -clix*)
221 basic_machine=clipper-intergraph
222 ;;
223 -isc*)
224 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
225 ;;
153 os=
154 basic_machine=$1
155 ;;
156 -bluegene*)
157 os=-cnk
158 ;;
159 -sim | -cisco | -oki | -wec | -winbond)
160 os=

--- 52 unchanged lines hidden (view full) ---

213 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
214 ;;
215 -clix*)
216 basic_machine=clipper-intergraph
217 ;;
218 -isc*)
219 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 ;;
226 -lynx*)
227 os=-lynxos
228 ;;
229 -ptx*)
230 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
231 ;;
232 -windowsnt*)
233 os=`echo $os | sed -e 's/windowsnt/winnt/'`

--- 8 unchanged lines hidden (view full) ---

242esac
243
244# Decode aliases for certain CPU-COMPANY combinations.
245case $basic_machine in
246 # Recognize the basic CPU types without company name.
247 # Some are omitted here because they have special meanings below.
248 1750a | 580 \
249 | a29k \
227 -lynx*)
228 os=-lynxos
229 ;;
230 -ptx*)
231 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
232 ;;
233 -windowsnt*)
234 os=`echo $os | sed -e 's/windowsnt/winnt/'`

--- 8 unchanged lines hidden (view full) ---

243esac
244
245# Decode aliases for certain CPU-COMPANY combinations.
246case $basic_machine in
247 # Recognize the basic CPU types without company name.
248 # Some are omitted here because they have special meanings below.
249 1750a | 580 \
250 | a29k \
251 | aarch64 | aarch64_be \
250 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
251 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
252 | am33_2.0 \
252 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
253 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
254 | am33_2.0 \
253 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
255 | arc \
256 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
257 | avr | avr32 \
258 | be32 | be64 \
254 | bfin \
255 | c4x | clipper \
256 | d10v | d30v | dlx | dsp16xx \
259 | bfin \
260 | c4x | clipper \
261 | d10v | d30v | dlx | dsp16xx \
262 | epiphany \
257 | fido | fr30 | frv \
258 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
263 | fido | fr30 | frv \
264 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265 | hexagon \
259 | i370 | i860 | i960 | ia64 \
260 | ip2k | iq2000 \
266 | i370 | i860 | i960 | ia64 \
267 | ip2k | iq2000 \
268 | le32 | le64 \
261 | lm32 \
262 | m32c | m32r | m32rle | m68000 | m68k | m88k \
269 | lm32 \
270 | m32c | m32r | m32rle | m68000 | m68k | m88k \
263 | maxq | mb | microblaze | mcore | mep | metag \
271 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
264 | mips | mipsbe | mipseb | mipsel | mipsle \
265 | mips16 \
266 | mips64 | mips64el \
267 | mips64octeon | mips64octeonel \
268 | mips64orion | mips64orionel \
269 | mips64r5900 | mips64r5900el \
270 | mips64vr | mips64vrel \
271 | mips64vr4100 | mips64vr4100el \
272 | mips64vr4300 | mips64vr4300el \
273 | mips64vr5000 | mips64vr5000el \
274 | mips64vr5900 | mips64vr5900el \
275 | mipsisa32 | mipsisa32el \
276 | mipsisa32r2 | mipsisa32r2el \
277 | mipsisa64 | mipsisa64el \
278 | mipsisa64r2 | mipsisa64r2el \
279 | mipsisa64sb1 | mipsisa64sb1el \
280 | mipsisa64sr71k | mipsisa64sr71kel \
272 | mips | mipsbe | mipseb | mipsel | mipsle \
273 | mips16 \
274 | mips64 | mips64el \
275 | mips64octeon | mips64octeonel \
276 | mips64orion | mips64orionel \
277 | mips64r5900 | mips64r5900el \
278 | mips64vr | mips64vrel \
279 | mips64vr4100 | mips64vr4100el \
280 | mips64vr4300 | mips64vr4300el \
281 | mips64vr5000 | mips64vr5000el \
282 | mips64vr5900 | mips64vr5900el \
283 | mipsisa32 | mipsisa32el \
284 | mipsisa32r2 | mipsisa32r2el \
285 | mipsisa64 | mipsisa64el \
286 | mipsisa64r2 | mipsisa64r2el \
287 | mipsisa64sb1 | mipsisa64sb1el \
288 | mipsisa64sr71k | mipsisa64sr71kel \
289 | mipsr5900 | mipsr5900el \
281 | mipstx39 | mipstx39el \
282 | mn10200 | mn10300 \
283 | moxie \
284 | mt \
285 | msp430 \
286 | nds32 | nds32le | nds32be \
290 | mipstx39 | mipstx39el \
291 | mn10200 | mn10300 \
292 | moxie \
293 | mt \
294 | msp430 \
295 | nds32 | nds32le | nds32be \
287 | nios | nios2 \
296 | nios | nios2 | nios2eb | nios2el \
288 | ns16k | ns32k \
289 | open8 \
290 | or32 \
291 | pdp10 | pdp11 | pj | pjl \
292 | powerpc | powerpc64 | powerpc64le | powerpcle \
293 | pyramid \
297 | ns16k | ns32k \
298 | open8 \
299 | or32 \
300 | pdp10 | pdp11 | pj | pjl \
301 | powerpc | powerpc64 | powerpc64le | powerpcle \
302 | pyramid \
294 | rx \
303 | rl78 | rx \
295 | score \
296 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
297 | sh64 | sh64le \
298 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
299 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
300 | spu \
301 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
302 | ubicom32 \
304 | score \
305 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
306 | sh64 | sh64le \
307 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
308 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
309 | spu \
310 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
311 | ubicom32 \
303 | v850 | v850e \
312 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
304 | we32k \
305 | x86 | xc16x | xstormy16 | xtensa \
306 | z8k | z80)
307 basic_machine=$basic_machine-unknown
308 ;;
309 c54x)
310 basic_machine=tic54x-unknown
311 ;;
312 c55x)
313 basic_machine=tic55x-unknown
314 ;;
315 c6x)
316 basic_machine=tic6x-unknown
317 ;;
313 | we32k \
314 | x86 | xc16x | xstormy16 | xtensa \
315 | z8k | z80)
316 basic_machine=$basic_machine-unknown
317 ;;
318 c54x)
319 basic_machine=tic54x-unknown
320 ;;
321 c55x)
322 basic_machine=tic55x-unknown
323 ;;
324 c6x)
325 basic_machine=tic6x-unknown
326 ;;
318 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
319 # Motorola 68HC11/12.
327 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
320 basic_machine=$basic_machine-unknown
321 os=-none
322 ;;
323 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
324 ;;
325 ms1)
326 basic_machine=mt-unknown
327 ;;
328 basic_machine=$basic_machine-unknown
329 os=-none
330 ;;
331 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
332 ;;
333 ms1)
334 basic_machine=mt-unknown
335 ;;
336
328 strongarm | thumb | xscale)
329 basic_machine=arm-unknown
330 ;;
337 strongarm | thumb | xscale)
338 basic_machine=arm-unknown
339 ;;
340 xgate)
341 basic_machine=$basic_machine-unknown
342 os=-none
343 ;;
331 xscaleeb)
332 basic_machine=armeb-unknown
333 ;;
344 xscaleeb)
345 basic_machine=armeb-unknown
346 ;;
347
334 xscaleel)
335 basic_machine=armel-unknown
336 ;;
348 xscaleel)
349 basic_machine=armel-unknown
350 ;;
351
337 # We use `pc' rather than `unknown'
338 # because (1) that's what they normally are, and
339 # (2) the word "unknown" tends to confuse beginning users.
340 i*86 | x86_64)
352 # We use `pc' rather than `unknown'
353 # because (1) that's what they normally are, and
354 # (2) the word "unknown" tends to confuse beginning users.
355 i*86 | x86_64)
341 basic_machine=$basic_machine-pc
342 ;;
356 basic_machine=$basic_machine-pc
357 ;;
343 # Object if more than one company name word.
344 *-*-*)
345 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
346 exit 1
347 ;;
348 # Recognize the basic CPU types with company name.
349 580-* \
350 | a29k-* \
358 # Object if more than one company name word.
359 *-*-*)
360 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
361 exit 1
362 ;;
363 # Recognize the basic CPU types with company name.
364 580-* \
365 | a29k-* \
366 | aarch64-* | aarch64_be-* \
351 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
352 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
353 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
354 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
355 | avr-* | avr32-* \
367 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
368 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
369 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
370 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
371 | avr-* | avr32-* \
372 | be32-* | be64-* \
356 | bfin-* | bs2000-* \
357 | c[123]* | c30-* | [cjt]90-* | c4x-* \
358 | clipper-* | craynv-* | cydra-* \
359 | d10v-* | d30v-* | dlx-* \
360 | elxsi-* \
361 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
362 | h8300-* | h8500-* \
363 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
373 | bfin-* | bs2000-* \
374 | c[123]* | c30-* | [cjt]90-* | c4x-* \
375 | clipper-* | craynv-* | cydra-* \
376 | d10v-* | d30v-* | dlx-* \
377 | elxsi-* \
378 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
379 | h8300-* | h8500-* \
380 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
381 | hexagon-* \
364 | i*86-* | i860-* | i960-* | ia64-* \
365 | ip2k-* | iq2000-* \
382 | i*86-* | i860-* | i960-* | ia64-* \
383 | ip2k-* | iq2000-* \
384 | le32-* | le64-* \
366 | lm32-* \
367 | m32c-* | m32r-* | m32rle-* \
368 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
385 | lm32-* \
386 | m32c-* | m32r-* | m32rle-* \
387 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
369 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
388 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
389 | microblaze-* | microblazeel-* \
370 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
371 | mips16-* \
372 | mips64-* | mips64el-* \
373 | mips64octeon-* | mips64octeonel-* \
374 | mips64orion-* | mips64orionel-* \
375 | mips64r5900-* | mips64r5900el-* \
376 | mips64vr-* | mips64vrel-* \
377 | mips64vr4100-* | mips64vr4100el-* \
378 | mips64vr4300-* | mips64vr4300el-* \
379 | mips64vr5000-* | mips64vr5000el-* \
380 | mips64vr5900-* | mips64vr5900el-* \
381 | mipsisa32-* | mipsisa32el-* \
382 | mipsisa32r2-* | mipsisa32r2el-* \
383 | mipsisa64-* | mipsisa64el-* \
384 | mipsisa64r2-* | mipsisa64r2el-* \
385 | mipsisa64sb1-* | mipsisa64sb1el-* \
386 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
390 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
391 | mips16-* \
392 | mips64-* | mips64el-* \
393 | mips64octeon-* | mips64octeonel-* \
394 | mips64orion-* | mips64orionel-* \
395 | mips64r5900-* | mips64r5900el-* \
396 | mips64vr-* | mips64vrel-* \
397 | mips64vr4100-* | mips64vr4100el-* \
398 | mips64vr4300-* | mips64vr4300el-* \
399 | mips64vr5000-* | mips64vr5000el-* \
400 | mips64vr5900-* | mips64vr5900el-* \
401 | mipsisa32-* | mipsisa32el-* \
402 | mipsisa32r2-* | mipsisa32r2el-* \
403 | mipsisa64-* | mipsisa64el-* \
404 | mipsisa64r2-* | mipsisa64r2el-* \
405 | mipsisa64sb1-* | mipsisa64sb1el-* \
406 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
407 | mipsr5900-* | mipsr5900el-* \
387 | mipstx39-* | mipstx39el-* \
388 | mmix-* \
389 | mt-* \
390 | msp430-* \
391 | nds32-* | nds32le-* | nds32be-* \
408 | mipstx39-* | mipstx39el-* \
409 | mmix-* \
410 | mt-* \
411 | msp430-* \
412 | nds32-* | nds32le-* | nds32be-* \
392 | nios-* | nios2-* \
413 | nios-* | nios2-* | nios2eb-* | nios2el-* \
393 | none-* | np1-* | ns16k-* | ns32k-* \
394 | open8-* \
395 | orion-* \
396 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
397 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
398 | pyramid-* \
414 | none-* | np1-* | ns16k-* | ns32k-* \
415 | open8-* \
416 | orion-* \
417 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
418 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
419 | pyramid-* \
399 | romp-* | rs6000-* | rx-* \
420 | rl78-* | romp-* | rs6000-* | rx-* \
400 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
401 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
402 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
403 | sparclite-* \
404 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
405 | tahoe-* \
406 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
421 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
422 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
423 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
424 | sparclite-* \
425 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
426 | tahoe-* \
427 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
407 | tile-* | tilegx-* \
428 | tile*-* \
408 | tron-* \
409 | ubicom32-* \
429 | tron-* \
430 | ubicom32-* \
410 | v850-* | v850e-* | vax-* \
431 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
432 | vax-* \
411 | we32k-* \
412 | x86-* | x86_64-* | xc16x-* | xps100-* \
413 | xstormy16-* | xtensa*-* \
414 | ymp-* \
415 | z8k-* | z80-*)
416 ;;
417 # Recognize the basic CPU types without company name, with glob match.
418 xtensa*)

--- 283 unchanged lines hidden (view full) ---

702 ;;
703 hppro)
704 basic_machine=hppa1.1-hp
705 os=-proelf
706 ;;
707 i370-ibm* | ibm*)
708 basic_machine=i370-ibm
709 ;;
433 | we32k-* \
434 | x86-* | x86_64-* | xc16x-* | xps100-* \
435 | xstormy16-* | xtensa*-* \
436 | ymp-* \
437 | z8k-* | z80-*)
438 ;;
439 # Recognize the basic CPU types without company name, with glob match.
440 xtensa*)

--- 283 unchanged lines hidden (view full) ---

724 ;;
725 hppro)
726 basic_machine=hppa1.1-hp
727 os=-proelf
728 ;;
729 i370-ibm* | ibm*)
730 basic_machine=i370-ibm
731 ;;
710# I'm not sure what "Sysv32" means. Should this be sysv3.2?
711 i*86v32)
712 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
713 os=-sysv32
714 ;;
715 i*86v4*)
716 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
717 os=-sysv4
718 ;;

--- 41 unchanged lines hidden (view full) ---

760 magnum | m3230)
761 basic_machine=mips-mips
762 os=-sysv
763 ;;
764 merlin)
765 basic_machine=ns32k-utek
766 os=-sysv
767 ;;
732 i*86v32)
733 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
734 os=-sysv32
735 ;;
736 i*86v4*)
737 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
738 os=-sysv4
739 ;;

--- 41 unchanged lines hidden (view full) ---

781 magnum | m3230)
782 basic_machine=mips-mips
783 os=-sysv
784 ;;
785 merlin)
786 basic_machine=ns32k-utek
787 os=-sysv
788 ;;
768 microblaze)
789 microblaze*)
769 basic_machine=microblaze-xilinx
770 ;;
790 basic_machine=microblaze-xilinx
791 ;;
792 mingw64)
793 basic_machine=x86_64-pc
794 os=-mingw64
795 ;;
771 mingw32)
772 basic_machine=i386-pc
773 os=-mingw32
774 ;;
775 mingw32ce)
776 basic_machine=arm-unknown
777 os=-mingw32ce
778 ;;

--- 20 unchanged lines hidden (view full) ---

799 ;;
800 msdos)
801 basic_machine=i386-pc
802 os=-msdos
803 ;;
804 ms1-*)
805 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
806 ;;
796 mingw32)
797 basic_machine=i386-pc
798 os=-mingw32
799 ;;
800 mingw32ce)
801 basic_machine=arm-unknown
802 os=-mingw32ce
803 ;;

--- 20 unchanged lines hidden (view full) ---

824 ;;
825 msdos)
826 basic_machine=i386-pc
827 os=-msdos
828 ;;
829 ms1-*)
830 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
831 ;;
832 msys)
833 basic_machine=i386-pc
834 os=-msys
835 ;;
807 mvs)
808 basic_machine=i370-ibm
809 os=-mvs
810 ;;
836 mvs)
837 basic_machine=i370-ibm
838 os=-mvs
839 ;;
840 nacl)
841 basic_machine=le32-unknown
842 os=-nacl
843 ;;
811 ncr3000)
812 basic_machine=i486-ncr
813 os=-sysv4
814 ;;
815 netbsd386)
816 basic_machine=i386-unknown
817 os=-netbsd
818 ;;

--- 12 unchanged lines hidden (view full) ---

831 news-3600 | risc-news)
832 basic_machine=mips-sony
833 os=-newsos
834 ;;
835 necv70)
836 basic_machine=v70-nec
837 os=-sysv
838 ;;
844 ncr3000)
845 basic_machine=i486-ncr
846 os=-sysv4
847 ;;
848 netbsd386)
849 basic_machine=i386-unknown
850 os=-netbsd
851 ;;

--- 12 unchanged lines hidden (view full) ---

864 news-3600 | risc-news)
865 basic_machine=mips-sony
866 os=-newsos
867 ;;
868 necv70)
869 basic_machine=v70-nec
870 os=-sysv
871 ;;
839 next | m*-next)
872 next | m*-next )
840 basic_machine=m68k-next
841 case $os in
873 basic_machine=m68k-next
874 case $os in
842 -nextstep*)
875 -nextstep* )
843 ;;
844 -ns2*)
845 os=-nextstep2
846 ;;
847 *)
848 os=-nextstep3
849 ;;
850 esac

--- 102 unchanged lines hidden (view full) ---

953 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
954 ;;
955 pentium4-*)
956 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
957 ;;
958 pn)
959 basic_machine=pn-gould
960 ;;
876 ;;
877 -ns2*)
878 os=-nextstep2
879 ;;
880 *)
881 os=-nextstep3
882 ;;
883 esac

--- 102 unchanged lines hidden (view full) ---

986 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
987 ;;
988 pentium4-*)
989 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
990 ;;
991 pn)
992 basic_machine=pn-gould
993 ;;
961 power)
962 basic_machine=power-ibm
994 power) basic_machine=power-ibm
963 ;;
995 ;;
964 ppc | ppcbe)
965 basic_machine=powerpc-unknown
996 ppc | ppcbe) basic_machine=powerpc-unknown
966 ;;
967 ppc-* | ppcbe-*)
968 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
969 ;;
970 ppcle | powerpclittle | ppc-le | powerpc-little)
971 basic_machine=powerpcle-unknown
972 ;;
973 ppcle-* | powerpclittle-*)
974 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
975 ;;
997 ;;
998 ppc-* | ppcbe-*)
999 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1000 ;;
1001 ppcle | powerpclittle | ppc-le | powerpc-little)
1002 basic_machine=powerpcle-unknown
1003 ;;
1004 ppcle-* | powerpclittle-*)
1005 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1006 ;;
976 ppc64)
977 basic_machine=powerpc64-unknown
1007 ppc64) basic_machine=powerpc64-unknown
978 ;;
1008 ;;
979 ppc64-*)
980 basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1009 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
981 ;;
982 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
983 basic_machine=powerpc64le-unknown
984 ;;
985 ppc64le-* | powerpc64little-*)
986 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
987 ;;
988 ps2)
989 basic_machine=i386-ibm
990 ;;
991 pw32)
992 basic_machine=i586-unknown
993 os=-pw32
994 ;;
1010 ;;
1011 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
1012 basic_machine=powerpc64le-unknown
1013 ;;
1014 ppc64le-* | powerpc64little-*)
1015 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1016 ;;
1017 ps2)
1018 basic_machine=i386-ibm
1019 ;;
1020 pw32)
1021 basic_machine=i586-unknown
1022 os=-pw32
1023 ;;
995 rdos)
1024 rdos | rdos64)
1025 basic_machine=x86_64-pc
1026 os=-rdos
1027 ;;
1028 rdos32)
996 basic_machine=i386-pc
997 os=-rdos
998 ;;
999 rom68k)
1000 basic_machine=m68k-rom68k
1001 os=-coff
1002 ;;
1003 rm[46]00)

--- 111 unchanged lines hidden (view full) ---

1115 t3e)
1116 basic_machine=alphaev5-cray
1117 os=-unicos
1118 ;;
1119 t90)
1120 basic_machine=t90-cray
1121 os=-unicos
1122 ;;
1029 basic_machine=i386-pc
1030 os=-rdos
1031 ;;
1032 rom68k)
1033 basic_machine=m68k-rom68k
1034 os=-coff
1035 ;;
1036 rm[46]00)

--- 111 unchanged lines hidden (view full) ---

1148 t3e)
1149 basic_machine=alphaev5-cray
1150 os=-unicos
1151 ;;
1152 t90)
1153 basic_machine=t90-cray
1154 os=-unicos
1155 ;;
1123 # This must be matched before tile*.
1124 tilegx*)
1125 basic_machine=tilegx-unknown
1126 os=-linux-gnu
1127 ;;
1128 tile*)
1156 tile*)
1129 basic_machine=tile-unknown
1157 basic_machine=$basic_machine-unknown
1130 os=-linux-gnu
1131 ;;
1132 tx39)
1133 basic_machine=mipstx39-unknown
1134 ;;
1135 tx39el)
1136 basic_machine=mipstx39el-unknown
1137 ;;

--- 181 unchanged lines hidden (view full) ---

1319 ;;
1320 # First accept the basic system types.
1321 # The portable systems comes first.
1322 # Each alternative MUST END IN A *, to match a version number.
1323 # -sysv* is not here because it comes later, after sysvr4.
1324 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1325 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1326 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1158 os=-linux-gnu
1159 ;;
1160 tx39)
1161 basic_machine=mipstx39-unknown
1162 ;;
1163 tx39el)
1164 basic_machine=mipstx39el-unknown
1165 ;;

--- 181 unchanged lines hidden (view full) ---

1347 ;;
1348 # First accept the basic system types.
1349 # The portable systems comes first.
1350 # Each alternative MUST END IN A *, to match a version number.
1351 # -sysv* is not here because it comes later, after sysvr4.
1352 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1353 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1354 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1327 | -sym* | -kopensolaris* \
1355 | -sym* | -kopensolaris* | -plan9* \
1328 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1329 | -aos* | -aros* \
1330 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1331 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1332 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1356 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1357 | -aos* | -aros* \
1358 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1359 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1360 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1333 | -openbsd* | -solidbsd* \
1361 | -bitrig* | -openbsd* | -solidbsd* \
1334 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1335 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1336 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1337 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1338 | -chorusos* | -chorusrdb* | -cegcc* \
1362 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1363 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1364 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1365 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1366 | -chorusos* | -chorusrdb* | -cegcc* \
1339 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1340 | -mingw32* | -linux-gnu* | -linux-android* \
1341 | -linux-newlib* | -linux-uclibc* \
1367 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1368 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1369 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1342 | -uxpv* | -beos* | -mpeix* | -udk* \
1343 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1344 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1345 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1346 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1347 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1348 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1349 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)

--- 66 unchanged lines hidden (view full) ---

1416 os=-bsd
1417 ;;
1418 -ctix* | -uts*)
1419 os=-sysv
1420 ;;
1421 -nova*)
1422 os=-rtmk-nova
1423 ;;
1370 | -uxpv* | -beos* | -mpeix* | -udk* \
1371 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1372 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1373 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1374 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1375 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1376 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1377 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)

--- 66 unchanged lines hidden (view full) ---

1444 os=-bsd
1445 ;;
1446 -ctix* | -uts*)
1447 os=-sysv
1448 ;;
1449 -nova*)
1450 os=-rtmk-nova
1451 ;;
1424 -ns2)
1452 -ns2 )
1425 os=-nextstep2
1426 ;;
1427 -nsk*)
1428 os=-nsk
1429 ;;
1430 # Preserve the version number of sinix5.
1431 -sinix5.*)
1432 os=`echo $os | sed -e 's|sinix|sysv|'`

--- 32 unchanged lines hidden (view full) ---

1465 os=-xenix
1466 ;;
1467 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1468 os=-mint
1469 ;;
1470 -aros*)
1471 os=-aros
1472 ;;
1453 os=-nextstep2
1454 ;;
1455 -nsk*)
1456 os=-nsk
1457 ;;
1458 # Preserve the version number of sinix5.
1459 -sinix5.*)
1460 os=`echo $os | sed -e 's|sinix|sysv|'`

--- 32 unchanged lines hidden (view full) ---

1493 os=-xenix
1494 ;;
1495 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1496 os=-mint
1497 ;;
1498 -aros*)
1499 os=-aros
1500 ;;
1473 -kaos*)
1474 os=-kaos
1475 ;;
1476 -zvmoe)
1477 os=-zvmoe
1478 ;;
1479 -dicos*)
1480 os=-dicos
1481 ;;
1482 -nacl*)
1483 ;;

--- 32 unchanged lines hidden (view full) ---

1516 os=-linux
1517 ;;
1518 arm*-semi)
1519 os=-aout
1520 ;;
1521 c4x-* | tic4x-*)
1522 os=-coff
1523 ;;
1501 -zvmoe)
1502 os=-zvmoe
1503 ;;
1504 -dicos*)
1505 os=-dicos
1506 ;;
1507 -nacl*)
1508 ;;

--- 32 unchanged lines hidden (view full) ---

1541 os=-linux
1542 ;;
1543 arm*-semi)
1544 os=-aout
1545 ;;
1546 c4x-* | tic4x-*)
1547 os=-coff
1548 ;;
1549 hexagon-*)
1550 os=-elf
1551 ;;
1524 tic54x-*)
1525 os=-coff
1526 ;;
1527 tic55x-*)
1528 os=-coff
1529 ;;
1530 tic6x-*)
1531 os=-coff

--- 11 unchanged lines hidden (view full) ---

1543 m68*-apollo)
1544 os=-domain
1545 ;;
1546 i386-sun)
1547 os=-sunos4.0.2
1548 ;;
1549 m68000-sun)
1550 os=-sunos3
1552 tic54x-*)
1553 os=-coff
1554 ;;
1555 tic55x-*)
1556 os=-coff
1557 ;;
1558 tic6x-*)
1559 os=-coff

--- 11 unchanged lines hidden (view full) ---

1571 m68*-apollo)
1572 os=-domain
1573 ;;
1574 i386-sun)
1575 os=-sunos4.0.2
1576 ;;
1577 m68000-sun)
1578 os=-sunos3
1551 # This also exists in the configure program, but was not the
1552 # default.
1553 # os=-sunos4
1554 ;;
1555 m68*-cisco)
1556 os=-aout
1557 ;;
1558 mep-*)
1559 os=-elf
1560 ;;
1561 mips*-cisco)

--- 51 unchanged lines hidden (view full) ---

1613 os=-sysv3
1614 ;;
1615 m68k-ccur)
1616 os=-rtu
1617 ;;
1618 m88k-omron*)
1619 os=-luna
1620 ;;
1579 ;;
1580 m68*-cisco)
1581 os=-aout
1582 ;;
1583 mep-*)
1584 os=-elf
1585 ;;
1586 mips*-cisco)

--- 51 unchanged lines hidden (view full) ---

1638 os=-sysv3
1639 ;;
1640 m68k-ccur)
1641 os=-rtu
1642 ;;
1643 m88k-omron*)
1644 os=-luna
1645 ;;
1621 *-next)
1646 *-next )
1622 os=-nextstep
1623 ;;
1624 *-sequent)
1625 os=-ptx
1626 ;;
1627 *-crds)
1628 os=-unos
1629 ;;

--- 131 unchanged lines hidden ---
1647 os=-nextstep
1648 ;;
1649 *-sequent)
1650 os=-ptx
1651 ;;
1652 *-crds)
1653 os=-unos
1654 ;;

--- 131 unchanged lines hidden ---