2
2
# Configuration validation subroutine script.
3
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
# 2000, 2001, 2002 Free Software Foundation, Inc.
4
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5
# Free Software Foundation, Inc.
8
9
# This file is (in principle) common to ALL GNU software.
9
10
# The presence of a machine in this file suggests that SOME GNU software
22
23
# You should have received a copy of the GNU General Public License
23
24
# along with this program; if not, write to the Free Software
24
# Foundation, Inc., 59 Temple Place - Suite 330,
25
# Boston, MA 02111-1307, USA.
25
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
27
28
# As a special exception to the GNU General Public License, if you
28
29
# distribute this file as part of a program that contains a
29
30
# configuration script generated by Autoconf, you may include it under
30
31
# the same distribution terms that you use for the rest of that program.
32
34
# Please send patches to <config-patches@gnu.org>. Submit a context
33
35
# diff and a properly formatted ChangeLog entry.
71
73
GNU config.sub ($timestamp)
73
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
74
Free Software Foundation, Inc.
75
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
76
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
76
78
This is free software; see the source for copying conditions. There is NO
77
79
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
229
241
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230
242
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
231
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
244
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
232
246
| c4x | clipper \
233
| d10v | d30v | dsp16xx \
247
| d10v | d30v | dlx | dsp16xx \
248
| fido | fr30 | frv \
235
249
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
236
250
| i370 | i860 | i960 | ia64 \
237
| m32r | m68000 | m68k | m88k | mcore \
238
| mips | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
239
| mips64vr4100 | mips64vr4100el | mips64vr4300 \
240
| mips64vr4300el | mips64vr5000 | mips64vr5000el \
241
| mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
242
| mipsisa32 | mipsisa64 \
252
| m32c | m32r | m32rle | m68000 | m68k | m88k \
253
| maxq | mb | microblaze | mcore | mep \
254
| mips | mipsbe | mipseb | mipsel | mipsle \
256
| mips64 | mips64el \
257
| mips64vr | mips64vrel \
258
| mips64orion | mips64orionel \
259
| mips64vr4100 | mips64vr4100el \
260
| mips64vr4300 | mips64vr4300el \
261
| mips64vr5000 | mips64vr5000el \
262
| mips64vr5900 | mips64vr5900el \
263
| mipsisa32 | mipsisa32el \
264
| mipsisa32r2 | mipsisa32r2el \
265
| mipsisa64 | mipsisa64el \
266
| mipsisa64r2 | mipsisa64r2el \
267
| mipsisa64sb1 | mipsisa64sb1el \
268
| mipsisa64sr71k | mipsisa64sr71kel \
269
| mipstx39 | mipstx39el \
243
270
| mn10200 | mn10300 \
244
274
| ns16k | ns32k \
246
276
| pdp10 | pdp11 | pj | pjl \
247
277
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
249
| sh | sh[34] | sh[34]eb | shbe | shle | sh64 \
250
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
252
| tahoe | thumb | tic80 | tron \
280
| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
282
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
283
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
285
| tahoe | thumb | tic4x | tic80 | tron \
255
| x86 | xscale | xstormy16 | xtensa \
288
| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
257
290
basic_machine=$basic_machine-unknown
281
317
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
282
318
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
283
319
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
284
| arm-* | armbe-* | armle-* | armv*-* \
287
| c[123]* | c30-* | [cjt]90-* | c54x-* \
288
| clipper-* | cydra-* \
320
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
322
| bfin-* | bs2000-* \
323
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
324
| clipper-* | craynv-* | cydra-* \
325
| d10v-* | d30v-* | dlx-* \
291
| f30[01]-* | f700-* | fr30-* | fx80-* \
327
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
292
328
| h8300-* | h8500-* \
293
329
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
294
330
| i*86-* | i860-* | i960-* | ia64-* \
331
| ip2k-* | iq2000-* \
332
| m32c-* | m32r-* | m32rle-* \
296
333
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
297
| m88110-* | m88k-* | mcore-* \
298
| mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
299
| mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
300
| mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
301
| mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
334
| m88110-* | m88k-* | maxq-* | mcore-* \
335
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
337
| mips64-* | mips64el-* \
338
| mips64vr-* | mips64vrel-* \
339
| mips64orion-* | mips64orionel-* \
340
| mips64vr4100-* | mips64vr4100el-* \
341
| mips64vr4300-* | mips64vr4300el-* \
342
| mips64vr5000-* | mips64vr5000el-* \
343
| mips64vr5900-* | mips64vr5900el-* \
344
| mipsisa32-* | mipsisa32el-* \
345
| mipsisa32r2-* | mipsisa32r2el-* \
346
| mipsisa64-* | mipsisa64el-* \
347
| mipsisa64r2-* | mipsisa64r2el-* \
348
| mipsisa64sb1-* | mipsisa64sb1el-* \
349
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
350
| mipstx39-* | mipstx39el-* \
302
355
| none-* | np1-* | ns16k-* | ns32k-* \
304
357
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
305
358
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
307
360
| romp-* | rs6000-* \
308
| sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* | sh64-* \
309
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
310
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
311
| tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
361
| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
362
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
363
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
365
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
366
| tahoe-* | thumb-* \
367
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
312
369
| v850-* | v850e-* | vax-* \
314
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
371
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
372
| xstormy16-* | xtensa*-* \
376
# Recognize the basic CPU types without company name, with glob match.
378
basic_machine=$basic_machine-unknown
319
380
# Recognize the various machine names and aliases which stand
320
381
# for a CPU type and a company and sometimes even an OS.
722
833
basic_machine=i860-intel
837
basic_machine=hppa-unknown
841
basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
726
845
basic_machine=sparc-tti
729
848
basic_machine=m68k-tti
732
851
basic_machine=ns32k-pc532
854
basic_machine=i386-pc
857
basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
734
859
pentium | p5 | k5 | k6 | nexgen | viac3)
735
860
basic_machine=i586-pc
737
pentiumpro | p6 | 6x86 | athlon)
738
basic_machine=i686-pc
740
pentiumii | pentium2)
741
basic_machine=i686-pc
862
pentiumpro | p6 | 6x86 | athlon | athlon_*)
863
basic_machine=i686-pc
865
pentiumii | pentium2 | pentiumiii | pentium3)
866
basic_machine=i686-pc
869
basic_machine=i786-pc
743
871
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
744
872
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
746
874
pentiumpro-* | p6-* | 6x86-* | athlon-*)
747
875
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
749
pentiumii-* | pentium2-*)
877
pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
750
878
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
881
basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
753
884
basic_machine=pn-gould
755
886
power) basic_machine=power-ibm
757
888
ppc) basic_machine=powerpc-unknown
759
890
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
761
892
ppcle | powerpclittle | ppc-le | powerpc-little)
762
893
basic_machine=powerpcle-unknown
764
895
ppcle-* | powerpclittle-*)
765
896
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
767
898
ppc64) basic_machine=powerpc64-unknown
769
900
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
771
902
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
772
903
basic_machine=powerpc64le-unknown
774
905
ppc64le-* | powerpc64little-*)
775
906
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1080
1243
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1081
1244
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1082
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1083
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1245
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1246
| -openbsd* | -solidbsd* \
1247
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1248
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1084
1249
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1085
1250
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1086
1251
| -chorusos* | -chorusrdb* \
1087
1252
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1088
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1089
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1253
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1254
| -uxpv* | -beos* | -mpeix* | -udk* \
1255
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1090
1256
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1091
1257
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1092
1258
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1093
| -morphos* | -superux* | -rtmk* | -rtmk-nova*)
1259
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1260
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1261
| -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1094
1262
# Remember, each alternative MUST END IN *, to match a version number.