comparison config.sub @ 398:59c7938af2bd

merge of '1250b8af44b62d8f4fe0f8d9fc7e7a1cc34e7e1c' and '7f8670ac3bb975f40967f3979d09d2199b7e90c8'
author Matt Johnston <matt@ucc.asn.au>
date Sat, 03 Feb 2007 08:20:30 +0000
parents 5587d151d5a2
children 239ede24d54f
comparison
equal deleted inserted replaced
396:e7c1a77d2921 398:59c7938af2bd
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 Free Software Foundation, Inc. 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
5 5 # Inc.
6 timestamp='2003-05-09' 6
7 timestamp='2007-01-18'
7 8
8 # This file is (in principle) common to ALL GNU software. 9 # This file is (in principle) common to ALL GNU software.
9 # 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
10 # 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.
11 # 12 #
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details. 21 # GNU General Public License for more details.
21 # 22 #
22 # 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
23 # along with this program; if not, write to the Free Software 24 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 59 Temple Place - Suite 330, 25 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # Boston, MA 02111-1307, USA. 26 # 02110-1301, USA.
26 27 #
27 # As a special exception to the GNU General Public License, if you 28 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a 29 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under 30 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program. 31 # the same distribution terms that you use for the rest of that program.
32
31 33
32 # Please send patches to <[email protected]>. Submit a context 34 # Please send patches to <[email protected]>. Submit a context
33 # diff and a properly formatted ChangeLog entry. 35 # diff and a properly formatted ChangeLog entry.
34 # 36 #
35 # Configuration subroutine to validate and canonicalize a configuration type. 37 # Configuration subroutine to validate and canonicalize a configuration type.
68 Report bugs and patches to <[email protected]>." 70 Report bugs and patches to <[email protected]>."
69 71
70 version="\ 72 version="\
71 GNU config.sub ($timestamp) 73 GNU config.sub ($timestamp)
72 74
73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 75 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
74 Free Software Foundation, Inc. 76 Free Software Foundation, Inc.
75 77
76 This is free software; see the source for copying conditions. There is NO 78 This is free software; see the source for copying conditions. There is NO
77 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 79 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
78 80
81 83
82 # Parse command line 84 # Parse command line
83 while test $# -gt 0 ; do 85 while test $# -gt 0 ; do
84 case $1 in 86 case $1 in
85 --time-stamp | --time* | -t ) 87 --time-stamp | --time* | -t )
86 echo "$timestamp" ; exit 0 ;; 88 echo "$timestamp" ; exit ;;
87 --version | -v ) 89 --version | -v )
88 echo "$version" ; exit 0 ;; 90 echo "$version" ; exit ;;
89 --help | --h* | -h ) 91 --help | --h* | -h )
90 echo "$usage"; exit 0 ;; 92 echo "$usage"; exit ;;
91 -- ) # Stop option processing 93 -- ) # Stop option processing
92 shift; break ;; 94 shift; break ;;
93 - ) # Use stdin as input. 95 - ) # Use stdin as input.
94 break ;; 96 break ;;
95 -* ) 97 -* )
97 exit 1 ;; 99 exit 1 ;;
98 100
99 *local*) 101 *local*)
100 # First pass through any local machine types. 102 # First pass through any local machine types.
101 echo $1 103 echo $1
102 exit 0;; 104 exit ;;
103 105
104 * ) 106 * )
105 break ;; 107 break ;;
106 esac 108 esac
107 done 109 done
116 118
117 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 119 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
118 # Here we must recognize all the valid KERNEL-OS combinations. 120 # Here we must recognize all the valid KERNEL-OS combinations.
119 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 121 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120 case $maybe_os in 122 case $maybe_os in
121 nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 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*)
122 os=-$maybe_os 126 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;; 128 ;;
125 *) 129 *)
126 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
142 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 146 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
143 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 147 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
144 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
145 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
146 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
147 -apple | -axis) 151 -apple | -axis | -knuth | -cray)
148 os= 152 os=
149 basic_machine=$1 153 basic_machine=$1
150 ;; 154 ;;
151 -sim | -cisco | -oki | -wec | -winbond) 155 -sim | -cisco | -oki | -wec | -winbond)
152 os= 156 os=
167 basic_machine=$1 171 basic_machine=$1
168 ;; 172 ;;
169 -hiux*) 173 -hiux*)
170 os=-hiuxwe2 174 os=-hiuxwe2
171 ;; 175 ;;
176 -sco6)
177 os=-sco5v6
178 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179 ;;
172 -sco5) 180 -sco5)
173 os=-sco3.2v5 181 os=-sco3.2v5
174 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
175 ;; 183 ;;
176 -sco4) 184 -sco4)
180 -sco3.2.[4-9]*) 188 -sco3.2.[4-9]*)
181 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 189 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
183 ;; 191 ;;
184 -sco3.2v[4-9]*) 192 -sco3.2v[4-9]*)
193 # Don't forget version if it is 3.2v4 or newer.
194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195 ;;
196 -sco5v6*)
185 # Don't forget version if it is 3.2v4 or newer. 197 # Don't forget version if it is 3.2v4 or newer.
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187 ;; 199 ;;
188 -sco*) 200 -sco*)
189 os=-sco3.2v2 201 os=-sco3.2v2
226 # Some are omitted here because they have special meanings below. 238 # Some are omitted here because they have special meanings below.
227 1750a | 580 \ 239 1750a | 580 \
228 | a29k \ 240 | a29k \
229 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 241 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 242 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
231 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 243 | am33_2.0 \
232 | clipper \ 244 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
245 | bfin \
246 | c4x | clipper \
233 | d10v | d30v | dlx | dsp16xx \ 247 | d10v | d30v | dlx | dsp16xx \
234 | fr30 | frv \ 248 | fido | fr30 | frv \
235 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 249 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
236 | i370 | i860 | i960 | ia64 \ 250 | i370 | i860 | i960 | ia64 \
237 | ip2k \ 251 | ip2k | iq2000 \
238 | m32r | m68000 | m68k | m88k | mcore \ 252 | m32c | m32r | m32rle | m68000 | m68k | m88k \
253 | maxq | mb | microblaze | mcore | mep \
239 | mips | mipsbe | mipseb | mipsel | mipsle \ 254 | mips | mipsbe | mipseb | mipsel | mipsle \
240 | mips16 \ 255 | mips16 \
241 | mips64 | mips64el \ 256 | mips64 | mips64el \
242 | mips64vr | mips64vrel \ 257 | mips64vr | mips64vrel \
243 | mips64orion | mips64orionel \ 258 | mips64orion | mips64orionel \
244 | mips64vr4100 | mips64vr4100el \ 259 | mips64vr4100 | mips64vr4100el \
245 | mips64vr4300 | mips64vr4300el \ 260 | mips64vr4300 | mips64vr4300el \
246 | mips64vr5000 | mips64vr5000el \ 261 | mips64vr5000 | mips64vr5000el \
262 | mips64vr5900 | mips64vr5900el \
247 | mipsisa32 | mipsisa32el \ 263 | mipsisa32 | mipsisa32el \
248 | mipsisa32r2 | mipsisa32r2el \ 264 | mipsisa32r2 | mipsisa32r2el \
249 | mipsisa64 | mipsisa64el \ 265 | mipsisa64 | mipsisa64el \
266 | mipsisa64r2 | mipsisa64r2el \
250 | mipsisa64sb1 | mipsisa64sb1el \ 267 | mipsisa64sb1 | mipsisa64sb1el \
251 | mipsisa64sr71k | mipsisa64sr71kel \ 268 | mipsisa64sr71k | mipsisa64sr71kel \
252 | mipstx39 | mipstx39el \ 269 | mipstx39 | mipstx39el \
253 | mn10200 | mn10300 \ 270 | mn10200 | mn10300 \
271 | mt \
254 | msp430 \ 272 | msp430 \
273 | nios | nios2 \
255 | ns16k | ns32k \ 274 | ns16k | ns32k \
256 | openrisc | or32 \ 275 | or32 \
257 | pdp10 | pdp11 | pj | pjl \ 276 | pdp10 | pdp11 | pj | pjl \
258 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 277 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
259 | pyramid \ 278 | pyramid \
260 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 279 | score \
280 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
261 | sh64 | sh64le \ 281 | sh64 | sh64le \
262 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ 282 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
263 | strongarm \ 283 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
264 | tahoe | thumb | tic80 | tron \ 284 | spu | strongarm \
285 | tahoe | thumb | tic4x | tic80 | tron \
265 | v850 | v850e \ 286 | v850 | v850e \
266 | we32k \ 287 | we32k \
267 | x86 | xscale | xstormy16 | xtensa \ 288 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
268 | z8k) 289 | z8k)
269 basic_machine=$basic_machine-unknown 290 basic_machine=$basic_machine-unknown
270 ;; 291 ;;
271 m6811 | m68hc11 | m6812 | m68hc12) 292 m6811 | m68hc11 | m6812 | m68hc12)
272 # Motorola 68HC11/12. 293 # Motorola 68HC11/12.
273 basic_machine=$basic_machine-unknown 294 basic_machine=$basic_machine-unknown
274 os=-none 295 os=-none
275 ;; 296 ;;
276 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 297 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
298 ;;
299 ms1)
300 basic_machine=mt-unknown
277 ;; 301 ;;
278 302
279 # We use `pc' rather than `unknown' 303 # We use `pc' rather than `unknown'
280 # because (1) that's what they normally are, and 304 # because (1) that's what they normally are, and
281 # (2) the word "unknown" tends to confuse beginning users. 305 # (2) the word "unknown" tends to confuse beginning users.
292 | a29k-* \ 316 | a29k-* \
293 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 317 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
294 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 318 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
295 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 319 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
296 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 320 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
297 | avr-* \ 321 | avr-* | avr32-* \
298 | bs2000-* \ 322 | bfin-* | bs2000-* \
299 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 323 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
300 | clipper-* | cydra-* \ 324 | clipper-* | craynv-* | cydra-* \
301 | d10v-* | d30v-* | dlx-* \ 325 | d10v-* | d30v-* | dlx-* \
302 | elxsi-* \ 326 | elxsi-* \
303 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 327 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
304 | h8300-* | h8500-* \ 328 | h8300-* | h8500-* \
305 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 329 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
306 | i*86-* | i860-* | i960-* | ia64-* \ 330 | i*86-* | i860-* | i960-* | ia64-* \
307 | ip2k-* \ 331 | ip2k-* | iq2000-* \
308 | m32r-* \ 332 | m32c-* | m32r-* | m32rle-* \
309 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 333 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
310 | m88110-* | m88k-* | mcore-* \ 334 | m88110-* | m88k-* | maxq-* | mcore-* \
311 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 335 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
312 | mips16-* \ 336 | mips16-* \
313 | mips64-* | mips64el-* \ 337 | mips64-* | mips64el-* \
314 | mips64vr-* | mips64vrel-* \ 338 | mips64vr-* | mips64vrel-* \
315 | mips64orion-* | mips64orionel-* \ 339 | mips64orion-* | mips64orionel-* \
316 | mips64vr4100-* | mips64vr4100el-* \ 340 | mips64vr4100-* | mips64vr4100el-* \
317 | mips64vr4300-* | mips64vr4300el-* \ 341 | mips64vr4300-* | mips64vr4300el-* \
318 | mips64vr5000-* | mips64vr5000el-* \ 342 | mips64vr5000-* | mips64vr5000el-* \
343 | mips64vr5900-* | mips64vr5900el-* \
319 | mipsisa32-* | mipsisa32el-* \ 344 | mipsisa32-* | mipsisa32el-* \
320 | mipsisa32r2-* | mipsisa32r2el-* \ 345 | mipsisa32r2-* | mipsisa32r2el-* \
321 | mipsisa64-* | mipsisa64el-* \ 346 | mipsisa64-* | mipsisa64el-* \
347 | mipsisa64r2-* | mipsisa64r2el-* \
322 | mipsisa64sb1-* | mipsisa64sb1el-* \ 348 | mipsisa64sb1-* | mipsisa64sb1el-* \
323 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 349 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
324 | mipstx39-* | mipstx39el-* \ 350 | mipstx39-* | mipstx39el-* \
351 | mmix-* \
352 | mt-* \
325 | msp430-* \ 353 | msp430-* \
326 | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ 354 | nios-* | nios2-* \
355 | none-* | np1-* | ns16k-* | ns32k-* \
327 | orion-* \ 356 | orion-* \
328 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 357 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
329 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 358 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
330 | pyramid-* \ 359 | pyramid-* \
331 | romp-* | rs6000-* \ 360 | romp-* | rs6000-* \
332 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 361 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
333 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 362 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
334 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 363 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
335 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 364 | sparclite-* \
365 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
336 | tahoe-* | thumb-* \ 366 | tahoe-* | thumb-* \
337 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 367 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
338 | tron-* \ 368 | tron-* \
339 | v850-* | v850e-* | vax-* \ 369 | v850-* | v850e-* | vax-* \
340 | we32k-* \ 370 | we32k-* \
341 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ 371 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
342 | xtensa-* \ 372 | xstormy16-* | xtensa-* \
343 | ymp-* \ 373 | ymp-* \
344 | z8k-*) 374 | z8k-*)
345 ;; 375 ;;
346 # Recognize the various machine names and aliases which stand 376 # Recognize the various machine names and aliases which stand
347 # for a CPU type and a company and sometimes even an OS. 377 # for a CPU type and a company and sometimes even an OS.
357 ;; 387 ;;
358 a29khif) 388 a29khif)
359 basic_machine=a29k-amd 389 basic_machine=a29k-amd
360 os=-udi 390 os=-udi
361 ;; 391 ;;
392 abacus)
393 basic_machine=abacus-unknown
394 ;;
362 adobe68k) 395 adobe68k)
363 basic_machine=m68010-adobe 396 basic_machine=m68010-adobe
364 os=-scout 397 os=-scout
365 ;; 398 ;;
366 alliant | fx80) 399 alliant | fx80)
374 os=-bsd 407 os=-bsd
375 ;; 408 ;;
376 amd64) 409 amd64)
377 basic_machine=x86_64-pc 410 basic_machine=x86_64-pc
378 ;; 411 ;;
412 amd64-*)
413 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
414 ;;
379 amdahl) 415 amdahl)
380 basic_machine=580-amdahl 416 basic_machine=580-amdahl
381 os=-sysv 417 os=-sysv
382 ;; 418 ;;
383 amiga | amiga-*) 419 amiga | amiga-*)
433 ;; 469 ;;
434 cray | j90) 470 cray | j90)
435 basic_machine=j90-cray 471 basic_machine=j90-cray
436 os=-unicos 472 os=-unicos
437 ;; 473 ;;
474 craynv)
475 basic_machine=craynv-cray
476 os=-unicosmp
477 ;;
478 cr16c)
479 basic_machine=cr16c-unknown
480 os=-elf
481 ;;
438 crds | unos) 482 crds | unos)
439 basic_machine=m68k-crds 483 basic_machine=m68k-crds
440 ;; 484 ;;
485 crisv32 | crisv32-* | etraxfs*)
486 basic_machine=crisv32-axis
487 ;;
441 cris | cris-* | etrax*) 488 cris | cris-* | etrax*)
442 basic_machine=cris-axis 489 basic_machine=cris-axis
490 ;;
491 crx)
492 basic_machine=crx-unknown
493 os=-elf
443 ;; 494 ;;
444 da30 | da30-*) 495 da30 | da30-*)
445 basic_machine=m68k-da30 496 basic_machine=m68k-da30
446 ;; 497 ;;
447 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 498 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
460 basic_machine=m68k-motorola 511 basic_machine=m68k-motorola
461 ;; 512 ;;
462 delta88) 513 delta88)
463 basic_machine=m88k-motorola 514 basic_machine=m88k-motorola
464 os=-sysv3 515 os=-sysv3
516 ;;
517 djgpp)
518 basic_machine=i586-pc
519 os=-msdosdjgpp
465 ;; 520 ;;
466 dpx20 | dpx20-*) 521 dpx20 | dpx20-*)
467 basic_machine=rs6000-bull 522 basic_machine=rs6000-bull
468 os=-bosx 523 os=-bosx
469 ;; 524 ;;
639 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 694 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
640 ;; 695 ;;
641 mips3*) 696 mips3*)
642 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 697 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
643 ;; 698 ;;
644 mmix*)
645 basic_machine=mmix-knuth
646 os=-mmixware
647 ;;
648 monitor) 699 monitor)
649 basic_machine=m68k-rom68k 700 basic_machine=m68k-rom68k
650 os=-coff 701 os=-coff
651 ;; 702 ;;
652 morphos) 703 morphos)
654 os=-morphos 705 os=-morphos
655 ;; 706 ;;
656 msdos) 707 msdos)
657 basic_machine=i386-pc 708 basic_machine=i386-pc
658 os=-msdos 709 os=-msdos
710 ;;
711 ms1-*)
712 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
659 ;; 713 ;;
660 mvs) 714 mvs)
661 basic_machine=i370-ibm 715 basic_machine=i370-ibm
662 os=-mvs 716 os=-mvs
663 ;; 717 ;;
723 os=-nonstopux 777 os=-nonstopux
724 ;; 778 ;;
725 np1) 779 np1)
726 basic_machine=np1-gould 780 basic_machine=np1-gould
727 ;; 781 ;;
728 nv1)
729 basic_machine=nv1-cray
730 os=-unicosmp
731 ;;
732 nsr-tandem) 782 nsr-tandem)
733 basic_machine=nsr-tandem 783 basic_machine=nsr-tandem
734 ;; 784 ;;
735 op50n-* | op60c-*) 785 op50n-* | op60c-*)
736 basic_machine=hppa1.1-oki 786 basic_machine=hppa1.1-oki
737 os=-proelf 787 os=-proelf
738 ;; 788 ;;
739 or32 | or32-*) 789 openrisc | openrisc-*)
740 basic_machine=or32-unknown 790 basic_machine=or32-unknown
741 os=-coff 791 ;;
792 os400)
793 basic_machine=powerpc-ibm
794 os=-os400
742 ;; 795 ;;
743 OSE68000 | ose68000) 796 OSE68000 | ose68000)
744 basic_machine=m68000-ericsson 797 basic_machine=m68000-ericsson
745 os=-ose 798 os=-ose
746 ;; 799 ;;
763 basic_machine=m68k-tti 816 basic_machine=m68k-tti
764 ;; 817 ;;
765 pc532 | pc532-*) 818 pc532 | pc532-*)
766 basic_machine=ns32k-pc532 819 basic_machine=ns32k-pc532
767 ;; 820 ;;
821 pc98)
822 basic_machine=i386-pc
823 ;;
824 pc98-*)
825 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
826 ;;
768 pentium | p5 | k5 | k6 | nexgen | viac3) 827 pentium | p5 | k5 | k6 | nexgen | viac3)
769 basic_machine=i586-pc 828 basic_machine=i586-pc
770 ;; 829 ;;
771 pentiumpro | p6 | 6x86 | athlon | athlon_*) 830 pentiumpro | p6 | 6x86 | athlon | athlon_*)
772 basic_machine=i686-pc 831 basic_machine=i686-pc
773 ;; 832 ;;
774 pentiumii | pentium2) 833 pentiumii | pentium2 | pentiumiii | pentium3)
775 basic_machine=i686-pc 834 basic_machine=i686-pc
835 ;;
836 pentium4)
837 basic_machine=i786-pc
776 ;; 838 ;;
777 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 839 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
778 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 840 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
779 ;; 841 ;;
780 pentiumpro-* | p6-* | 6x86-* | athlon-*) 842 pentiumpro-* | p6-* | 6x86-* | athlon-*)
781 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 843 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
782 ;; 844 ;;
783 pentiumii-* | pentium2-*) 845 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
784 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 846 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
847 ;;
848 pentium4-*)
849 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
785 ;; 850 ;;
786 pn) 851 pn)
787 basic_machine=pn-gould 852 basic_machine=pn-gould
788 ;; 853 ;;
789 power) basic_machine=power-ibm 854 power) basic_machine=power-ibm
813 ;; 878 ;;
814 pw32) 879 pw32)
815 basic_machine=i586-unknown 880 basic_machine=i586-unknown
816 os=-pw32 881 os=-pw32
817 ;; 882 ;;
883 rdos)
884 basic_machine=i386-pc
885 os=-rdos
886 ;;
818 rom68k) 887 rom68k)
819 basic_machine=m68k-rom68k 888 basic_machine=m68k-rom68k
820 os=-coff 889 os=-coff
821 ;; 890 ;;
822 rm[46]00) 891 rm[46]00)
839 basic_machine=mipsisa64sb1-unknown 908 basic_machine=mipsisa64sb1-unknown
840 ;; 909 ;;
841 sb1el) 910 sb1el)
842 basic_machine=mipsisa64sb1el-unknown 911 basic_machine=mipsisa64sb1el-unknown
843 ;; 912 ;;
913 sde)
914 basic_machine=mipsisa32-sde
915 os=-elf
916 ;;
917 sei)
918 basic_machine=mips-sei
919 os=-seiux
920 ;;
844 sequent) 921 sequent)
845 basic_machine=i386-sequent 922 basic_machine=i386-sequent
846 ;; 923 ;;
847 sh) 924 sh)
848 basic_machine=sh-hitachi 925 basic_machine=sh-hitachi
849 os=-hms 926 os=-hms
850 ;; 927 ;;
928 sh5el)
929 basic_machine=sh5le-unknown
930 ;;
931 sh64)
932 basic_machine=sh64-unknown
933 ;;
851 sparclite-wrs | simso-wrs) 934 sparclite-wrs | simso-wrs)
852 basic_machine=sparclite-wrs 935 basic_machine=sparclite-wrs
853 os=-vxworks 936 os=-vxworks
854 ;; 937 ;;
855 sps7) 938 sps7)
920 ;; 1003 ;;
921 t90) 1004 t90)
922 basic_machine=t90-cray 1005 basic_machine=t90-cray
923 os=-unicos 1006 os=-unicos
924 ;; 1007 ;;
925 tic4x | c4x*)
926 basic_machine=tic4x-unknown
927 os=-coff
928 ;;
929 tic54x | c54x*) 1008 tic54x | c54x*)
930 basic_machine=tic54x-unknown 1009 basic_machine=tic54x-unknown
931 os=-coff 1010 os=-coff
932 ;; 1011 ;;
933 tic55x | c55x*) 1012 tic55x | c55x*)
949 os=-tops20 1028 os=-tops20
950 ;; 1029 ;;
951 tower | tower-32) 1030 tower | tower-32)
952 basic_machine=m68k-ncr 1031 basic_machine=m68k-ncr
953 ;; 1032 ;;
1033 tpf)
1034 basic_machine=s390x-ibm
1035 os=-tpf
1036 ;;
954 udi29k) 1037 udi29k)
955 basic_machine=a29k-amd 1038 basic_machine=a29k-amd
956 os=-udi 1039 os=-udi
957 ;; 1040 ;;
958 ultra3) 1041 ultra3)
991 os=-none 1074 os=-none
992 ;; 1075 ;;
993 w89k-*) 1076 w89k-*)
994 basic_machine=hppa1.1-winbond 1077 basic_machine=hppa1.1-winbond
995 os=-proelf 1078 os=-proelf
1079 ;;
1080 xbox)
1081 basic_machine=i686-pc
1082 os=-mingw32
996 ;; 1083 ;;
997 xps | xps100) 1084 xps | xps100)
998 basic_machine=xps100-honeywell 1085 basic_machine=xps100-honeywell
999 ;; 1086 ;;
1000 ymp) 1087 ymp)
1022 basic_machine=hppa1.1-oki 1109 basic_machine=hppa1.1-oki
1023 ;; 1110 ;;
1024 romp) 1111 romp)
1025 basic_machine=romp-ibm 1112 basic_machine=romp-ibm
1026 ;; 1113 ;;
1114 mmix)
1115 basic_machine=mmix-knuth
1116 ;;
1027 rs6000) 1117 rs6000)
1028 basic_machine=rs6000-ibm 1118 basic_machine=rs6000-ibm
1029 ;; 1119 ;;
1030 vax) 1120 vax)
1031 basic_machine=vax-dec 1121 basic_machine=vax-dec
1038 basic_machine=pdp11-dec 1128 basic_machine=pdp11-dec
1039 ;; 1129 ;;
1040 we32k) 1130 we32k)
1041 basic_machine=we32k-att 1131 basic_machine=we32k-att
1042 ;; 1132 ;;
1043 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 1133 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1044 basic_machine=sh-unknown 1134 basic_machine=sh-unknown
1045 ;; 1135 ;;
1046 sh64) 1136 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1047 basic_machine=sh64-unknown
1048 ;;
1049 sparc | sparcv9 | sparcv9b)
1050 basic_machine=sparc-sun 1137 basic_machine=sparc-sun
1051 ;; 1138 ;;
1052 cydra) 1139 cydra)
1053 basic_machine=cydra-cydrome 1140 basic_machine=cydra-cydrome
1054 ;; 1141 ;;
1117 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1204 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1118 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1205 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1119 | -aos* \ 1206 | -aos* \
1120 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1207 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1121 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1208 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1122 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 1209 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1123 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1210 | -openbsd* | -solidbsd* \
1211 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1212 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1124 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1213 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1125 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1214 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1126 | -chorusos* | -chorusrdb* \ 1215 | -chorusos* | -chorusrdb* \
1127 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1216 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1128 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 1217 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1218 | -uxpv* | -beos* | -mpeix* | -udk* \
1129 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1219 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1130 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1220 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1131 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1221 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1132 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1222 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1133 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1223 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1134 | -powermax* | -dnix*) 1224 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1225 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1135 # Remember, each alternative MUST END IN *, to match a version number. 1226 # Remember, each alternative MUST END IN *, to match a version number.
1136 ;; 1227 ;;
1137 -qnx*) 1228 -qnx*)
1138 case $basic_machine in 1229 case $basic_machine in
1139 x86-* | i*86-*) 1230 x86-* | i*86-*)
1147 ;; 1238 ;;
1148 -nto*) 1239 -nto*)
1149 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1240 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1150 ;; 1241 ;;
1151 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1242 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1152 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 1243 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1153 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1244 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1154 ;; 1245 ;;
1155 -mac*) 1246 -mac*)
1156 os=`echo $os | sed -e 's|mac|macos|'` 1247 os=`echo $os | sed -e 's|mac|macos|'`
1157 ;; 1248 ;;
1249 -linux-dietlibc)
1250 os=-linux-dietlibc
1251 ;;
1158 -linux*) 1252 -linux*)
1159 os=`echo $os | sed -e 's|linux|linux-gnu|'` 1253 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1160 ;; 1254 ;;
1161 -sunos5*) 1255 -sunos5*)
1162 os=`echo $os | sed -e 's|sunos5|solaris2|'` 1256 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1165 os=`echo $os | sed -e 's|sunos6|solaris3|'` 1259 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1166 ;; 1260 ;;
1167 -opened*) 1261 -opened*)
1168 os=-openedition 1262 os=-openedition
1169 ;; 1263 ;;
1264 -os400*)
1265 os=-os400
1266 ;;
1170 -wince*) 1267 -wince*)
1171 os=-wince 1268 os=-wince
1172 ;; 1269 ;;
1173 -osfrose*) 1270 -osfrose*)
1174 os=-osfrose 1271 os=-osfrose
1185 -acis*) 1282 -acis*)
1186 os=-aos 1283 os=-aos
1187 ;; 1284 ;;
1188 -atheos*) 1285 -atheos*)
1189 os=-atheos 1286 os=-atheos
1287 ;;
1288 -syllable*)
1289 os=-syllable
1190 ;; 1290 ;;
1191 -386bsd) 1291 -386bsd)
1192 os=-bsd 1292 os=-bsd
1193 ;; 1293 ;;
1194 -ctix* | -uts*) 1294 -ctix* | -uts*)
1208 os=`echo $os | sed -e 's|sinix|sysv|'` 1308 os=`echo $os | sed -e 's|sinix|sysv|'`
1209 ;; 1309 ;;
1210 -sinix*) 1310 -sinix*)
1211 os=-sysv4 1311 os=-sysv4
1212 ;; 1312 ;;
1313 -tpf*)
1314 os=-tpf
1315 ;;
1213 -triton*) 1316 -triton*)
1214 os=-sysv3 1317 os=-sysv3
1215 ;; 1318 ;;
1216 -oss*) 1319 -oss*)
1217 os=-sysv3 1320 os=-sysv3
1243 -aros*) 1346 -aros*)
1244 os=-aros 1347 os=-aros
1245 ;; 1348 ;;
1246 -kaos*) 1349 -kaos*)
1247 os=-kaos 1350 os=-kaos
1351 ;;
1352 -zvmoe)
1353 os=-zvmoe
1248 ;; 1354 ;;
1249 -none) 1355 -none)
1250 ;; 1356 ;;
1251 *) 1357 *)
1252 # Get rid of the `-' at the beginning of $os. 1358 # Get rid of the `-' at the beginning of $os.
1266 # that MANUFACTURER isn't an operating system. Otherwise, code above 1372 # that MANUFACTURER isn't an operating system. Otherwise, code above
1267 # will signal an error saying that MANUFACTURER isn't an operating 1373 # will signal an error saying that MANUFACTURER isn't an operating
1268 # system, and we'll never get to this point. 1374 # system, and we'll never get to this point.
1269 1375
1270 case $basic_machine in 1376 case $basic_machine in
1377 score-*)
1378 os=-elf
1379 ;;
1380 spu-*)
1381 os=-elf
1382 ;;
1271 *-acorn) 1383 *-acorn)
1272 os=-riscix1.2 1384 os=-riscix1.2
1273 ;; 1385 ;;
1274 arm*-rebel) 1386 arm*-rebel)
1275 os=-linux 1387 os=-linux
1276 ;; 1388 ;;
1277 arm*-semi) 1389 arm*-semi)
1278 os=-aout 1390 os=-aout
1391 ;;
1392 c4x-* | tic4x-*)
1393 os=-coff
1279 ;; 1394 ;;
1280 # This must come before the *-dec entry. 1395 # This must come before the *-dec entry.
1281 pdp10-*) 1396 pdp10-*)
1282 os=-tops20 1397 os=-tops20
1283 ;; 1398 ;;
1300 # os=-sunos4 1415 # os=-sunos4
1301 ;; 1416 ;;
1302 m68*-cisco) 1417 m68*-cisco)
1303 os=-aout 1418 os=-aout
1304 ;; 1419 ;;
1420 mep-*)
1421 os=-elf
1422 ;;
1305 mips*-cisco) 1423 mips*-cisco)
1306 os=-elf 1424 os=-elf
1307 ;; 1425 ;;
1308 mips*-*) 1426 mips*-*)
1309 os=-elf 1427 os=-elf
1318 os=-sunos4.1.1 1436 os=-sunos4.1.1
1319 ;; 1437 ;;
1320 *-be) 1438 *-be)
1321 os=-beos 1439 os=-beos
1322 ;; 1440 ;;
1441 *-haiku)
1442 os=-haiku
1443 ;;
1323 *-ibm) 1444 *-ibm)
1324 os=-aix 1445 os=-aix
1446 ;;
1447 *-knuth)
1448 os=-mmixware
1325 ;; 1449 ;;
1326 *-wec) 1450 *-wec)
1327 os=-proelf 1451 os=-proelf
1328 ;; 1452 ;;
1329 *-winbond) 1453 *-winbond)
1453 vendor=ns 1577 vendor=ns
1454 ;; 1578 ;;
1455 -mvs* | -opened*) 1579 -mvs* | -opened*)
1456 vendor=ibm 1580 vendor=ibm
1457 ;; 1581 ;;
1582 -os400*)
1583 vendor=ibm
1584 ;;
1458 -ptx*) 1585 -ptx*)
1459 vendor=sequent 1586 vendor=sequent
1460 ;; 1587 ;;
1588 -tpf*)
1589 vendor=ibm
1590 ;;
1461 -vxsim* | -vxworks* | -windiss*) 1591 -vxsim* | -vxworks* | -windiss*)
1462 vendor=wrs 1592 vendor=wrs
1463 ;; 1593 ;;
1464 -aux*) 1594 -aux*)
1465 vendor=apple 1595 vendor=apple
1480 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1610 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1481 ;; 1611 ;;
1482 esac 1612 esac
1483 1613
1484 echo $basic_machine$os 1614 echo $basic_machine$os
1485 exit 0 1615 exit
1486 1616
1487 # Local variables: 1617 # Local variables:
1488 # eval: (add-hook 'write-file-hooks 'time-stamp) 1618 # eval: (add-hook 'write-file-hooks 'time-stamp)
1489 # time-stamp-start: "timestamp='" 1619 # time-stamp-start: "timestamp='"
1490 # time-stamp-format: "%:y-%02m-%02d" 1620 # time-stamp-format: "%:y-%02m-%02d"