comparison config.sub @ 1270:b1425473be0f

Updated config* from CVS http://cvs.savannah.gnu.org/viewcvs/config/?root=config
author Sam Lantinga <slouken@libsdl.org>
date Thu, 26 Jan 2006 07:33:57 +0000
parents 05c551e5bc64
children
comparison
equal deleted inserted replaced
1269:905d5b482f2a 1270:b1425473be0f
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 Free Software Foundation, Inc.
5 5
6 timestamp='2003-02-22' 6 timestamp='2006-01-02'
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.
68 Report bugs and patches to <config-patches@gnu.org>." 69 Report bugs and patches to <config-patches@gnu.org>."
69 70
70 version="\ 71 version="\
71 GNU config.sub ($timestamp) 72 GNU config.sub ($timestamp)
72 73
73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
74 Free Software Foundation, Inc. 75 Free Software Foundation, Inc.
75 76
76 This is free software; see the source for copying conditions. There is NO 77 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." 78 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
78 79
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
116 117
117 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 118 # 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. 119 # Here we must recognize all the valid KERNEL-OS combinations.
119 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 120 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120 case $maybe_os in 121 case $maybe_os in
121 nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
124 storm-chaos* | os2-emx* | rtmk-nova*)
122 os=-$maybe_os 125 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 126 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;; 127 ;;
125 *) 128 *)
126 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 129 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
142 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 145 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
143 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 146 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
144 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 147 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
145 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 148 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
146 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 149 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
147 -apple | -axis) 150 -apple | -axis | -knuth | -cray)
148 os= 151 os=
149 basic_machine=$1 152 basic_machine=$1
150 ;; 153 ;;
151 -sim | -cisco | -oki | -wec | -winbond) 154 -sim | -cisco | -oki | -wec | -winbond)
152 os= 155 os=
167 basic_machine=$1 170 basic_machine=$1
168 ;; 171 ;;
169 -hiux*) 172 -hiux*)
170 os=-hiuxwe2 173 os=-hiuxwe2
171 ;; 174 ;;
175 -sco6)
176 os=-sco5v6
177 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
178 ;;
172 -sco5) 179 -sco5)
173 os=-sco3.2v5 180 os=-sco3.2v5
174 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
175 ;; 182 ;;
176 -sco4) 183 -sco4)
180 -sco3.2.[4-9]*) 187 -sco3.2.[4-9]*)
181 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 188 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
183 ;; 190 ;;
184 -sco3.2v[4-9]*) 191 -sco3.2v[4-9]*)
192 # Don't forget version if it is 3.2v4 or newer.
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -sco5v6*)
185 # Don't forget version if it is 3.2v4 or newer. 196 # Don't forget version if it is 3.2v4 or newer.
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187 ;; 198 ;;
188 -sco*) 199 -sco*)
189 os=-sco3.2v2 200 os=-sco3.2v2
226 # Some are omitted here because they have special meanings below. 237 # Some are omitted here because they have special meanings below.
227 1750a | 580 \ 238 1750a | 580 \
228 | a29k \ 239 | a29k \
229 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 240 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 241 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
242 | am33_2.0 \
231 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 243 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
232 | clipper \ 244 | bfin \
245 | c4x | clipper \
233 | d10v | d30v | dlx | dsp16xx \ 246 | d10v | d30v | dlx | dsp16xx \
234 | fr30 | frv \ 247 | fr30 | frv \
235 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 248 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
236 | i370 | i860 | i960 | ia64 \ 249 | i370 | i860 | i960 | ia64 \
237 | ip2k \ 250 | ip2k | iq2000 \
238 | m32r | m68000 | m68k | m88k | mcore \ 251 | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
239 | mips | mipsbe | mipseb | mipsel | mipsle \ 252 | mips | mipsbe | mipseb | mipsel | mipsle \
240 | mips16 \ 253 | mips16 \
241 | mips64 | mips64el \ 254 | mips64 | mips64el \
242 | mips64vr | mips64vrel \ 255 | mips64vr | mips64vrel \
243 | mips64orion | mips64orionel \ 256 | mips64orion | mips64orionel \
244 | mips64vr4100 | mips64vr4100el \ 257 | mips64vr4100 | mips64vr4100el \
245 | mips64vr4300 | mips64vr4300el \ 258 | mips64vr4300 | mips64vr4300el \
246 | mips64vr5000 | mips64vr5000el \ 259 | mips64vr5000 | mips64vr5000el \
260 | mips64vr5900 | mips64vr5900el \
247 | mipsisa32 | mipsisa32el \ 261 | mipsisa32 | mipsisa32el \
248 | mipsisa32r2 | mipsisa32r2el \ 262 | mipsisa32r2 | mipsisa32r2el \
249 | mipsisa64 | mipsisa64el \ 263 | mipsisa64 | mipsisa64el \
264 | mipsisa64r2 | mipsisa64r2el \
250 | mipsisa64sb1 | mipsisa64sb1el \ 265 | mipsisa64sb1 | mipsisa64sb1el \
251 | mipsisa64sr71k | mipsisa64sr71kel \ 266 | mipsisa64sr71k | mipsisa64sr71kel \
252 | mipstx39 | mipstx39el \ 267 | mipstx39 | mipstx39el \
253 | mn10200 | mn10300 \ 268 | mn10200 | mn10300 \
269 | mt \
254 | msp430 \ 270 | msp430 \
255 | ns16k | ns32k \ 271 | ns16k | ns32k \
256 | openrisc | or32 \ 272 | or32 \
257 | pdp10 | pdp11 | pj | pjl \ 273 | pdp10 | pdp11 | pj | pjl \
258 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 274 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
259 | pyramid \ 275 | pyramid \
260 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 276 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
261 | sh64 | sh64le \ 277 | sh64 | sh64le \
262 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ 278 | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
279 | sparcv8 | sparcv9 | sparcv9b \
263 | strongarm \ 280 | strongarm \
264 | tahoe | thumb | tic80 | tron \ 281 | tahoe | thumb | tic4x | tic80 | tron \
265 | v850 | v850e \ 282 | v850 | v850e \
266 | we32k \ 283 | we32k \
267 | x86 | xscale | xstormy16 | xtensa \ 284 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
268 | z8k) 285 | z8k)
286 basic_machine=$basic_machine-unknown
287 ;;
288 m32c)
269 basic_machine=$basic_machine-unknown 289 basic_machine=$basic_machine-unknown
270 ;; 290 ;;
271 m6811 | m68hc11 | m6812 | m68hc12) 291 m6811 | m68hc11 | m6812 | m68hc12)
272 # Motorola 68HC11/12. 292 # Motorola 68HC11/12.
273 basic_machine=$basic_machine-unknown 293 basic_machine=$basic_machine-unknown
274 os=-none 294 os=-none
275 ;; 295 ;;
276 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 296 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
297 ;;
298 ms1)
299 basic_machine=mt-unknown
277 ;; 300 ;;
278 301
279 # We use `pc' rather than `unknown' 302 # We use `pc' rather than `unknown'
280 # because (1) that's what they normally are, and 303 # because (1) that's what they normally are, and
281 # (2) the word "unknown" tends to confuse beginning users. 304 # (2) the word "unknown" tends to confuse beginning users.
293 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 316 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
294 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 317 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
295 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 318 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
296 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 319 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
297 | avr-* \ 320 | avr-* \
298 | bs2000-* \ 321 | bfin-* | bs2000-* \
299 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 322 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
300 | clipper-* | cydra-* \ 323 | clipper-* | craynv-* | cydra-* \
301 | d10v-* | d30v-* | dlx-* \ 324 | d10v-* | d30v-* | dlx-* \
302 | elxsi-* \ 325 | elxsi-* \
303 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 326 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
304 | h8300-* | h8500-* \ 327 | h8300-* | h8500-* \
305 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 328 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
306 | i*86-* | i860-* | i960-* | ia64-* \ 329 | i*86-* | i860-* | i960-* | ia64-* \
307 | ip2k-* \ 330 | ip2k-* | iq2000-* \
308 | m32r-* \ 331 | m32r-* | m32rle-* \
309 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 332 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
310 | m88110-* | m88k-* | mcore-* \ 333 | m88110-* | m88k-* | maxq-* | mcore-* \
311 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 334 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
312 | mips16-* \ 335 | mips16-* \
313 | mips64-* | mips64el-* \ 336 | mips64-* | mips64el-* \
314 | mips64vr-* | mips64vrel-* \ 337 | mips64vr-* | mips64vrel-* \
315 | mips64orion-* | mips64orionel-* \ 338 | mips64orion-* | mips64orionel-* \
316 | mips64vr4100-* | mips64vr4100el-* \ 339 | mips64vr4100-* | mips64vr4100el-* \
317 | mips64vr4300-* | mips64vr4300el-* \ 340 | mips64vr4300-* | mips64vr4300el-* \
318 | mips64vr5000-* | mips64vr5000el-* \ 341 | mips64vr5000-* | mips64vr5000el-* \
342 | mips64vr5900-* | mips64vr5900el-* \
319 | mipsisa32-* | mipsisa32el-* \ 343 | mipsisa32-* | mipsisa32el-* \
320 | mipsisa32r2-* | mipsisa32r2el-* \ 344 | mipsisa32r2-* | mipsisa32r2el-* \
321 | mipsisa64-* | mipsisa64el-* \ 345 | mipsisa64-* | mipsisa64el-* \
346 | mipsisa64r2-* | mipsisa64r2el-* \
322 | mipsisa64sb1-* | mipsisa64sb1el-* \ 347 | mipsisa64sb1-* | mipsisa64sb1el-* \
323 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 348 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
324 | mipstx39-* | mipstx39el-* \ 349 | mipstx39-* | mipstx39el-* \
350 | mmix-* \
351 | mt-* \
325 | msp430-* \ 352 | msp430-* \
326 | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ 353 | none-* | np1-* | ns16k-* | ns32k-* \
327 | orion-* \ 354 | orion-* \
328 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 355 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
329 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 356 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
330 | pyramid-* \ 357 | pyramid-* \
331 | romp-* | rs6000-* \ 358 | romp-* | rs6000-* \
332 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 359 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
333 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 360 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
334 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 361 | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
335 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 362 | sparclite-* \
363 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
336 | tahoe-* | thumb-* \ 364 | tahoe-* | thumb-* \
337 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 365 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
338 | tron-* \ 366 | tron-* \
339 | v850-* | v850e-* | vax-* \ 367 | v850-* | v850e-* | vax-* \
340 | we32k-* \ 368 | we32k-* \
341 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ 369 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
342 | xtensa-* \ 370 | xstormy16-* | xtensa-* \
343 | ymp-* \ 371 | ymp-* \
344 | z8k-*) 372 | z8k-*)
373 ;;
374 m32c-*)
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.
348 386bsd) 378 386bsd)
349 basic_machine=i386-unknown 379 basic_machine=i386-unknown
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)
371 ;; 404 ;;
372 am29k) 405 am29k)
373 basic_machine=a29k-none 406 basic_machine=a29k-none
374 os=-bsd 407 os=-bsd
375 ;; 408 ;;
409 amd64)
410 basic_machine=x86_64-pc
411 ;;
412 amd64-*)
413 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
414 ;;
376 amdahl) 415 amdahl)
377 basic_machine=580-amdahl 416 basic_machine=580-amdahl
378 os=-sysv 417 os=-sysv
379 ;; 418 ;;
380 amiga | amiga-*) 419 amiga | amiga-*)
430 ;; 469 ;;
431 cray | j90) 470 cray | j90)
432 basic_machine=j90-cray 471 basic_machine=j90-cray
433 os=-unicos 472 os=-unicos
434 ;; 473 ;;
474 craynv)
475 basic_machine=craynv-cray
476 os=-unicosmp
477 ;;
478 cr16c)
479 basic_machine=cr16c-unknown
480 os=-elf
481 ;;
435 crds | unos) 482 crds | unos)
436 basic_machine=m68k-crds 483 basic_machine=m68k-crds
437 ;; 484 ;;
485 crisv32 | crisv32-* | etraxfs*)
486 basic_machine=crisv32-axis
487 ;;
438 cris | cris-* | etrax*) 488 cris | cris-* | etrax*)
439 basic_machine=cris-axis 489 basic_machine=cris-axis
490 ;;
491 crx)
492 basic_machine=crx-unknown
493 os=-elf
440 ;; 494 ;;
441 da30 | da30-*) 495 da30 | da30-*)
442 basic_machine=m68k-da30 496 basic_machine=m68k-da30
443 ;; 497 ;;
444 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 498 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
457 basic_machine=m68k-motorola 511 basic_machine=m68k-motorola
458 ;; 512 ;;
459 delta88) 513 delta88)
460 basic_machine=m88k-motorola 514 basic_machine=m88k-motorola
461 os=-sysv3 515 os=-sysv3
516 ;;
517 djgpp)
518 basic_machine=i586-pc
519 os=-msdosdjgpp
462 ;; 520 ;;
463 dpx20 | dpx20-*) 521 dpx20 | dpx20-*)
464 basic_machine=rs6000-bull 522 basic_machine=rs6000-bull
465 os=-bosx 523 os=-bosx
466 ;; 524 ;;
636 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 694 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
637 ;; 695 ;;
638 mips3*) 696 mips3*)
639 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 697 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
640 ;; 698 ;;
641 mmix*)
642 basic_machine=mmix-knuth
643 os=-mmixware
644 ;;
645 monitor) 699 monitor)
646 basic_machine=m68k-rom68k 700 basic_machine=m68k-rom68k
647 os=-coff 701 os=-coff
648 ;; 702 ;;
649 morphos) 703 morphos)
651 os=-morphos 705 os=-morphos
652 ;; 706 ;;
653 msdos) 707 msdos)
654 basic_machine=i386-pc 708 basic_machine=i386-pc
655 os=-msdos 709 os=-msdos
710 ;;
711 ms1-*)
712 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
656 ;; 713 ;;
657 mvs) 714 mvs)
658 basic_machine=i370-ibm 715 basic_machine=i370-ibm
659 os=-mvs 716 os=-mvs
660 ;; 717 ;;
720 os=-nonstopux 777 os=-nonstopux
721 ;; 778 ;;
722 np1) 779 np1)
723 basic_machine=np1-gould 780 basic_machine=np1-gould
724 ;; 781 ;;
725 nv1)
726 basic_machine=nv1-cray
727 os=-unicosmp
728 ;;
729 nsr-tandem) 782 nsr-tandem)
730 basic_machine=nsr-tandem 783 basic_machine=nsr-tandem
731 ;; 784 ;;
732 op50n-* | op60c-*) 785 op50n-* | op60c-*)
733 basic_machine=hppa1.1-oki 786 basic_machine=hppa1.1-oki
734 os=-proelf 787 os=-proelf
735 ;; 788 ;;
736 or32 | or32-*) 789 openrisc | openrisc-*)
737 basic_machine=or32-unknown 790 basic_machine=or32-unknown
738 os=-coff 791 ;;
792 os400)
793 basic_machine=powerpc-ibm
794 os=-os400
739 ;; 795 ;;
740 OSE68000 | ose68000) 796 OSE68000 | ose68000)
741 basic_machine=m68000-ericsson 797 basic_machine=m68000-ericsson
742 os=-ose 798 os=-ose
743 ;; 799 ;;
760 basic_machine=m68k-tti 816 basic_machine=m68k-tti
761 ;; 817 ;;
762 pc532 | pc532-*) 818 pc532 | pc532-*)
763 basic_machine=ns32k-pc532 819 basic_machine=ns32k-pc532
764 ;; 820 ;;
821 pc98)
822 basic_machine=i386-pc
823 ;;
824 pc98-*)
825 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
826 ;;
765 pentium | p5 | k5 | k6 | nexgen | viac3) 827 pentium | p5 | k5 | k6 | nexgen | viac3)
766 basic_machine=i586-pc 828 basic_machine=i586-pc
767 ;; 829 ;;
768 pentiumpro | p6 | 6x86 | athlon | athlon_*) 830 pentiumpro | p6 | 6x86 | athlon | athlon_*)
769 basic_machine=i686-pc 831 basic_machine=i686-pc
770 ;; 832 ;;
771 pentiumii | pentium2) 833 pentiumii | pentium2 | pentiumiii | pentium3)
772 basic_machine=i686-pc 834 basic_machine=i686-pc
835 ;;
836 pentium4)
837 basic_machine=i786-pc
773 ;; 838 ;;
774 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 839 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
775 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 840 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
776 ;; 841 ;;
777 pentiumpro-* | p6-* | 6x86-* | athlon-*) 842 pentiumpro-* | p6-* | 6x86-* | athlon-*)
778 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 843 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
779 ;; 844 ;;
780 pentiumii-* | pentium2-*) 845 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
781 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/^[^-]*-//'`
782 ;; 850 ;;
783 pn) 851 pn)
784 basic_machine=pn-gould 852 basic_machine=pn-gould
785 ;; 853 ;;
786 power) basic_machine=power-ibm 854 power) basic_machine=power-ibm
810 ;; 878 ;;
811 pw32) 879 pw32)
812 basic_machine=i586-unknown 880 basic_machine=i586-unknown
813 os=-pw32 881 os=-pw32
814 ;; 882 ;;
883 rdos)
884 basic_machine=i386-pc
885 os=-rdos
886 ;;
815 rom68k) 887 rom68k)
816 basic_machine=m68k-rom68k 888 basic_machine=m68k-rom68k
817 os=-coff 889 os=-coff
818 ;; 890 ;;
819 rm[46]00) 891 rm[46]00)
836 basic_machine=mipsisa64sb1-unknown 908 basic_machine=mipsisa64sb1-unknown
837 ;; 909 ;;
838 sb1el) 910 sb1el)
839 basic_machine=mipsisa64sb1el-unknown 911 basic_machine=mipsisa64sb1el-unknown
840 ;; 912 ;;
913 sei)
914 basic_machine=mips-sei
915 os=-seiux
916 ;;
841 sequent) 917 sequent)
842 basic_machine=i386-sequent 918 basic_machine=i386-sequent
843 ;; 919 ;;
844 sh) 920 sh)
845 basic_machine=sh-hitachi 921 basic_machine=sh-hitachi
846 os=-hms 922 os=-hms
847 ;; 923 ;;
924 sh64)
925 basic_machine=sh64-unknown
926 ;;
848 sparclite-wrs | simso-wrs) 927 sparclite-wrs | simso-wrs)
849 basic_machine=sparclite-wrs 928 basic_machine=sparclite-wrs
850 os=-vxworks 929 os=-vxworks
851 ;; 930 ;;
852 sps7) 931 sps7)
917 ;; 996 ;;
918 t90) 997 t90)
919 basic_machine=t90-cray 998 basic_machine=t90-cray
920 os=-unicos 999 os=-unicos
921 ;; 1000 ;;
922 tic4x | c4x*)
923 basic_machine=tic4x-unknown
924 os=-coff
925 ;;
926 tic54x | c54x*) 1001 tic54x | c54x*)
927 basic_machine=tic54x-unknown 1002 basic_machine=tic54x-unknown
928 os=-coff 1003 os=-coff
929 ;; 1004 ;;
930 tic55x | c55x*) 1005 tic55x | c55x*)
946 os=-tops20 1021 os=-tops20
947 ;; 1022 ;;
948 tower | tower-32) 1023 tower | tower-32)
949 basic_machine=m68k-ncr 1024 basic_machine=m68k-ncr
950 ;; 1025 ;;
1026 tpf)
1027 basic_machine=s390x-ibm
1028 os=-tpf
1029 ;;
951 udi29k) 1030 udi29k)
952 basic_machine=a29k-amd 1031 basic_machine=a29k-amd
953 os=-udi 1032 os=-udi
954 ;; 1033 ;;
955 ultra3) 1034 ultra3)
988 os=-none 1067 os=-none
989 ;; 1068 ;;
990 w89k-*) 1069 w89k-*)
991 basic_machine=hppa1.1-winbond 1070 basic_machine=hppa1.1-winbond
992 os=-proelf 1071 os=-proelf
1072 ;;
1073 xbox)
1074 basic_machine=i686-pc
1075 os=-mingw32
993 ;; 1076 ;;
994 xps | xps100) 1077 xps | xps100)
995 basic_machine=xps100-honeywell 1078 basic_machine=xps100-honeywell
996 ;; 1079 ;;
997 ymp) 1080 ymp)
1019 basic_machine=hppa1.1-oki 1102 basic_machine=hppa1.1-oki
1020 ;; 1103 ;;
1021 romp) 1104 romp)
1022 basic_machine=romp-ibm 1105 basic_machine=romp-ibm
1023 ;; 1106 ;;
1107 mmix)
1108 basic_machine=mmix-knuth
1109 ;;
1024 rs6000) 1110 rs6000)
1025 basic_machine=rs6000-ibm 1111 basic_machine=rs6000-ibm
1026 ;; 1112 ;;
1027 vax) 1113 vax)
1028 basic_machine=vax-dec 1114 basic_machine=vax-dec
1035 basic_machine=pdp11-dec 1121 basic_machine=pdp11-dec
1036 ;; 1122 ;;
1037 we32k) 1123 we32k)
1038 basic_machine=we32k-att 1124 basic_machine=we32k-att
1039 ;; 1125 ;;
1040 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 1126 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1041 basic_machine=sh-unknown 1127 basic_machine=sh-unknown
1042 ;; 1128 ;;
1043 sh64) 1129 sparc | sparcv8 | sparcv9 | sparcv9b)
1044 basic_machine=sh64-unknown
1045 ;;
1046 sparc | sparcv9 | sparcv9b)
1047 basic_machine=sparc-sun 1130 basic_machine=sparc-sun
1048 ;; 1131 ;;
1049 cydra) 1132 cydra)
1050 basic_machine=cydra-cydrome 1133 basic_machine=cydra-cydrome
1051 ;; 1134 ;;
1114 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1197 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1115 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1198 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1116 | -aos* \ 1199 | -aos* \
1117 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1200 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1118 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1201 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1119 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 1202 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1120 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1203 | -openbsd* | -solidbsd* \
1204 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1205 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1121 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1206 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1122 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1207 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1123 | -chorusos* | -chorusrdb* \ 1208 | -chorusos* | -chorusrdb* \
1124 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1209 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1125 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 1210 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1211 | -uxpv* | -beos* | -mpeix* | -udk* \
1126 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1212 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1127 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1213 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1128 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1214 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1129 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1215 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1130 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1216 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1131 | -powermax* | -dnix*) 1217 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1218 | -skyos* | -haiku* | -rdos*)
1132 # Remember, each alternative MUST END IN *, to match a version number. 1219 # Remember, each alternative MUST END IN *, to match a version number.
1133 ;; 1220 ;;
1134 -qnx*) 1221 -qnx*)
1135 case $basic_machine in 1222 case $basic_machine in
1136 x86-* | i*86-*) 1223 x86-* | i*86-*)
1138 *) 1225 *)
1139 os=-nto$os 1226 os=-nto$os
1140 ;; 1227 ;;
1141 esac 1228 esac
1142 ;; 1229 ;;
1230 -nto-qnx*)
1231 ;;
1143 -nto*) 1232 -nto*)
1144 os=-nto-qnx 1233 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1145 ;; 1234 ;;
1146 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1235 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1147 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 1236 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1148 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1237 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1149 ;; 1238 ;;
1150 -mac*) 1239 -mac*)
1151 os=`echo $os | sed -e 's|mac|macos|'` 1240 os=`echo $os | sed -e 's|mac|macos|'`
1152 ;; 1241 ;;
1242 -linux-dietlibc)
1243 os=-linux-dietlibc
1244 ;;
1153 -linux*) 1245 -linux*)
1154 os=`echo $os | sed -e 's|linux|linux-gnu|'` 1246 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1155 ;; 1247 ;;
1156 -sunos5*) 1248 -sunos5*)
1157 os=`echo $os | sed -e 's|sunos5|solaris2|'` 1249 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1160 os=`echo $os | sed -e 's|sunos6|solaris3|'` 1252 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1161 ;; 1253 ;;
1162 -opened*) 1254 -opened*)
1163 os=-openedition 1255 os=-openedition
1164 ;; 1256 ;;
1257 -os400*)
1258 os=-os400
1259 ;;
1165 -wince*) 1260 -wince*)
1166 os=-wince 1261 os=-wince
1167 ;; 1262 ;;
1168 -osfrose*) 1263 -osfrose*)
1169 os=-osfrose 1264 os=-osfrose
1180 -acis*) 1275 -acis*)
1181 os=-aos 1276 os=-aos
1182 ;; 1277 ;;
1183 -atheos*) 1278 -atheos*)
1184 os=-atheos 1279 os=-atheos
1280 ;;
1281 -syllable*)
1282 os=-syllable
1185 ;; 1283 ;;
1186 -386bsd) 1284 -386bsd)
1187 os=-bsd 1285 os=-bsd
1188 ;; 1286 ;;
1189 -ctix* | -uts*) 1287 -ctix* | -uts*)
1203 os=`echo $os | sed -e 's|sinix|sysv|'` 1301 os=`echo $os | sed -e 's|sinix|sysv|'`
1204 ;; 1302 ;;
1205 -sinix*) 1303 -sinix*)
1206 os=-sysv4 1304 os=-sysv4
1207 ;; 1305 ;;
1306 -tpf*)
1307 os=-tpf
1308 ;;
1208 -triton*) 1309 -triton*)
1209 os=-sysv3 1310 os=-sysv3
1210 ;; 1311 ;;
1211 -oss*) 1312 -oss*)
1212 os=-sysv3 1313 os=-sysv3
1238 -aros*) 1339 -aros*)
1239 os=-aros 1340 os=-aros
1240 ;; 1341 ;;
1241 -kaos*) 1342 -kaos*)
1242 os=-kaos 1343 os=-kaos
1344 ;;
1345 -zvmoe)
1346 os=-zvmoe
1243 ;; 1347 ;;
1244 -none) 1348 -none)
1245 ;; 1349 ;;
1246 *) 1350 *)
1247 # Get rid of the `-' at the beginning of $os. 1351 # Get rid of the `-' at the beginning of $os.
1270 os=-linux 1374 os=-linux
1271 ;; 1375 ;;
1272 arm*-semi) 1376 arm*-semi)
1273 os=-aout 1377 os=-aout
1274 ;; 1378 ;;
1379 c4x-* | tic4x-*)
1380 os=-coff
1381 ;;
1275 # This must come before the *-dec entry. 1382 # This must come before the *-dec entry.
1276 pdp10-*) 1383 pdp10-*)
1277 os=-tops20 1384 os=-tops20
1278 ;; 1385 ;;
1279 pdp11-*) 1386 pdp11-*)
1313 os=-sunos4.1.1 1420 os=-sunos4.1.1
1314 ;; 1421 ;;
1315 *-be) 1422 *-be)
1316 os=-beos 1423 os=-beos
1317 ;; 1424 ;;
1425 *-haiku)
1426 os=-haiku
1427 ;;
1318 *-ibm) 1428 *-ibm)
1319 os=-aix 1429 os=-aix
1430 ;;
1431 *-knuth)
1432 os=-mmixware
1320 ;; 1433 ;;
1321 *-wec) 1434 *-wec)
1322 os=-proelf 1435 os=-proelf
1323 ;; 1436 ;;
1324 *-winbond) 1437 *-winbond)
1448 vendor=ns 1561 vendor=ns
1449 ;; 1562 ;;
1450 -mvs* | -opened*) 1563 -mvs* | -opened*)
1451 vendor=ibm 1564 vendor=ibm
1452 ;; 1565 ;;
1566 -os400*)
1567 vendor=ibm
1568 ;;
1453 -ptx*) 1569 -ptx*)
1454 vendor=sequent 1570 vendor=sequent
1455 ;; 1571 ;;
1572 -tpf*)
1573 vendor=ibm
1574 ;;
1456 -vxsim* | -vxworks* | -windiss*) 1575 -vxsim* | -vxworks* | -windiss*)
1457 vendor=wrs 1576 vendor=wrs
1458 ;; 1577 ;;
1459 -aux*) 1578 -aux*)
1460 vendor=apple 1579 vendor=apple
1475 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1594 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1476 ;; 1595 ;;
1477 esac 1596 esac
1478 1597
1479 echo $basic_machine$os 1598 echo $basic_machine$os
1480 exit 0 1599 exit
1481 1600
1482 # Local variables: 1601 # Local variables:
1483 # eval: (add-hook 'write-file-hooks 'time-stamp) 1602 # eval: (add-hook 'write-file-hooks 'time-stamp)
1484 # time-stamp-start: "timestamp='" 1603 # time-stamp-start: "timestamp='"
1485 # time-stamp-format: "%:y-%02m-%02d" 1604 # time-stamp-format: "%:y-%02m-%02d"