comparison config.sub @ 1105:e6511648c59e

Updated to more current config.guess and config.sub files. This allows me to build on Debian GNU/kFreeBSD.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 26 Jul 2011 08:06:05 +0000
parents ca2d780aeb63
children 83c17a84bc27
comparison
equal deleted inserted replaced
1104:84473658ce37 1105:e6511648c59e
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, 2007, 2008, 2009, 2010
5 5 # Free Software Foundation, Inc.
6 timestamp='2003-07-04' 6
7 timestamp='2010-01-22'
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.
31 32
33
32 # Please send patches to <config-patches@gnu.org>. Submit a context 34 # Please send patches to <config-patches@gnu.org>. Submit a context
33 # diff and a properly formatted ChangeLog entry. 35 # diff and a properly formatted GNU ChangeLog entry.
34 # 36 #
35 # Configuration subroutine to validate and canonicalize a configuration type. 37 # Configuration subroutine to validate and canonicalize a configuration type.
36 # Supply the specified configuration type as an argument. 38 # Supply the specified configuration type as an argument.
37 # If it is invalid, we print an error message on stderr and exit with code 1. 39 # If it is invalid, we print an error message on stderr and exit with code 1.
38 # Otherwise, we print the canonical config type on stdout and succeed. 40 # Otherwise, we print the canonical config type on stdout and succeed.
41
42 # You can get the latest version of this script from:
43 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
39 44
40 # This file is supposed to be the same for all GNU packages 45 # This file is supposed to be the same for all GNU packages
41 # and recognize all the CPU types, system types and aliases 46 # and recognize all the CPU types, system types and aliases
42 # that are meaningful with *any* GNU software. 47 # that are meaningful with *any* GNU software.
43 # Each package is responsible for reporting which valid configurations 48 # Each package is responsible for reporting which valid configurations
68 Report bugs and patches to <config-patches@gnu.org>." 73 Report bugs and patches to <config-patches@gnu.org>."
69 74
70 version="\ 75 version="\
71 GNU config.sub ($timestamp) 76 GNU config.sub ($timestamp)
72 77
73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 78 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
74 Free Software Foundation, Inc. 79 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
80 Software Foundation, Inc.
75 81
76 This is free software; see the source for copying conditions. There is NO 82 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." 83 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
78 84
79 help=" 85 help="
81 87
82 # Parse command line 88 # Parse command line
83 while test $# -gt 0 ; do 89 while test $# -gt 0 ; do
84 case $1 in 90 case $1 in
85 --time-stamp | --time* | -t ) 91 --time-stamp | --time* | -t )
86 echo "$timestamp" ; exit 0 ;; 92 echo "$timestamp" ; exit ;;
87 --version | -v ) 93 --version | -v )
88 echo "$version" ; exit 0 ;; 94 echo "$version" ; exit ;;
89 --help | --h* | -h ) 95 --help | --h* | -h )
90 echo "$usage"; exit 0 ;; 96 echo "$usage"; exit ;;
91 -- ) # Stop option processing 97 -- ) # Stop option processing
92 shift; break ;; 98 shift; break ;;
93 - ) # Use stdin as input. 99 - ) # Use stdin as input.
94 break ;; 100 break ;;
95 -* ) 101 -* )
97 exit 1 ;; 103 exit 1 ;;
98 104
99 *local*) 105 *local*)
100 # First pass through any local machine types. 106 # First pass through any local machine types.
101 echo $1 107 echo $1
102 exit 0;; 108 exit ;;
103 109
104 * ) 110 * )
105 break ;; 111 break ;;
106 esac 112 esac
107 done 113 done
116 122
117 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 123 # 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. 124 # Here we must recognize all the valid KERNEL-OS combinations.
119 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 125 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120 case $maybe_os in 126 case $maybe_os in
121 nto-qnx* | linux-gnu* | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 127 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
128 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
129 kopensolaris*-gnu* | \
130 storm-chaos* | os2-emx* | rtmk-nova*)
122 os=-$maybe_os 131 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 132 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;; 133 ;;
125 *) 134 *)
126 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 135 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
142 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 151 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
143 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 152 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
144 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 153 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
145 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 154 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
146 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 155 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
147 -apple | -axis) 156 -apple | -axis | -knuth | -cray | -microblaze)
148 os= 157 os=
149 basic_machine=$1 158 basic_machine=$1
159 ;;
160 -bluegene*)
161 os=-cnk
150 ;; 162 ;;
151 -sim | -cisco | -oki | -wec | -winbond) 163 -sim | -cisco | -oki | -wec | -winbond)
152 os= 164 os=
153 basic_machine=$1 165 basic_machine=$1
154 ;; 166 ;;
167 basic_machine=$1 179 basic_machine=$1
168 ;; 180 ;;
169 -hiux*) 181 -hiux*)
170 os=-hiuxwe2 182 os=-hiuxwe2
171 ;; 183 ;;
184 -sco6)
185 os=-sco5v6
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187 ;;
172 -sco5) 188 -sco5)
173 os=-sco3.2v5 189 os=-sco3.2v5
174 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
175 ;; 191 ;;
176 -sco4) 192 -sco4)
180 -sco3.2.[4-9]*) 196 -sco3.2.[4-9]*)
181 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 197 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
183 ;; 199 ;;
184 -sco3.2v[4-9]*) 200 -sco3.2v[4-9]*)
201 # Don't forget version if it is 3.2v4 or newer.
202 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
203 ;;
204 -sco5v6*)
185 # Don't forget version if it is 3.2v4 or newer. 205 # Don't forget version if it is 3.2v4 or newer.
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 206 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187 ;; 207 ;;
188 -sco*) 208 -sco*)
189 os=-sco3.2v2 209 os=-sco3.2v2
226 # Some are omitted here because they have special meanings below. 246 # Some are omitted here because they have special meanings below.
227 1750a | 580 \ 247 1750a | 580 \
228 | a29k \ 248 | a29k \
229 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 249 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 250 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
231 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 251 | am33_2.0 \
252 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
253 | bfin \
232 | c4x | clipper \ 254 | c4x | clipper \
233 | d10v | d30v | dlx | dsp16xx \ 255 | d10v | d30v | dlx | dsp16xx \
234 | fr30 | frv \ 256 | fido | fr30 | frv \
235 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 257 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
236 | i370 | i860 | i960 | ia64 \ 258 | i370 | i860 | i960 | ia64 \
237 | ip2k \ 259 | ip2k | iq2000 \
238 | m32r | m68000 | m68k | m88k | mcore \ 260 | lm32 \
261 | m32c | m32r | m32rle | m68000 | m68k | m88k \
262 | maxq | mb | microblaze | mcore | mep | metag \
239 | mips | mipsbe | mipseb | mipsel | mipsle \ 263 | mips | mipsbe | mipseb | mipsel | mipsle \
240 | mips16 \ 264 | mips16 \
241 | mips64 | mips64el \ 265 | mips64 | mips64el \
266 | mips64octeon | mips64octeonel \
267 | mips64orion | mips64orionel \
268 | mips64r5900 | mips64r5900el \
242 | mips64vr | mips64vrel \ 269 | mips64vr | mips64vrel \
243 | mips64orion | mips64orionel \
244 | mips64vr4100 | mips64vr4100el \ 270 | mips64vr4100 | mips64vr4100el \
245 | mips64vr4300 | mips64vr4300el \ 271 | mips64vr4300 | mips64vr4300el \
246 | mips64vr5000 | mips64vr5000el \ 272 | mips64vr5000 | mips64vr5000el \
273 | mips64vr5900 | mips64vr5900el \
247 | mipsisa32 | mipsisa32el \ 274 | mipsisa32 | mipsisa32el \
248 | mipsisa32r2 | mipsisa32r2el \ 275 | mipsisa32r2 | mipsisa32r2el \
249 | mipsisa64 | mipsisa64el \ 276 | mipsisa64 | mipsisa64el \
277 | mipsisa64r2 | mipsisa64r2el \
250 | mipsisa64sb1 | mipsisa64sb1el \ 278 | mipsisa64sb1 | mipsisa64sb1el \
251 | mipsisa64sr71k | mipsisa64sr71kel \ 279 | mipsisa64sr71k | mipsisa64sr71kel \
252 | mipstx39 | mipstx39el \ 280 | mipstx39 | mipstx39el \
253 | mn10200 | mn10300 \ 281 | mn10200 | mn10300 \
282 | moxie \
283 | mt \
254 | msp430 \ 284 | msp430 \
285 | nios | nios2 \
255 | ns16k | ns32k \ 286 | ns16k | ns32k \
256 | openrisc | or32 \ 287 | or32 \
257 | pdp10 | pdp11 | pj | pjl \ 288 | pdp10 | pdp11 | pj | pjl \
258 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 289 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
259 | pyramid \ 290 | pyramid \
260 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 291 | rx \
292 | score \
293 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
261 | sh64 | sh64le \ 294 | sh64 | sh64le \
262 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ 295 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
263 | strongarm \ 296 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
297 | spu | strongarm \
264 | tahoe | thumb | tic4x | tic80 | tron \ 298 | tahoe | thumb | tic4x | tic80 | tron \
299 | ubicom32 \
265 | v850 | v850e \ 300 | v850 | v850e \
266 | we32k \ 301 | we32k \
267 | x86 | xscale | xstormy16 | xtensa \ 302 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
268 | z8k) 303 | z8k | z80)
269 basic_machine=$basic_machine-unknown 304 basic_machine=$basic_machine-unknown
270 ;; 305 ;;
271 m6811 | m68hc11 | m6812 | m68hc12) 306 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
272 # Motorola 68HC11/12. 307 # Motorola 68HC11/12.
273 basic_machine=$basic_machine-unknown 308 basic_machine=$basic_machine-unknown
274 os=-none 309 os=-none
275 ;; 310 ;;
276 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 311 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
312 ;;
313 ms1)
314 basic_machine=mt-unknown
277 ;; 315 ;;
278 316
279 # We use `pc' rather than `unknown' 317 # We use `pc' rather than `unknown'
280 # because (1) that's what they normally are, and 318 # because (1) that's what they normally are, and
281 # (2) the word "unknown" tends to confuse beginning users. 319 # (2) the word "unknown" tends to confuse beginning users.
290 # Recognize the basic CPU types with company name. 328 # Recognize the basic CPU types with company name.
291 580-* \ 329 580-* \
292 | a29k-* \ 330 | a29k-* \
293 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 331 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
294 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 332 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
295 | alphapca5[67]-* | alpha64pca5[67]-* | amd64-* | arc-* \ 333 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
296 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 334 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
297 | avr-* \ 335 | avr-* | avr32-* \
298 | bs2000-* \ 336 | bfin-* | bs2000-* \
299 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 337 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
300 | clipper-* | cydra-* \ 338 | clipper-* | craynv-* | cydra-* \
301 | d10v-* | d30v-* | dlx-* \ 339 | d10v-* | d30v-* | dlx-* \
302 | elxsi-* \ 340 | elxsi-* \
303 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 341 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
304 | h8300-* | h8500-* \ 342 | h8300-* | h8500-* \
305 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 343 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
306 | i*86-* | i860-* | i960-* | ia64-* \ 344 | i*86-* | i860-* | i960-* | ia64-* \
307 | ip2k-* \ 345 | ip2k-* | iq2000-* \
308 | m32r-* \ 346 | lm32-* \
347 | m32c-* | m32r-* | m32rle-* \
309 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 348 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
310 | m88110-* | m88k-* | mcore-* \ 349 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
311 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 350 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
312 | mips16-* \ 351 | mips16-* \
313 | mips64-* | mips64el-* \ 352 | mips64-* | mips64el-* \
353 | mips64octeon-* | mips64octeonel-* \
354 | mips64orion-* | mips64orionel-* \
355 | mips64r5900-* | mips64r5900el-* \
314 | mips64vr-* | mips64vrel-* \ 356 | mips64vr-* | mips64vrel-* \
315 | mips64orion-* | mips64orionel-* \
316 | mips64vr4100-* | mips64vr4100el-* \ 357 | mips64vr4100-* | mips64vr4100el-* \
317 | mips64vr4300-* | mips64vr4300el-* \ 358 | mips64vr4300-* | mips64vr4300el-* \
318 | mips64vr5000-* | mips64vr5000el-* \ 359 | mips64vr5000-* | mips64vr5000el-* \
360 | mips64vr5900-* | mips64vr5900el-* \
319 | mipsisa32-* | mipsisa32el-* \ 361 | mipsisa32-* | mipsisa32el-* \
320 | mipsisa32r2-* | mipsisa32r2el-* \ 362 | mipsisa32r2-* | mipsisa32r2el-* \
321 | mipsisa64-* | mipsisa64el-* \ 363 | mipsisa64-* | mipsisa64el-* \
364 | mipsisa64r2-* | mipsisa64r2el-* \
322 | mipsisa64sb1-* | mipsisa64sb1el-* \ 365 | mipsisa64sb1-* | mipsisa64sb1el-* \
323 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 366 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
324 | mipstx39-* | mipstx39el-* \ 367 | mipstx39-* | mipstx39el-* \
368 | mmix-* \
369 | mt-* \
325 | msp430-* \ 370 | msp430-* \
326 | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ 371 | nios-* | nios2-* \
372 | none-* | np1-* | ns16k-* | ns32k-* \
327 | orion-* \ 373 | orion-* \
328 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 374 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
329 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 375 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
330 | pyramid-* \ 376 | pyramid-* \
331 | romp-* | rs6000-* \ 377 | romp-* | rs6000-* | rx-* \
332 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 378 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
333 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 379 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
334 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 380 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
335 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 381 | sparclite-* \
382 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
336 | tahoe-* | thumb-* \ 383 | tahoe-* | thumb-* \
337 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 384 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
385 | tile-* | tilegx-* \
338 | tron-* \ 386 | tron-* \
387 | ubicom32-* \
339 | v850-* | v850e-* | vax-* \ 388 | v850-* | v850e-* | vax-* \
340 | we32k-* \ 389 | we32k-* \
341 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ 390 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
342 | xtensa-* \ 391 | xstormy16-* | xtensa*-* \
343 | ymp-* \ 392 | ymp-* \
344 | z8k-*) 393 | z8k-* | z80-*)
394 ;;
395 # Recognize the basic CPU types without company name, with glob match.
396 xtensa*)
397 basic_machine=$basic_machine-unknown
345 ;; 398 ;;
346 # Recognize the various machine names and aliases which stand 399 # Recognize the various machine names and aliases which stand
347 # for a CPU type and a company and sometimes even an OS. 400 # for a CPU type and a company and sometimes even an OS.
348 386bsd) 401 386bsd)
349 basic_machine=i386-unknown 402 basic_machine=i386-unknown
357 ;; 410 ;;
358 a29khif) 411 a29khif)
359 basic_machine=a29k-amd 412 basic_machine=a29k-amd
360 os=-udi 413 os=-udi
361 ;; 414 ;;
415 abacus)
416 basic_machine=abacus-unknown
417 ;;
362 adobe68k) 418 adobe68k)
363 basic_machine=m68010-adobe 419 basic_machine=m68010-adobe
364 os=-scout 420 os=-scout
365 ;; 421 ;;
366 alliant | fx80) 422 alliant | fx80)
374 os=-bsd 430 os=-bsd
375 ;; 431 ;;
376 amd64) 432 amd64)
377 basic_machine=x86_64-pc 433 basic_machine=x86_64-pc
378 ;; 434 ;;
435 amd64-*)
436 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
437 ;;
379 amdahl) 438 amdahl)
380 basic_machine=580-amdahl 439 basic_machine=580-amdahl
381 os=-sysv 440 os=-sysv
382 ;; 441 ;;
383 amiga | amiga-*) 442 amiga | amiga-*)
397 ;; 456 ;;
398 apollo68bsd) 457 apollo68bsd)
399 basic_machine=m68k-apollo 458 basic_machine=m68k-apollo
400 os=-bsd 459 os=-bsd
401 ;; 460 ;;
461 aros)
462 basic_machine=i386-pc
463 os=-aros
464 ;;
402 aux) 465 aux)
403 basic_machine=m68k-apple 466 basic_machine=m68k-apple
404 os=-aux 467 os=-aux
405 ;; 468 ;;
406 balance) 469 balance)
407 basic_machine=ns32k-sequent 470 basic_machine=ns32k-sequent
408 os=-dynix 471 os=-dynix
409 ;; 472 ;;
473 blackfin)
474 basic_machine=bfin-unknown
475 os=-linux
476 ;;
477 blackfin-*)
478 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
479 os=-linux
480 ;;
481 bluegene*)
482 basic_machine=powerpc-ibm
483 os=-cnk
484 ;;
410 c90) 485 c90)
411 basic_machine=c90-cray 486 basic_machine=c90-cray
412 os=-unicos 487 os=-unicos
413 ;; 488 ;;
489 cegcc)
490 basic_machine=arm-unknown
491 os=-cegcc
492 ;;
414 convex-c1) 493 convex-c1)
415 basic_machine=c1-convex 494 basic_machine=c1-convex
416 os=-bsd 495 os=-bsd
417 ;; 496 ;;
418 convex-c2) 497 convex-c2)
433 ;; 512 ;;
434 cray | j90) 513 cray | j90)
435 basic_machine=j90-cray 514 basic_machine=j90-cray
436 os=-unicos 515 os=-unicos
437 ;; 516 ;;
517 craynv)
518 basic_machine=craynv-cray
519 os=-unicosmp
520 ;;
521 cr16)
522 basic_machine=cr16-unknown
523 os=-elf
524 ;;
438 crds | unos) 525 crds | unos)
439 basic_machine=m68k-crds 526 basic_machine=m68k-crds
440 ;; 527 ;;
528 crisv32 | crisv32-* | etraxfs*)
529 basic_machine=crisv32-axis
530 ;;
441 cris | cris-* | etrax*) 531 cris | cris-* | etrax*)
442 basic_machine=cris-axis 532 basic_machine=cris-axis
533 ;;
534 crx)
535 basic_machine=crx-unknown
536 os=-elf
443 ;; 537 ;;
444 da30 | da30-*) 538 da30 | da30-*)
445 basic_machine=m68k-da30 539 basic_machine=m68k-da30
446 ;; 540 ;;
447 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 541 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
460 basic_machine=m68k-motorola 554 basic_machine=m68k-motorola
461 ;; 555 ;;
462 delta88) 556 delta88)
463 basic_machine=m88k-motorola 557 basic_machine=m88k-motorola
464 os=-sysv3 558 os=-sysv3
559 ;;
560 dicos)
561 basic_machine=i686-pc
562 os=-dicos
563 ;;
564 djgpp)
565 basic_machine=i586-pc
566 os=-msdosdjgpp
465 ;; 567 ;;
466 dpx20 | dpx20-*) 568 dpx20 | dpx20-*)
467 basic_machine=rs6000-bull 569 basic_machine=rs6000-bull
468 os=-bosx 570 os=-bosx
469 ;; 571 ;;
611 ;; 713 ;;
612 isi68 | isi) 714 isi68 | isi)
613 basic_machine=m68k-isi 715 basic_machine=m68k-isi
614 os=-sysv 716 os=-sysv
615 ;; 717 ;;
718 m68knommu)
719 basic_machine=m68k-unknown
720 os=-linux
721 ;;
722 m68knommu-*)
723 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
724 os=-linux
725 ;;
616 m88k-omron*) 726 m88k-omron*)
617 basic_machine=m88k-omron 727 basic_machine=m88k-omron
618 ;; 728 ;;
619 magnum | m3230) 729 magnum | m3230)
620 basic_machine=mips-mips 730 basic_machine=mips-mips
622 ;; 732 ;;
623 merlin) 733 merlin)
624 basic_machine=ns32k-utek 734 basic_machine=ns32k-utek
625 os=-sysv 735 os=-sysv
626 ;; 736 ;;
737 microblaze)
738 basic_machine=microblaze-xilinx
739 ;;
627 mingw32) 740 mingw32)
628 basic_machine=i386-pc 741 basic_machine=i386-pc
629 os=-mingw32 742 os=-mingw32
630 ;; 743 ;;
744 mingw32ce)
745 basic_machine=arm-unknown
746 os=-mingw32ce
747 ;;
631 miniframe) 748 miniframe)
632 basic_machine=m68000-convergent 749 basic_machine=m68000-convergent
633 ;; 750 ;;
634 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 751 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
635 basic_machine=m68k-atari 752 basic_machine=m68k-atari
639 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 756 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
640 ;; 757 ;;
641 mips3*) 758 mips3*)
642 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 759 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
643 ;; 760 ;;
644 mmix*)
645 basic_machine=mmix-knuth
646 os=-mmixware
647 ;;
648 monitor) 761 monitor)
649 basic_machine=m68k-rom68k 762 basic_machine=m68k-rom68k
650 os=-coff 763 os=-coff
651 ;; 764 ;;
652 morphos) 765 morphos)
654 os=-morphos 767 os=-morphos
655 ;; 768 ;;
656 msdos) 769 msdos)
657 basic_machine=i386-pc 770 basic_machine=i386-pc
658 os=-msdos 771 os=-msdos
772 ;;
773 ms1-*)
774 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
659 ;; 775 ;;
660 mvs) 776 mvs)
661 basic_machine=i370-ibm 777 basic_machine=i370-ibm
662 os=-mvs 778 os=-mvs
663 ;; 779 ;;
723 os=-nonstopux 839 os=-nonstopux
724 ;; 840 ;;
725 np1) 841 np1)
726 basic_machine=np1-gould 842 basic_machine=np1-gould
727 ;; 843 ;;
728 nv1)
729 basic_machine=nv1-cray
730 os=-unicosmp
731 ;;
732 nsr-tandem) 844 nsr-tandem)
733 basic_machine=nsr-tandem 845 basic_machine=nsr-tandem
734 ;; 846 ;;
735 op50n-* | op60c-*) 847 op50n-* | op60c-*)
736 basic_machine=hppa1.1-oki 848 basic_machine=hppa1.1-oki
737 os=-proelf 849 os=-proelf
738 ;; 850 ;;
739 or32 | or32-*) 851 openrisc | openrisc-*)
740 basic_machine=or32-unknown 852 basic_machine=or32-unknown
741 os=-coff 853 ;;
854 os400)
855 basic_machine=powerpc-ibm
856 os=-os400
742 ;; 857 ;;
743 OSE68000 | ose68000) 858 OSE68000 | ose68000)
744 basic_machine=m68000-ericsson 859 basic_machine=m68000-ericsson
745 os=-ose 860 os=-ose
746 ;; 861 ;;
754 ;; 869 ;;
755 paragon) 870 paragon)
756 basic_machine=i860-intel 871 basic_machine=i860-intel
757 os=-osf 872 os=-osf
758 ;; 873 ;;
874 parisc)
875 basic_machine=hppa-unknown
876 os=-linux
877 ;;
878 parisc-*)
879 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
880 os=-linux
881 ;;
759 pbd) 882 pbd)
760 basic_machine=sparc-tti 883 basic_machine=sparc-tti
761 ;; 884 ;;
762 pbb) 885 pbb)
763 basic_machine=m68k-tti 886 basic_machine=m68k-tti
764 ;; 887 ;;
765 pc532 | pc532-*) 888 pc532 | pc532-*)
766 basic_machine=ns32k-pc532 889 basic_machine=ns32k-pc532
890 ;;
891 pc98)
892 basic_machine=i386-pc
893 ;;
894 pc98-*)
895 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
767 ;; 896 ;;
768 pentium | p5 | k5 | k6 | nexgen | viac3) 897 pentium | p5 | k5 | k6 | nexgen | viac3)
769 basic_machine=i586-pc 898 basic_machine=i586-pc
770 ;; 899 ;;
771 pentiumpro | p6 | 6x86 | athlon | athlon_*) 900 pentiumpro | p6 | 6x86 | athlon | athlon_*)
819 ;; 948 ;;
820 pw32) 949 pw32)
821 basic_machine=i586-unknown 950 basic_machine=i586-unknown
822 os=-pw32 951 os=-pw32
823 ;; 952 ;;
953 rdos)
954 basic_machine=i386-pc
955 os=-rdos
956 ;;
824 rom68k) 957 rom68k)
825 basic_machine=m68k-rom68k 958 basic_machine=m68k-rom68k
826 os=-coff 959 os=-coff
827 ;; 960 ;;
828 rm[46]00) 961 rm[46]00)
845 basic_machine=mipsisa64sb1-unknown 978 basic_machine=mipsisa64sb1-unknown
846 ;; 979 ;;
847 sb1el) 980 sb1el)
848 basic_machine=mipsisa64sb1el-unknown 981 basic_machine=mipsisa64sb1el-unknown
849 ;; 982 ;;
983 sde)
984 basic_machine=mipsisa32-sde
985 os=-elf
986 ;;
850 sei) 987 sei)
851 basic_machine=mips-sei 988 basic_machine=mips-sei
852 os=-seiux 989 os=-seiux
853 ;; 990 ;;
854 sequent) 991 sequent)
856 ;; 993 ;;
857 sh) 994 sh)
858 basic_machine=sh-hitachi 995 basic_machine=sh-hitachi
859 os=-hms 996 os=-hms
860 ;; 997 ;;
998 sh5el)
999 basic_machine=sh5le-unknown
1000 ;;
861 sh64) 1001 sh64)
862 basic_machine=sh64-unknown 1002 basic_machine=sh64-unknown
863 ;; 1003 ;;
864 sparclite-wrs | simso-wrs) 1004 sparclite-wrs | simso-wrs)
865 basic_machine=sparclite-wrs 1005 basic_machine=sparclite-wrs
945 ;; 1085 ;;
946 tic6x | c6x*) 1086 tic6x | c6x*)
947 basic_machine=tic6x-unknown 1087 basic_machine=tic6x-unknown
948 os=-coff 1088 os=-coff
949 ;; 1089 ;;
1090 # This must be matched before tile*.
1091 tilegx*)
1092 basic_machine=tilegx-unknown
1093 os=-linux-gnu
1094 ;;
1095 tile*)
1096 basic_machine=tile-unknown
1097 os=-linux-gnu
1098 ;;
950 tx39) 1099 tx39)
951 basic_machine=mipstx39-unknown 1100 basic_machine=mipstx39-unknown
952 ;; 1101 ;;
953 tx39el) 1102 tx39el)
954 basic_machine=mipstx39el-unknown 1103 basic_machine=mipstx39el-unknown
958 os=-tops20 1107 os=-tops20
959 ;; 1108 ;;
960 tower | tower-32) 1109 tower | tower-32)
961 basic_machine=m68k-ncr 1110 basic_machine=m68k-ncr
962 ;; 1111 ;;
1112 tpf)
1113 basic_machine=s390x-ibm
1114 os=-tpf
1115 ;;
963 udi29k) 1116 udi29k)
964 basic_machine=a29k-amd 1117 basic_machine=a29k-amd
965 os=-udi 1118 os=-udi
966 ;; 1119 ;;
967 ultra3) 1120 ultra3)
1001 ;; 1154 ;;
1002 w89k-*) 1155 w89k-*)
1003 basic_machine=hppa1.1-winbond 1156 basic_machine=hppa1.1-winbond
1004 os=-proelf 1157 os=-proelf
1005 ;; 1158 ;;
1159 xbox)
1160 basic_machine=i686-pc
1161 os=-mingw32
1162 ;;
1006 xps | xps100) 1163 xps | xps100)
1007 basic_machine=xps100-honeywell 1164 basic_machine=xps100-honeywell
1008 ;; 1165 ;;
1009 ymp) 1166 ymp)
1010 basic_machine=ymp-cray 1167 basic_machine=ymp-cray
1011 os=-unicos 1168 os=-unicos
1012 ;; 1169 ;;
1013 z8k-*-coff) 1170 z8k-*-coff)
1014 basic_machine=z8k-unknown 1171 basic_machine=z8k-unknown
1172 os=-sim
1173 ;;
1174 z80-*-coff)
1175 basic_machine=z80-unknown
1015 os=-sim 1176 os=-sim
1016 ;; 1177 ;;
1017 none) 1178 none)
1018 basic_machine=none-none 1179 basic_machine=none-none
1019 os=-none 1180 os=-none
1031 basic_machine=hppa1.1-oki 1192 basic_machine=hppa1.1-oki
1032 ;; 1193 ;;
1033 romp) 1194 romp)
1034 basic_machine=romp-ibm 1195 basic_machine=romp-ibm
1035 ;; 1196 ;;
1197 mmix)
1198 basic_machine=mmix-knuth
1199 ;;
1036 rs6000) 1200 rs6000)
1037 basic_machine=rs6000-ibm 1201 basic_machine=rs6000-ibm
1038 ;; 1202 ;;
1039 vax) 1203 vax)
1040 basic_machine=vax-dec 1204 basic_machine=vax-dec
1047 basic_machine=pdp11-dec 1211 basic_machine=pdp11-dec
1048 ;; 1212 ;;
1049 we32k) 1213 we32k)
1050 basic_machine=we32k-att 1214 basic_machine=we32k-att
1051 ;; 1215 ;;
1052 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 1216 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1053 basic_machine=sh-unknown 1217 basic_machine=sh-unknown
1054 ;; 1218 ;;
1055 sh64) 1219 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1056 basic_machine=sh64-unknown
1057 ;;
1058 sparc | sparcv9 | sparcv9b)
1059 basic_machine=sparc-sun 1220 basic_machine=sparc-sun
1060 ;; 1221 ;;
1061 cydra) 1222 cydra)
1062 basic_machine=cydra-cydrome 1223 basic_machine=cydra-cydrome
1063 ;; 1224 ;;
1100 then 1261 then
1101 case $os in 1262 case $os in
1102 # First match some system type aliases 1263 # First match some system type aliases
1103 # that might get confused with valid system types. 1264 # that might get confused with valid system types.
1104 # -solaris* is a basic system type, with this one exception. 1265 # -solaris* is a basic system type, with this one exception.
1266 -auroraux)
1267 os=-auroraux
1268 ;;
1105 -solaris1 | -solaris1.*) 1269 -solaris1 | -solaris1.*)
1106 os=`echo $os | sed -e 's|solaris1|sunos4|'` 1270 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1107 ;; 1271 ;;
1108 -solaris) 1272 -solaris)
1109 os=-solaris2 1273 os=-solaris2
1120 # First accept the basic system types. 1284 # First accept the basic system types.
1121 # The portable systems comes first. 1285 # The portable systems comes first.
1122 # Each alternative MUST END IN A *, to match a version number. 1286 # Each alternative MUST END IN A *, to match a version number.
1123 # -sysv* is not here because it comes later, after sysvr4. 1287 # -sysv* is not here because it comes later, after sysvr4.
1124 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1288 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1125 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 1289 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1126 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1290 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1291 | -sym* | -kopensolaris* \
1127 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1292 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1128 | -aos* \ 1293 | -aos* | -aros* \
1129 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1294 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1130 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1295 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1131 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ 1296 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1132 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1297 | -openbsd* | -solidbsd* \
1298 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1299 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1133 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1300 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1134 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1301 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1135 | -chorusos* | -chorusrdb* \ 1302 | -chorusos* | -chorusrdb* | -cegcc* \
1136 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1303 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1137 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 1304 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1305 | -uxpv* | -beos* | -mpeix* | -udk* \
1138 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1306 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1139 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1307 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1140 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1308 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1141 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1309 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1142 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1310 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1143 | -powermax* | -dnix* | -nx6 | -nx7 | -sei*) 1311 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1312 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1144 # Remember, each alternative MUST END IN *, to match a version number. 1313 # Remember, each alternative MUST END IN *, to match a version number.
1145 ;; 1314 ;;
1146 -qnx*) 1315 -qnx*)
1147 case $basic_machine in 1316 case $basic_machine in
1148 x86-* | i*86-*) 1317 x86-* | i*86-*)
1156 ;; 1325 ;;
1157 -nto*) 1326 -nto*)
1158 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1327 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1159 ;; 1328 ;;
1160 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1329 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1161 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 1330 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1162 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1331 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1163 ;; 1332 ;;
1164 -mac*) 1333 -mac*)
1165 os=`echo $os | sed -e 's|mac|macos|'` 1334 os=`echo $os | sed -e 's|mac|macos|'`
1166 ;; 1335 ;;
1336 -linux-dietlibc)
1337 os=-linux-dietlibc
1338 ;;
1167 -linux*) 1339 -linux*)
1168 os=`echo $os | sed -e 's|linux|linux-gnu|'` 1340 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1169 ;; 1341 ;;
1170 -sunos5*) 1342 -sunos5*)
1171 os=`echo $os | sed -e 's|sunos5|solaris2|'` 1343 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1174 os=`echo $os | sed -e 's|sunos6|solaris3|'` 1346 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1175 ;; 1347 ;;
1176 -opened*) 1348 -opened*)
1177 os=-openedition 1349 os=-openedition
1178 ;; 1350 ;;
1351 -os400*)
1352 os=-os400
1353 ;;
1179 -wince*) 1354 -wince*)
1180 os=-wince 1355 os=-wince
1181 ;; 1356 ;;
1182 -osfrose*) 1357 -osfrose*)
1183 os=-osfrose 1358 os=-osfrose
1194 -acis*) 1369 -acis*)
1195 os=-aos 1370 os=-aos
1196 ;; 1371 ;;
1197 -atheos*) 1372 -atheos*)
1198 os=-atheos 1373 os=-atheos
1374 ;;
1375 -syllable*)
1376 os=-syllable
1199 ;; 1377 ;;
1200 -386bsd) 1378 -386bsd)
1201 os=-bsd 1379 os=-bsd
1202 ;; 1380 ;;
1203 -ctix* | -uts*) 1381 -ctix* | -uts*)
1217 os=`echo $os | sed -e 's|sinix|sysv|'` 1395 os=`echo $os | sed -e 's|sinix|sysv|'`
1218 ;; 1396 ;;
1219 -sinix*) 1397 -sinix*)
1220 os=-sysv4 1398 os=-sysv4
1221 ;; 1399 ;;
1400 -tpf*)
1401 os=-tpf
1402 ;;
1222 -triton*) 1403 -triton*)
1223 os=-sysv3 1404 os=-sysv3
1224 ;; 1405 ;;
1225 -oss*) 1406 -oss*)
1226 os=-sysv3 1407 os=-sysv3
1253 os=-aros 1434 os=-aros
1254 ;; 1435 ;;
1255 -kaos*) 1436 -kaos*)
1256 os=-kaos 1437 os=-kaos
1257 ;; 1438 ;;
1439 -zvmoe)
1440 os=-zvmoe
1441 ;;
1442 -dicos*)
1443 os=-dicos
1444 ;;
1445 -nacl*)
1446 ;;
1258 -none) 1447 -none)
1259 ;; 1448 ;;
1260 *) 1449 *)
1261 # Get rid of the `-' at the beginning of $os. 1450 # Get rid of the `-' at the beginning of $os.
1262 os=`echo $os | sed 's/[^-]*-//'` 1451 os=`echo $os | sed 's/[^-]*-//'`
1275 # that MANUFACTURER isn't an operating system. Otherwise, code above 1464 # that MANUFACTURER isn't an operating system. Otherwise, code above
1276 # will signal an error saying that MANUFACTURER isn't an operating 1465 # will signal an error saying that MANUFACTURER isn't an operating
1277 # system, and we'll never get to this point. 1466 # system, and we'll never get to this point.
1278 1467
1279 case $basic_machine in 1468 case $basic_machine in
1469 score-*)
1470 os=-elf
1471 ;;
1472 spu-*)
1473 os=-elf
1474 ;;
1280 *-acorn) 1475 *-acorn)
1281 os=-riscix1.2 1476 os=-riscix1.2
1282 ;; 1477 ;;
1283 arm*-rebel) 1478 arm*-rebel)
1284 os=-linux 1479 os=-linux
1285 ;; 1480 ;;
1286 arm*-semi) 1481 arm*-semi)
1287 os=-aout 1482 os=-aout
1288 ;; 1483 ;;
1289 c4x-* | tic4x-*) 1484 c4x-* | tic4x-*)
1290 os=-coff 1485 os=-coff
1291 ;; 1486 ;;
1292 # This must come before the *-dec entry. 1487 # This must come before the *-dec entry.
1293 pdp10-*) 1488 pdp10-*)
1294 os=-tops20 1489 os=-tops20
1295 ;; 1490 ;;
1296 pdp11-*) 1491 pdp11-*)
1312 # os=-sunos4 1507 # os=-sunos4
1313 ;; 1508 ;;
1314 m68*-cisco) 1509 m68*-cisco)
1315 os=-aout 1510 os=-aout
1316 ;; 1511 ;;
1512 mep-*)
1513 os=-elf
1514 ;;
1317 mips*-cisco) 1515 mips*-cisco)
1318 os=-elf 1516 os=-elf
1319 ;; 1517 ;;
1320 mips*-*) 1518 mips*-*)
1321 os=-elf 1519 os=-elf
1330 os=-sunos4.1.1 1528 os=-sunos4.1.1
1331 ;; 1529 ;;
1332 *-be) 1530 *-be)
1333 os=-beos 1531 os=-beos
1334 ;; 1532 ;;
1533 *-haiku)
1534 os=-haiku
1535 ;;
1335 *-ibm) 1536 *-ibm)
1336 os=-aix 1537 os=-aix
1538 ;;
1539 *-knuth)
1540 os=-mmixware
1337 ;; 1541 ;;
1338 *-wec) 1542 *-wec)
1339 os=-proelf 1543 os=-proelf
1340 ;; 1544 ;;
1341 *-winbond) 1545 *-winbond)
1435 vendor=acorn 1639 vendor=acorn
1436 ;; 1640 ;;
1437 -sunos*) 1641 -sunos*)
1438 vendor=sun 1642 vendor=sun
1439 ;; 1643 ;;
1440 -aix*) 1644 -cnk*|-aix*)
1441 vendor=ibm 1645 vendor=ibm
1442 ;; 1646 ;;
1443 -beos*) 1647 -beos*)
1444 vendor=be 1648 vendor=be
1445 ;; 1649 ;;
1465 vendor=ns 1669 vendor=ns
1466 ;; 1670 ;;
1467 -mvs* | -opened*) 1671 -mvs* | -opened*)
1468 vendor=ibm 1672 vendor=ibm
1469 ;; 1673 ;;
1674 -os400*)
1675 vendor=ibm
1676 ;;
1470 -ptx*) 1677 -ptx*)
1471 vendor=sequent 1678 vendor=sequent
1472 ;; 1679 ;;
1680 -tpf*)
1681 vendor=ibm
1682 ;;
1473 -vxsim* | -vxworks* | -windiss*) 1683 -vxsim* | -vxworks* | -windiss*)
1474 vendor=wrs 1684 vendor=wrs
1475 ;; 1685 ;;
1476 -aux*) 1686 -aux*)
1477 vendor=apple 1687 vendor=apple
1492 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1702 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1493 ;; 1703 ;;
1494 esac 1704 esac
1495 1705
1496 echo $basic_machine$os 1706 echo $basic_machine$os
1497 exit 0 1707 exit
1498 1708
1499 # Local variables: 1709 # Local variables:
1500 # eval: (add-hook 'write-file-hooks 'time-stamp) 1710 # eval: (add-hook 'write-file-hooks 'time-stamp)
1501 # time-stamp-start: "timestamp='" 1711 # time-stamp-start: "timestamp='"
1502 # time-stamp-format: "%:y-%02m-%02d" 1712 # time-stamp-format: "%:y-%02m-%02d"