OLD | NEW |
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, | 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 | 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
5 # Free Software Foundation, Inc. | 5 # 2011, 2012 Free Software Foundation, Inc. |
6 | 6 |
7 timestamp='2009-11-20' | 7 timestamp='2012-02-10' |
8 | 8 |
9 # This file is (in principle) common to ALL GNU software. | 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 | 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. | 11 # can handle that machine. It does not imply ALL GNU software can. |
12 # | 12 # |
13 # This file is free software; you can redistribute it and/or modify | 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 | 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 | 15 # the Free Software Foundation; either version 2 of the License, or |
16 # (at your option) any later version. | 16 # (at your option) any later version. |
17 # | 17 # |
18 # This program is distributed in the hope that it will be useful, | 18 # This program is distributed in the hope that it will be useful, |
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 19 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
21 # GNU General Public License for more details. | 21 # GNU General Public License for more details. |
22 # | 22 # |
23 # You should have received a copy of the GNU General Public License | 23 # You should have received a copy of the GNU General Public License |
24 # along with this program; if not, write to the Free Software | 24 # 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 # | 25 # |
28 # As a special exception to the GNU General Public License, if you | 26 # As a special exception to the GNU General Public License, if you |
29 # distribute this file as part of a program that contains a | 27 # distribute this file as part of a program that contains a |
30 # configuration script generated by Autoconf, you may include it under | 28 # configuration script generated by Autoconf, you may include it under |
31 # the same distribution terms that you use for the rest of that program. | 29 # the same distribution terms that you use for the rest of that program. |
32 | 30 |
33 | 31 |
34 # Please send patches to <config-patches@gnu.org>. Submit a context | 32 # Please send patches to <config-patches@gnu.org>. Submit a context |
35 # diff and a properly formatted GNU ChangeLog entry. | 33 # diff and a properly formatted GNU ChangeLog entry. |
36 # | 34 # |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 Operation modes: | 66 Operation modes: |
69 -h, --help print this help, then exit | 67 -h, --help print this help, then exit |
70 -t, --time-stamp print date of last modification, then exit | 68 -t, --time-stamp print date of last modification, then exit |
71 -v, --version print version number, then exit | 69 -v, --version print version number, then exit |
72 | 70 |
73 Report bugs and patches to <config-patches@gnu.org>." | 71 Report bugs and patches to <config-patches@gnu.org>." |
74 | 72 |
75 version="\ | 73 version="\ |
76 GNU config.sub ($timestamp) | 74 GNU config.sub ($timestamp) |
77 | 75 |
78 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, | 76 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
79 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | 77 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 |
| 78 Free Software Foundation, Inc. |
80 | 79 |
81 This is free software; see the source for copying conditions. There is NO | 80 This is free software; see the source for copying conditions. There is NO |
82 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 81 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
83 | 82 |
84 help=" | 83 help=" |
85 Try \`$me --help' for more information." | 84 Try \`$me --help' for more information." |
86 | 85 |
87 # Parse command line | 86 # Parse command line |
88 while test $# -gt 0 ; do | 87 while test $# -gt 0 ; do |
89 case $1 in | 88 case $1 in |
(...skipping 26 matching lines...) Expand all Loading... |
116 exit 1;; | 115 exit 1;; |
117 1) ;; | 116 1) ;; |
118 *) echo "$me: too many arguments$help" >&2 | 117 *) echo "$me: too many arguments$help" >&2 |
119 exit 1;; | 118 exit 1;; |
120 esac | 119 esac |
121 | 120 |
122 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). | 121 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
123 # Here we must recognize all the valid KERNEL-OS combinations. | 122 # Here we must recognize all the valid KERNEL-OS combinations. |
124 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | 123 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
125 case $maybe_os in | 124 case $maybe_os in |
126 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ | 125 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
127 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu*
| \ | 126 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
| 127 knetbsd*-gnu* | netbsd*-gnu* | \ |
128 kopensolaris*-gnu* | \ | 128 kopensolaris*-gnu* | \ |
129 storm-chaos* | os2-emx* | rtmk-nova*) | 129 storm-chaos* | os2-emx* | rtmk-nova*) |
130 os=-$maybe_os | 130 os=-$maybe_os |
131 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | 131 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
132 ;; | 132 ;; |
| 133 android-linux) |
| 134 os=-linux-android |
| 135 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown |
| 136 ;; |
133 *) | 137 *) |
134 basic_machine=`echo $1 | sed 's/-[^-]*$//'` | 138 basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
135 if [ $basic_machine != $1 ] | 139 if [ $basic_machine != $1 ] |
136 then os=`echo $1 | sed 's/.*-/-/'` | 140 then os=`echo $1 | sed 's/.*-/-/'` |
137 else os=; fi | 141 else os=; fi |
138 ;; | 142 ;; |
139 esac | 143 esac |
140 | 144 |
141 ### Let's recognize common machines as not being operating systems so | 145 ### Let's recognize common machines as not being operating systems so |
142 ### that things like config.sub decstation-3100 work. We also | 146 ### that things like config.sub decstation-3100 work. We also |
143 ### recognize some manufacturers as not being operating systems, so we | 147 ### recognize some manufacturers as not being operating systems, so we |
144 ### can provide default operating systems below. | 148 ### can provide default operating systems below. |
145 case $os in | 149 case $os in |
146 -sun*os*) | 150 -sun*os*) |
147 # Prevent following clause from handling this invalid input. | 151 # Prevent following clause from handling this invalid input. |
148 ;; | 152 ;; |
149 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ | 153 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ |
150 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ | 154 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
151 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ | 155 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
152 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ | 156 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
153 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ | 157 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
154 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | 158 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
155 -apple | -axis | -knuth | -cray | -microblaze) | 159 -apple | -axis | -knuth | -cray | -microblaze) |
156 os= | 160 os= |
157 basic_machine=$1 | 161 basic_machine=$1 |
158 ;; | 162 ;; |
159 -bluegene*) | 163 » -bluegene*) |
160 » os=-cnk | 164 » » os=-cnk |
161 ;; | 165 ;; |
162 -sim | -cisco | -oki | -wec | -winbond) | 166 -sim | -cisco | -oki | -wec | -winbond) |
163 os= | 167 os= |
164 basic_machine=$1 | 168 basic_machine=$1 |
165 ;; | 169 ;; |
166 -scout) | 170 -scout) |
167 ;; | 171 ;; |
168 -wrs) | 172 -wrs) |
169 os=-vxworks | 173 os=-vxworks |
170 basic_machine=$1 | 174 basic_machine=$1 |
171 ;; | 175 ;; |
172 -chorusos*) | 176 -chorusos*) |
173 os=-chorusos | 177 os=-chorusos |
174 basic_machine=$1 | 178 basic_machine=$1 |
175 ;; | 179 ;; |
176 » -chorusrdb) | 180 » -chorusrdb) |
177 » » os=-chorusrdb | 181 » » os=-chorusrdb |
178 basic_machine=$1 | 182 basic_machine=$1 |
179 » » ;; | 183 » » ;; |
180 -hiux*) | 184 -hiux*) |
181 os=-hiuxwe2 | 185 os=-hiuxwe2 |
182 ;; | 186 ;; |
183 -sco6) | 187 -sco6) |
184 os=-sco5v6 | 188 os=-sco5v6 |
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | 189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
186 ;; | 190 ;; |
187 -sco5) | 191 -sco5) |
188 os=-sco3.2v5 | 192 os=-sco3.2v5 |
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | 193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 os=-mint | 242 os=-mint |
239 ;; | 243 ;; |
240 esac | 244 esac |
241 | 245 |
242 # Decode aliases for certain CPU-COMPANY combinations. | 246 # Decode aliases for certain CPU-COMPANY combinations. |
243 case $basic_machine in | 247 case $basic_machine in |
244 # Recognize the basic CPU types without company name. | 248 # Recognize the basic CPU types without company name. |
245 # Some are omitted here because they have special meanings below. | 249 # Some are omitted here because they have special meanings below. |
246 1750a | 580 \ | 250 1750a | 580 \ |
247 | a29k \ | 251 | a29k \ |
| 252 | aarch64 | aarch64_be \ |
248 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | 253 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
249 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[
67] \ | 254 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[
67] \ |
250 | am33_2.0 \ | 255 | am33_2.0 \ |
251 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | a
vr32 \ | 256 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | a
vr32 \ |
| 257 | be32 | be64 \ |
252 | bfin \ | 258 | bfin \ |
253 | c4x | clipper \ | 259 | c4x | clipper \ |
254 | d10v | d30v | dlx | dsp16xx \ | 260 | d10v | d30v | dlx | dsp16xx \ |
| 261 | epiphany \ |
255 | fido | fr30 | frv \ | 262 | fido | fr30 | frv \ |
256 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | 263 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
| 264 | hexagon \ |
257 | i370 | i860 | i960 | ia64 \ | 265 | i370 | i860 | i960 | ia64 \ |
258 | ip2k | iq2000 \ | 266 | ip2k | iq2000 \ |
| 267 | le32 | le64 \ |
259 | lm32 \ | 268 | lm32 \ |
260 | m32c | m32r | m32rle | m68000 | m68k | m88k \ | 269 | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
261 | maxq | mb | microblaze | mcore | mep | metag \ | 270 | maxq | mb | microblaze | mcore | mep | metag \ |
262 | mips | mipsbe | mipseb | mipsel | mipsle \ | 271 | mips | mipsbe | mipseb | mipsel | mipsle \ |
263 | mips16 \ | 272 | mips16 \ |
264 | mips64 | mips64el \ | 273 | mips64 | mips64el \ |
265 | mips64octeon | mips64octeonel \ | 274 | mips64octeon | mips64octeonel \ |
266 | mips64orion | mips64orionel \ | 275 | mips64orion | mips64orionel \ |
267 | mips64r5900 | mips64r5900el \ | 276 | mips64r5900 | mips64r5900el \ |
268 | mips64vr | mips64vrel \ | 277 | mips64vr | mips64vrel \ |
269 | mips64vr4100 | mips64vr4100el \ | 278 | mips64vr4100 | mips64vr4100el \ |
270 | mips64vr4300 | mips64vr4300el \ | 279 | mips64vr4300 | mips64vr4300el \ |
271 | mips64vr5000 | mips64vr5000el \ | 280 | mips64vr5000 | mips64vr5000el \ |
272 | mips64vr5900 | mips64vr5900el \ | 281 | mips64vr5900 | mips64vr5900el \ |
273 | mipsisa32 | mipsisa32el \ | 282 | mipsisa32 | mipsisa32el \ |
274 | mipsisa32r2 | mipsisa32r2el \ | 283 | mipsisa32r2 | mipsisa32r2el \ |
275 | mipsisa64 | mipsisa64el \ | 284 | mipsisa64 | mipsisa64el \ |
276 | mipsisa64r2 | mipsisa64r2el \ | 285 | mipsisa64r2 | mipsisa64r2el \ |
277 | mipsisa64sb1 | mipsisa64sb1el \ | 286 | mipsisa64sb1 | mipsisa64sb1el \ |
278 | mipsisa64sr71k | mipsisa64sr71kel \ | 287 | mipsisa64sr71k | mipsisa64sr71kel \ |
279 | mipstx39 | mipstx39el \ | 288 | mipstx39 | mipstx39el \ |
280 | mn10200 | mn10300 \ | 289 | mn10200 | mn10300 \ |
281 | moxie \ | 290 | moxie \ |
282 | mt \ | 291 | mt \ |
283 | msp430 \ | 292 | msp430 \ |
| 293 | nds32 | nds32le | nds32be \ |
284 | nios | nios2 \ | 294 | nios | nios2 \ |
285 | ns16k | ns32k \ | 295 | ns16k | ns32k \ |
| 296 | open8 \ |
286 | or32 \ | 297 | or32 \ |
287 | pdp10 | pdp11 | pj | pjl \ | 298 | pdp10 | pdp11 | pj | pjl \ |
288 » | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | 299 » | powerpc | powerpc64 | powerpc64le | powerpcle \ |
289 | pyramid \ | 300 | pyramid \ |
290 » | rx \ | 301 » | rl78 | rx \ |
291 | score \ | 302 | score \ |
292 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe
| shle | sh[1234]le | sh3ele \ | 303 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe
| shle | sh[1234]le | sh3ele \ |
293 | sh64 | sh64le \ | 304 | sh64 | sh64le \ |
294 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclit
e \ | 305 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclit
e \ |
295 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | 306 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
296 » | spu | strongarm \ | 307 » | spu \ |
297 » | tahoe | thumb | tic4x | tic80 | tron \ | 308 » | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ |
298 | ubicom32 \ | 309 | ubicom32 \ |
299 » | v850 | v850e \ | 310 » | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ |
300 | we32k \ | 311 | we32k \ |
301 » | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | 312 » | x86 | xc16x | xstormy16 | xtensa \ |
302 | z8k | z80) | 313 | z8k | z80) |
303 basic_machine=$basic_machine-unknown | 314 basic_machine=$basic_machine-unknown |
304 ;; | 315 ;; |
305 » m6811 | m68hc11 | m6812 | m68hc12 | picochip) | 316 » c54x) |
306 » » # Motorola 68HC11/12. | 317 » » basic_machine=tic54x-unknown |
| 318 » » ;; |
| 319 » c55x) |
| 320 » » basic_machine=tic55x-unknown |
| 321 » » ;; |
| 322 » c6x) |
| 323 » » basic_machine=tic6x-unknown |
| 324 » » ;; |
| 325 » m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) |
307 basic_machine=$basic_machine-unknown | 326 basic_machine=$basic_machine-unknown |
308 os=-none | 327 os=-none |
309 ;; | 328 ;; |
310 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) | 329 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
311 ;; | 330 ;; |
312 ms1) | 331 ms1) |
313 basic_machine=mt-unknown | 332 basic_machine=mt-unknown |
314 ;; | 333 ;; |
315 | 334 |
| 335 strongarm | thumb | xscale) |
| 336 basic_machine=arm-unknown |
| 337 ;; |
| 338 xgate) |
| 339 basic_machine=$basic_machine-unknown |
| 340 os=-none |
| 341 ;; |
| 342 xscaleeb) |
| 343 basic_machine=armeb-unknown |
| 344 ;; |
| 345 |
| 346 xscaleel) |
| 347 basic_machine=armel-unknown |
| 348 ;; |
| 349 |
316 # We use `pc' rather than `unknown' | 350 # We use `pc' rather than `unknown' |
317 # because (1) that's what they normally are, and | 351 # because (1) that's what they normally are, and |
318 # (2) the word "unknown" tends to confuse beginning users. | 352 # (2) the word "unknown" tends to confuse beginning users. |
319 i*86 | x86_64) | 353 i*86 | x86_64) |
320 basic_machine=$basic_machine-pc | 354 basic_machine=$basic_machine-pc |
321 ;; | 355 ;; |
322 # Object if more than one company name word. | 356 # Object if more than one company name word. |
323 *-*-*) | 357 *-*-*) |
324 echo Invalid configuration \`$1\': machine \`$basic_machine\' no
t recognized 1>&2 | 358 echo Invalid configuration \`$1\': machine \`$basic_machine\' no
t recognized 1>&2 |
325 exit 1 | 359 exit 1 |
326 ;; | 360 ;; |
327 # Recognize the basic CPU types with company name. | 361 # Recognize the basic CPU types with company name. |
328 580-* \ | 362 580-* \ |
329 | a29k-* \ | 363 | a29k-* \ |
| 364 | aarch64-* | aarch64_be-* \ |
330 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | 365 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
331 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | 366 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
332 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | 367 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
333 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | 368 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
334 | avr-* | avr32-* \ | 369 | avr-* | avr32-* \ |
| 370 | be32-* | be64-* \ |
335 | bfin-* | bs2000-* \ | 371 | bfin-* | bs2000-* \ |
336 » | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | 372 » | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
337 | clipper-* | craynv-* | cydra-* \ | 373 | clipper-* | craynv-* | cydra-* \ |
338 | d10v-* | d30v-* | dlx-* \ | 374 | d10v-* | d30v-* | dlx-* \ |
339 | elxsi-* \ | 375 | elxsi-* \ |
340 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | 376 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
341 | h8300-* | h8500-* \ | 377 | h8300-* | h8500-* \ |
342 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | 378 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
| 379 | hexagon-* \ |
343 | i*86-* | i860-* | i960-* | ia64-* \ | 380 | i*86-* | i860-* | i960-* | ia64-* \ |
344 | ip2k-* | iq2000-* \ | 381 | ip2k-* | iq2000-* \ |
| 382 | le32-* | le64-* \ |
345 | lm32-* \ | 383 | lm32-* \ |
346 | m32c-* | m32r-* | m32rle-* \ | 384 | m32c-* | m32r-* | m32rle-* \ |
347 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | 385 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
348 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | 386 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ |
349 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | 387 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
350 | mips16-* \ | 388 | mips16-* \ |
351 | mips64-* | mips64el-* \ | 389 | mips64-* | mips64el-* \ |
352 | mips64octeon-* | mips64octeonel-* \ | 390 | mips64octeon-* | mips64octeonel-* \ |
353 | mips64orion-* | mips64orionel-* \ | 391 | mips64orion-* | mips64orionel-* \ |
354 | mips64r5900-* | mips64r5900el-* \ | 392 | mips64r5900-* | mips64r5900el-* \ |
355 | mips64vr-* | mips64vrel-* \ | 393 | mips64vr-* | mips64vrel-* \ |
356 | mips64vr4100-* | mips64vr4100el-* \ | 394 | mips64vr4100-* | mips64vr4100el-* \ |
357 | mips64vr4300-* | mips64vr4300el-* \ | 395 | mips64vr4300-* | mips64vr4300el-* \ |
358 | mips64vr5000-* | mips64vr5000el-* \ | 396 | mips64vr5000-* | mips64vr5000el-* \ |
359 | mips64vr5900-* | mips64vr5900el-* \ | 397 | mips64vr5900-* | mips64vr5900el-* \ |
360 | mipsisa32-* | mipsisa32el-* \ | 398 | mipsisa32-* | mipsisa32el-* \ |
361 | mipsisa32r2-* | mipsisa32r2el-* \ | 399 | mipsisa32r2-* | mipsisa32r2el-* \ |
362 | mipsisa64-* | mipsisa64el-* \ | 400 | mipsisa64-* | mipsisa64el-* \ |
363 | mipsisa64r2-* | mipsisa64r2el-* \ | 401 | mipsisa64r2-* | mipsisa64r2el-* \ |
364 | mipsisa64sb1-* | mipsisa64sb1el-* \ | 402 | mipsisa64sb1-* | mipsisa64sb1el-* \ |
365 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | 403 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
366 | mipstx39-* | mipstx39el-* \ | 404 | mipstx39-* | mipstx39el-* \ |
367 | mmix-* \ | 405 | mmix-* \ |
368 | mt-* \ | 406 | mt-* \ |
369 | msp430-* \ | 407 | msp430-* \ |
| 408 | nds32-* | nds32le-* | nds32be-* \ |
370 | nios-* | nios2-* \ | 409 | nios-* | nios2-* \ |
371 | none-* | np1-* | ns16k-* | ns32k-* \ | 410 | none-* | np1-* | ns16k-* | ns32k-* \ |
| 411 | open8-* \ |
372 | orion-* \ | 412 | orion-* \ |
373 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | 413 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
374 » | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | 414 » | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
375 | pyramid-* \ | 415 | pyramid-* \ |
376 » | romp-* | rs6000-* | rx-* \ | 416 » | rl78-* | romp-* | rs6000-* | rx-* \ |
377 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* |
sheb-* | shbe-* \ | 417 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* |
sheb-* | shbe-* \ |
378 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | 418 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
379 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-
* \ | 419 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-
* \ |
380 | sparclite-* \ | 420 | sparclite-* \ |
381 » | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-*
| sx?-* \ | 421 » | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ |
382 » | tahoe-* | thumb-* \ | 422 » | tahoe-* \ |
383 » | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | 423 » | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
| 424 » | tile*-* \ |
384 | tron-* \ | 425 | tron-* \ |
385 | ubicom32-* \ | 426 | ubicom32-* \ |
386 » | v850-* | v850e-* | vax-* \ | 427 » | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ |
| 428 » | vax-* \ |
387 | we32k-* \ | 429 | we32k-* \ |
388 » | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | 430 » | x86-* | x86_64-* | xc16x-* | xps100-* \ |
389 | xstormy16-* | xtensa*-* \ | 431 | xstormy16-* | xtensa*-* \ |
390 | ymp-* \ | 432 | ymp-* \ |
391 | z8k-* | z80-*) | 433 | z8k-* | z80-*) |
392 ;; | 434 ;; |
393 # Recognize the basic CPU types without company name, with glob match. | 435 # Recognize the basic CPU types without company name, with glob match. |
394 xtensa*) | 436 xtensa*) |
395 basic_machine=$basic_machine-unknown | 437 basic_machine=$basic_machine-unknown |
396 ;; | 438 ;; |
397 # Recognize the various machine names and aliases which stand | 439 # Recognize the various machine names and aliases which stand |
398 # for a CPU type and a company and sometimes even an OS. | 440 # for a CPU type and a company and sometimes even an OS. |
399 386bsd) | 441 386bsd) |
400 basic_machine=i386-unknown | 442 basic_machine=i386-unknown |
401 os=-bsd | 443 os=-bsd |
402 ;; | 444 ;; |
403 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | 445 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
404 basic_machine=m68000-att | 446 basic_machine=m68000-att |
405 ;; | 447 ;; |
406 3b*) | 448 3b*) |
407 basic_machine=we32k-att | 449 basic_machine=we32k-att |
408 ;; | 450 ;; |
409 a29khif) | 451 a29khif) |
410 basic_machine=a29k-amd | 452 basic_machine=a29k-amd |
411 os=-udi | 453 os=-udi |
412 ;; | 454 ;; |
413 » abacus) | 455 » abacus) |
414 basic_machine=abacus-unknown | 456 basic_machine=abacus-unknown |
415 ;; | 457 ;; |
416 adobe68k) | 458 adobe68k) |
417 basic_machine=m68010-adobe | 459 basic_machine=m68010-adobe |
418 os=-scout | 460 os=-scout |
419 ;; | 461 ;; |
420 alliant | fx80) | 462 alliant | fx80) |
421 basic_machine=fx80-alliant | 463 basic_machine=fx80-alliant |
422 ;; | 464 ;; |
423 altos | altos3068) | 465 altos | altos3068) |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 os=-linux | 515 os=-linux |
474 ;; | 516 ;; |
475 blackfin-*) | 517 blackfin-*) |
476 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` | 518 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` |
477 os=-linux | 519 os=-linux |
478 ;; | 520 ;; |
479 bluegene*) | 521 bluegene*) |
480 basic_machine=powerpc-ibm | 522 basic_machine=powerpc-ibm |
481 os=-cnk | 523 os=-cnk |
482 ;; | 524 ;; |
| 525 c54x-*) |
| 526 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 527 ;; |
| 528 c55x-*) |
| 529 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 530 ;; |
| 531 c6x-*) |
| 532 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 533 ;; |
483 c90) | 534 c90) |
484 basic_machine=c90-cray | 535 basic_machine=c90-cray |
485 os=-unicos | 536 os=-unicos |
486 ;; | 537 ;; |
487 cegcc) | 538 » cegcc) |
488 basic_machine=arm-unknown | 539 basic_machine=arm-unknown |
489 os=-cegcc | 540 os=-cegcc |
490 ;; | 541 ;; |
491 convex-c1) | 542 convex-c1) |
492 basic_machine=c1-convex | 543 basic_machine=c1-convex |
493 os=-bsd | 544 os=-bsd |
494 ;; | 545 ;; |
495 convex-c2) | 546 convex-c2) |
496 basic_machine=c2-convex | 547 basic_machine=c2-convex |
497 os=-bsd | 548 os=-bsd |
(...skipping 11 matching lines...) Expand all Loading... |
509 os=-bsd | 560 os=-bsd |
510 ;; | 561 ;; |
511 cray | j90) | 562 cray | j90) |
512 basic_machine=j90-cray | 563 basic_machine=j90-cray |
513 os=-unicos | 564 os=-unicos |
514 ;; | 565 ;; |
515 craynv) | 566 craynv) |
516 basic_machine=craynv-cray | 567 basic_machine=craynv-cray |
517 os=-unicosmp | 568 os=-unicosmp |
518 ;; | 569 ;; |
519 » cr16) | 570 » cr16 | cr16-*) |
520 basic_machine=cr16-unknown | 571 basic_machine=cr16-unknown |
521 os=-elf | 572 os=-elf |
522 ;; | 573 ;; |
523 crds | unos) | 574 crds | unos) |
524 basic_machine=m68k-crds | 575 basic_machine=m68k-crds |
525 ;; | 576 ;; |
526 crisv32 | crisv32-* | etraxfs*) | 577 crisv32 | crisv32-* | etraxfs*) |
527 basic_machine=crisv32-axis | 578 basic_machine=crisv32-axis |
528 ;; | 579 ;; |
529 cris | cris-* | etrax*) | 580 cris | cris-* | etrax*) |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 basic_machine=hppa1.1-hp | 718 basic_machine=hppa1.1-hp |
668 os=-osf | 719 os=-osf |
669 ;; | 720 ;; |
670 hppro) | 721 hppro) |
671 basic_machine=hppa1.1-hp | 722 basic_machine=hppa1.1-hp |
672 os=-proelf | 723 os=-proelf |
673 ;; | 724 ;; |
674 i370-ibm* | ibm*) | 725 i370-ibm* | ibm*) |
675 basic_machine=i370-ibm | 726 basic_machine=i370-ibm |
676 ;; | 727 ;; |
677 # I'm not sure what "Sysv32" means. Should this be sysv3.2? | |
678 i*86v32) | 728 i*86v32) |
679 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 729 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
680 os=-sysv32 | 730 os=-sysv32 |
681 ;; | 731 ;; |
682 i*86v4*) | 732 i*86v4*) |
683 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 733 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
684 os=-sysv4 | 734 os=-sysv4 |
685 ;; | 735 ;; |
686 i*86v) | 736 i*86v) |
687 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 737 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 basic_machine=m88k-omron | 775 basic_machine=m88k-omron |
726 ;; | 776 ;; |
727 magnum | m3230) | 777 magnum | m3230) |
728 basic_machine=mips-mips | 778 basic_machine=mips-mips |
729 os=-sysv | 779 os=-sysv |
730 ;; | 780 ;; |
731 merlin) | 781 merlin) |
732 basic_machine=ns32k-utek | 782 basic_machine=ns32k-utek |
733 os=-sysv | 783 os=-sysv |
734 ;; | 784 ;; |
735 microblaze) | 785 » microblaze) |
736 basic_machine=microblaze-xilinx | 786 basic_machine=microblaze-xilinx |
737 ;; | 787 ;; |
738 mingw32) | 788 mingw32) |
739 basic_machine=i386-pc | 789 basic_machine=i386-pc |
740 os=-mingw32 | 790 os=-mingw32 |
741 ;; | 791 ;; |
742 mingw32ce) | 792 mingw32ce) |
743 basic_machine=arm-unknown | 793 basic_machine=arm-unknown |
744 os=-mingw32ce | 794 os=-mingw32ce |
745 ;; | 795 ;; |
(...skipping 18 matching lines...) Expand all Loading... |
764 basic_machine=powerpc-unknown | 814 basic_machine=powerpc-unknown |
765 os=-morphos | 815 os=-morphos |
766 ;; | 816 ;; |
767 msdos) | 817 msdos) |
768 basic_machine=i386-pc | 818 basic_machine=i386-pc |
769 os=-msdos | 819 os=-msdos |
770 ;; | 820 ;; |
771 ms1-*) | 821 ms1-*) |
772 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | 822 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
773 ;; | 823 ;; |
| 824 msys) |
| 825 basic_machine=i386-pc |
| 826 os=-msys |
| 827 ;; |
774 mvs) | 828 mvs) |
775 basic_machine=i370-ibm | 829 basic_machine=i370-ibm |
776 os=-mvs | 830 os=-mvs |
777 ;; | 831 ;; |
| 832 nacl) |
| 833 basic_machine=le32-unknown |
| 834 os=-nacl |
| 835 ;; |
778 ncr3000) | 836 ncr3000) |
779 basic_machine=i486-ncr | 837 basic_machine=i486-ncr |
780 os=-sysv4 | 838 os=-sysv4 |
781 ;; | 839 ;; |
782 netbsd386) | 840 netbsd386) |
783 basic_machine=i386-unknown | 841 basic_machine=i386-unknown |
784 os=-netbsd | 842 os=-netbsd |
785 ;; | 843 ;; |
786 netwinder) | 844 netwinder) |
787 basic_machine=armv4l-rebel | 845 basic_machine=armv4l-rebel |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 basic_machine=i960-intel | 890 basic_machine=i960-intel |
833 os=-mon960 | 891 os=-mon960 |
834 ;; | 892 ;; |
835 nonstopux) | 893 nonstopux) |
836 basic_machine=mips-compaq | 894 basic_machine=mips-compaq |
837 os=-nonstopux | 895 os=-nonstopux |
838 ;; | 896 ;; |
839 np1) | 897 np1) |
840 basic_machine=np1-gould | 898 basic_machine=np1-gould |
841 ;; | 899 ;; |
| 900 neo-tandem) |
| 901 basic_machine=neo-tandem |
| 902 ;; |
| 903 nse-tandem) |
| 904 basic_machine=nse-tandem |
| 905 ;; |
842 nsr-tandem) | 906 nsr-tandem) |
843 basic_machine=nsr-tandem | 907 basic_machine=nsr-tandem |
844 ;; | 908 ;; |
845 op50n-* | op60c-*) | 909 op50n-* | op60c-*) |
846 basic_machine=hppa1.1-oki | 910 basic_machine=hppa1.1-oki |
847 os=-proelf | 911 os=-proelf |
848 ;; | 912 ;; |
849 openrisc | openrisc-*) | 913 openrisc | openrisc-*) |
850 basic_machine=or32-unknown | 914 basic_machine=or32-unknown |
851 ;; | 915 ;; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | 978 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
915 ;; | 979 ;; |
916 pentium4-*) | 980 pentium4-*) |
917 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` | 981 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` |
918 ;; | 982 ;; |
919 pn) | 983 pn) |
920 basic_machine=pn-gould | 984 basic_machine=pn-gould |
921 ;; | 985 ;; |
922 power) basic_machine=power-ibm | 986 power) basic_machine=power-ibm |
923 ;; | 987 ;; |
924 » ppc)» basic_machine=powerpc-unknown | 988 » ppc | ppcbe)» basic_machine=powerpc-unknown |
925 ;; | 989 ;; |
926 » ppc-*)» basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | 990 » ppc-* | ppcbe-*) |
| 991 » » basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
927 ;; | 992 ;; |
928 ppcle | powerpclittle | ppc-le | powerpc-little) | 993 ppcle | powerpclittle | ppc-le | powerpc-little) |
929 basic_machine=powerpcle-unknown | 994 basic_machine=powerpcle-unknown |
930 ;; | 995 ;; |
931 ppcle-* | powerpclittle-*) | 996 ppcle-* | powerpclittle-*) |
932 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'
` | 997 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'
` |
933 ;; | 998 ;; |
934 ppc64) basic_machine=powerpc64-unknown | 999 ppc64) basic_machine=powerpc64-unknown |
935 ;; | 1000 ;; |
936 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//
'` | 1001 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//
'` |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 spur) | 1075 spur) |
1011 basic_machine=spur-unknown | 1076 basic_machine=spur-unknown |
1012 ;; | 1077 ;; |
1013 st2000) | 1078 st2000) |
1014 basic_machine=m68k-tandem | 1079 basic_machine=m68k-tandem |
1015 ;; | 1080 ;; |
1016 stratus) | 1081 stratus) |
1017 basic_machine=i860-stratus | 1082 basic_machine=i860-stratus |
1018 os=-sysv4 | 1083 os=-sysv4 |
1019 ;; | 1084 ;; |
| 1085 strongarm-* | thumb-*) |
| 1086 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 1087 ;; |
1020 sun2) | 1088 sun2) |
1021 basic_machine=m68000-sun | 1089 basic_machine=m68000-sun |
1022 ;; | 1090 ;; |
1023 sun2os3) | 1091 sun2os3) |
1024 basic_machine=m68000-sun | 1092 basic_machine=m68000-sun |
1025 os=-sunos3 | 1093 os=-sunos3 |
1026 ;; | 1094 ;; |
1027 sun2os4) | 1095 sun2os4) |
1028 basic_machine=m68000-sun | 1096 basic_machine=m68000-sun |
1029 os=-sunos4 | 1097 os=-sunos4 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1066 os=-dynix | 1134 os=-dynix |
1067 ;; | 1135 ;; |
1068 t3e) | 1136 t3e) |
1069 basic_machine=alphaev5-cray | 1137 basic_machine=alphaev5-cray |
1070 os=-unicos | 1138 os=-unicos |
1071 ;; | 1139 ;; |
1072 t90) | 1140 t90) |
1073 basic_machine=t90-cray | 1141 basic_machine=t90-cray |
1074 os=-unicos | 1142 os=-unicos |
1075 ;; | 1143 ;; |
1076 tic54x | c54x*) | |
1077 basic_machine=tic54x-unknown | |
1078 os=-coff | |
1079 ;; | |
1080 tic55x | c55x*) | |
1081 basic_machine=tic55x-unknown | |
1082 os=-coff | |
1083 ;; | |
1084 tic6x | c6x*) | |
1085 basic_machine=tic6x-unknown | |
1086 os=-coff | |
1087 ;; | |
1088 tile*) | 1144 tile*) |
1089 » » basic_machine=tile-unknown | 1145 » » basic_machine=$basic_machine-unknown |
1090 os=-linux-gnu | 1146 os=-linux-gnu |
1091 ;; | 1147 ;; |
1092 tx39) | 1148 tx39) |
1093 basic_machine=mipstx39-unknown | 1149 basic_machine=mipstx39-unknown |
1094 ;; | 1150 ;; |
1095 tx39el) | 1151 tx39el) |
1096 basic_machine=mipstx39el-unknown | 1152 basic_machine=mipstx39el-unknown |
1097 ;; | 1153 ;; |
1098 toad1) | 1154 toad1) |
1099 basic_machine=pdp10-xkl | 1155 basic_machine=pdp10-xkl |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1149 basic_machine=hppa1.1-winbond | 1205 basic_machine=hppa1.1-winbond |
1150 os=-proelf | 1206 os=-proelf |
1151 ;; | 1207 ;; |
1152 xbox) | 1208 xbox) |
1153 basic_machine=i686-pc | 1209 basic_machine=i686-pc |
1154 os=-mingw32 | 1210 os=-mingw32 |
1155 ;; | 1211 ;; |
1156 xps | xps100) | 1212 xps | xps100) |
1157 basic_machine=xps100-honeywell | 1213 basic_machine=xps100-honeywell |
1158 ;; | 1214 ;; |
| 1215 xscale-* | xscalee[bl]-*) |
| 1216 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` |
| 1217 ;; |
1159 ymp) | 1218 ymp) |
1160 basic_machine=ymp-cray | 1219 basic_machine=ymp-cray |
1161 os=-unicos | 1220 os=-unicos |
1162 ;; | 1221 ;; |
1163 z8k-*-coff) | 1222 z8k-*-coff) |
1164 basic_machine=z8k-unknown | 1223 basic_machine=z8k-unknown |
1165 os=-sim | 1224 os=-sim |
1166 ;; | 1225 ;; |
1167 z80-*-coff) | 1226 z80-*-coff) |
1168 basic_machine=z80-unknown | 1227 basic_machine=z80-unknown |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1246 ;; | 1305 ;; |
1247 *) | 1306 *) |
1248 ;; | 1307 ;; |
1249 esac | 1308 esac |
1250 | 1309 |
1251 # Decode manufacturer-specific aliases for certain operating systems. | 1310 # Decode manufacturer-specific aliases for certain operating systems. |
1252 | 1311 |
1253 if [ x"$os" != x"" ] | 1312 if [ x"$os" != x"" ] |
1254 then | 1313 then |
1255 case $os in | 1314 case $os in |
1256 # First match some system type aliases | 1315 » # First match some system type aliases |
1257 # that might get confused with valid system types. | 1316 » # that might get confused with valid system types. |
1258 # -solaris* is a basic system type, with this one exception. | 1317 # -solaris* is a basic system type, with this one exception. |
1259 -auroraux) | 1318 » -auroraux) |
1260 » os=-auroraux | 1319 » » os=-auroraux |
1261 ;; | 1320 ;; |
1262 -solaris1 | -solaris1.*) | 1321 -solaris1 | -solaris1.*) |
1263 os=`echo $os | sed -e 's|solaris1|sunos4|'` | 1322 os=`echo $os | sed -e 's|solaris1|sunos4|'` |
1264 ;; | 1323 ;; |
1265 -solaris) | 1324 -solaris) |
1266 os=-solaris2 | 1325 os=-solaris2 |
1267 ;; | 1326 ;; |
1268 -svr4*) | 1327 -svr4*) |
1269 os=-sysv4 | 1328 os=-sysv4 |
1270 ;; | 1329 ;; |
(...skipping 15 matching lines...) Expand all Loading... |
1286 | -aos* | -aros* \ | 1345 | -aos* | -aros* \ |
1287 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | 1346 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1288 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | 1347 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1289 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | 1348 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
1290 | -openbsd* | -solidbsd* \ | 1349 | -openbsd* | -solidbsd* \ |
1291 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | 1350 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1292 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | 1351 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1293 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | 1352 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1294 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 1353 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1295 | -chorusos* | -chorusrdb* | -cegcc* \ | 1354 | -chorusos* | -chorusrdb* | -cegcc* \ |
1296 » | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | 1355 » | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems*
\ |
1297 » | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | 1356 » | -mingw32* | -linux-gnu* | -linux-android* \ |
| 1357 » | -linux-newlib* | -linux-uclibc* \ |
1298 | -uxpv* | -beos* | -mpeix* | -udk* \ | 1358 | -uxpv* | -beos* | -mpeix* | -udk* \ |
1299 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | 1359 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1300 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | 1360 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1301 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | 1361 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1302 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | 1362 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1303 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | 1363 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1304 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | 1364 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1305 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) | 1365 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) |
1306 # Remember, each alternative MUST END IN *, to match a version number. | 1366 # Remember, each alternative MUST END IN *, to match a version number. |
1307 ;; | 1367 ;; |
(...skipping 26 matching lines...) Expand all Loading... |
1334 ;; | 1394 ;; |
1335 -sunos5*) | 1395 -sunos5*) |
1336 os=`echo $os | sed -e 's|sunos5|solaris2|'` | 1396 os=`echo $os | sed -e 's|sunos5|solaris2|'` |
1337 ;; | 1397 ;; |
1338 -sunos6*) | 1398 -sunos6*) |
1339 os=`echo $os | sed -e 's|sunos6|solaris3|'` | 1399 os=`echo $os | sed -e 's|sunos6|solaris3|'` |
1340 ;; | 1400 ;; |
1341 -opened*) | 1401 -opened*) |
1342 os=-openedition | 1402 os=-openedition |
1343 ;; | 1403 ;; |
1344 -os400*) | 1404 » -os400*) |
1345 os=-os400 | 1405 os=-os400 |
1346 ;; | 1406 ;; |
1347 -wince*) | 1407 -wince*) |
1348 os=-wince | 1408 os=-wince |
1349 ;; | 1409 ;; |
1350 -osfrose*) | 1410 -osfrose*) |
1351 os=-osfrose | 1411 os=-osfrose |
1352 ;; | 1412 ;; |
1353 -osf*) | 1413 -osf*) |
1354 os=-osf | 1414 os=-osf |
(...skipping 28 matching lines...) Expand all Loading... |
1383 -nsk*) | 1443 -nsk*) |
1384 os=-nsk | 1444 os=-nsk |
1385 ;; | 1445 ;; |
1386 # Preserve the version number of sinix5. | 1446 # Preserve the version number of sinix5. |
1387 -sinix5.*) | 1447 -sinix5.*) |
1388 os=`echo $os | sed -e 's|sinix|sysv|'` | 1448 os=`echo $os | sed -e 's|sinix|sysv|'` |
1389 ;; | 1449 ;; |
1390 -sinix*) | 1450 -sinix*) |
1391 os=-sysv4 | 1451 os=-sysv4 |
1392 ;; | 1452 ;; |
1393 -tpf*) | 1453 » -tpf*) |
1394 os=-tpf | 1454 os=-tpf |
1395 ;; | 1455 ;; |
1396 -triton*) | 1456 -triton*) |
1397 os=-sysv3 | 1457 os=-sysv3 |
1398 ;; | 1458 ;; |
1399 -oss*) | 1459 -oss*) |
1400 os=-sysv3 | 1460 os=-sysv3 |
1401 ;; | 1461 ;; |
1402 -svr4) | 1462 -svr4) |
1403 os=-sysv4 | 1463 os=-sysv4 |
(...skipping 24 matching lines...) Expand all Loading... |
1428 ;; | 1488 ;; |
1429 -kaos*) | 1489 -kaos*) |
1430 os=-kaos | 1490 os=-kaos |
1431 ;; | 1491 ;; |
1432 -zvmoe) | 1492 -zvmoe) |
1433 os=-zvmoe | 1493 os=-zvmoe |
1434 ;; | 1494 ;; |
1435 -dicos*) | 1495 -dicos*) |
1436 os=-dicos | 1496 os=-dicos |
1437 ;; | 1497 ;; |
| 1498 -nacl*) |
| 1499 ;; |
1438 -none) | 1500 -none) |
1439 ;; | 1501 ;; |
1440 *) | 1502 *) |
1441 # Get rid of the `-' at the beginning of $os. | 1503 # Get rid of the `-' at the beginning of $os. |
1442 os=`echo $os | sed 's/[^-]*-//'` | 1504 os=`echo $os | sed 's/[^-]*-//'` |
1443 echo Invalid configuration \`$1\': system \`$os\' not recognized
1>&2 | 1505 echo Invalid configuration \`$1\': system \`$os\' not recognized
1>&2 |
1444 exit 1 | 1506 exit 1 |
1445 ;; | 1507 ;; |
1446 esac | 1508 esac |
1447 else | 1509 else |
1448 | 1510 |
1449 # Here we handle the default operating systems that come with various machines. | 1511 # Here we handle the default operating systems that come with various machines. |
1450 # The value should be what the vendor currently ships out the door with their | 1512 # The value should be what the vendor currently ships out the door with their |
1451 # machine or put another way, the most popular os provided with the machine. | 1513 # machine or put another way, the most popular os provided with the machine. |
1452 | 1514 |
1453 # Note that if you're going to try to match "-MANUFACTURER" here (say, | 1515 # Note that if you're going to try to match "-MANUFACTURER" here (say, |
1454 # "-sun"), then you have to tell the case statement up towards the top | 1516 # "-sun"), then you have to tell the case statement up towards the top |
1455 # that MANUFACTURER isn't an operating system. Otherwise, code above | 1517 # that MANUFACTURER isn't an operating system. Otherwise, code above |
1456 # will signal an error saying that MANUFACTURER isn't an operating | 1518 # will signal an error saying that MANUFACTURER isn't an operating |
1457 # system, and we'll never get to this point. | 1519 # system, and we'll never get to this point. |
1458 | 1520 |
1459 case $basic_machine in | 1521 case $basic_machine in |
1460 score-*) | 1522 » score-*) |
1461 os=-elf | 1523 os=-elf |
1462 ;; | 1524 ;; |
1463 spu-*) | 1525 » spu-*) |
1464 os=-elf | 1526 os=-elf |
1465 ;; | 1527 ;; |
1466 *-acorn) | 1528 *-acorn) |
1467 os=-riscix1.2 | 1529 os=-riscix1.2 |
1468 ;; | 1530 ;; |
1469 arm*-rebel) | 1531 arm*-rebel) |
1470 os=-linux | 1532 os=-linux |
1471 ;; | 1533 ;; |
1472 arm*-semi) | 1534 arm*-semi) |
1473 os=-aout | 1535 os=-aout |
1474 ;; | 1536 ;; |
1475 c4x-* | tic4x-*) | 1537 » c4x-* | tic4x-*) |
1476 » os=-coff | 1538 » » os=-coff |
| 1539 » » ;; |
| 1540 » tic54x-*) |
| 1541 » » os=-coff |
| 1542 » » ;; |
| 1543 » tic55x-*) |
| 1544 » » os=-coff |
| 1545 » » ;; |
| 1546 » tic6x-*) |
| 1547 » » os=-coff |
1477 ;; | 1548 ;; |
1478 # This must come before the *-dec entry. | 1549 # This must come before the *-dec entry. |
1479 pdp10-*) | 1550 pdp10-*) |
1480 os=-tops20 | 1551 os=-tops20 |
1481 ;; | 1552 ;; |
1482 pdp11-*) | 1553 pdp11-*) |
1483 os=-none | 1554 os=-none |
1484 ;; | 1555 ;; |
1485 *-dec | vax-*) | 1556 *-dec | vax-*) |
1486 os=-ultrix4.2 | 1557 os=-ultrix4.2 |
1487 ;; | 1558 ;; |
1488 m68*-apollo) | 1559 m68*-apollo) |
1489 os=-domain | 1560 os=-domain |
1490 ;; | 1561 ;; |
1491 i386-sun) | 1562 i386-sun) |
1492 os=-sunos4.0.2 | 1563 os=-sunos4.0.2 |
1493 ;; | 1564 ;; |
1494 m68000-sun) | 1565 m68000-sun) |
1495 os=-sunos3 | 1566 os=-sunos3 |
1496 # This also exists in the configure program, but was not the | |
1497 # default. | |
1498 # os=-sunos4 | |
1499 ;; | 1567 ;; |
1500 m68*-cisco) | 1568 m68*-cisco) |
1501 os=-aout | 1569 os=-aout |
1502 ;; | 1570 ;; |
1503 mep-*) | 1571 » mep-*) |
1504 os=-elf | 1572 os=-elf |
1505 ;; | 1573 ;; |
1506 mips*-cisco) | 1574 mips*-cisco) |
1507 os=-elf | 1575 os=-elf |
1508 ;; | 1576 ;; |
1509 mips*-*) | 1577 mips*-*) |
1510 os=-elf | 1578 os=-elf |
1511 ;; | 1579 ;; |
1512 or32-*) | 1580 or32-*) |
1513 os=-coff | 1581 os=-coff |
1514 ;; | 1582 ;; |
1515 *-tti) # must be before sparc entry or we get the wrong os. | 1583 *-tti) # must be before sparc entry or we get the wrong os. |
1516 os=-sysv3 | 1584 os=-sysv3 |
1517 ;; | 1585 ;; |
1518 sparc-* | *-sun) | 1586 sparc-* | *-sun) |
1519 os=-sunos4.1.1 | 1587 os=-sunos4.1.1 |
1520 ;; | 1588 ;; |
1521 *-be) | 1589 *-be) |
1522 os=-beos | 1590 os=-beos |
1523 ;; | 1591 ;; |
1524 *-haiku) | 1592 *-haiku) |
1525 os=-haiku | 1593 os=-haiku |
1526 ;; | 1594 ;; |
1527 *-ibm) | 1595 *-ibm) |
1528 os=-aix | 1596 os=-aix |
1529 ;; | 1597 ;; |
1530 » *-knuth) | 1598 » *-knuth) |
1531 os=-mmixware | 1599 os=-mmixware |
1532 ;; | 1600 ;; |
1533 *-wec) | 1601 *-wec) |
1534 os=-proelf | 1602 os=-proelf |
1535 ;; | 1603 ;; |
1536 *-winbond) | 1604 *-winbond) |
1537 os=-proelf | 1605 os=-proelf |
1538 ;; | 1606 ;; |
1539 *-oki) | 1607 *-oki) |
1540 os=-proelf | 1608 os=-proelf |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1696 | 1764 |
1697 echo $basic_machine$os | 1765 echo $basic_machine$os |
1698 exit | 1766 exit |
1699 | 1767 |
1700 # Local variables: | 1768 # Local variables: |
1701 # eval: (add-hook 'write-file-hooks 'time-stamp) | 1769 # eval: (add-hook 'write-file-hooks 'time-stamp) |
1702 # time-stamp-start: "timestamp='" | 1770 # time-stamp-start: "timestamp='" |
1703 # time-stamp-format: "%:y-%02m-%02d" | 1771 # time-stamp-format: "%:y-%02m-%02d" |
1704 # time-stamp-end: "'" | 1772 # time-stamp-end: "'" |
1705 # End: | 1773 # End: |
OLD | NEW |