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 Free Software Foundation, Inc. |
4 | # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
5 | |
5 | |
6 | timestamp='2005-04-22' |
6 | timestamp='2005-07-08' |
7 | |
7 | |
8 | # This file is (in principle) common to ALL GNU software. |
8 | # This file is (in principle) common to ALL GNU software. |
9 | # The presence of a machine in this file suggests that SOME GNU software |
9 | # The presence of a machine in this file suggests that SOME GNU software |
10 | # can handle that machine. It does not imply ALL GNU software can. |
10 | # can handle that machine. It does not imply ALL GNU software can. |
11 | # |
11 | # |
… | |
… | |
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
20 | # GNU General Public License for more details. |
20 | # GNU General Public License for more details. |
21 | # |
21 | # |
22 | # You should have received a copy of the GNU General Public License |
22 | # You should have received a copy of the GNU General Public License |
23 | # along with this program; if not, write to the Free Software |
23 | # along with this program; if not, write to the Free Software |
24 | # Foundation, Inc., 59 Temple Place - Suite 330, |
24 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
25 | # Boston, MA 02111-1307, USA. |
25 | # 02110-1301, USA. |
26 | |
26 | # |
27 | # As a special exception to the GNU General Public License, if you |
27 | # As a special exception to the GNU General Public License, if you |
28 | # distribute this file as part of a program that contains a |
28 | # distribute this file as part of a program that contains a |
29 | # configuration script generated by Autoconf, you may include it under |
29 | # configuration script generated by Autoconf, you may include it under |
30 | # the same distribution terms that you use for the rest of that program. |
30 | # the same distribution terms that you use for the rest of that program. |
|
|
31 | |
31 | |
32 | |
32 | # Please send patches to <config-patches@gnu.org>. Submit a context |
33 | # Please send patches to <config-patches@gnu.org>. Submit a context |
33 | # diff and a properly formatted ChangeLog entry. |
34 | # diff and a properly formatted ChangeLog entry. |
34 | # |
35 | # |
35 | # Configuration subroutine to validate and canonicalize a configuration type. |
36 | # Configuration subroutine to validate and canonicalize a configuration type. |
… | |
… | |
81 | |
82 | |
82 | # Parse command line |
83 | # Parse command line |
83 | while test $# -gt 0 ; do |
84 | while test $# -gt 0 ; do |
84 | case $1 in |
85 | case $1 in |
85 | --time-stamp | --time* | -t ) |
86 | --time-stamp | --time* | -t ) |
86 | echo "$timestamp" ; exit 0 ;; |
87 | echo "$timestamp" ; exit ;; |
87 | --version | -v ) |
88 | --version | -v ) |
88 | echo "$version" ; exit 0 ;; |
89 | echo "$version" ; exit ;; |
89 | --help | --h* | -h ) |
90 | --help | --h* | -h ) |
90 | echo "$usage"; exit 0 ;; |
91 | echo "$usage"; exit ;; |
91 | -- ) # Stop option processing |
92 | -- ) # Stop option processing |
92 | shift; break ;; |
93 | shift; break ;; |
93 | - ) # Use stdin as input. |
94 | - ) # Use stdin as input. |
94 | break ;; |
95 | break ;; |
95 | -* ) |
96 | -* ) |
… | |
… | |
97 | exit 1 ;; |
98 | exit 1 ;; |
98 | |
99 | |
99 | *local*) |
100 | *local*) |
100 | # First pass through any local machine types. |
101 | # First pass through any local machine types. |
101 | echo $1 |
102 | echo $1 |
102 | exit 0;; |
103 | exit ;; |
103 | |
104 | |
104 | * ) |
105 | * ) |
105 | break ;; |
106 | break ;; |
106 | esac |
107 | esac |
107 | done |
108 | done |
… | |
… | |
245 | | mips64vr | mips64vrel \ |
246 | | mips64vr | mips64vrel \ |
246 | | mips64orion | mips64orionel \ |
247 | | mips64orion | mips64orionel \ |
247 | | mips64vr4100 | mips64vr4100el \ |
248 | | mips64vr4100 | mips64vr4100el \ |
248 | | mips64vr4300 | mips64vr4300el \ |
249 | | mips64vr4300 | mips64vr4300el \ |
249 | | mips64vr5000 | mips64vr5000el \ |
250 | | mips64vr5000 | mips64vr5000el \ |
|
|
251 | | mips64vr5900 | mips64vr5900el \ |
250 | | mipsisa32 | mipsisa32el \ |
252 | | mipsisa32 | mipsisa32el \ |
251 | | mipsisa32r2 | mipsisa32r2el \ |
253 | | mipsisa32r2 | mipsisa32r2el \ |
252 | | mipsisa64 | mipsisa64el \ |
254 | | mipsisa64 | mipsisa64el \ |
253 | | mipsisa64r2 | mipsisa64r2el \ |
255 | | mipsisa64r2 | mipsisa64r2el \ |
254 | | mipsisa64sb1 | mipsisa64sb1el \ |
256 | | mipsisa64sb1 | mipsisa64sb1el \ |
255 | | mipsisa64sr71k | mipsisa64sr71kel \ |
257 | | mipsisa64sr71k | mipsisa64sr71kel \ |
256 | | mipstx39 | mipstx39el \ |
258 | | mipstx39 | mipstx39el \ |
257 | | mn10200 | mn10300 \ |
259 | | mn10200 | mn10300 \ |
|
|
260 | | ms1 \ |
258 | | msp430 \ |
261 | | msp430 \ |
259 | | ns16k | ns32k \ |
262 | | ns16k | ns32k \ |
260 | | openrisc | or32 \ |
263 | | or32 \ |
261 | | pdp10 | pdp11 | pj | pjl \ |
264 | | pdp10 | pdp11 | pj | pjl \ |
262 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
265 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
263 | | pyramid \ |
266 | | pyramid \ |
264 | | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
267 | | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
265 | | sh64 | sh64le \ |
268 | | sh64 | sh64le \ |
266 | | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ |
269 | | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ |
267 | | sparcv8 | sparcv9 | sparcv9b \ |
270 | | sparcv8 | sparcv9 | sparcv9b \ |
268 | | strongarm \ |
271 | | strongarm \ |
269 | | tahoe | thumb | tic4x | tic80 | tron \ |
272 | | tahoe | thumb | tic4x | tic80 | tron \ |
270 | | v850 | v850e \ |
273 | | v850 | v850e \ |
271 | | we32k \ |
274 | | we32k \ |
272 | | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ |
275 | | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ |
273 | | z8k) |
276 | | z8k) |
|
|
277 | basic_machine=$basic_machine-unknown |
|
|
278 | ;; |
|
|
279 | m32c) |
274 | basic_machine=$basic_machine-unknown |
280 | basic_machine=$basic_machine-unknown |
275 | ;; |
281 | ;; |
276 | m6811 | m68hc11 | m6812 | m68hc12) |
282 | m6811 | m68hc11 | m6812 | m68hc12) |
277 | # Motorola 68HC11/12. |
283 | # Motorola 68HC11/12. |
278 | basic_machine=$basic_machine-unknown |
284 | basic_machine=$basic_machine-unknown |
… | |
… | |
319 | | mips64vr-* | mips64vrel-* \ |
325 | | mips64vr-* | mips64vrel-* \ |
320 | | mips64orion-* | mips64orionel-* \ |
326 | | mips64orion-* | mips64orionel-* \ |
321 | | mips64vr4100-* | mips64vr4100el-* \ |
327 | | mips64vr4100-* | mips64vr4100el-* \ |
322 | | mips64vr4300-* | mips64vr4300el-* \ |
328 | | mips64vr4300-* | mips64vr4300el-* \ |
323 | | mips64vr5000-* | mips64vr5000el-* \ |
329 | | mips64vr5000-* | mips64vr5000el-* \ |
|
|
330 | | mips64vr5900-* | mips64vr5900el-* \ |
324 | | mipsisa32-* | mipsisa32el-* \ |
331 | | mipsisa32-* | mipsisa32el-* \ |
325 | | mipsisa32r2-* | mipsisa32r2el-* \ |
332 | | mipsisa32r2-* | mipsisa32r2el-* \ |
326 | | mipsisa64-* | mipsisa64el-* \ |
333 | | mipsisa64-* | mipsisa64el-* \ |
327 | | mipsisa64r2-* | mipsisa64r2el-* \ |
334 | | mipsisa64r2-* | mipsisa64r2el-* \ |
328 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
335 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
329 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
336 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
330 | | mipstx39-* | mipstx39el-* \ |
337 | | mipstx39-* | mipstx39el-* \ |
331 | | mmix-* \ |
338 | | mmix-* \ |
|
|
339 | | ms1-* \ |
332 | | msp430-* \ |
340 | | msp430-* \ |
333 | | none-* | np1-* | ns16k-* | ns32k-* \ |
341 | | none-* | np1-* | ns16k-* | ns32k-* \ |
334 | | orion-* \ |
342 | | orion-* \ |
335 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
343 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
336 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
344 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
337 | | pyramid-* \ |
345 | | pyramid-* \ |
338 | | romp-* | rs6000-* \ |
346 | | romp-* | rs6000-* \ |
339 | | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
347 | | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
340 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
348 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
341 | | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ |
349 | | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ |
342 | | sparclite-* \ |
350 | | sparclite-* \ |
343 | | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
351 | | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
344 | | tahoe-* | thumb-* \ |
352 | | tahoe-* | thumb-* \ |
… | |
… | |
349 | | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ |
357 | | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ |
350 | | xstormy16-* | xtensa-* \ |
358 | | xstormy16-* | xtensa-* \ |
351 | | ymp-* \ |
359 | | ymp-* \ |
352 | | z8k-*) |
360 | | z8k-*) |
353 | ;; |
361 | ;; |
|
|
362 | m32c-*) |
|
|
363 | ;; |
354 | # Recognize the various machine names and aliases which stand |
364 | # Recognize the various machine names and aliases which stand |
355 | # for a CPU type and a company and sometimes even an OS. |
365 | # for a CPU type and a company and sometimes even an OS. |
356 | 386bsd) |
366 | 386bsd) |
357 | basic_machine=i386-unknown |
367 | basic_machine=i386-unknown |
358 | os=-bsd |
368 | os=-bsd |
… | |
… | |
759 | ;; |
769 | ;; |
760 | op50n-* | op60c-*) |
770 | op50n-* | op60c-*) |
761 | basic_machine=hppa1.1-oki |
771 | basic_machine=hppa1.1-oki |
762 | os=-proelf |
772 | os=-proelf |
763 | ;; |
773 | ;; |
764 | or32 | or32-*) |
774 | openrisc | openrisc-*) |
765 | basic_machine=or32-unknown |
775 | basic_machine=or32-unknown |
766 | os=-coff |
|
|
767 | ;; |
776 | ;; |
768 | os400) |
777 | os400) |
769 | basic_machine=powerpc-ibm |
778 | basic_machine=powerpc-ibm |
770 | os=-os400 |
779 | os=-os400 |
771 | ;; |
780 | ;; |
… | |
… | |
1087 | basic_machine=pdp11-dec |
1096 | basic_machine=pdp11-dec |
1088 | ;; |
1097 | ;; |
1089 | we32k) |
1098 | we32k) |
1090 | basic_machine=we32k-att |
1099 | basic_machine=we32k-att |
1091 | ;; |
1100 | ;; |
1092 | sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) |
1101 | sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) |
1093 | basic_machine=sh-unknown |
1102 | basic_machine=sh-unknown |
1094 | ;; |
|
|
1095 | sh64) |
|
|
1096 | basic_machine=sh64-unknown |
|
|
1097 | ;; |
1103 | ;; |
1098 | sparc | sparcv8 | sparcv9 | sparcv9b) |
1104 | sparc | sparcv8 | sparcv9 | sparcv9b) |
1099 | basic_machine=sparc-sun |
1105 | basic_machine=sparc-sun |
1100 | ;; |
1106 | ;; |
1101 | cydra) |
1107 | cydra) |
… | |
… | |
1179 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1185 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1180 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1186 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1181 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1187 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1182 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1188 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1183 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1189 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1184 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) |
1190 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
|
|
1191 | | -skyos* | -haiku*) |
1185 | # Remember, each alternative MUST END IN *, to match a version number. |
1192 | # Remember, each alternative MUST END IN *, to match a version number. |
1186 | ;; |
1193 | ;; |
1187 | -qnx*) |
1194 | -qnx*) |
1188 | case $basic_machine in |
1195 | case $basic_machine in |
1189 | x86-* | i*86-*) |
1196 | x86-* | i*86-*) |
… | |
… | |
1197 | ;; |
1204 | ;; |
1198 | -nto*) |
1205 | -nto*) |
1199 | os=`echo $os | sed -e 's|nto|nto-qnx|'` |
1206 | os=`echo $os | sed -e 's|nto|nto-qnx|'` |
1200 | ;; |
1207 | ;; |
1201 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
1208 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
1202 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
1209 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ |
1203 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1210 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1204 | ;; |
1211 | ;; |
1205 | -mac*) |
1212 | -mac*) |
1206 | os=`echo $os | sed -e 's|mac|macos|'` |
1213 | os=`echo $os | sed -e 's|mac|macos|'` |
1207 | ;; |
1214 | ;; |
… | |
… | |
1385 | sparc-* | *-sun) |
1392 | sparc-* | *-sun) |
1386 | os=-sunos4.1.1 |
1393 | os=-sunos4.1.1 |
1387 | ;; |
1394 | ;; |
1388 | *-be) |
1395 | *-be) |
1389 | os=-beos |
1396 | os=-beos |
|
|
1397 | ;; |
|
|
1398 | *-haiku) |
|
|
1399 | os=-haiku |
1390 | ;; |
1400 | ;; |
1391 | *-ibm) |
1401 | *-ibm) |
1392 | os=-aix |
1402 | os=-aix |
1393 | ;; |
1403 | ;; |
1394 | *-knuth) |
1404 | *-knuth) |
… | |
… | |
1557 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1567 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1558 | ;; |
1568 | ;; |
1559 | esac |
1569 | esac |
1560 | |
1570 | |
1561 | echo $basic_machine$os |
1571 | echo $basic_machine$os |
1562 | exit 0 |
1572 | exit |
1563 | |
1573 | |
1564 | # Local variables: |
1574 | # Local variables: |
1565 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
1575 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
1566 | # time-stamp-start: "timestamp='" |
1576 | # time-stamp-start: "timestamp='" |
1567 | # time-stamp-format: "%:y-%02m-%02d" |
1577 | # time-stamp-format: "%:y-%02m-%02d" |