source: patches/file-4.17-mips_config_update-1.patch@ 2eb2779

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 2eb2779 was 69cde8d, checked in by Jim Gifford <clfs@…>, 19 years ago

Added: All patches needed for the book.

  • Property mode set to 100644
File size: 35.4 KB
RevLine 
[69cde8d]1Submitted By: Jim Gifford (patches at jg555 dot com)
2Date: 2005-10-01
3Initial Package Version: 4.15
4Origin: Jim Gifford
5Upstream Status: Unknown
6Description: Updates config.sub and config.guess
7
8diff -Naur file-4.15.orig/config.guess file-4.15/config.guess
9--- file-4.15.orig/config.guess 2004-11-25 03:03:04.000000000 +0000
10+++ file-4.15/config.guess 2005-10-01 17:10:08.000000000 +0000
11@@ -1,9 +1,9 @@
12 #! /bin/sh
13 # Attempt to guess a canonical system name.
14 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
15-# 2000, 2001, 2002 Free Software Foundation, Inc.
16+# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
17
18-timestamp='2002-07-23'
19+timestamp='2004-11-12'
20
21 # This file is free software; you can redistribute it and/or modify it
22 # under the terms of the GNU General Public License as published by
23@@ -53,7 +53,7 @@
24 GNU config.guess ($timestamp)
25
26 Originally written by Per Bothner.
27-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
28+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
29 Free Software Foundation, Inc.
30
31 This is free software; see the source for copying conditions. There is NO
32@@ -98,30 +98,32 @@
33 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
34 # use `HOST_CC' if defined, but it is deprecated.
35
36-# This shell variable is my proudest work .. or something. --bje
37+# Portable tmp directory creation inspired by the Autoconf team.
38
39-set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ;
40-(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old)
41- || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ;
42-dummy=$tmpdir/dummy ;
43-files="$dummy.c $dummy.o $dummy.rel $dummy" ;
44-trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;
45+set_cc_for_build='
46+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
47+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
48+: ${TMPDIR=/tmp} ;
49+ { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
50+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
51+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
52+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
53+dummy=$tmp/dummy ;
54+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
55 case $CC_FOR_BUILD,$HOST_CC,$CC in
56 ,,) echo "int x;" > $dummy.c ;
57 for c in cc gcc c89 c99 ; do
58- if ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; then
59+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
60 CC_FOR_BUILD="$c"; break ;
61 fi ;
62 done ;
63- rm -f $files ;
64 if test x"$CC_FOR_BUILD" = x ; then
65 CC_FOR_BUILD=no_compiler_found ;
66 fi
67 ;;
68 ,,*) CC_FOR_BUILD=$CC ;;
69 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
70-esac ;
71-unset files'
72+esac ;'
73
74 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
75 # (ghazi@noc.rutgers.edu 1994-08-24)
76@@ -178,21 +180,38 @@
77 ;;
78 esac
79 # The OS release
80- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
81+ # Debian GNU/NetBSD machines have a different userland, and
82+ # thus, need a distinct triplet. However, they do not need
83+ # kernel version information, so it can be replaced with a
84+ # suitable tag, in the style of linux-gnu.
85+ case "${UNAME_VERSION}" in
86+ Debian*)
87+ release='-gnu'
88+ ;;
89+ *)
90+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
91+ ;;
92+ esac
93 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
94 # contains redundant information, the shorter form:
95 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
96 echo "${machine}-${os}${release}"
97 exit 0 ;;
98+ amd64:OpenBSD:*:*)
99+ echo x86_64-unknown-openbsd${UNAME_RELEASE}
100+ exit 0 ;;
101 amiga:OpenBSD:*:*)
102 echo m68k-unknown-openbsd${UNAME_RELEASE}
103 exit 0 ;;
104- arc:OpenBSD:*:*)
105- echo mipsel-unknown-openbsd${UNAME_RELEASE}
106+ cats:OpenBSD:*:*)
107+ echo arm-unknown-openbsd${UNAME_RELEASE}
108 exit 0 ;;
109 hp300:OpenBSD:*:*)
110 echo m68k-unknown-openbsd${UNAME_RELEASE}
111 exit 0 ;;
112+ luna88k:OpenBSD:*:*)
113+ echo m88k-unknown-openbsd${UNAME_RELEASE}
114+ exit 0 ;;
115 mac68k:OpenBSD:*:*)
116 echo m68k-unknown-openbsd${UNAME_RELEASE}
117 exit 0 ;;
118@@ -208,86 +227,76 @@
119 mvmeppc:OpenBSD:*:*)
120 echo powerpc-unknown-openbsd${UNAME_RELEASE}
121 exit 0 ;;
122- pmax:OpenBSD:*:*)
123- echo mipsel-unknown-openbsd${UNAME_RELEASE}
124- exit 0 ;;
125 sgi:OpenBSD:*:*)
126- echo mipseb-unknown-openbsd${UNAME_RELEASE}
127+ echo mips64-unknown-openbsd${UNAME_RELEASE}
128 exit 0 ;;
129 sun3:OpenBSD:*:*)
130 echo m68k-unknown-openbsd${UNAME_RELEASE}
131 exit 0 ;;
132- wgrisc:OpenBSD:*:*)
133- echo mipsel-unknown-openbsd${UNAME_RELEASE}
134- exit 0 ;;
135 *:OpenBSD:*:*)
136 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
137 exit 0 ;;
138+ *:ekkoBSD:*:*)
139+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
140+ exit 0 ;;
141+ macppc:MirBSD:*:*)
142+ echo powerppc-unknown-mirbsd${UNAME_RELEASE}
143+ exit 0 ;;
144+ *:MirBSD:*:*)
145+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
146+ exit 0 ;;
147 alpha:OSF1:*:*)
148- if test $UNAME_RELEASE = "V4.0"; then
149+ case $UNAME_RELEASE in
150+ *4.0)
151 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
152- fi
153+ ;;
154+ *5.*)
155+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
156+ ;;
157+ esac
158+ # According to Compaq, /usr/sbin/psrinfo has been available on
159+ # OSF/1 and Tru64 systems produced since 1995. I hope that
160+ # covers most systems running today. This code pipes the CPU
161+ # types through head -n 1, so we only detect the type of CPU 0.
162+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
163+ case "$ALPHA_CPU_TYPE" in
164+ "EV4 (21064)")
165+ UNAME_MACHINE="alpha" ;;
166+ "EV4.5 (21064)")
167+ UNAME_MACHINE="alpha" ;;
168+ "LCA4 (21066/21068)")
169+ UNAME_MACHINE="alpha" ;;
170+ "EV5 (21164)")
171+ UNAME_MACHINE="alphaev5" ;;
172+ "EV5.6 (21164A)")
173+ UNAME_MACHINE="alphaev56" ;;
174+ "EV5.6 (21164PC)")
175+ UNAME_MACHINE="alphapca56" ;;
176+ "EV5.7 (21164PC)")
177+ UNAME_MACHINE="alphapca57" ;;
178+ "EV6 (21264)")
179+ UNAME_MACHINE="alphaev6" ;;
180+ "EV6.7 (21264A)")
181+ UNAME_MACHINE="alphaev67" ;;
182+ "EV6.8CB (21264C)")
183+ UNAME_MACHINE="alphaev68" ;;
184+ "EV6.8AL (21264B)")
185+ UNAME_MACHINE="alphaev68" ;;
186+ "EV6.8CX (21264D)")
187+ UNAME_MACHINE="alphaev68" ;;
188+ "EV6.9A (21264/EV69A)")
189+ UNAME_MACHINE="alphaev69" ;;
190+ "EV7 (21364)")
191+ UNAME_MACHINE="alphaev7" ;;
192+ "EV7.9 (21364A)")
193+ UNAME_MACHINE="alphaev79" ;;
194+ esac
195+ # A Pn.n version is a patched version.
196 # A Vn.n version is a released version.
197 # A Tn.n version is a released field test version.
198 # A Xn.n version is an unreleased experimental baselevel.
199 # 1.2 uses "1.2" for uname -r.
200- eval $set_cc_for_build
201- cat <<EOF >$dummy.s
202- .data
203-\$Lformat:
204- .byte 37,100,45,37,120,10,0 # "%d-%x\n"
205-
206- .text
207- .globl main
208- .align 4
209- .ent main
210-main:
211- .frame \$30,16,\$26,0
212- ldgp \$29,0(\$27)
213- .prologue 1
214- .long 0x47e03d80 # implver \$0
215- lda \$2,-1
216- .long 0x47e20c21 # amask \$2,\$1
217- lda \$16,\$Lformat
218- mov \$0,\$17
219- not \$1,\$18
220- jsr \$26,printf
221- ldgp \$29,0(\$26)
222- mov 0,\$16
223- jsr \$26,exit
224- .end main
225-EOF
226- $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
227- if test "$?" = 0 ; then
228- case `$dummy` in
229- 0-0)
230- UNAME_MACHINE="alpha"
231- ;;
232- 1-0)
233- UNAME_MACHINE="alphaev5"
234- ;;
235- 1-1)
236- UNAME_MACHINE="alphaev56"
237- ;;
238- 1-101)
239- UNAME_MACHINE="alphapca56"
240- ;;
241- 2-303)
242- UNAME_MACHINE="alphaev6"
243- ;;
244- 2-307)
245- UNAME_MACHINE="alphaev67"
246- ;;
247- 2-1307)
248- UNAME_MACHINE="alphaev68"
249- ;;
250- 3-1307)
251- UNAME_MACHINE="alphaev7"
252- ;;
253- esac
254- fi
255- rm -f $dummy.s $dummy && rmdir $tmpdir
256- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
257+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
258 exit 0 ;;
259 Alpha\ *:Windows_NT*:*)
260 # How do we know it's Interix rather than the generic POSIX subsystem?
261@@ -310,6 +319,12 @@
262 *:OS/390:*:*)
263 echo i370-ibm-openedition
264 exit 0 ;;
265+ *:z/VM:*:*)
266+ echo s390-ibm-zvmoe
267+ exit 0 ;;
268+ *:OS400:*:*)
269+ echo powerpc-ibm-os400
270+ exit 0 ;;
271 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
272 echo arm-acorn-riscix${UNAME_RELEASE}
273 exit 0;;
274@@ -327,7 +342,10 @@
275 NILE*:*:*:dcosx)
276 echo pyramid-pyramid-svr4
277 exit 0 ;;
278- DRS?6000:UNIX_SV:4.2*:7*)
279+ DRS?6000:unix:4.0:6*)
280+ echo sparc-icl-nx6
281+ exit 0 ;;
282+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
283 case `/usr/bin/uname -p` in
284 sparc) echo sparc-icl-nx7 && exit 0 ;;
285 esac ;;
286@@ -399,6 +417,9 @@
287 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
288 echo m68k-unknown-mint${UNAME_RELEASE}
289 exit 0 ;;
290+ m68k:machten:*:*)
291+ echo m68k-apple-machten${UNAME_RELEASE}
292+ exit 0 ;;
293 powerpc:machten:*:*)
294 echo powerpc-apple-machten${UNAME_RELEASE}
295 exit 0 ;;
296@@ -437,16 +458,18 @@
297 exit (-1);
298 }
299 EOF
300- $CC_FOR_BUILD $dummy.c -o $dummy \
301+ $CC_FOR_BUILD -o $dummy $dummy.c \
302 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
303- && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
304- rm -f $dummy.c $dummy && rmdir $tmpdir
305+ && exit 0
306 echo mips-mips-riscos${UNAME_RELEASE}
307 exit 0 ;;
308 Motorola:PowerMAX_OS:*:*)
309 echo powerpc-motorola-powermax
310 exit 0 ;;
311- Night_Hawk:*:*:PowerMAX_OS)
312+ Motorola:*:4.3:PL8-*)
313+ echo powerpc-harris-powermax
314+ exit 0 ;;
315+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
316 echo powerpc-harris-powermax
317 exit 0 ;;
318 Night_Hawk:Power_UNIX:*:*)
319@@ -521,8 +544,7 @@
320 exit(0);
321 }
322 EOF
323- $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
324- rm -f $dummy.c $dummy && rmdir $tmpdir
325+ $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
326 echo rs6000-ibm-aix3.2.5
327 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
328 echo rs6000-ibm-aix3.2.4
329@@ -620,11 +642,21 @@
330 exit (0);
331 }
332 EOF
333- (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy`
334- if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
335- rm -f $dummy.c $dummy && rmdir $tmpdir
336+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
337+ test -z "$HP_ARCH" && HP_ARCH=hppa
338 fi ;;
339 esac
340+ if [ ${HP_ARCH} = "hppa2.0w" ]
341+ then
342+ # avoid double evaluation of $set_cc_for_build
343+ test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
344+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
345+ then
346+ HP_ARCH="hppa2.0w"
347+ else
348+ HP_ARCH="hppa64"
349+ fi
350+ fi
351 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
352 exit 0 ;;
353 ia64:HP-UX:*:*)
354@@ -658,8 +690,7 @@
355 exit (0);
356 }
357 EOF
358- $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
359- rm -f $dummy.c $dummy && rmdir $tmpdir
360+ $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
361 echo unknown-hitachi-hiuxwe2
362 exit 0 ;;
363 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
364@@ -717,21 +748,26 @@
365 CRAY*TS:*:*:*)
366 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
367 exit 0 ;;
368- CRAY*T3D:*:*:*)
369- echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
370- exit 0 ;;
371 CRAY*T3E:*:*:*)
372 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
373 exit 0 ;;
374 CRAY*SV1:*:*:*)
375 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
376 exit 0 ;;
377+ *:UNICOS/mp:*:*)
378+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
379+ exit 0 ;;
380 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
381 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
382 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
383 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
384 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
385 exit 0 ;;
386+ 5000:UNIX_System_V:4.*:*)
387+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
388+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
389+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
390+ exit 0 ;;
391 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
392 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
393 exit 0 ;;
394@@ -742,19 +778,7 @@
395 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
396 exit 0 ;;
397 *:FreeBSD:*:*)
398- # Determine whether the default compiler uses glibc.
399- eval $set_cc_for_build
400- sed 's/^ //' << EOF >$dummy.c
401- #include <features.h>
402- #if __GLIBC__ >= 2
403- LIBC=gnu
404- #else
405- LIBC=
406- #endif
407-EOF
408- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
409- rm -f $dummy.c && rmdir $tmpdir
410- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
411+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
412 exit 0 ;;
413 i*:CYGWIN*:*)
414 echo ${UNAME_MACHINE}-pc-cygwin
415@@ -765,14 +789,17 @@
416 i*:PW*:*)
417 echo ${UNAME_MACHINE}-pc-pw32
418 exit 0 ;;
419- x86:Interix*:3*)
420- echo i386-pc-interix3
421+ x86:Interix*:[34]*)
422+ echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
423+ exit 0 ;;
424+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
425+ echo i${UNAME_MACHINE}-pc-mks
426 exit 0 ;;
427 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
428 # How do we know it's Interix rather than the generic POSIX subsystem?
429 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
430 # UNAME_MACHINE based on the output of uname instead of i386?
431- echo i386-pc-interix
432+ echo i586-pc-interix
433 exit 0 ;;
434 i*:UWIN*:*)
435 echo ${UNAME_MACHINE}-pc-uwin
436@@ -784,17 +811,34 @@
437 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
438 exit 0 ;;
439 *:GNU:*:*)
440+ # the GNU system
441 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
442 exit 0 ;;
443+ *:GNU/*:*:*)
444+ # other systems with GNU libc and userland
445+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
446+ exit 0 ;;
447 i*86:Minix:*:*)
448 echo ${UNAME_MACHINE}-pc-minix
449 exit 0 ;;
450 arm*:Linux:*:*)
451 echo ${UNAME_MACHINE}-unknown-linux-gnu
452 exit 0 ;;
453+ cris:Linux:*:*)
454+ echo cris-axis-linux-gnu
455+ exit 0 ;;
456+ crisv32:Linux:*:*)
457+ echo crisv32-axis-linux-gnu
458+ exit 0 ;;
459+ frv:Linux:*:*)
460+ echo frv-unknown-linux-gnu
461+ exit 0 ;;
462 ia64:Linux:*:*)
463 echo ${UNAME_MACHINE}-unknown-linux-gnu
464 exit 0 ;;
465+ m32r*:Linux:*:*)
466+ echo ${UNAME_MACHINE}-unknown-linux-gnu
467+ exit 0 ;;
468 m68*:Linux:*:*)
469 echo ${UNAME_MACHINE}-unknown-linux-gnu
470 exit 0 ;;
471@@ -815,8 +859,26 @@
472 #endif
473 EOF
474 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
475- rm -f $dummy.c && rmdir $tmpdir
476- test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
477+ test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
478+ ;;
479+ mips64:Linux:*:*)
480+ eval $set_cc_for_build
481+ sed 's/^ //' << EOF >$dummy.c
482+ #undef CPU
483+ #undef mips64
484+ #undef mips64el
485+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
486+ CPU=mips64el
487+ #else
488+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
489+ CPU=mips64
490+ #else
491+ CPU=
492+ #endif
493+ #endif
494+EOF
495+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
496+ test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
497 ;;
498 ppc:Linux:*:*)
499 echo powerpc-unknown-linux-gnu
500@@ -852,6 +914,9 @@
501 s390:Linux:*:* | s390x:Linux:*:*)
502 echo ${UNAME_MACHINE}-ibm-linux
503 exit 0 ;;
504+ sh64*:Linux:*:*)
505+ echo ${UNAME_MACHINE}-unknown-linux-gnu
506+ exit 0 ;;
507 sh*:Linux:*:*)
508 echo ${UNAME_MACHINE}-unknown-linux-gnu
509 exit 0 ;;
510@@ -909,9 +974,11 @@
511 LIBC=gnuaout
512 #endif
513 #endif
514+ #ifdef __dietlibc__
515+ LIBC=dietlibc
516+ #endif
517 EOF
518 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
519- rm -f $dummy.c && rmdir $tmpdir
520 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
521 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
522 ;;
523@@ -929,6 +996,26 @@
524 # Use sysv4.2uw... so that sysv4* matches it.
525 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
526 exit 0 ;;
527+ i*86:OS/2:*:*)
528+ # If we were able to find `uname', then EMX Unix compatibility
529+ # is probably installed.
530+ echo ${UNAME_MACHINE}-pc-os2-emx
531+ exit 0 ;;
532+ i*86:XTS-300:*:STOP)
533+ echo ${UNAME_MACHINE}-unknown-stop
534+ exit 0 ;;
535+ i*86:atheos:*:*)
536+ echo ${UNAME_MACHINE}-unknown-atheos
537+ exit 0 ;;
538+ i*86:syllable:*:*)
539+ echo ${UNAME_MACHINE}-pc-syllable
540+ exit 0 ;;
541+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
542+ echo i386-unknown-lynxos${UNAME_RELEASE}
543+ exit 0 ;;
544+ i*86:*DOS:*:*)
545+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
546+ exit 0 ;;
547 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
548 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
549 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
550@@ -963,9 +1050,6 @@
551 echo ${UNAME_MACHINE}-pc-sysv32
552 fi
553 exit 0 ;;
554- i*86:*DOS:*:*)
555- echo ${UNAME_MACHINE}-pc-msdosdjgpp
556- exit 0 ;;
557 pc:*:*:*)
558 # Left here for compatibility:
559 # uname -m prints for DJGPP always 'pc', but it prints nothing about
560@@ -989,9 +1073,15 @@
561 # "miniframe"
562 echo m68010-convergent-sysv
563 exit 0 ;;
564- M68*:*:R3V[567]*:*)
565+ mc68k:UNIX:SYSTEM5:3.51m)
566+ echo m68k-convergent-sysv
567+ exit 0 ;;
568+ M680?0:D-NIX:5.3:*)
569+ echo m68k-diab-dnix
570+ exit 0 ;;
571+ M68*:*:R3V[5678]*:*)
572 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
573- 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)
574+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
575 OS_REL=''
576 test -r /etc/.relid \
577 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
578@@ -1008,9 +1098,6 @@
579 mc68030:UNIX_System_V:4.*:*)
580 echo m68k-atari-sysv4
581 exit 0 ;;
582- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
583- echo i386-unknown-lynxos${UNAME_RELEASE}
584- exit 0 ;;
585 TSUNAMI:LynxOS:2.*:*)
586 echo sparc-unknown-lynxos${UNAME_RELEASE}
587 exit 0 ;;
588@@ -1082,6 +1169,9 @@
589 SX-5:SUPER-UX:*:*)
590 echo sx5-nec-superux${UNAME_RELEASE}
591 exit 0 ;;
592+ SX-6:SUPER-UX:*:*)
593+ echo sx6-nec-superux${UNAME_RELEASE}
594+ exit 0 ;;
595 Power*:Rhapsody:*:*)
596 echo powerpc-apple-rhapsody${UNAME_RELEASE}
597 exit 0 ;;
598@@ -1089,7 +1179,12 @@
599 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
600 exit 0 ;;
601 *:Darwin:*:*)
602- echo `uname -p`-apple-darwin${UNAME_RELEASE}
603+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
604+ case $UNAME_PROCESSOR in
605+ *86) UNAME_PROCESSOR=i686 ;;
606+ unknown) UNAME_PROCESSOR=powerpc ;;
607+ esac
608+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
609 exit 0 ;;
610 *:procnto*:*:* | *:QNX:[0123456789]*:*)
611 UNAME_PROCESSOR=`uname -p`
612@@ -1102,7 +1197,7 @@
613 *:QNX:*:4*)
614 echo i386-pc-qnx
615 exit 0 ;;
616- NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*)
617+ NSR-?:NONSTOP_KERNEL:*:*)
618 echo nsr-tandem-nsk${UNAME_RELEASE}
619 exit 0 ;;
620 *:NonStop-UX:*:*)
621@@ -1125,11 +1220,6 @@
622 fi
623 echo ${UNAME_MACHINE}-unknown-plan9
624 exit 0 ;;
625- i*86:OS/2:*:*)
626- # If we were able to find `uname', then EMX Unix compatibility
627- # is probably installed.
628- echo ${UNAME_MACHINE}-pc-os2-emx
629- exit 0 ;;
630 *:TOPS-10:*:*)
631 echo pdp10-unknown-tops10
632 exit 0 ;;
633@@ -1148,11 +1238,21 @@
634 *:ITS:*:*)
635 echo pdp10-unknown-its
636 exit 0 ;;
637- i*86:XTS-300:*:STOP)
638- echo ${UNAME_MACHINE}-unknown-stop
639+ SEI:*:*:SEIUX)
640+ echo mips-sei-seiux${UNAME_RELEASE}
641 exit 0 ;;
642- i*86:atheos:*:*)
643- echo ${UNAME_MACHINE}-unknown-atheos
644+ *:DragonFly:*:*)
645+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
646+ exit 0 ;;
647+ *:*VMS:*:*)
648+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
649+ case "${UNAME_MACHINE}" in
650+ A*) echo alpha-dec-vms && exit 0 ;;
651+ I*) echo ia64-dec-vms && exit 0 ;;
652+ V*) echo vax-dec-vms && exit 0 ;;
653+ esac ;;
654+ *:XENIX:*:SysV)
655+ echo i386-pc-xenix
656 exit 0 ;;
657 esac
658
659@@ -1274,8 +1374,7 @@
660 }
661 EOF
662
663-$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
664-rm -f $dummy.c $dummy && rmdir $tmpdir
665+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
666
667 # Apollos put the system type in the environment.
668
669diff -Naur file-4.15.orig/config.sub file-4.15/config.sub
670--- file-4.15.orig/config.sub 2003-03-25 13:01:09.000000000 +0000
671+++ file-4.15/config.sub 2005-10-01 17:10:12.000000000 +0000
672@@ -1,9 +1,9 @@
673 #! /bin/sh
674 # Configuration validation subroutine script.
675 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
676-# 2000, 2001, 2002 Free Software Foundation, Inc.
677+# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
678
679-timestamp='2002-07-03'
680+timestamp='2004-11-30'
681
682 # This file is (in principle) common to ALL GNU software.
683 # The presence of a machine in this file suggests that SOME GNU software
684@@ -70,7 +70,7 @@
685 version="\
686 GNU config.sub ($timestamp)
687
688-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
689+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
690 Free Software Foundation, Inc.
691
692 This is free software; see the source for copying conditions. There is NO
693@@ -118,7 +118,8 @@
694 # Here we must recognize all the valid KERNEL-OS combinations.
695 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
696 case $maybe_os in
697- nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
698+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
699+ kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
700 os=-$maybe_os
701 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
702 ;;
703@@ -144,7 +145,7 @@
704 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
705 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
706 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
707- -apple | -axis)
708+ -apple | -axis | -knuth | -cray)
709 os=
710 basic_machine=$1
711 ;;
712@@ -228,39 +229,45 @@
713 | a29k \
714 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
715 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
716+ | am33_2.0 \
717 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
718 | c4x | clipper \
719 | d10v | d30v | dlx | dsp16xx \
720 | fr30 | frv \
721 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
722 | i370 | i860 | i960 | ia64 \
723- | ip2k \
724- | m32r | m68000 | m68k | m88k | mcore \
725+ | ip2k | iq2000 \
726+ | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
727 | mips | mipsbe | mipseb | mipsel | mipsle \
728 | mips16 \
729 | mips64 | mips64el \
730+ | mips64vr | mips64vrel \
731 | mips64orion | mips64orionel \
732 | mips64vr4100 | mips64vr4100el \
733 | mips64vr4300 | mips64vr4300el \
734 | mips64vr5000 | mips64vr5000el \
735 | mipsisa32 | mipsisa32el \
736+ | mipsisa32r2 | mipsisa32r2el \
737 | mipsisa64 | mipsisa64el \
738+ | mipsisa64r2 | mipsisa64r2el \
739 | mipsisa64sb1 | mipsisa64sb1el \
740+ | mipsisa64sr71k | mipsisa64sr71kel \
741 | mipstx39 | mipstx39el \
742 | mn10200 | mn10300 \
743+ | msp430 \
744 | ns16k | ns32k \
745 | openrisc | or32 \
746 | pdp10 | pdp11 | pj | pjl \
747 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
748 | pyramid \
749- | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
750+ | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
751 | sh64 | sh64le \
752- | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
753+ | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
754 | strongarm \
755- | tahoe | thumb | tic80 | tron \
756+ | tahoe | thumb | tic4x | tic80 | tron \
757 | v850 | v850e \
758 | we32k \
759- | x86 | xscale | xstormy16 | xtensa \
760+ | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
761 | z8k)
762 basic_machine=$basic_machine-unknown
763 ;;
764@@ -292,44 +299,52 @@
765 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
766 | avr-* \
767 | bs2000-* \
768- | c[123]* | c30-* | [cjt]90-* | c54x-* \
769- | clipper-* | cydra-* \
770+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
771+ | clipper-* | craynv-* | cydra-* \
772 | d10v-* | d30v-* | dlx-* \
773 | elxsi-* \
774 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
775 | h8300-* | h8500-* \
776 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
777 | i*86-* | i860-* | i960-* | ia64-* \
778- | ip2k-* \
779- | m32r-* \
780+ | ip2k-* | iq2000-* \
781+ | m32r-* | m32rle-* \
782 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
783- | m88110-* | m88k-* | mcore-* \
784+ | m88110-* | m88k-* | maxq-* | mcore-* \
785 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
786 | mips16-* \
787 | mips64-* | mips64el-* \
788+ | mips64vr-* | mips64vrel-* \
789 | mips64orion-* | mips64orionel-* \
790 | mips64vr4100-* | mips64vr4100el-* \
791 | mips64vr4300-* | mips64vr4300el-* \
792 | mips64vr5000-* | mips64vr5000el-* \
793 | mipsisa32-* | mipsisa32el-* \
794+ | mipsisa32r2-* | mipsisa32r2el-* \
795 | mipsisa64-* | mipsisa64el-* \
796+ | mipsisa64r2-* | mipsisa64r2el-* \
797 | mipsisa64sb1-* | mipsisa64sb1el-* \
798- | mipstx39 | mipstx39el \
799+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
800+ | mipstx39-* | mipstx39el-* \
801+ | mmix-* \
802+ | msp430-* \
803 | none-* | np1-* | ns16k-* | ns32k-* \
804 | orion-* \
805 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
806 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
807 | pyramid-* \
808 | romp-* | rs6000-* \
809- | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
810+ | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
811 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
812 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
813- | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
814- | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
815+ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
816+ | tahoe-* | thumb-* \
817+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
818+ | tron-* \
819 | v850-* | v850e-* | vax-* \
820 | we32k-* \
821- | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
822- | xtensa-* \
823+ | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
824+ | xstormy16-* | xtensa-* \
825 | ymp-* \
826 | z8k-*)
827 ;;
828@@ -349,6 +364,9 @@
829 basic_machine=a29k-amd
830 os=-udi
831 ;;
832+ abacus)
833+ basic_machine=abacus-unknown
834+ ;;
835 adobe68k)
836 basic_machine=m68010-adobe
837 os=-scout
838@@ -363,6 +381,12 @@
839 basic_machine=a29k-none
840 os=-bsd
841 ;;
842+ amd64)
843+ basic_machine=x86_64-pc
844+ ;;
845+ amd64-*)
846+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
847+ ;;
848 amdahl)
849 basic_machine=580-amdahl
850 os=-sysv
851@@ -422,12 +446,27 @@
852 basic_machine=j90-cray
853 os=-unicos
854 ;;
855+ craynv)
856+ basic_machine=craynv-cray
857+ os=-unicosmp
858+ ;;
859+ cr16c)
860+ basic_machine=cr16c-unknown
861+ os=-elf
862+ ;;
863 crds | unos)
864 basic_machine=m68k-crds
865 ;;
866+ crisv32 | crisv32-* | etraxfs*)
867+ basic_machine=crisv32-axis
868+ ;;
869 cris | cris-* | etrax*)
870 basic_machine=cris-axis
871 ;;
872+ crx)
873+ basic_machine=crx-unknown
874+ os=-elf
875+ ;;
876 da30 | da30-*)
877 basic_machine=m68k-da30
878 ;;
879@@ -450,6 +489,10 @@
880 basic_machine=m88k-motorola
881 os=-sysv3
882 ;;
883+ djgpp)
884+ basic_machine=i586-pc
885+ os=-msdosdjgpp
886+ ;;
887 dpx20 | dpx20-*)
888 basic_machine=rs6000-bull
889 os=-bosx
890@@ -628,10 +671,6 @@
891 mips3*)
892 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
893 ;;
894- mmix*)
895- basic_machine=mmix-knuth
896- os=-mmixware
897- ;;
898 monitor)
899 basic_machine=m68k-rom68k
900 os=-coff
901@@ -723,6 +762,10 @@
902 basic_machine=or32-unknown
903 os=-coff
904 ;;
905+ os400)
906+ basic_machine=powerpc-ibm
907+ os=-os400
908+ ;;
909 OSE68000 | ose68000)
910 basic_machine=m68000-ericsson
911 os=-ose
912@@ -745,49 +788,55 @@
913 pbb)
914 basic_machine=m68k-tti
915 ;;
916- pc532 | pc532-*)
917+ pc532 | pc532-*)
918 basic_machine=ns32k-pc532
919 ;;
920 pentium | p5 | k5 | k6 | nexgen | viac3)
921 basic_machine=i586-pc
922 ;;
923- pentiumpro | p6 | 6x86 | athlon)
924+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
925 basic_machine=i686-pc
926 ;;
927- pentiumii | pentium2)
928+ pentiumii | pentium2 | pentiumiii | pentium3)
929 basic_machine=i686-pc
930 ;;
931+ pentium4)
932+ basic_machine=i786-pc
933+ ;;
934 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
935 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
936 ;;
937 pentiumpro-* | p6-* | 6x86-* | athlon-*)
938 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
939 ;;
940- pentiumii-* | pentium2-*)
941+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
942 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
943 ;;
944+ pentium4-*)
945+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
946+ ;;
947 pn)
948 basic_machine=pn-gould
949 ;;
950 power) basic_machine=power-ibm
951 ;;
952 ppc) basic_machine=powerpc-unknown
953- ;;
954+ ;;
955 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
956 ;;
957 ppcle | powerpclittle | ppc-le | powerpc-little)
958 basic_machine=powerpcle-unknown
959- ;;
960+ ;;
961 ppcle-* | powerpclittle-*)
962 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
963 ;;
964 ppc64) basic_machine=powerpc64-unknown
965- ;;
966+ ;;
967 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
968 ;;
969 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
970 basic_machine=powerpc64le-unknown
971- ;;
972+ ;;
973 ppc64le-* | powerpc64little-*)
974 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
975 ;;
976@@ -818,6 +867,16 @@
977 basic_machine=a29k-amd
978 os=-udi
979 ;;
980+ sb1)
981+ basic_machine=mipsisa64sb1-unknown
982+ ;;
983+ sb1el)
984+ basic_machine=mipsisa64sb1el-unknown
985+ ;;
986+ sei)
987+ basic_machine=mips-sei
988+ os=-seiux
989+ ;;
990 sequent)
991 basic_machine=i386-sequent
992 ;;
993@@ -825,6 +884,9 @@
994 basic_machine=sh-hitachi
995 os=-hms
996 ;;
997+ sh64)
998+ basic_machine=sh64-unknown
999+ ;;
1000 sparclite-wrs | simso-wrs)
1001 basic_machine=sparclite-wrs
1002 os=-vxworks
1003@@ -883,7 +945,7 @@
1004 sun386 | sun386i | roadrunner)
1005 basic_machine=i386-sun
1006 ;;
1007- sv1)
1008+ sv1)
1009 basic_machine=sv1-cray
1010 os=-unicos
1011 ;;
1012@@ -891,10 +953,6 @@
1013 basic_machine=i386-sequent
1014 os=-dynix
1015 ;;
1016- t3d)
1017- basic_machine=alpha-cray
1018- os=-unicos
1019- ;;
1020 t3e)
1021 basic_machine=alphaev5-cray
1022 os=-unicos
1023@@ -907,6 +965,14 @@
1024 basic_machine=tic54x-unknown
1025 os=-coff
1026 ;;
1027+ tic55x | c55x*)
1028+ basic_machine=tic55x-unknown
1029+ os=-coff
1030+ ;;
1031+ tic6x | c6x*)
1032+ basic_machine=tic6x-unknown
1033+ os=-coff
1034+ ;;
1035 tx39)
1036 basic_machine=mipstx39-unknown
1037 ;;
1038@@ -920,6 +986,10 @@
1039 tower | tower-32)
1040 basic_machine=m68k-ncr
1041 ;;
1042+ tpf)
1043+ basic_machine=s390x-ibm
1044+ os=-tpf
1045+ ;;
1046 udi29k)
1047 basic_machine=a29k-amd
1048 os=-udi
1049@@ -941,8 +1011,8 @@
1050 os=-vms
1051 ;;
1052 vpp*|vx|vx-*)
1053- basic_machine=f301-fujitsu
1054- ;;
1055+ basic_machine=f301-fujitsu
1056+ ;;
1057 vxworks960)
1058 basic_machine=i960-wrs
1059 os=-vxworks
1060@@ -963,11 +1033,11 @@
1061 basic_machine=hppa1.1-winbond
1062 os=-proelf
1063 ;;
1064- windows32)
1065- basic_machine=i386-pc
1066- os=-windows32-msvcrt
1067+ xbox)
1068+ basic_machine=i686-pc
1069+ os=-mingw32
1070 ;;
1071- xps | xps100)
1072+ xps | xps100)
1073 basic_machine=xps100-honeywell
1074 ;;
1075 ymp)
1076@@ -997,6 +1067,9 @@
1077 romp)
1078 basic_machine=romp-ibm
1079 ;;
1080+ mmix)
1081+ basic_machine=mmix-knuth
1082+ ;;
1083 rs6000)
1084 basic_machine=rs6000-ibm
1085 ;;
1086@@ -1013,16 +1086,16 @@
1087 we32k)
1088 basic_machine=we32k-att
1089 ;;
1090- sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
1091+ sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
1092 basic_machine=sh-unknown
1093 ;;
1094 sh64)
1095 basic_machine=sh64-unknown
1096 ;;
1097- sparc | sparcv9 | sparcv9b)
1098+ sparc | sparcv8 | sparcv9 | sparcv9b)
1099 basic_machine=sparc-sun
1100 ;;
1101- cydra)
1102+ cydra)
1103 basic_machine=cydra-cydrome
1104 ;;
1105 orion)
1106@@ -1037,10 +1110,6 @@
1107 pmac | pmac-mpw)
1108 basic_machine=powerpc-apple
1109 ;;
1110- c4x*)
1111- basic_machine=c4x-none
1112- os=-coff
1113- ;;
1114 *-unknown)
1115 # Make sure to match an already-canonicalized machine name.
1116 ;;
1117@@ -1096,18 +1165,20 @@
1118 | -aos* \
1119 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1120 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1121- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1122- | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1123+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1124+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1125+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1126 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1127 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1128 | -chorusos* | -chorusrdb* \
1129 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1130- | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1131- | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1132+ | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1133+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1134 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1135 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1136 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1137- | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*)
1138+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1139+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1140 # Remember, each alternative MUST END IN *, to match a version number.
1141 ;;
1142 -qnx*)
1143@@ -1119,8 +1190,10 @@
1144 ;;
1145 esac
1146 ;;
1147+ -nto-qnx*)
1148+ ;;
1149 -nto*)
1150- os=-nto-qnx
1151+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
1152 ;;
1153 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1154 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1155@@ -1129,6 +1202,9 @@
1156 -mac*)
1157 os=`echo $os | sed -e 's|mac|macos|'`
1158 ;;
1159+ -linux-dietlibc)
1160+ os=-linux-dietlibc
1161+ ;;
1162 -linux*)
1163 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1164 ;;
1165@@ -1141,6 +1217,9 @@
1166 -opened*)
1167 os=-openedition
1168 ;;
1169+ -os400*)
1170+ os=-os400
1171+ ;;
1172 -wince*)
1173 os=-wince
1174 ;;
1175@@ -1162,6 +1241,9 @@
1176 -atheos*)
1177 os=-atheos
1178 ;;
1179+ -syllable*)
1180+ os=-syllable
1181+ ;;
1182 -386bsd)
1183 os=-bsd
1184 ;;
1185@@ -1172,7 +1254,7 @@
1186 os=-rtmk-nova
1187 ;;
1188 -ns2 )
1189- os=-nextstep2
1190+ os=-nextstep2
1191 ;;
1192 -nsk*)
1193 os=-nsk
1194@@ -1184,6 +1266,9 @@
1195 -sinix*)
1196 os=-sysv4
1197 ;;
1198+ -tpf*)
1199+ os=-tpf
1200+ ;;
1201 -triton*)
1202 os=-sysv3
1203 ;;
1204@@ -1211,8 +1296,17 @@
1205 -xenix)
1206 os=-xenix
1207 ;;
1208- -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1209- os=-mint
1210+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1211+ os=-mint
1212+ ;;
1213+ -aros*)
1214+ os=-aros
1215+ ;;
1216+ -kaos*)
1217+ os=-kaos
1218+ ;;
1219+ -zvmoe)
1220+ os=-zvmoe
1221 ;;
1222 -none)
1223 ;;
1224@@ -1245,11 +1339,14 @@
1225 arm*-semi)
1226 os=-aout
1227 ;;
1228+ c4x-* | tic4x-*)
1229+ os=-coff
1230+ ;;
1231 # This must come before the *-dec entry.
1232 pdp10-*)
1233 os=-tops20
1234 ;;
1235- pdp11-*)
1236+ pdp11-*)
1237 os=-none
1238 ;;
1239 *-dec | vax-*)
1240@@ -1291,6 +1388,9 @@
1241 *-ibm)
1242 os=-aix
1243 ;;
1244+ *-knuth)
1245+ os=-mmixware
1246+ ;;
1247 *-wec)
1248 os=-proelf
1249 ;;
1250@@ -1342,19 +1442,19 @@
1251 *-next)
1252 os=-nextstep3
1253 ;;
1254- *-gould)
1255+ *-gould)
1256 os=-sysv
1257 ;;
1258- *-highlevel)
1259+ *-highlevel)
1260 os=-bsd
1261 ;;
1262 *-encore)
1263 os=-bsd
1264 ;;
1265- *-sgi)
1266+ *-sgi)
1267 os=-irix
1268 ;;
1269- *-siemens)
1270+ *-siemens)
1271 os=-sysv4
1272 ;;
1273 *-masscomp)
1274@@ -1423,9 +1523,15 @@
1275 -mvs* | -opened*)
1276 vendor=ibm
1277 ;;
1278+ -os400*)
1279+ vendor=ibm
1280+ ;;
1281 -ptx*)
1282 vendor=sequent
1283 ;;
1284+ -tpf*)
1285+ vendor=ibm
1286+ ;;
1287 -vxsim* | -vxworks* | -windiss*)
1288 vendor=wrs
1289 ;;
Note: See TracBrowser for help on using the repository browser.