ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/utils/config.sub
(Generate patch)

Comparing deliantra/server/utils/config.sub (file contents):
Revision 1.3 by elmex, Wed Mar 15 15:35:53 2006 UTC vs.
Revision 1.5 by pippijn, Thu Sep 7 21:10:38 2006 UTC

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# Inc.
5 6
6timestamp='2004-03-12' 7timestamp='2006-07-02'
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 <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 ChangeLog entry.
34# 36#
35# Configuration subroutine to validate and canonicalize a configuration type. 37# Configuration subroutine to validate and canonicalize a configuration type.
68Report bugs and patches to <config-patches@gnu.org>." 70Report bugs and patches to <config-patches@gnu.org>."
69 71
70version="\ 72version="\
71GNU config.sub ($timestamp) 73GNU config.sub ($timestamp)
72 74
73Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 75Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
74Free Software Foundation, Inc. 76Free Software Foundation, Inc.
75 77
76This is free software; see the source for copying conditions. There is NO 78This is free software; see the source for copying conditions. There is NO
77warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 79warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
78 80
81 83
82# Parse command line 84# Parse command line
83while test $# -gt 0 ; do 85while 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
107done 109done
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.
119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 121maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120case $maybe_os in 122case $maybe_os in
121 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
122 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125 storm-chaos* | os2-emx* | rtmk-nova*)
123 os=-$maybe_os 126 os=-$maybe_os
124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
125 ;; 128 ;;
126 *) 129 *)
127 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
143 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 146 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
144 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 147 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
145 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
146 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
147 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
148 -apple | -axis) 151 -apple | -axis | -knuth | -cray)
149 os= 152 os=
150 basic_machine=$1 153 basic_machine=$1
151 ;; 154 ;;
152 -sim | -cisco | -oki | -wec | -winbond) 155 -sim | -cisco | -oki | -wec | -winbond)
153 os= 156 os=
168 basic_machine=$1 171 basic_machine=$1
169 ;; 172 ;;
170 -hiux*) 173 -hiux*)
171 os=-hiuxwe2 174 os=-hiuxwe2
172 ;; 175 ;;
176 -sco6)
177 os=-sco5v6
178 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179 ;;
173 -sco5) 180 -sco5)
174 os=-sco3.2v5 181 os=-sco3.2v5
175 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
176 ;; 183 ;;
177 -sco4) 184 -sco4)
181 -sco3.2.[4-9]*) 188 -sco3.2.[4-9]*)
182 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 189 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
183 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
184 ;; 191 ;;
185 -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*)
186 # Don't forget version if it is 3.2v4 or newer. 197 # Don't forget version if it is 3.2v4 or newer.
187 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188 ;; 199 ;;
189 -sco*) 200 -sco*)
190 os=-sco3.2v2 201 os=-sco3.2v2
228 1750a | 580 \ 239 1750a | 580 \
229 | a29k \ 240 | a29k \
230 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 241 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
231 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 242 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
232 | am33_2.0 \ 243 | am33_2.0 \
233 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 244 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
245 | bfin \
234 | c4x | clipper \ 246 | c4x | clipper \
235 | d10v | d30v | dlx | dsp16xx \ 247 | d10v | d30v | dlx | dsp16xx \
236 | fr30 | frv \ 248 | fr30 | frv \
237 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 249 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
238 | i370 | i860 | i960 | ia64 \ 250 | i370 | i860 | i960 | ia64 \
239 | ip2k | iq2000 \ 251 | ip2k | iq2000 \
240 | m32r | m32rle | m68000 | m68k | m88k | mcore \ 252 | m32c | m32r | m32rle | m68000 | m68k | m88k \
253 | maxq | mb | microblaze | mcore \
241 | mips | mipsbe | mipseb | mipsel | mipsle \ 254 | mips | mipsbe | mipseb | mipsel | mipsle \
242 | mips16 \ 255 | mips16 \
243 | mips64 | mips64el \ 256 | mips64 | mips64el \
244 | mips64vr | mips64vrel \ 257 | mips64vr | mips64vrel \
245 | mips64orion | mips64orionel \ 258 | mips64orion | mips64orionel \
246 | mips64vr4100 | mips64vr4100el \ 259 | mips64vr4100 | mips64vr4100el \
247 | mips64vr4300 | mips64vr4300el \ 260 | mips64vr4300 | mips64vr4300el \
248 | mips64vr5000 | mips64vr5000el \ 261 | mips64vr5000 | mips64vr5000el \
262 | mips64vr5900 | mips64vr5900el \
249 | mipsisa32 | mipsisa32el \ 263 | mipsisa32 | mipsisa32el \
250 | mipsisa32r2 | mipsisa32r2el \ 264 | mipsisa32r2 | mipsisa32r2el \
251 | mipsisa64 | mipsisa64el \ 265 | mipsisa64 | mipsisa64el \
252 | mipsisa64r2 | mipsisa64r2el \ 266 | mipsisa64r2 | mipsisa64r2el \
253 | mipsisa64sb1 | mipsisa64sb1el \ 267 | mipsisa64sb1 | mipsisa64sb1el \
254 | mipsisa64sr71k | mipsisa64sr71kel \ 268 | mipsisa64sr71k | mipsisa64sr71kel \
255 | mipstx39 | mipstx39el \ 269 | mipstx39 | mipstx39el \
256 | mn10200 | mn10300 \ 270 | mn10200 | mn10300 \
271 | mt \
257 | msp430 \ 272 | msp430 \
273 | nios | nios2 \
258 | ns16k | ns32k \ 274 | ns16k | ns32k \
259 | openrisc | or32 \ 275 | or32 \
260 | pdp10 | pdp11 | pj | pjl \ 276 | pdp10 | pdp11 | pj | pjl \
261 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 277 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
262 | pyramid \ 278 | pyramid \
263 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 279 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
264 | sh64 | sh64le \ 280 | sh64 | sh64le \
265 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ 281 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
282 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
266 | strongarm \ 283 | spu | strongarm \
267 | tahoe | thumb | tic4x | tic80 | tron \ 284 | tahoe | thumb | tic4x | tic80 | tron \
268 | v850 | v850e \ 285 | v850 | v850e \
269 | we32k \ 286 | we32k \
270 | x86 | xscale | xstormy16 | xtensa \ 287 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
271 | z8k) 288 | z8k)
272 basic_machine=$basic_machine-unknown 289 basic_machine=$basic_machine-unknown
273 ;; 290 ;;
274 m6811 | m68hc11 | m6812 | m68hc12) 291 m6811 | m68hc11 | m6812 | m68hc12)
275 # Motorola 68HC11/12. 292 # Motorola 68HC11/12.
276 basic_machine=$basic_machine-unknown 293 basic_machine=$basic_machine-unknown
277 os=-none 294 os=-none
278 ;; 295 ;;
279 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
280 ;; 300 ;;
281 301
282 # We use `pc' rather than `unknown' 302 # We use `pc' rather than `unknown'
283 # because (1) that's what they normally are, and 303 # because (1) that's what they normally are, and
284 # (2) the word "unknown" tends to confuse beginning users. 304 # (2) the word "unknown" tends to confuse beginning users.
295 | a29k-* \ 315 | a29k-* \
296 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 316 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
297 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 317 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
298 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 318 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
299 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 319 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
300 | avr-* \ 320 | avr-* | avr32-* \
301 | bs2000-* \ 321 | bfin-* | bs2000-* \
302 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 322 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
303 | clipper-* | cydra-* \ 323 | clipper-* | craynv-* | cydra-* \
304 | d10v-* | d30v-* | dlx-* \ 324 | d10v-* | d30v-* | dlx-* \
305 | elxsi-* \ 325 | elxsi-* \
306 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 326 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
307 | h8300-* | h8500-* \ 327 | h8300-* | h8500-* \
308 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 328 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
309 | i*86-* | i860-* | i960-* | ia64-* \ 329 | i*86-* | i860-* | i960-* | ia64-* \
310 | ip2k-* | iq2000-* \ 330 | ip2k-* | iq2000-* \
311 | m32r-* | m32rle-* \ 331 | m32c-* | m32r-* | m32rle-* \
312 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 332 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
313 | m88110-* | m88k-* | mcore-* \ 333 | m88110-* | m88k-* | maxq-* | mcore-* \
314 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 334 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
315 | mips16-* \ 335 | mips16-* \
316 | mips64-* | mips64el-* \ 336 | mips64-* | mips64el-* \
317 | mips64vr-* | mips64vrel-* \ 337 | mips64vr-* | mips64vrel-* \
318 | mips64orion-* | mips64orionel-* \ 338 | mips64orion-* | mips64orionel-* \
319 | mips64vr4100-* | mips64vr4100el-* \ 339 | mips64vr4100-* | mips64vr4100el-* \
320 | mips64vr4300-* | mips64vr4300el-* \ 340 | mips64vr4300-* | mips64vr4300el-* \
321 | mips64vr5000-* | mips64vr5000el-* \ 341 | mips64vr5000-* | mips64vr5000el-* \
342 | mips64vr5900-* | mips64vr5900el-* \
322 | mipsisa32-* | mipsisa32el-* \ 343 | mipsisa32-* | mipsisa32el-* \
323 | mipsisa32r2-* | mipsisa32r2el-* \ 344 | mipsisa32r2-* | mipsisa32r2el-* \
324 | mipsisa64-* | mipsisa64el-* \ 345 | mipsisa64-* | mipsisa64el-* \
325 | mipsisa64r2-* | mipsisa64r2el-* \ 346 | mipsisa64r2-* | mipsisa64r2el-* \
326 | mipsisa64sb1-* | mipsisa64sb1el-* \ 347 | mipsisa64sb1-* | mipsisa64sb1el-* \
327 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 348 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
328 | mipstx39-* | mipstx39el-* \ 349 | mipstx39-* | mipstx39el-* \
350 | mmix-* \
351 | mt-* \
329 | msp430-* \ 352 | msp430-* \
353 | nios-* | nios2-* \
330 | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ 354 | none-* | np1-* | ns16k-* | ns32k-* \
331 | orion-* \ 355 | orion-* \
332 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 356 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
333 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 357 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
334 | pyramid-* \ 358 | pyramid-* \
335 | romp-* | rs6000-* \ 359 | romp-* | rs6000-* \
336 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 360 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
337 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 361 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
338 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 362 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
363 | sparclite-* \
339 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 364 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
340 | tahoe-* | thumb-* \ 365 | tahoe-* | thumb-* \
341 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 366 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
342 | tron-* \ 367 | tron-* \
343 | v850-* | v850e-* | vax-* \ 368 | v850-* | v850e-* | vax-* \
344 | we32k-* \ 369 | we32k-* \
345 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ 370 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
346 | xtensa-* \ 371 | xstormy16-* | xtensa-* \
347 | ymp-* \ 372 | ymp-* \
348 | z8k-*) 373 | z8k-*)
349 ;; 374 ;;
350 # Recognize the various machine names and aliases which stand 375 # Recognize the various machine names and aliases which stand
351 # for a CPU type and a company and sometimes even an OS. 376 # for a CPU type and a company and sometimes even an OS.
443 ;; 468 ;;
444 cray | j90) 469 cray | j90)
445 basic_machine=j90-cray 470 basic_machine=j90-cray
446 os=-unicos 471 os=-unicos
447 ;; 472 ;;
473 craynv)
474 basic_machine=craynv-cray
475 os=-unicosmp
476 ;;
448 cr16c) 477 cr16c)
449 basic_machine=cr16c-unknown 478 basic_machine=cr16c-unknown
450 os=-elf 479 os=-elf
451 ;; 480 ;;
452 crds | unos) 481 crds | unos)
453 basic_machine=m68k-crds 482 basic_machine=m68k-crds
454 ;; 483 ;;
484 crisv32 | crisv32-* | etraxfs*)
485 basic_machine=crisv32-axis
486 ;;
455 cris | cris-* | etrax*) 487 cris | cris-* | etrax*)
456 basic_machine=cris-axis 488 basic_machine=cris-axis
457 ;; 489 ;;
458 crx) 490 crx)
459 basic_machine=crx-unknown 491 basic_machine=crx-unknown
478 basic_machine=m68k-motorola 510 basic_machine=m68k-motorola
479 ;; 511 ;;
480 delta88) 512 delta88)
481 basic_machine=m88k-motorola 513 basic_machine=m88k-motorola
482 os=-sysv3 514 os=-sysv3
515 ;;
516 djgpp)
517 basic_machine=i586-pc
518 os=-msdosdjgpp
483 ;; 519 ;;
484 dpx20 | dpx20-*) 520 dpx20 | dpx20-*)
485 basic_machine=rs6000-bull 521 basic_machine=rs6000-bull
486 os=-bosx 522 os=-bosx
487 ;; 523 ;;
657 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 693 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
658 ;; 694 ;;
659 mips3*) 695 mips3*)
660 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 696 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
661 ;; 697 ;;
662 mmix*)
663 basic_machine=mmix-knuth
664 os=-mmixware
665 ;;
666 monitor) 698 monitor)
667 basic_machine=m68k-rom68k 699 basic_machine=m68k-rom68k
668 os=-coff 700 os=-coff
669 ;; 701 ;;
670 morphos) 702 morphos)
672 os=-morphos 704 os=-morphos
673 ;; 705 ;;
674 msdos) 706 msdos)
675 basic_machine=i386-pc 707 basic_machine=i386-pc
676 os=-msdos 708 os=-msdos
709 ;;
710 ms1-*)
711 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
677 ;; 712 ;;
678 mvs) 713 mvs)
679 basic_machine=i370-ibm 714 basic_machine=i370-ibm
680 os=-mvs 715 os=-mvs
681 ;; 716 ;;
741 os=-nonstopux 776 os=-nonstopux
742 ;; 777 ;;
743 np1) 778 np1)
744 basic_machine=np1-gould 779 basic_machine=np1-gould
745 ;; 780 ;;
746 nv1)
747 basic_machine=nv1-cray
748 os=-unicosmp
749 ;;
750 nsr-tandem) 781 nsr-tandem)
751 basic_machine=nsr-tandem 782 basic_machine=nsr-tandem
752 ;; 783 ;;
753 op50n-* | op60c-*) 784 op50n-* | op60c-*)
754 basic_machine=hppa1.1-oki 785 basic_machine=hppa1.1-oki
755 os=-proelf 786 os=-proelf
756 ;; 787 ;;
757 or32 | or32-*) 788 openrisc | openrisc-*)
758 basic_machine=or32-unknown 789 basic_machine=or32-unknown
759 os=-coff
760 ;; 790 ;;
761 os400) 791 os400)
762 basic_machine=powerpc-ibm 792 basic_machine=powerpc-ibm
763 os=-os400 793 os=-os400
764 ;; 794 ;;
785 basic_machine=m68k-tti 815 basic_machine=m68k-tti
786 ;; 816 ;;
787 pc532 | pc532-*) 817 pc532 | pc532-*)
788 basic_machine=ns32k-pc532 818 basic_machine=ns32k-pc532
789 ;; 819 ;;
820 pc98)
821 basic_machine=i386-pc
822 ;;
823 pc98-*)
824 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
825 ;;
790 pentium | p5 | k5 | k6 | nexgen | viac3) 826 pentium | p5 | k5 | k6 | nexgen | viac3)
791 basic_machine=i586-pc 827 basic_machine=i586-pc
792 ;; 828 ;;
793 pentiumpro | p6 | 6x86 | athlon | athlon_*) 829 pentiumpro | p6 | 6x86 | athlon | athlon_*)
794 basic_machine=i686-pc 830 basic_machine=i686-pc
841 ;; 877 ;;
842 pw32) 878 pw32)
843 basic_machine=i586-unknown 879 basic_machine=i586-unknown
844 os=-pw32 880 os=-pw32
845 ;; 881 ;;
882 rdos)
883 basic_machine=i386-pc
884 os=-rdos
885 ;;
846 rom68k) 886 rom68k)
847 basic_machine=m68k-rom68k 887 basic_machine=m68k-rom68k
848 os=-coff 888 os=-coff
849 ;; 889 ;;
850 rm[46]00) 890 rm[46]00)
1026 os=-none 1066 os=-none
1027 ;; 1067 ;;
1028 w89k-*) 1068 w89k-*)
1029 basic_machine=hppa1.1-winbond 1069 basic_machine=hppa1.1-winbond
1030 os=-proelf 1070 os=-proelf
1071 ;;
1072 xbox)
1073 basic_machine=i686-pc
1074 os=-mingw32
1031 ;; 1075 ;;
1032 xps | xps100) 1076 xps | xps100)
1033 basic_machine=xps100-honeywell 1077 basic_machine=xps100-honeywell
1034 ;; 1078 ;;
1035 ymp) 1079 ymp)
1057 basic_machine=hppa1.1-oki 1101 basic_machine=hppa1.1-oki
1058 ;; 1102 ;;
1059 romp) 1103 romp)
1060 basic_machine=romp-ibm 1104 basic_machine=romp-ibm
1061 ;; 1105 ;;
1106 mmix)
1107 basic_machine=mmix-knuth
1108 ;;
1062 rs6000) 1109 rs6000)
1063 basic_machine=rs6000-ibm 1110 basic_machine=rs6000-ibm
1064 ;; 1111 ;;
1065 vax) 1112 vax)
1066 basic_machine=vax-dec 1113 basic_machine=vax-dec
1073 basic_machine=pdp11-dec 1120 basic_machine=pdp11-dec
1074 ;; 1121 ;;
1075 we32k) 1122 we32k)
1076 basic_machine=we32k-att 1123 basic_machine=we32k-att
1077 ;; 1124 ;;
1078 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 1125 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1079 basic_machine=sh-unknown 1126 basic_machine=sh-unknown
1080 ;; 1127 ;;
1081 sh64)
1082 basic_machine=sh64-unknown
1083 ;;
1084 sparc | sparcv8 | sparcv9 | sparcv9b) 1128 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1085 basic_machine=sparc-sun 1129 basic_machine=sparc-sun
1086 ;; 1130 ;;
1087 cydra) 1131 cydra)
1088 basic_machine=cydra-cydrome 1132 basic_machine=cydra-cydrome
1089 ;; 1133 ;;
1152 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1196 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1153 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1197 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1154 | -aos* \ 1198 | -aos* \
1155 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1199 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1156 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1200 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1157 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1201 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1202 | -openbsd* | -solidbsd* \
1158 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1203 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1159 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1204 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1160 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1205 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1161 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1206 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1162 | -chorusos* | -chorusrdb* \ 1207 | -chorusos* | -chorusrdb* \
1163 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1208 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1164 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1209 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1210 | -uxpv* | -beos* | -mpeix* | -udk* \
1165 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1211 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1166 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1212 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1167 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1213 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1168 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1214 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1169 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1215 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1170 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) 1216 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1217 | -skyos* | -haiku* | -rdos* | -toppers*)
1171 # Remember, each alternative MUST END IN *, to match a version number. 1218 # Remember, each alternative MUST END IN *, to match a version number.
1172 ;; 1219 ;;
1173 -qnx*) 1220 -qnx*)
1174 case $basic_machine in 1221 case $basic_machine in
1175 x86-* | i*86-*) 1222 x86-* | i*86-*)
1183 ;; 1230 ;;
1184 -nto*) 1231 -nto*)
1185 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1232 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1186 ;; 1233 ;;
1187 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1234 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1188 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 1235 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1189 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1236 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1190 ;; 1237 ;;
1191 -mac*) 1238 -mac*)
1192 os=`echo $os | sed -e 's|mac|macos|'` 1239 os=`echo $os | sed -e 's|mac|macos|'`
1193 ;; 1240 ;;
1291 -aros*) 1338 -aros*)
1292 os=-aros 1339 os=-aros
1293 ;; 1340 ;;
1294 -kaos*) 1341 -kaos*)
1295 os=-kaos 1342 os=-kaos
1343 ;;
1344 -zvmoe)
1345 os=-zvmoe
1296 ;; 1346 ;;
1297 -none) 1347 -none)
1298 ;; 1348 ;;
1299 *) 1349 *)
1300 # Get rid of the `-' at the beginning of $os. 1350 # Get rid of the `-' at the beginning of $os.
1314# that MANUFACTURER isn't an operating system. Otherwise, code above 1364# that MANUFACTURER isn't an operating system. Otherwise, code above
1315# will signal an error saying that MANUFACTURER isn't an operating 1365# will signal an error saying that MANUFACTURER isn't an operating
1316# system, and we'll never get to this point. 1366# system, and we'll never get to this point.
1317 1367
1318case $basic_machine in 1368case $basic_machine in
1369 spu-*)
1370 os=-elf
1371 ;;
1319 *-acorn) 1372 *-acorn)
1320 os=-riscix1.2 1373 os=-riscix1.2
1321 ;; 1374 ;;
1322 arm*-rebel) 1375 arm*-rebel)
1323 os=-linux 1376 os=-linux
1324 ;; 1377 ;;
1325 arm*-semi) 1378 arm*-semi)
1326 os=-aout 1379 os=-aout
1327 ;; 1380 ;;
1328 c4x-* | tic4x-*) 1381 c4x-* | tic4x-*)
1329 os=-coff 1382 os=-coff
1330 ;; 1383 ;;
1331 # This must come before the *-dec entry. 1384 # This must come before the *-dec entry.
1332 pdp10-*) 1385 pdp10-*)
1333 os=-tops20 1386 os=-tops20
1334 ;; 1387 ;;
1335 pdp11-*) 1388 pdp11-*)
1369 os=-sunos4.1.1 1422 os=-sunos4.1.1
1370 ;; 1423 ;;
1371 *-be) 1424 *-be)
1372 os=-beos 1425 os=-beos
1373 ;; 1426 ;;
1427 *-haiku)
1428 os=-haiku
1429 ;;
1374 *-ibm) 1430 *-ibm)
1375 os=-aix 1431 os=-aix
1432 ;;
1433 *-knuth)
1434 os=-mmixware
1376 ;; 1435 ;;
1377 *-wec) 1436 *-wec)
1378 os=-proelf 1437 os=-proelf
1379 ;; 1438 ;;
1380 *-winbond) 1439 *-winbond)
1537 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1596 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1538 ;; 1597 ;;
1539esac 1598esac
1540 1599
1541echo $basic_machine$os 1600echo $basic_machine$os
1542exit 0 1601exit
1543 1602
1544# Local variables: 1603# Local variables:
1545# eval: (add-hook 'write-file-hooks 'time-stamp) 1604# eval: (add-hook 'write-file-hooks 'time-stamp)
1546# time-stamp-start: "timestamp='" 1605# time-stamp-start: "timestamp='"
1547# time-stamp-format: "%:y-%02m-%02d" 1606# time-stamp-format: "%:y-%02m-%02d"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines