source: patches/module-init-tools-3.2.2-mips_config_update-1.patch@ f037496

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f037496 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: 32.9 KB
RevLine 
[69cde8d]1Submitted By: Jim Gifford (patches at jg555 dot com)
2Date: 2005-10-01
3Initial Package Version: 3.1
4Origin: Jim Gifford
5Upstream Status: Sent
6Description: Updates config.sub and config.guess
7
8diff -Naur module-init-tools-3.1.orig/config.guess module-init-tools-3.1/config.guess
9--- module-init-tools-3.1.orig/config.guess 2002-11-26 01:38:55.000000000 +0000
10+++ module-init-tools-3.1/config.guess 2005-10-01 20:35:46.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-09-03'
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,10 +458,9 @@
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@@ -449,7 +469,7 @@
310 Motorola:*:4.3:PL8-*)
311 echo powerpc-harris-powermax
312 exit 0 ;;
313- Night_Hawk:*:*:PowerMAX_OS)
314+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
315 echo powerpc-harris-powermax
316 exit 0 ;;
317 Night_Hawk:Power_UNIX:*:*)
318@@ -524,8 +544,7 @@
319 exit(0);
320 }
321 EOF
322- $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
323- rm -f $dummy.c $dummy && rmdir $tmpdir
324+ $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
325 echo rs6000-ibm-aix3.2.5
326 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
327 echo rs6000-ibm-aix3.2.4
328@@ -623,11 +642,21 @@
329 exit (0);
330 }
331 EOF
332- (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy`
333- if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
334- rm -f $dummy.c $dummy && rmdir $tmpdir
335+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
336+ test -z "$HP_ARCH" && HP_ARCH=hppa
337 fi ;;
338 esac
339+ if [ ${HP_ARCH} = "hppa2.0w" ]
340+ then
341+ # avoid double evaluation of $set_cc_for_build
342+ test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
343+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
344+ then
345+ HP_ARCH="hppa2.0w"
346+ else
347+ HP_ARCH="hppa64"
348+ fi
349+ fi
350 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
351 exit 0 ;;
352 ia64:HP-UX:*:*)
353@@ -661,8 +690,7 @@
354 exit (0);
355 }
356 EOF
357- $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
358- rm -f $dummy.c $dummy && rmdir $tmpdir
359+ $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
360 echo unknown-hitachi-hiuxwe2
361 exit 0 ;;
362 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
363@@ -720,21 +748,26 @@
364 CRAY*TS:*:*:*)
365 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
366 exit 0 ;;
367- CRAY*T3D:*:*:*)
368- echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
369- exit 0 ;;
370 CRAY*T3E:*:*:*)
371 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
372 exit 0 ;;
373 CRAY*SV1:*:*:*)
374 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
375 exit 0 ;;
376+ *:UNICOS/mp:*:*)
377+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
378+ exit 0 ;;
379 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
380 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
381 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
382 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
383 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
384 exit 0 ;;
385+ 5000:UNIX_System_V:4.*:*)
386+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
387+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
388+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
389+ exit 0 ;;
390 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
391 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
392 exit 0 ;;
393@@ -745,19 +778,7 @@
394 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
395 exit 0 ;;
396 *:FreeBSD:*:*)
397- # Determine whether the default compiler uses glibc.
398- eval $set_cc_for_build
399- sed 's/^ //' << EOF >$dummy.c
400- #include <features.h>
401- #if __GLIBC__ >= 2
402- LIBC=gnu
403- #else
404- LIBC=
405- #endif
406-EOF
407- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
408- rm -f $dummy.c && rmdir $tmpdir
409- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
410+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
411 exit 0 ;;
412 i*:CYGWIN*:*)
413 echo ${UNAME_MACHINE}-pc-cygwin
414@@ -768,14 +789,17 @@
415 i*:PW*:*)
416 echo ${UNAME_MACHINE}-pc-pw32
417 exit 0 ;;
418- x86:Interix*:3*)
419- echo i386-pc-interix3
420+ x86:Interix*:[34]*)
421+ echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
422+ exit 0 ;;
423+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
424+ echo i${UNAME_MACHINE}-pc-mks
425 exit 0 ;;
426 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
427 # How do we know it's Interix rather than the generic POSIX subsystem?
428 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
429 # UNAME_MACHINE based on the output of uname instead of i386?
430- echo i386-pc-interix
431+ echo i586-pc-interix
432 exit 0 ;;
433 i*:UWIN*:*)
434 echo ${UNAME_MACHINE}-pc-uwin
435@@ -787,17 +811,34 @@
436 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
437 exit 0 ;;
438 *:GNU:*:*)
439+ # the GNU system
440 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
441 exit 0 ;;
442+ *:GNU/*:*:*)
443+ # other systems with GNU libc and userland
444+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
445+ exit 0 ;;
446 i*86:Minix:*:*)
447 echo ${UNAME_MACHINE}-pc-minix
448 exit 0 ;;
449 arm*:Linux:*:*)
450 echo ${UNAME_MACHINE}-unknown-linux-gnu
451 exit 0 ;;
452+ cris:Linux:*:*)
453+ echo cris-axis-linux-gnu
454+ exit 0 ;;
455+ crisv32:Linux:*:*)
456+ echo crisv32-axis-linux-gnu
457+ exit 0 ;;
458+ frv:Linux:*:*)
459+ echo frv-unknown-linux-gnu
460+ exit 0 ;;
461 ia64:Linux:*:*)
462 echo ${UNAME_MACHINE}-unknown-linux-gnu
463 exit 0 ;;
464+ m32r*:Linux:*:*)
465+ echo ${UNAME_MACHINE}-unknown-linux-gnu
466+ exit 0 ;;
467 m68*:Linux:*:*)
468 echo ${UNAME_MACHINE}-unknown-linux-gnu
469 exit 0 ;;
470@@ -818,8 +859,26 @@
471 #endif
472 EOF
473 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
474- rm -f $dummy.c && rmdir $tmpdir
475- test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
476+ test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
477+ ;;
478+ mips64:Linux:*:*)
479+ eval $set_cc_for_build
480+ sed 's/^ //' << EOF >$dummy.c
481+ #undef CPU
482+ #undef mips64
483+ #undef mips64el
484+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
485+ CPU=mips64el
486+ #else
487+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
488+ CPU=mips64
489+ #else
490+ CPU=
491+ #endif
492+ #endif
493+EOF
494+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
495+ test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
496 ;;
497 ppc:Linux:*:*)
498 echo powerpc-unknown-linux-gnu
499@@ -855,6 +914,9 @@
500 s390:Linux:*:* | s390x:Linux:*:*)
501 echo ${UNAME_MACHINE}-ibm-linux
502 exit 0 ;;
503+ sh64*:Linux:*:*)
504+ echo ${UNAME_MACHINE}-unknown-linux-gnu
505+ exit 0 ;;
506 sh*:Linux:*:*)
507 echo ${UNAME_MACHINE}-unknown-linux-gnu
508 exit 0 ;;
509@@ -912,9 +974,11 @@
510 LIBC=gnuaout
511 #endif
512 #endif
513+ #ifdef __dietlibc__
514+ LIBC=dietlibc
515+ #endif
516 EOF
517 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
518- rm -f $dummy.c && rmdir $tmpdir
519 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
520 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
521 ;;
522@@ -932,6 +996,26 @@
523 # Use sysv4.2uw... so that sysv4* matches it.
524 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
525 exit 0 ;;
526+ i*86:OS/2:*:*)
527+ # If we were able to find `uname', then EMX Unix compatibility
528+ # is probably installed.
529+ echo ${UNAME_MACHINE}-pc-os2-emx
530+ exit 0 ;;
531+ i*86:XTS-300:*:STOP)
532+ echo ${UNAME_MACHINE}-unknown-stop
533+ exit 0 ;;
534+ i*86:atheos:*:*)
535+ echo ${UNAME_MACHINE}-unknown-atheos
536+ exit 0 ;;
537+ i*86:syllable:*:*)
538+ echo ${UNAME_MACHINE}-pc-syllable
539+ exit 0 ;;
540+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
541+ echo i386-unknown-lynxos${UNAME_RELEASE}
542+ exit 0 ;;
543+ i*86:*DOS:*:*)
544+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
545+ exit 0 ;;
546 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
547 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
548 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
549@@ -966,9 +1050,6 @@
550 echo ${UNAME_MACHINE}-pc-sysv32
551 fi
552 exit 0 ;;
553- i*86:*DOS:*:*)
554- echo ${UNAME_MACHINE}-pc-msdosdjgpp
555- exit 0 ;;
556 pc:*:*:*)
557 # Left here for compatibility:
558 # uname -m prints for DJGPP always 'pc', but it prints nothing about
559@@ -995,9 +1076,12 @@
560 mc68k:UNIX:SYSTEM5:3.51m)
561 echo m68k-convergent-sysv
562 exit 0 ;;
563- M68*:*:R3V[567]*:*)
564+ M680?0:D-NIX:5.3:*)
565+ echo m68k-diab-dnix
566+ exit 0 ;;
567+ M68*:*:R3V[5678]*:*)
568 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
569- 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)
570+ 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)
571 OS_REL=''
572 test -r /etc/.relid \
573 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
574@@ -1014,9 +1098,6 @@
575 mc68030:UNIX_System_V:4.*:*)
576 echo m68k-atari-sysv4
577 exit 0 ;;
578- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
579- echo i386-unknown-lynxos${UNAME_RELEASE}
580- exit 0 ;;
581 TSUNAMI:LynxOS:2.*:*)
582 echo sparc-unknown-lynxos${UNAME_RELEASE}
583 exit 0 ;;
584@@ -1098,7 +1179,12 @@
585 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
586 exit 0 ;;
587 *:Darwin:*:*)
588- echo `uname -p`-apple-darwin${UNAME_RELEASE}
589+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
590+ case $UNAME_PROCESSOR in
591+ *86) UNAME_PROCESSOR=i686 ;;
592+ unknown) UNAME_PROCESSOR=powerpc ;;
593+ esac
594+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
595 exit 0 ;;
596 *:procnto*:*:* | *:QNX:[0123456789]*:*)
597 UNAME_PROCESSOR=`uname -p`
598@@ -1111,7 +1197,7 @@
599 *:QNX:*:4*)
600 echo i386-pc-qnx
601 exit 0 ;;
602- NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
603+ NSR-?:NONSTOP_KERNEL:*:*)
604 echo nsr-tandem-nsk${UNAME_RELEASE}
605 exit 0 ;;
606 *:NonStop-UX:*:*)
607@@ -1134,11 +1220,6 @@
608 fi
609 echo ${UNAME_MACHINE}-unknown-plan9
610 exit 0 ;;
611- i*86:OS/2:*:*)
612- # If we were able to find `uname', then EMX Unix compatibility
613- # is probably installed.
614- echo ${UNAME_MACHINE}-pc-os2-emx
615- exit 0 ;;
616 *:TOPS-10:*:*)
617 echo pdp10-unknown-tops10
618 exit 0 ;;
619@@ -1157,11 +1238,21 @@
620 *:ITS:*:*)
621 echo pdp10-unknown-its
622 exit 0 ;;
623- i*86:XTS-300:*:STOP)
624- echo ${UNAME_MACHINE}-unknown-stop
625+ SEI:*:*:SEIUX)
626+ echo mips-sei-seiux${UNAME_RELEASE}
627 exit 0 ;;
628- i*86:atheos:*:*)
629- echo ${UNAME_MACHINE}-unknown-atheos
630+ *:DragonFly:*:*)
631+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
632+ exit 0 ;;
633+ *:*VMS:*:*)
634+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
635+ case "${UNAME_MACHINE}" in
636+ A*) echo alpha-dec-vms && exit 0 ;;
637+ I*) echo ia64-dec-vms && exit 0 ;;
638+ V*) echo vax-dec-vms && exit 0 ;;
639+ esac ;;
640+ *:XENIX:*:SysV)
641+ echo i386-pc-xenix
642 exit 0 ;;
643 esac
644
645@@ -1283,8 +1374,7 @@
646 }
647 EOF
648
649-$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
650-rm -f $dummy.c $dummy && rmdir $tmpdir
651+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
652
653 # Apollos put the system type in the environment.
654
655diff -Naur module-init-tools-3.1.orig/config.sub module-init-tools-3.1/config.sub
656--- module-init-tools-3.1.orig/config.sub 2002-11-26 01:38:55.000000000 +0000
657+++ module-init-tools-3.1/config.sub 2005-10-01 20:35:51.000000000 +0000
658@@ -1,9 +1,9 @@
659 #! /bin/sh
660 # Configuration validation subroutine script.
661 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
662-# 2000, 2001, 2002 Free Software Foundation, Inc.
663+# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
664
665-timestamp='2002-09-05'
666+timestamp='2004-11-30'
667
668 # This file is (in principle) common to ALL GNU software.
669 # The presence of a machine in this file suggests that SOME GNU software
670@@ -70,7 +70,7 @@
671 version="\
672 GNU config.sub ($timestamp)
673
674-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
675+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
676 Free Software Foundation, Inc.
677
678 This is free software; see the source for copying conditions. There is NO
679@@ -118,7 +118,8 @@
680 # Here we must recognize all the valid KERNEL-OS combinations.
681 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
682 case $maybe_os in
683- nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
684+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
685+ kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
686 os=-$maybe_os
687 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
688 ;;
689@@ -144,7 +145,7 @@
690 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
691 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
692 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
693- -apple | -axis)
694+ -apple | -axis | -knuth | -cray)
695 os=
696 basic_machine=$1
697 ;;
698@@ -228,14 +229,15 @@
699 | a29k \
700 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
701 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
702+ | am33_2.0 \
703 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
704- | clipper \
705+ | c4x | clipper \
706 | d10v | d30v | dlx | dsp16xx \
707 | fr30 | frv \
708 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
709 | i370 | i860 | i960 | ia64 \
710- | ip2k \
711- | m32r | m68000 | m68k | m88k | mcore \
712+ | ip2k | iq2000 \
713+ | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
714 | mips | mipsbe | mipseb | mipsel | mipsle \
715 | mips16 \
716 | mips64 | mips64el \
717@@ -245,24 +247,27 @@
718 | mips64vr4300 | mips64vr4300el \
719 | mips64vr5000 | mips64vr5000el \
720 | mipsisa32 | mipsisa32el \
721+ | mipsisa32r2 | mipsisa32r2el \
722 | mipsisa64 | mipsisa64el \
723+ | mipsisa64r2 | mipsisa64r2el \
724 | mipsisa64sb1 | mipsisa64sb1el \
725 | mipsisa64sr71k | mipsisa64sr71kel \
726 | mipstx39 | mipstx39el \
727 | mn10200 | mn10300 \
728+ | msp430 \
729 | ns16k | ns32k \
730 | openrisc | or32 \
731 | pdp10 | pdp11 | pj | pjl \
732 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
733 | pyramid \
734- | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
735+ | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
736 | sh64 | sh64le \
737- | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
738+ | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
739 | strongarm \
740- | tahoe | thumb | tic80 | tron \
741+ | tahoe | thumb | tic4x | tic80 | tron \
742 | v850 | v850e \
743 | we32k \
744- | x86 | xscale | xstormy16 | xtensa \
745+ | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
746 | z8k)
747 basic_machine=$basic_machine-unknown
748 ;;
749@@ -294,18 +299,18 @@
750 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
751 | avr-* \
752 | bs2000-* \
753- | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \
754- | clipper-* | cydra-* \
755+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
756+ | clipper-* | craynv-* | cydra-* \
757 | d10v-* | d30v-* | dlx-* \
758 | elxsi-* \
759 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
760 | h8300-* | h8500-* \
761 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
762 | i*86-* | i860-* | i960-* | ia64-* \
763- | ip2k-* \
764- | m32r-* \
765+ | ip2k-* | iq2000-* \
766+ | m32r-* | m32rle-* \
767 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
768- | m88110-* | m88k-* | mcore-* \
769+ | m88110-* | m88k-* | maxq-* | mcore-* \
770 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
771 | mips16-* \
772 | mips64-* | mips64el-* \
773@@ -315,25 +320,31 @@
774 | mips64vr4300-* | mips64vr4300el-* \
775 | mips64vr5000-* | mips64vr5000el-* \
776 | mipsisa32-* | mipsisa32el-* \
777+ | mipsisa32r2-* | mipsisa32r2el-* \
778 | mipsisa64-* | mipsisa64el-* \
779+ | mipsisa64r2-* | mipsisa64r2el-* \
780 | mipsisa64sb1-* | mipsisa64sb1el-* \
781 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
782- | mipstx39 | mipstx39el \
783+ | mipstx39-* | mipstx39el-* \
784+ | mmix-* \
785+ | msp430-* \
786 | none-* | np1-* | ns16k-* | ns32k-* \
787 | orion-* \
788 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
789 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
790 | pyramid-* \
791 | romp-* | rs6000-* \
792- | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
793+ | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
794 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
795 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
796- | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
797- | tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \
798+ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
799+ | tahoe-* | thumb-* \
800+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
801+ | tron-* \
802 | v850-* | v850e-* | vax-* \
803 | we32k-* \
804- | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
805- | xtensa-* \
806+ | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
807+ | xstormy16-* | xtensa-* \
808 | ymp-* \
809 | z8k-*)
810 ;;
811@@ -353,6 +364,9 @@
812 basic_machine=a29k-amd
813 os=-udi
814 ;;
815+ abacus)
816+ basic_machine=abacus-unknown
817+ ;;
818 adobe68k)
819 basic_machine=m68010-adobe
820 os=-scout
821@@ -367,6 +381,12 @@
822 basic_machine=a29k-none
823 os=-bsd
824 ;;
825+ amd64)
826+ basic_machine=x86_64-pc
827+ ;;
828+ amd64-*)
829+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
830+ ;;
831 amdahl)
832 basic_machine=580-amdahl
833 os=-sysv
834@@ -426,12 +446,27 @@
835 basic_machine=j90-cray
836 os=-unicos
837 ;;
838+ craynv)
839+ basic_machine=craynv-cray
840+ os=-unicosmp
841+ ;;
842+ cr16c)
843+ basic_machine=cr16c-unknown
844+ os=-elf
845+ ;;
846 crds | unos)
847 basic_machine=m68k-crds
848 ;;
849+ crisv32 | crisv32-* | etraxfs*)
850+ basic_machine=crisv32-axis
851+ ;;
852 cris | cris-* | etrax*)
853 basic_machine=cris-axis
854 ;;
855+ crx)
856+ basic_machine=crx-unknown
857+ os=-elf
858+ ;;
859 da30 | da30-*)
860 basic_machine=m68k-da30
861 ;;
862@@ -454,6 +489,10 @@
863 basic_machine=m88k-motorola
864 os=-sysv3
865 ;;
866+ djgpp)
867+ basic_machine=i586-pc
868+ os=-msdosdjgpp
869+ ;;
870 dpx20 | dpx20-*)
871 basic_machine=rs6000-bull
872 os=-bosx
873@@ -632,10 +671,6 @@
874 mips3*)
875 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
876 ;;
877- mmix*)
878- basic_machine=mmix-knuth
879- os=-mmixware
880- ;;
881 monitor)
882 basic_machine=m68k-rom68k
883 os=-coff
884@@ -727,6 +762,10 @@
885 basic_machine=or32-unknown
886 os=-coff
887 ;;
888+ os400)
889+ basic_machine=powerpc-ibm
890+ os=-os400
891+ ;;
892 OSE68000 | ose68000)
893 basic_machine=m68000-ericsson
894 os=-ose
895@@ -758,18 +797,24 @@
896 pentiumpro | p6 | 6x86 | athlon | athlon_*)
897 basic_machine=i686-pc
898 ;;
899- pentiumii | pentium2)
900+ pentiumii | pentium2 | pentiumiii | pentium3)
901 basic_machine=i686-pc
902 ;;
903+ pentium4)
904+ basic_machine=i786-pc
905+ ;;
906 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
907 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
908 ;;
909 pentiumpro-* | p6-* | 6x86-* | athlon-*)
910 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
911 ;;
912- pentiumii-* | pentium2-*)
913+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
914 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
915 ;;
916+ pentium4-*)
917+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
918+ ;;
919 pn)
920 basic_machine=pn-gould
921 ;;
922@@ -828,6 +873,10 @@
923 sb1el)
924 basic_machine=mipsisa64sb1el-unknown
925 ;;
926+ sei)
927+ basic_machine=mips-sei
928+ os=-seiux
929+ ;;
930 sequent)
931 basic_machine=i386-sequent
932 ;;
933@@ -835,6 +884,9 @@
934 basic_machine=sh-hitachi
935 os=-hms
936 ;;
937+ sh64)
938+ basic_machine=sh64-unknown
939+ ;;
940 sparclite-wrs | simso-wrs)
941 basic_machine=sparclite-wrs
942 os=-vxworks
943@@ -901,10 +953,6 @@
944 basic_machine=i386-sequent
945 os=-dynix
946 ;;
947- t3d)
948- basic_machine=alpha-cray
949- os=-unicos
950- ;;
951 t3e)
952 basic_machine=alphaev5-cray
953 os=-unicos
954@@ -913,14 +961,18 @@
955 basic_machine=t90-cray
956 os=-unicos
957 ;;
958- tic4x | c4x*)
959- basic_machine=tic4x-unknown
960- os=-coff
961- ;;
962 tic54x | c54x*)
963 basic_machine=tic54x-unknown
964 os=-coff
965 ;;
966+ tic55x | c55x*)
967+ basic_machine=tic55x-unknown
968+ os=-coff
969+ ;;
970+ tic6x | c6x*)
971+ basic_machine=tic6x-unknown
972+ os=-coff
973+ ;;
974 tx39)
975 basic_machine=mipstx39-unknown
976 ;;
977@@ -934,6 +986,10 @@
978 tower | tower-32)
979 basic_machine=m68k-ncr
980 ;;
981+ tpf)
982+ basic_machine=s390x-ibm
983+ os=-tpf
984+ ;;
985 udi29k)
986 basic_machine=a29k-amd
987 os=-udi
988@@ -977,9 +1033,9 @@
989 basic_machine=hppa1.1-winbond
990 os=-proelf
991 ;;
992- windows32)
993- basic_machine=i386-pc
994- os=-windows32-msvcrt
995+ xbox)
996+ basic_machine=i686-pc
997+ os=-mingw32
998 ;;
999 xps | xps100)
1000 basic_machine=xps100-honeywell
1001@@ -1011,6 +1067,9 @@
1002 romp)
1003 basic_machine=romp-ibm
1004 ;;
1005+ mmix)
1006+ basic_machine=mmix-knuth
1007+ ;;
1008 rs6000)
1009 basic_machine=rs6000-ibm
1010 ;;
1011@@ -1027,13 +1086,13 @@
1012 we32k)
1013 basic_machine=we32k-att
1014 ;;
1015- sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
1016+ sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
1017 basic_machine=sh-unknown
1018 ;;
1019 sh64)
1020 basic_machine=sh64-unknown
1021 ;;
1022- sparc | sparcv9 | sparcv9b)
1023+ sparc | sparcv8 | sparcv9 | sparcv9b)
1024 basic_machine=sparc-sun
1025 ;;
1026 cydra)
1027@@ -1106,18 +1165,20 @@
1028 | -aos* \
1029 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1030 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1031- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1032- | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1033+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1034+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1035+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1036 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1037 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1038 | -chorusos* | -chorusrdb* \
1039 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1040- | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1041- | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1042+ | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1043+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1044 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1045 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1046 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1047- | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*)
1048+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1049+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1050 # Remember, each alternative MUST END IN *, to match a version number.
1051 ;;
1052 -qnx*)
1053@@ -1129,8 +1190,10 @@
1054 ;;
1055 esac
1056 ;;
1057+ -nto-qnx*)
1058+ ;;
1059 -nto*)
1060- os=-nto-qnx
1061+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
1062 ;;
1063 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1064 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1065@@ -1139,6 +1202,9 @@
1066 -mac*)
1067 os=`echo $os | sed -e 's|mac|macos|'`
1068 ;;
1069+ -linux-dietlibc)
1070+ os=-linux-dietlibc
1071+ ;;
1072 -linux*)
1073 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1074 ;;
1075@@ -1151,6 +1217,9 @@
1076 -opened*)
1077 os=-openedition
1078 ;;
1079+ -os400*)
1080+ os=-os400
1081+ ;;
1082 -wince*)
1083 os=-wince
1084 ;;
1085@@ -1172,6 +1241,9 @@
1086 -atheos*)
1087 os=-atheos
1088 ;;
1089+ -syllable*)
1090+ os=-syllable
1091+ ;;
1092 -386bsd)
1093 os=-bsd
1094 ;;
1095@@ -1194,6 +1266,9 @@
1096 -sinix*)
1097 os=-sysv4
1098 ;;
1099+ -tpf*)
1100+ os=-tpf
1101+ ;;
1102 -triton*)
1103 os=-sysv3
1104 ;;
1105@@ -1224,6 +1299,15 @@
1106 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1107 os=-mint
1108 ;;
1109+ -aros*)
1110+ os=-aros
1111+ ;;
1112+ -kaos*)
1113+ os=-kaos
1114+ ;;
1115+ -zvmoe)
1116+ os=-zvmoe
1117+ ;;
1118 -none)
1119 ;;
1120 *)
1121@@ -1255,6 +1339,9 @@
1122 arm*-semi)
1123 os=-aout
1124 ;;
1125+ c4x-* | tic4x-*)
1126+ os=-coff
1127+ ;;
1128 # This must come before the *-dec entry.
1129 pdp10-*)
1130 os=-tops20
1131@@ -1301,6 +1388,9 @@
1132 *-ibm)
1133 os=-aix
1134 ;;
1135+ *-knuth)
1136+ os=-mmixware
1137+ ;;
1138 *-wec)
1139 os=-proelf
1140 ;;
1141@@ -1433,9 +1523,15 @@
1142 -mvs* | -opened*)
1143 vendor=ibm
1144 ;;
1145+ -os400*)
1146+ vendor=ibm
1147+ ;;
1148 -ptx*)
1149 vendor=sequent
1150 ;;
1151+ -tpf*)
1152+ vendor=ibm
1153+ ;;
1154 -vxsim* | -vxworks* | -windiss*)
1155 vendor=wrs
1156 ;;
Note: See TracBrowser for help on using the repository browser.