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