2
2
# Configuration validation subroutine script.
3
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5
# Free Software Foundation, Inc.
4
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
9
8
# This file is (in principle) common to ALL GNU software.
10
9
# The presence of a machine in this file suggests that SOME GNU software
23
22
# You should have received a copy of the GNU General Public License
24
23
# along with this program; if not, write to the Free Software
25
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
24
# Foundation, Inc., 59 Temple Place - Suite 330,
25
# Boston, MA 02111-1307, USA.
28
27
# As a special exception to the GNU General Public License, if you
29
28
# distribute this file as part of a program that contains a
30
29
# configuration script generated by Autoconf, you may include it under
31
30
# the same distribution terms that you use for the rest of that program.
34
32
# Please send patches to <config-patches@gnu.org>. Submit a context
35
33
# diff and a properly formatted ChangeLog entry.
73
71
GNU config.sub ($timestamp)
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.
73
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
74
Free Software Foundation, Inc.
78
76
This is free software; see the source for copying conditions. There is NO
79
77
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
85
83
while test $# -gt 0 ; do
87
85
--time-stamp | --time* | -t )
88
echo "$timestamp" ; exit ;;
86
echo "$timestamp" ; exit 0 ;;
90
echo "$version" ; exit ;;
88
echo "$version" ; exit 0 ;;
91
89
--help | --h* | -h )
92
echo "$usage"; exit ;;
90
echo "$usage"; exit 0 ;;
93
91
-- ) # Stop option processing
95
93
- ) # Use stdin as input.
120
118
# Here we must recognize all the valid KERNEL-OS combinations.
121
119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
122
120
case $maybe_os in
123
nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124
uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125
storm-chaos* | os2-emx* | rtmk-nova*)
121
nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
127
123
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
148
144
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149
145
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150
146
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151
-apple | -axis | -knuth | -cray)
193
185
# Don't forget version if it is 3.2v4 or newer.
194
186
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
197
# Don't forget version if it is 3.2v4 or newer.
198
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202
190
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
241
229
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
242
230
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
244
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
231
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
246
232
| c4x | clipper \
247
233
| d10v | d30v | dlx | dsp16xx \
248
| fido | fr30 | frv \
249
235
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
250
236
| i370 | i860 | i960 | ia64 \
252
| m32c | m32r | m32rle | m68000 | m68k | m88k \
253
| maxq | mb | microblaze | mcore | mep \
238
| m32r | m68000 | m68k | m88k | mcore \
254
239
| mips | mipsbe | mipseb | mipsel | mipsle \
256
241
| mips64 | mips64el \
259
244
| mips64vr4100 | mips64vr4100el \
260
245
| mips64vr4300 | mips64vr4300el \
261
246
| mips64vr5000 | mips64vr5000el \
262
| mips64vr5900 | mips64vr5900el \
263
247
| mipsisa32 | mipsisa32el \
264
248
| mipsisa32r2 | mipsisa32r2el \
265
249
| mipsisa64 | mipsisa64el \
266
| mipsisa64r2 | mipsisa64r2el \
267
250
| mipsisa64sb1 | mipsisa64sb1el \
268
251
| mipsisa64sr71k | mipsisa64sr71kel \
269
252
| mipstx39 | mipstx39el \
270
253
| mn10200 | mn10300 \
274
255
| ns16k | ns32k \
276
257
| pdp10 | pdp11 | pj | pjl \
277
258
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
280
| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
261
| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
281
262
| sh64 | sh64le \
282
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
283
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
263
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
285
265
| tahoe | thumb | tic4x | tic80 | tron \
288
| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
268
| x86 | xscale | xstormy16 | xtensa \
290
270
basic_machine=$basic_machine-unknown
318
295
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
319
296
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
320
297
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
322
| bfin-* | bs2000-* \
323
300
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
324
| clipper-* | craynv-* | cydra-* \
301
| clipper-* | cydra-* \
325
302
| d10v-* | d30v-* | dlx-* \
327
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
304
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
328
305
| h8300-* | h8500-* \
329
306
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
330
307
| i*86-* | i860-* | i960-* | ia64-* \
331
| ip2k-* | iq2000-* \
332
| m32c-* | m32r-* | m32rle-* \
333
310
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
334
| m88110-* | m88k-* | maxq-* | mcore-* \
311
| m88110-* | m88k-* | mcore-* \
335
312
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
337
314
| mips64-* | mips64el-* \
340
317
| mips64vr4100-* | mips64vr4100el-* \
341
318
| mips64vr4300-* | mips64vr4300el-* \
342
319
| mips64vr5000-* | mips64vr5000el-* \
343
| mips64vr5900-* | mips64vr5900el-* \
344
320
| mipsisa32-* | mipsisa32el-* \
345
321
| mipsisa32r2-* | mipsisa32r2el-* \
346
322
| mipsisa64-* | mipsisa64el-* \
347
| mipsisa64r2-* | mipsisa64r2el-* \
348
323
| mipsisa64sb1-* | mipsisa64sb1el-* \
349
324
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
350
325
| mipstx39-* | mipstx39el-* \
355
| none-* | np1-* | ns16k-* | ns32k-* \
327
| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
357
329
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
358
330
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
360
332
| romp-* | rs6000-* \
361
| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
334
| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
362
335
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
363
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
365
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
336
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
337
| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
366
338
| tahoe-* | thumb-* \
367
339
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
369
341
| v850-* | v850e-* | vax-* \
371
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
372
| xstormy16-* | xtensa*-* \
343
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
376
# Recognize the basic CPU types without company name, with glob match.
378
basic_machine=$basic_machine-unknown
380
348
# Recognize the various machine names and aliases which stand
381
349
# for a CPU type and a company and sometimes even an OS.
483
437
basic_machine=j90-cray
487
basic_machine=craynv-cray
491
basic_machine=cr16-unknown
495
441
basic_machine=m68k-crds
497
crisv32 | crisv32-* | etraxfs*)
498
basic_machine=crisv32-axis
500
443
cris | cris-* | etrax*)
501
444
basic_machine=cris-axis
504
basic_machine=crx-unknown
508
447
basic_machine=m68k-da30
1167
1046
basic_machine=we32k-att
1169
sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1048
sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
1170
1049
basic_machine=sh-unknown
1172
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1052
basic_machine=sh64-unknown
1054
sparc | sparcv8 | sparcv9 | sparcv9b)
1173
1055
basic_machine=sparc-sun
1243
1125
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1244
1126
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1245
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1246
| -openbsd* | -solidbsd* \
1247
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1248
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1127
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1128
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1249
1129
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1250
1130
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1251
1131
| -chorusos* | -chorusrdb* \
1252
1132
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1253
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1254
| -uxpv* | -beos* | -mpeix* | -udk* \
1133
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1255
1134
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1256
1135
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1257
1136
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1258
1137
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1259
1138
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1260
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1261
| -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1139
| -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
1262
1140
# Remember, each alternative MUST END IN *, to match a version number.
1276
1154
os=`echo $os | sed -e 's|nto|nto-qnx|'`
1278
1156
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1279
| -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1157
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1280
1158
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1283
1161
os=`echo $os | sed -e 's|mac|macos|'`
1289
1164
os=`echo $os | sed -e 's|linux|linux-gnu|'`