1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Configuration validation subroutine script. |
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-2014 Free Software Foundation, Inc. |
6 | |
4 | |
7 | timestamp='2011-11-11' |
5 | timestamp='2014-05-01' |
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 |
7 | # This file is free software; you can redistribute it and/or modify it |
14 | # it under the terms of the GNU General Public License as published by |
8 | # under the terms of the GNU General Public License as published by |
15 | # the Free Software Foundation; either version 3 of the License, or |
9 | # the Free Software Foundation; either version 3 of the License, or |
16 | # (at your option) any later version. |
10 | # (at your option) any later version. |
17 | # |
11 | # |
18 | # This program is distributed in the hope that it will be useful, |
12 | # This program is distributed in the hope that it will be useful, but |
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
21 | # GNU General Public License for more details. |
15 | # General Public License for more details. |
22 | # |
16 | # |
23 | # You should have received a copy of the GNU General Public License |
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 |
18 | # along with this program; if not, see <http://www.gnu.org/licenses/>. |
25 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
|
|
26 | # 02110-1301, USA. |
|
|
27 | # |
19 | # |
28 | # As a special exception to the GNU General Public License, if you |
20 | # As a special exception to the GNU General Public License, if you |
29 | # distribute this file as part of a program that contains a |
21 | # distribute this file as part of a program that contains a |
30 | # configuration script generated by Autoconf, you may include it under |
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 | |
26 | |
33 | |
27 | |
34 | # Please send patches to <config-patches@gnu.org>. Submit a context |
28 | # Please send patches with a ChangeLog entry to config-patches@gnu.org. |
35 | # diff and a properly formatted GNU ChangeLog entry. |
|
|
36 | # |
29 | # |
37 | # Configuration subroutine to validate and canonicalize a configuration type. |
30 | # Configuration subroutine to validate and canonicalize a configuration type. |
38 | # Supply the specified configuration type as an argument. |
31 | # 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. |
32 | # 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. |
33 | # Otherwise, we print the canonical config type on stdout and succeed. |
… | |
… | |
73 | Report bugs and patches to <config-patches@gnu.org>." |
66 | Report bugs and patches to <config-patches@gnu.org>." |
74 | |
67 | |
75 | version="\ |
68 | version="\ |
76 | GNU config.sub ($timestamp) |
69 | GNU config.sub ($timestamp) |
77 | |
70 | |
78 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
71 | Copyright 1992-2014 Free Software Foundation, Inc. |
79 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free |
|
|
80 | Software Foundation, Inc. |
|
|
81 | |
72 | |
82 | This is free software; see the source for copying conditions. There is NO |
73 | This is free software; see the source for copying conditions. There is NO |
83 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
74 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
84 | |
75 | |
85 | help=" |
76 | help=" |
… | |
… | |
123 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
114 | # 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. |
115 | # Here we must recognize all the valid KERNEL-OS combinations. |
125 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
116 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
126 | case $maybe_os in |
117 | case $maybe_os in |
127 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
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* | \ |
120 | knetbsd*-gnu* | netbsd*-gnu* | \ |
130 | kopensolaris*-gnu* | \ |
121 | kopensolaris*-gnu* | \ |
131 | storm-chaos* | os2-emx* | rtmk-nova*) |
122 | storm-chaos* | os2-emx* | rtmk-nova*) |
132 | os=-$maybe_os |
123 | os=-$maybe_os |
133 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
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 |
134 | ;; |
129 | ;; |
135 | *) |
130 | *) |
136 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
131 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
137 | if [ $basic_machine != $1 ] |
132 | if [ $basic_machine != $1 ] |
138 | then os=`echo $1 | sed 's/.*-/-/'` |
133 | then os=`echo $1 | sed 's/.*-/-/'` |
… | |
… | |
152 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
147 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
153 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
148 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
154 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
149 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
155 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
150 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
156 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
151 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
157 | -apple | -axis | -knuth | -cray | -microblaze) |
152 | -apple | -axis | -knuth | -cray | -microblaze*) |
158 | os= |
153 | os= |
159 | basic_machine=$1 |
154 | basic_machine=$1 |
160 | ;; |
155 | ;; |
161 | -bluegene*) |
156 | -bluegene*) |
162 | os=-cnk |
157 | os=-cnk |
… | |
… | |
220 | -clix*) |
215 | -clix*) |
221 | basic_machine=clipper-intergraph |
216 | basic_machine=clipper-intergraph |
222 | ;; |
217 | ;; |
223 | -isc*) |
218 | -isc*) |
224 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
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 |
225 | ;; |
226 | ;; |
226 | -lynx*) |
227 | -lynx*) |
227 | os=-lynxos |
228 | os=-lynxos |
228 | ;; |
229 | ;; |
229 | -ptx*) |
230 | -ptx*) |
… | |
… | |
245 | case $basic_machine in |
246 | case $basic_machine in |
246 | # Recognize the basic CPU types without company name. |
247 | # Recognize the basic CPU types without company name. |
247 | # Some are omitted here because they have special meanings below. |
248 | # Some are omitted here because they have special meanings below. |
248 | 1750a | 580 \ |
249 | 1750a | 580 \ |
249 | | a29k \ |
250 | | a29k \ |
|
|
251 | | aarch64 | aarch64_be \ |
250 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
252 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
251 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
253 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
252 | | am33_2.0 \ |
254 | | am33_2.0 \ |
|
|
255 | | arc | arceb \ |
253 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
256 | | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ |
|
|
257 | | avr | avr32 \ |
254 | | be32 | be64 \ |
258 | | be32 | be64 \ |
255 | | bfin \ |
259 | | bfin \ |
256 | | c4x | clipper \ |
260 | | c4x | c8051 | clipper \ |
257 | | d10v | d30v | dlx | dsp16xx \ |
261 | | d10v | d30v | dlx | dsp16xx \ |
258 | | epiphany \ |
262 | | epiphany \ |
259 | | fido | fr30 | frv \ |
263 | | fido | fr30 | frv \ |
260 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
264 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
261 | | hexagon \ |
265 | | hexagon \ |
262 | | i370 | i860 | i960 | ia64 \ |
266 | | i370 | i860 | i960 | ia64 \ |
263 | | ip2k | iq2000 \ |
267 | | ip2k | iq2000 \ |
|
|
268 | | k1om \ |
264 | | le32 | le64 \ |
269 | | le32 | le64 \ |
265 | | lm32 \ |
270 | | lm32 \ |
266 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
271 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
267 | | maxq | mb | microblaze | mcore | mep | metag \ |
272 | | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ |
268 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
273 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
269 | | mips16 \ |
274 | | mips16 \ |
270 | | mips64 | mips64el \ |
275 | | mips64 | mips64el \ |
271 | | mips64octeon | mips64octeonel \ |
276 | | mips64octeon | mips64octeonel \ |
272 | | mips64orion | mips64orionel \ |
277 | | mips64orion | mips64orionel \ |
… | |
… | |
276 | | mips64vr4300 | mips64vr4300el \ |
281 | | mips64vr4300 | mips64vr4300el \ |
277 | | mips64vr5000 | mips64vr5000el \ |
282 | | mips64vr5000 | mips64vr5000el \ |
278 | | mips64vr5900 | mips64vr5900el \ |
283 | | mips64vr5900 | mips64vr5900el \ |
279 | | mipsisa32 | mipsisa32el \ |
284 | | mipsisa32 | mipsisa32el \ |
280 | | mipsisa32r2 | mipsisa32r2el \ |
285 | | mipsisa32r2 | mipsisa32r2el \ |
|
|
286 | | mipsisa32r6 | mipsisa32r6el \ |
281 | | mipsisa64 | mipsisa64el \ |
287 | | mipsisa64 | mipsisa64el \ |
282 | | mipsisa64r2 | mipsisa64r2el \ |
288 | | mipsisa64r2 | mipsisa64r2el \ |
|
|
289 | | mipsisa64r6 | mipsisa64r6el \ |
283 | | mipsisa64sb1 | mipsisa64sb1el \ |
290 | | mipsisa64sb1 | mipsisa64sb1el \ |
284 | | mipsisa64sr71k | mipsisa64sr71kel \ |
291 | | mipsisa64sr71k | mipsisa64sr71kel \ |
|
|
292 | | mipsr5900 | mipsr5900el \ |
285 | | mipstx39 | mipstx39el \ |
293 | | mipstx39 | mipstx39el \ |
286 | | mn10200 | mn10300 \ |
294 | | mn10200 | mn10300 \ |
287 | | moxie \ |
295 | | moxie \ |
288 | | mt \ |
296 | | mt \ |
289 | | msp430 \ |
297 | | msp430 \ |
290 | | nds32 | nds32le | nds32be \ |
298 | | nds32 | nds32le | nds32be \ |
291 | | nios | nios2 \ |
299 | | nios | nios2 | nios2eb | nios2el \ |
292 | | ns16k | ns32k \ |
300 | | ns16k | ns32k \ |
293 | | open8 \ |
301 | | open8 | or1k | or1knd | or32 \ |
294 | | or32 \ |
|
|
295 | | pdp10 | pdp11 | pj | pjl \ |
302 | | pdp10 | pdp11 | pj | pjl \ |
296 | | powerpc | powerpc64 | powerpc64le | powerpcle \ |
303 | | powerpc | powerpc64 | powerpc64le | powerpcle \ |
297 | | pyramid \ |
304 | | pyramid \ |
298 | | rl78 | rx \ |
305 | | rl78 | rx \ |
299 | | score \ |
306 | | score \ |
… | |
… | |
317 | basic_machine=tic55x-unknown |
324 | basic_machine=tic55x-unknown |
318 | ;; |
325 | ;; |
319 | c6x) |
326 | c6x) |
320 | basic_machine=tic6x-unknown |
327 | basic_machine=tic6x-unknown |
321 | ;; |
328 | ;; |
322 | m6811 | m68hc11 | m6812 | m68hc12 | picochip) |
329 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) |
323 | # Motorola 68HC11/12. |
|
|
324 | basic_machine=$basic_machine-unknown |
330 | basic_machine=$basic_machine-unknown |
325 | os=-none |
331 | os=-none |
326 | ;; |
332 | ;; |
327 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
333 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
328 | ;; |
334 | ;; |
… | |
… | |
331 | ;; |
337 | ;; |
332 | |
338 | |
333 | strongarm | thumb | xscale) |
339 | strongarm | thumb | xscale) |
334 | basic_machine=arm-unknown |
340 | basic_machine=arm-unknown |
335 | ;; |
341 | ;; |
336 | |
342 | xgate) |
|
|
343 | basic_machine=$basic_machine-unknown |
|
|
344 | os=-none |
|
|
345 | ;; |
337 | xscaleeb) |
346 | xscaleeb) |
338 | basic_machine=armeb-unknown |
347 | basic_machine=armeb-unknown |
339 | ;; |
348 | ;; |
340 | |
349 | |
341 | xscaleel) |
350 | xscaleel) |
… | |
… | |
354 | exit 1 |
363 | exit 1 |
355 | ;; |
364 | ;; |
356 | # Recognize the basic CPU types with company name. |
365 | # Recognize the basic CPU types with company name. |
357 | 580-* \ |
366 | 580-* \ |
358 | | a29k-* \ |
367 | | a29k-* \ |
|
|
368 | | aarch64-* | aarch64_be-* \ |
359 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
369 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
360 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
370 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
361 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
371 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ |
362 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
372 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
363 | | avr-* | avr32-* \ |
373 | | avr-* | avr32-* \ |
364 | | be32-* | be64-* \ |
374 | | be32-* | be64-* \ |
365 | | bfin-* | bs2000-* \ |
375 | | bfin-* | bs2000-* \ |
366 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
376 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
367 | | clipper-* | craynv-* | cydra-* \ |
377 | | c8051-* | clipper-* | craynv-* | cydra-* \ |
368 | | d10v-* | d30v-* | dlx-* \ |
378 | | d10v-* | d30v-* | dlx-* \ |
369 | | elxsi-* \ |
379 | | elxsi-* \ |
370 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
380 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
371 | | h8300-* | h8500-* \ |
381 | | h8300-* | h8500-* \ |
372 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
382 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
373 | | hexagon-* \ |
383 | | hexagon-* \ |
374 | | i*86-* | i860-* | i960-* | ia64-* \ |
384 | | i*86-* | i860-* | i960-* | ia64-* \ |
375 | | ip2k-* | iq2000-* \ |
385 | | ip2k-* | iq2000-* \ |
|
|
386 | | k1om-* \ |
376 | | le32-* | le64-* \ |
387 | | le32-* | le64-* \ |
377 | | lm32-* \ |
388 | | lm32-* \ |
378 | | m32c-* | m32r-* | m32rle-* \ |
389 | | m32c-* | m32r-* | m32rle-* \ |
379 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
390 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
380 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ |
391 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ |
|
|
392 | | microblaze-* | microblazeel-* \ |
381 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
393 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
382 | | mips16-* \ |
394 | | mips16-* \ |
383 | | mips64-* | mips64el-* \ |
395 | | mips64-* | mips64el-* \ |
384 | | mips64octeon-* | mips64octeonel-* \ |
396 | | mips64octeon-* | mips64octeonel-* \ |
385 | | mips64orion-* | mips64orionel-* \ |
397 | | mips64orion-* | mips64orionel-* \ |
… | |
… | |
389 | | mips64vr4300-* | mips64vr4300el-* \ |
401 | | mips64vr4300-* | mips64vr4300el-* \ |
390 | | mips64vr5000-* | mips64vr5000el-* \ |
402 | | mips64vr5000-* | mips64vr5000el-* \ |
391 | | mips64vr5900-* | mips64vr5900el-* \ |
403 | | mips64vr5900-* | mips64vr5900el-* \ |
392 | | mipsisa32-* | mipsisa32el-* \ |
404 | | mipsisa32-* | mipsisa32el-* \ |
393 | | mipsisa32r2-* | mipsisa32r2el-* \ |
405 | | mipsisa32r2-* | mipsisa32r2el-* \ |
|
|
406 | | mipsisa32r6-* | mipsisa32r6el-* \ |
394 | | mipsisa64-* | mipsisa64el-* \ |
407 | | mipsisa64-* | mipsisa64el-* \ |
395 | | mipsisa64r2-* | mipsisa64r2el-* \ |
408 | | mipsisa64r2-* | mipsisa64r2el-* \ |
|
|
409 | | mipsisa64r6-* | mipsisa64r6el-* \ |
396 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
410 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
397 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
411 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
|
|
412 | | mipsr5900-* | mipsr5900el-* \ |
398 | | mipstx39-* | mipstx39el-* \ |
413 | | mipstx39-* | mipstx39el-* \ |
399 | | mmix-* \ |
414 | | mmix-* \ |
400 | | mt-* \ |
415 | | mt-* \ |
401 | | msp430-* \ |
416 | | msp430-* \ |
402 | | nds32-* | nds32le-* | nds32be-* \ |
417 | | nds32-* | nds32le-* | nds32be-* \ |
403 | | nios-* | nios2-* \ |
418 | | nios-* | nios2-* | nios2eb-* | nios2el-* \ |
404 | | none-* | np1-* | ns16k-* | ns32k-* \ |
419 | | none-* | np1-* | ns16k-* | ns32k-* \ |
405 | | open8-* \ |
420 | | open8-* \ |
|
|
421 | | or1k*-* \ |
406 | | orion-* \ |
422 | | orion-* \ |
407 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
423 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
408 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
424 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
409 | | pyramid-* \ |
425 | | pyramid-* \ |
410 | | rl78-* | romp-* | rs6000-* | rx-* \ |
426 | | rl78-* | romp-* | rs6000-* | rx-* \ |
… | |
… | |
717 | os=-proelf |
733 | os=-proelf |
718 | ;; |
734 | ;; |
719 | i370-ibm* | ibm*) |
735 | i370-ibm* | ibm*) |
720 | basic_machine=i370-ibm |
736 | basic_machine=i370-ibm |
721 | ;; |
737 | ;; |
722 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
|
|
723 | i*86v32) |
738 | i*86v32) |
724 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
739 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
725 | os=-sysv32 |
740 | os=-sysv32 |
726 | ;; |
741 | ;; |
727 | i*86v4*) |
742 | i*86v4*) |
… | |
… | |
775 | ;; |
790 | ;; |
776 | merlin) |
791 | merlin) |
777 | basic_machine=ns32k-utek |
792 | basic_machine=ns32k-utek |
778 | os=-sysv |
793 | os=-sysv |
779 | ;; |
794 | ;; |
780 | microblaze) |
795 | microblaze*) |
781 | basic_machine=microblaze-xilinx |
796 | basic_machine=microblaze-xilinx |
782 | ;; |
797 | ;; |
|
|
798 | mingw64) |
|
|
799 | basic_machine=x86_64-pc |
|
|
800 | os=-mingw64 |
|
|
801 | ;; |
783 | mingw32) |
802 | mingw32) |
784 | basic_machine=i386-pc |
803 | basic_machine=i686-pc |
785 | os=-mingw32 |
804 | os=-mingw32 |
786 | ;; |
805 | ;; |
787 | mingw32ce) |
806 | mingw32ce) |
788 | basic_machine=arm-unknown |
807 | basic_machine=arm-unknown |
789 | os=-mingw32ce |
808 | os=-mingw32ce |
… | |
… | |
815 | ;; |
834 | ;; |
816 | ms1-*) |
835 | ms1-*) |
817 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
836 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
818 | ;; |
837 | ;; |
819 | msys) |
838 | msys) |
820 | basic_machine=i386-pc |
839 | basic_machine=i686-pc |
821 | os=-msys |
840 | os=-msys |
822 | ;; |
841 | ;; |
823 | mvs) |
842 | mvs) |
824 | basic_machine=i370-ibm |
843 | basic_machine=i370-ibm |
825 | os=-mvs |
844 | os=-mvs |
… | |
… | |
1006 | ;; |
1025 | ;; |
1007 | pw32) |
1026 | pw32) |
1008 | basic_machine=i586-unknown |
1027 | basic_machine=i586-unknown |
1009 | os=-pw32 |
1028 | os=-pw32 |
1010 | ;; |
1029 | ;; |
|
|
1030 | rdos | rdos64) |
|
|
1031 | basic_machine=x86_64-pc |
|
|
1032 | os=-rdos |
|
|
1033 | ;; |
1011 | rdos) |
1034 | rdos32) |
1012 | basic_machine=i386-pc |
1035 | basic_machine=i386-pc |
1013 | os=-rdos |
1036 | os=-rdos |
1014 | ;; |
1037 | ;; |
1015 | rom68k) |
1038 | rom68k) |
1016 | basic_machine=m68k-rom68k |
1039 | basic_machine=m68k-rom68k |
… | |
… | |
1333 | # Each alternative MUST END IN A *, to match a version number. |
1356 | # Each alternative MUST END IN A *, to match a version number. |
1334 | # -sysv* is not here because it comes later, after sysvr4. |
1357 | # -sysv* is not here because it comes later, after sysvr4. |
1335 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1358 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1336 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
1359 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
1337 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
1360 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
1338 | | -sym* | -kopensolaris* \ |
1361 | | -sym* | -kopensolaris* | -plan9* \ |
1339 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1362 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1340 | | -aos* | -aros* \ |
1363 | | -aos* | -aros* \ |
1341 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1364 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1342 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1365 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1343 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
1366 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
1344 | | -openbsd* | -solidbsd* \ |
1367 | | -bitrig* | -openbsd* | -solidbsd* \ |
1345 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1368 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1346 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1369 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1347 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1370 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1348 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1371 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1349 | | -chorusos* | -chorusrdb* | -cegcc* \ |
1372 | | -chorusos* | -chorusrdb* | -cegcc* \ |
1350 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1373 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1351 | | -mingw32* | -linux-gnu* | -linux-android* \ |
1374 | | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ |
1352 | | -linux-newlib* | -linux-uclibc* \ |
1375 | | -linux-newlib* | -linux-musl* | -linux-uclibc* \ |
1353 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1376 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1354 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1377 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1355 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1378 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1356 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1379 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1357 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1380 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1358 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1381 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1359 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1382 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1360 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) |
1383 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) |
1361 | # Remember, each alternative MUST END IN *, to match a version number. |
1384 | # Remember, each alternative MUST END IN *, to match a version number. |
1362 | ;; |
1385 | ;; |
1363 | -qnx*) |
1386 | -qnx*) |
1364 | case $basic_machine in |
1387 | case $basic_machine in |
1365 | x86-* | i*86-*) |
1388 | x86-* | i*86-*) |
… | |
… | |
1479 | os=-mint |
1502 | os=-mint |
1480 | ;; |
1503 | ;; |
1481 | -aros*) |
1504 | -aros*) |
1482 | os=-aros |
1505 | os=-aros |
1483 | ;; |
1506 | ;; |
1484 | -kaos*) |
|
|
1485 | os=-kaos |
|
|
1486 | ;; |
|
|
1487 | -zvmoe) |
1507 | -zvmoe) |
1488 | os=-zvmoe |
1508 | os=-zvmoe |
1489 | ;; |
1509 | ;; |
1490 | -dicos*) |
1510 | -dicos*) |
1491 | os=-dicos |
1511 | os=-dicos |
… | |
… | |
1530 | os=-aout |
1550 | os=-aout |
1531 | ;; |
1551 | ;; |
1532 | c4x-* | tic4x-*) |
1552 | c4x-* | tic4x-*) |
1533 | os=-coff |
1553 | os=-coff |
1534 | ;; |
1554 | ;; |
|
|
1555 | c8051-*) |
|
|
1556 | os=-elf |
|
|
1557 | ;; |
|
|
1558 | hexagon-*) |
|
|
1559 | os=-elf |
|
|
1560 | ;; |
1535 | tic54x-*) |
1561 | tic54x-*) |
1536 | os=-coff |
1562 | os=-coff |
1537 | ;; |
1563 | ;; |
1538 | tic55x-*) |
1564 | tic55x-*) |
1539 | os=-coff |
1565 | os=-coff |
… | |
… | |
1557 | i386-sun) |
1583 | i386-sun) |
1558 | os=-sunos4.0.2 |
1584 | os=-sunos4.0.2 |
1559 | ;; |
1585 | ;; |
1560 | m68000-sun) |
1586 | m68000-sun) |
1561 | os=-sunos3 |
1587 | os=-sunos3 |
1562 | # This also exists in the configure program, but was not the |
|
|
1563 | # default. |
|
|
1564 | # os=-sunos4 |
|
|
1565 | ;; |
1588 | ;; |
1566 | m68*-cisco) |
1589 | m68*-cisco) |
1567 | os=-aout |
1590 | os=-aout |
1568 | ;; |
1591 | ;; |
1569 | mep-*) |
1592 | mep-*) |