1 diff -ru tiff.old/config.guess tiff/config.guess
2 --- tiff.old/config.guess 1996-04-30 00:16:18.000000000 +0200
3 +++ tiff/config.guess 2005-08-02 16:27:00.000000000 +0200
7 # Attempt to guess a canonical system name.
8 -# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
10 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
11 +# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
13 +timestamp='2004-08-13'
15 # This file is free software; you can redistribute it and/or modify it
16 # under the terms of the GNU General Public License as published by
17 # the Free Software Foundation; either version 2 of the License, or
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 # As a special exception to the GNU General Public License, if you
26 # distribute this file as part of a program that contains a
27 # configuration script generated by Autoconf, you may include it under
28 # the same distribution terms that you use for the rest of that program.
30 -# Written by Per Bothner <bothner@cygnus.com>.
31 -# The master version of this file is at the FSF in /home/gd/gnu/lib.
32 +# Originally written by Per Bothner <per@bothner.com>.
33 +# Please send patches to <config-patches@gnu.org>. Submit a context
34 +# diff and a properly formatted ChangeLog entry.
36 # This script attempts to guess a canonical system name similar to
37 # config.sub. If it succeeds, it prints the system name on stdout, and
38 # exits with 0. Otherwise, it exits with 1.
40 # The plan is that this can be called by configure scripts if you
41 -# don't specify an explicit system type (host/target name).
43 -# Only a few systems have been added to this list; please add others
44 -# (but try to keep the structure clean).
46 +# don't specify an explicit build system type.
48 +me=`echo "$0" | sed -e 's,.*/,,'`
53 +Output the configuration name of the system \`$me' is run on.
56 + -h, --help print this help, then exit
57 + -t, --time-stamp print date of last modification, then exit
58 + -v, --version print version number, then exit
60 +Report bugs and patches to <config-patches@gnu.org>."
63 +GNU config.guess ($timestamp)
65 +Originally written by Per Bothner.
66 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
67 +Free Software Foundation, Inc.
69 +This is free software; see the source for copying conditions. There is NO
70 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
73 +Try \`$me --help' for more information."
76 +while test $# -gt 0 ; do
78 + --time-stamp | --time* | -t )
79 + echo "$timestamp" ; exit 0 ;;
81 + echo "$version" ; exit 0 ;;
82 + --help | --h* | -h )
83 + echo "$usage"; exit 0 ;;
84 + -- ) # Stop option processing
86 + - ) # Use stdin as input.
89 + echo "$me: invalid option $1$help" >&2
96 +if test $# != 0; then
97 + echo "$me: too many arguments$help" >&2
101 +trap 'exit 1' 1 2 15
103 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
104 +# compiler to aid in system detection is discouraged as it requires
105 +# temporary files to be created and, as you can see below, it is a
106 +# headache to deal with in a portable fashion.
108 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
109 +# use `HOST_CC' if defined, but it is deprecated.
111 +# Portable tmp directory creation inspired by the Autoconf team.
114 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
115 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
117 + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
118 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
119 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
120 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
122 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
123 +case $CC_FOR_BUILD,$HOST_CC,$CC in
124 + ,,) echo "int x;" > $dummy.c ;
125 + for c in cc gcc c89 c99 ; do
126 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
127 + CC_FOR_BUILD="$c"; break ;
130 + if test x"$CC_FOR_BUILD" = x ; then
131 + CC_FOR_BUILD=no_compiler_found ;
134 + ,,*) CC_FOR_BUILD=$CC ;;
135 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
138 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
139 -# (ghazi@noc.rutgers.edu 8/24/94.)
140 +# (ghazi@noc.rutgers.edu 1994-08-24)
141 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
142 PATH=$PATH:/.attbin ; export PATH
145 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
146 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
147 -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
148 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
149 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
151 -trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
153 # Note: order is significant - the case branches are not exclusive.
155 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
157 - # After 1.2, OSF1 uses "V1.3" for uname -r.
158 - echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^V//'`
160 + # NetBSD (nbsd) targets should (where applicable) match one or
161 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
162 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
163 + # switched to ELF, *-*-netbsd* would select the old
164 + # object file format. This provides both forward
165 + # compatibility and a consistent mechanism for selecting the
166 + # object file format.
168 + # Note: NetBSD doesn't particularly care about the vendor
169 + # portion of the name. We always set it to "unknown".
170 + sysctl="sysctl -n hw.machine_arch"
171 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
172 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
173 + case "${UNAME_MACHINE_ARCH}" in
174 + armeb) machine=armeb-unknown ;;
175 + arm*) machine=arm-unknown ;;
176 + sh3el) machine=shl-unknown ;;
177 + sh3eb) machine=sh-unknown ;;
178 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
180 + # The Operating System including object format, if it has switched
181 + # to ELF recently, or will in the future.
182 + case "${UNAME_MACHINE_ARCH}" in
183 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
184 + eval $set_cc_for_build
185 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
186 + | grep __ELF__ >/dev/null
188 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
189 + # Return netbsd for either. FIX?
200 + # Debian GNU/NetBSD machines have a different userland, and
201 + # thus, need a distinct triplet. However, they do not need
202 + # kernel version information, so it can be replaced with a
203 + # suitable tag, in the style of linux-gnu.
204 + case "${UNAME_VERSION}" in
209 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
212 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
213 + # contains redundant information, the shorter form:
214 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
215 + echo "${machine}-${os}${release}"
218 + echo x86_64-unknown-openbsd${UNAME_RELEASE}
221 + echo m68k-unknown-openbsd${UNAME_RELEASE}
224 + echo arm-unknown-openbsd${UNAME_RELEASE}
227 + echo m68k-unknown-openbsd${UNAME_RELEASE}
229 + luna88k:OpenBSD:*:*)
230 + echo m88k-unknown-openbsd${UNAME_RELEASE}
232 + mac68k:OpenBSD:*:*)
233 + echo m68k-unknown-openbsd${UNAME_RELEASE}
235 + macppc:OpenBSD:*:*)
236 + echo powerpc-unknown-openbsd${UNAME_RELEASE}
238 + mvme68k:OpenBSD:*:*)
239 + echo m68k-unknown-openbsd${UNAME_RELEASE}
241 + mvme88k:OpenBSD:*:*)
242 + echo m88k-unknown-openbsd${UNAME_RELEASE}
244 + mvmeppc:OpenBSD:*:*)
245 + echo powerpc-unknown-openbsd${UNAME_RELEASE}
248 + echo mips64-unknown-openbsd${UNAME_RELEASE}
251 + echo m68k-unknown-openbsd${UNAME_RELEASE}
254 + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
257 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
260 + echo powerppc-unknown-mirbsd${UNAME_RELEASE}
263 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
266 + case $UNAME_RELEASE in
268 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
271 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
274 + # According to Compaq, /usr/sbin/psrinfo has been available on
275 + # OSF/1 and Tru64 systems produced since 1995. I hope that
276 + # covers most systems running today. This code pipes the CPU
277 + # types through head -n 1, so we only detect the type of CPU 0.
278 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
279 + case "$ALPHA_CPU_TYPE" in
281 + UNAME_MACHINE="alpha" ;;
283 + UNAME_MACHINE="alpha" ;;
284 + "LCA4 (21066/21068)")
285 + UNAME_MACHINE="alpha" ;;
287 + UNAME_MACHINE="alphaev5" ;;
289 + UNAME_MACHINE="alphaev56" ;;
291 + UNAME_MACHINE="alphapca56" ;;
293 + UNAME_MACHINE="alphapca57" ;;
295 + UNAME_MACHINE="alphaev6" ;;
297 + UNAME_MACHINE="alphaev67" ;;
298 + "EV6.8CB (21264C)")
299 + UNAME_MACHINE="alphaev68" ;;
300 + "EV6.8AL (21264B)")
301 + UNAME_MACHINE="alphaev68" ;;
302 + "EV6.8CX (21264D)")
303 + UNAME_MACHINE="alphaev68" ;;
304 + "EV6.9A (21264/EV69A)")
305 + UNAME_MACHINE="alphaev69" ;;
307 + UNAME_MACHINE="alphaev7" ;;
309 + UNAME_MACHINE="alphaev79" ;;
311 + # A Pn.n version is a patched version.
312 + # A Vn.n version is a released version.
313 + # A Tn.n version is a released field test version.
314 + # A Xn.n version is an unreleased experimental baselevel.
315 # 1.2 uses "1.2" for uname -r.
316 - echo alpha-dec-osf${UNAME_RELEASE}
318 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
320 + Alpha\ *:Windows_NT*:*)
321 + # How do we know it's Interix rather than the generic POSIX subsystem?
322 + # Should we change UNAME_MACHINE based on the output of uname instead
323 + # of the specific Alpha model?
324 + echo alpha-pc-interix
326 + 21064:Windows_NT:50:3)
327 + echo alpha-dec-winnt3.5
329 + Amiga*:UNIX_System_V:4.0:*)
330 + echo m68k-unknown-sysv4
332 + *:[Aa]miga[Oo][Ss]:*:*)
333 + echo ${UNAME_MACHINE}-unknown-amigaos
335 + *:[Mm]orph[Oo][Ss]:*:*)
336 + echo ${UNAME_MACHINE}-unknown-morphos
339 + echo i370-ibm-openedition
342 + echo powerpc-ibm-os400
344 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
345 echo arm-acorn-riscix${UNAME_RELEASE}
348 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
349 + echo hppa1.1-hitachi-hiuxmpp
351 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
352 + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
353 if test "`(/bin/universe) 2>/dev/null`" = att ; then
354 echo pyramid-pyramid-sysv3
356 echo pyramid-pyramid-bsd
361 + echo pyramid-pyramid-svr4
363 + DRS?6000:unix:4.0:6*)
366 + DRS?6000:UNIX_SV:4.2*:7*)
367 + case `/usr/bin/uname -p` in
368 + sparc) echo sparc-icl-nx7 && exit 0 ;;
371 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
373 + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
374 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
377 + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
380 # According to config.sub, this is the proper way to canonicalize
381 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
382 @@ -79,21 +362,116 @@
383 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
386 + case "`/usr/bin/arch -k`" in
388 + UNAME_RELEASE=`uname -v`
391 # Japanese Language versions have a version number like `4.1.3-JL'.
392 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
395 echo m68k-sun-sunos${UNAME_RELEASE}
398 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
399 + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
400 + case "`/bin/arch`" in
402 + echo m68k-sun-sunos${UNAME_RELEASE}
405 + echo sparc-sun-sunos${UNAME_RELEASE}
410 + echo sparc-auspex-sunos${UNAME_RELEASE}
412 + # The situation for MiNT is a little confusing. The machine name
413 + # can be virtually everything (everything which is not
414 + # "atarist" or "atariste" at least should have a processor
415 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
416 + # to the lowercase version "mint" (or "freemint"). Finally
417 + # the system name "TOS" denotes a system which is actually not
418 + # MiNT. But MiNT is downward compatible to TOS, so this should
420 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
421 + echo m68k-atari-mint${UNAME_RELEASE}
423 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
424 + echo m68k-atari-mint${UNAME_RELEASE}
426 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
427 + echo m68k-atari-mint${UNAME_RELEASE}
429 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
430 + echo m68k-milan-mint${UNAME_RELEASE}
432 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
433 + echo m68k-hades-mint${UNAME_RELEASE}
435 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
436 + echo m68k-unknown-mint${UNAME_RELEASE}
439 + echo m68k-apple-machten${UNAME_RELEASE}
441 + powerpc:machten:*:*)
442 + echo powerpc-apple-machten${UNAME_RELEASE}
445 + echo mips-dec-mach_bsd4.3
448 echo mips-dec-ultrix${UNAME_RELEASE}
451 echo vax-dec-ultrix${UNAME_RELEASE}
454 + 2020:CLIX:*:* | 2430:CLIX:*:*)
455 + echo clipper-intergraph-clix${UNAME_RELEASE}
457 + mips:*:*:UMIPS | mips:*:*:RISCos)
458 + eval $set_cc_for_build
459 + sed 's/^ //' << EOF >$dummy.c
461 +#include <stdio.h> /* for printf() prototype */
462 + int main (int argc, char *argv[]) {
464 + int main (argc, argv) int argc; char *argv[]; {
466 + #if defined (host_mips) && defined (MIPSEB)
467 + #if defined (SYSTYPE_SYSV)
468 + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
470 + #if defined (SYSTYPE_SVR4)
471 + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
473 + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
474 + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
480 + $CC_FOR_BUILD -o $dummy $dummy.c \
481 + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
483 echo mips-mips-riscos${UNAME_RELEASE}
485 + Motorola:PowerMAX_OS:*:*)
486 + echo powerpc-motorola-powermax
488 + Motorola:*:4.3:PL8-*)
489 + echo powerpc-harris-powermax
491 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
492 + echo powerpc-harris-powermax
494 + Night_Hawk:Power_UNIX:*:*)
495 + echo powerpc-harris-powerunix
498 echo m88k-harris-cxux7
500 @@ -104,11 +482,19 @@
501 echo m88k-motorola-sysv3
504 - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
505 - -o ${TARGET_BINARY_INTERFACE}x = x ] ; then
506 + # DG/UX returns AViiON for all architectures
507 + UNAME_PROCESSOR=`/usr/bin/uname -p`
508 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
510 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
511 + [ ${TARGET_BINARY_INTERFACE}x = x ]
513 echo m88k-dg-dgux${UNAME_RELEASE}
516 echo m88k-dg-dguxbcs${UNAME_RELEASE}
519 + echo i586-dg-dgux${UNAME_RELEASE}
522 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
523 @@ -125,14 +511,26 @@
524 echo m68k-tektronix-bsd
527 - echo mips-sgi-irix${UNAME_RELEASE}
528 + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
531 + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
532 + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
533 + exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
538 + if [ -x /usr/bin/oslevel ] ; then
539 + IBM_REV=`/usr/bin/oslevel`
541 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
543 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
546 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
547 - sed 's/^ //' << EOF >dummy.c
548 + eval $set_cc_for_build
549 + sed 's/^ //' << EOF >$dummy.c
550 #include <sys/systemcfg.h>
557 - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
558 - rm -f dummy.c dummy
559 + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
560 echo rs6000-ibm-aix3.2.5
561 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
562 echo rs6000-ibm-aix3.2.4
563 @@ -152,24 +549,29 @@
564 echo rs6000-ibm-aix3.2
568 - if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
570 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
571 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
576 - if grep bos410 /usr/include/stdio.h >/dev/null 2>&1; then
578 - elif grep bos411 /usr/include/stdio.h >/dev/null 2>&1; then
580 + if [ -x /usr/bin/oslevel ] ; then
581 + IBM_REV=`/usr/bin/oslevel`
583 - IBM_REV=4.${UNAME_RELEASE}
584 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
586 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
591 + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
592 + echo romp-ibm-bsd4.4
594 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
595 + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
596 + exit 0 ;; # report: romp-ibm BSD 4.3
598 echo rs6000-bull-bosx
600 @@ -182,18 +584,85 @@
601 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
604 - 9000/[3478]??:HP-UX:*:*)
605 + 9000/[34678]??:HP-UX:*:*)
606 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
607 case "${UNAME_MACHINE}" in
608 9000/31? ) HP_ARCH=m68000 ;;
609 9000/[34]?? ) HP_ARCH=m68k ;;
610 - 9000/7?? | 9000/8?7 ) HP_ARCH=hppa1.1 ;;
611 - 9000/8?? ) HP_ARCH=hppa1.0 ;;
612 + 9000/[678][0-9][0-9])
613 + if [ -x /usr/bin/getconf ]; then
614 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
615 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
616 + case "${sc_cpu_version}" in
617 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
618 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
619 + 532) # CPU_PA_RISC2_0
620 + case "${sc_kernel_bits}" in
621 + 32) HP_ARCH="hppa2.0n" ;;
622 + 64) HP_ARCH="hppa2.0w" ;;
623 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
627 + if [ "${HP_ARCH}" = "" ]; then
628 + eval $set_cc_for_build
629 + sed 's/^ //' << EOF >$dummy.c
631 + #define _HPUX_SOURCE
632 + #include <stdlib.h>
633 + #include <unistd.h>
637 + #if defined(_SC_KERNEL_BITS)
638 + long bits = sysconf(_SC_KERNEL_BITS);
640 + long cpu = sysconf (_SC_CPU_VERSION);
644 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
645 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
646 + case CPU_PA_RISC2_0:
647 + #if defined(_SC_KERNEL_BITS)
650 + case 64: puts ("hppa2.0w"); break;
651 + case 32: puts ("hppa2.0n"); break;
652 + default: puts ("hppa2.0"); break;
654 + #else /* !defined(_SC_KERNEL_BITS) */
655 + puts ("hppa2.0"); break;
657 + default: puts ("hppa1.0"); break;
662 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
663 + test -z "$HP_ARCH" && HP_ARCH=hppa
666 - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
667 + if [ ${HP_ARCH} = "hppa2.0w" ]
669 + # avoid double evaluation of $set_cc_for_build
670 + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
671 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
678 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
681 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
682 + echo ia64-hp-hpux${HPUX_REV}
685 - sed 's/^ //' << EOF >dummy.c
686 + eval $set_cc_for_build
687 + sed 's/^ //' << EOF >$dummy.c
691 @@ -218,22 +687,34 @@
695 - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
696 - rm -f dummy.c dummy
697 + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
698 echo unknown-hitachi-hiuxwe2
700 - 9000/7??:4.3bsd:*:* | 9000/8?7:4.3bsd:*:* )
701 + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
707 - hp7??:OSF1:*:* | hp8?7:OSF1:*:* )
708 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
709 + echo hppa1.0-hp-mpeix
711 + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
718 + if [ -x /usr/sbin/sysversion ] ; then
719 + echo ${UNAME_MACHINE}-unknown-osf1mk
721 + echo ${UNAME_MACHINE}-unknown-osf1
724 + parisc*:Lites*:*:*)
725 + echo hppa1.1-hp-lites
727 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
730 @@ -252,20 +733,43 @@
731 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
734 - CRAY*X-MP:UNICOS:*:*)
735 - echo xmp-cray-unicos
737 - CRAY*Y-MP:UNICOS:*:*)
738 - echo ymp-cray-unicos
741 - echo cray2-cray-unicos
743 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
745 + CRAY*[A-Z]90:*:*:*)
746 + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
747 + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
748 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
749 + -e 's/\.[^.]*$/.X/'
752 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
755 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
758 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
761 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
763 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
764 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
765 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
766 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
767 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
769 - hp3[0-9][05]:NetBSD:*:*)
770 - echo m68k-hp-netbsd${UNAME_RELEASE}
771 + 5000:UNIX_System_V:4.*:*)
772 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
773 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
774 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
776 - i[34]86:BSD/386:*:*)
777 - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
778 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
779 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
782 + echo sparc-unknown-bsdi${UNAME_RELEASE}
785 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
786 @@ -273,41 +777,281 @@
788 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
791 - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
793 + echo ${UNAME_MACHINE}-pc-cygwin
796 + echo ${UNAME_MACHINE}-pc-mingw32
799 + echo ${UNAME_MACHINE}-pc-pw32
801 + x86:Interix*:[34]*)
802 + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
804 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
805 + echo i${UNAME_MACHINE}-pc-mks
807 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
808 + # How do we know it's Interix rather than the generic POSIX subsystem?
809 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
810 + # UNAME_MACHINE based on the output of uname instead of i386?
811 + echo i586-pc-interix
814 + echo ${UNAME_MACHINE}-pc-uwin
817 + echo powerpcle-unknown-cygwin
820 + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
823 - echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
825 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
828 + # other systems with GNU libc and userland
829 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
832 + echo ${UNAME_MACHINE}-pc-minix
835 + echo ${UNAME_MACHINE}-unknown-linux-gnu
838 + echo cris-axis-linux-gnu
841 + echo ${UNAME_MACHINE}-unknown-linux-gnu
844 + echo ${UNAME_MACHINE}-unknown-linux-gnu
847 + echo ${UNAME_MACHINE}-unknown-linux-gnu
850 + eval $set_cc_for_build
851 + sed 's/^ //' << EOF >$dummy.c
855 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
858 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
865 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
866 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
869 + eval $set_cc_for_build
870 + sed 's/^ //' << EOF >$dummy.c
874 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
877 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
884 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
885 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
888 + echo powerpc-unknown-linux-gnu
891 + echo powerpc64-unknown-linux-gnu
894 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
895 + EV5) UNAME_MACHINE=alphaev5 ;;
896 + EV56) UNAME_MACHINE=alphaev56 ;;
897 + PCA56) UNAME_MACHINE=alphapca56 ;;
898 + PCA57) UNAME_MACHINE=alphapca56 ;;
899 + EV6) UNAME_MACHINE=alphaev6 ;;
900 + EV67) UNAME_MACHINE=alphaev67 ;;
901 + EV68*) UNAME_MACHINE=alphaev68 ;;
903 + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
904 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
905 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
907 + parisc:Linux:*:* | hppa:Linux:*:*)
908 + # Look for CPU level
909 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
910 + PA7*) echo hppa1.1-unknown-linux-gnu ;;
911 + PA8*) echo hppa2.0-unknown-linux-gnu ;;
912 + *) echo hppa-unknown-linux-gnu ;;
915 + parisc64:Linux:*:* | hppa64:Linux:*:*)
916 + echo hppa64-unknown-linux-gnu
919 - echo ${UNAME_MACHINE}-unknown-linux
920 + s390:Linux:*:* | s390x:Linux:*:*)
921 + echo ${UNAME_MACHINE}-ibm-linux
923 -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
924 -# are messed up and put the nodename in both sysname and nodename.
925 - i[34]86:DYNIX/ptx:4*:*)
927 + echo ${UNAME_MACHINE}-unknown-linux-gnu
930 + echo ${UNAME_MACHINE}-unknown-linux-gnu
932 + sparc:Linux:*:* | sparc64:Linux:*:*)
933 + echo ${UNAME_MACHINE}-unknown-linux-gnu
936 + echo x86_64-unknown-linux-gnu
939 + # The BFD linker knows what the default object file format is, so
940 + # first see if it will tell us. cd to the root directory to prevent
941 + # problems with other programs or directories called `ld' in the path.
942 + # Set LC_ALL=C to ensure ld outputs messages in English.
943 + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
944 + | sed -ne '/supported targets:/!d
946 + s/.*supported targets: *//
949 + case "$ld_supported_targets" in
951 + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
954 + echo "${UNAME_MACHINE}-pc-linux-gnuaout"
957 + echo "${UNAME_MACHINE}-pc-linux-gnucoff"
960 + # Either a pre-BFD a.out linker (linux-gnuoldld) or
961 + # one that does not give us useful --help.
962 + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
965 + # Determine whether the default compiler is a.out or elf
966 + eval $set_cc_for_build
967 + sed 's/^ //' << EOF >$dummy.c
968 + #include <features.h>
971 + # if __GLIBC__ >= 2
980 + #ifdef __INTEL_COMPILER
986 + #ifdef __dietlibc__
990 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
991 + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
992 + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
994 + i*86:DYNIX/ptx:4*:*)
995 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
996 + # earlier versions are messed up and put the nodename in both
997 + # sysname and nodename.
998 echo i386-sequent-sysv4
1000 - i[34]86:*:4.*:* | i[34]86:SYSTEM_V:4.*:*)
1001 + i*86:UNIX_SV:4.2MP:2.*)
1002 + # Unixware is an offshoot of SVR4, but it has its own version
1003 + # number series starting with 2...
1004 + # I am not positive that other SVR4 systems won't match this,
1005 + # I just have to hope. -- rms.
1006 + # Use sysv4.2uw... so that sysv4* matches it.
1007 + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1010 + # If we were able to find `uname', then EMX Unix compatibility
1011 + # is probably installed.
1012 + echo ${UNAME_MACHINE}-pc-os2-emx
1014 + i*86:XTS-300:*:STOP)
1015 + echo ${UNAME_MACHINE}-unknown-stop
1018 + echo ${UNAME_MACHINE}-unknown-atheos
1020 + i*86:syllable:*:*)
1021 + echo ${UNAME_MACHINE}-pc-syllable
1023 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1024 + echo i386-unknown-lynxos${UNAME_RELEASE}
1027 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
1029 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1030 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1031 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1032 - echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
1033 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1035 - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}
1036 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1040 - if test -d /etc/conf/cf.d -a -f /usr/options/cb.name; then
1042 + case `/bin/uname -X | grep "^Machine"` in
1043 + *486*) UNAME_MACHINE=i486 ;;
1044 + *Pentium) UNAME_MACHINE=i586 ;;
1045 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1047 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1050 + if test -f /usr/options/cb.name; then
1051 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1052 - echo ${UNAME_MACHINE}-unknown-isc$UNAME_REL
1053 + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1054 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1055 - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
1056 - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
1057 - echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL
1058 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1059 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1060 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1061 + && UNAME_MACHINE=i586
1062 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1063 + && UNAME_MACHINE=i686
1064 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1065 + && UNAME_MACHINE=i686
1066 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1068 - echo ${UNAME_MACHINE}-unknown-sysv32
1069 + echo ${UNAME_MACHINE}-pc-sysv32
1073 + # Left here for compatibility:
1074 + # uname -m prints for DJGPP always 'pc', but it prints nothing about
1075 + # the processor, so we play safe by assuming i386.
1076 + echo i386-pc-msdosdjgpp
1079 - echo i386-unknown-mach3
1080 + echo i386-pc-mach3
1083 + echo i860-intel-osf1
1085 i860:*:4.*:*) # i860-SVR4
1086 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1087 @@ -320,28 +1064,45 @@
1089 echo m68010-convergent-sysv
1091 - M680[234]0:*:R3V[567]*:*)
1092 + mc68k:UNIX:SYSTEM5:3.51m)
1093 + echo m68k-convergent-sysv
1095 + M680?0:D-NIX:5.3:*)
1096 + echo m68k-diab-dnix
1098 + M68*:*:R3V[5678]*:*)
1099 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1100 - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0)
1101 - uname -p 2>/dev/null | grep 86 >/dev/null \
1102 - && echo i486-ncr-sysv4.3 && exit 0 ;;
1103 + 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)
1105 + test -r /etc/.relid \
1106 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1107 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1108 + && echo i486-ncr-sysv4.3${OS_REL} && exit 0
1109 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1110 + && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
1111 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1112 - uname -p 2>/dev/null | grep 86 >/dev/null \
1113 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1114 && echo i486-ncr-sysv4 && exit 0 ;;
1115 - m680[234]0:LynxOS:2.2*:*)
1116 - echo m68k-lynx-lynxos${UNAME_RELEASE}
1117 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1118 + echo m68k-unknown-lynxos${UNAME_RELEASE}
1120 mc68030:UNIX_System_V:4.*:*)
1121 echo m68k-atari-sysv4
1123 - i[34]86:LynxOS:2.2*:*)
1124 - echo i386-lynx-lynxos${UNAME_RELEASE}
1125 + TSUNAMI:LynxOS:2.*:*)
1126 + echo sparc-unknown-lynxos${UNAME_RELEASE}
1128 + rs6000:LynxOS:2.*:*)
1129 + echo rs6000-unknown-lynxos${UNAME_RELEASE}
1131 - TSUNAMI:LynxOS:2.2*:*)
1132 - echo sparc-lynx-lynxos${UNAME_RELEASE}
1133 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1134 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
1136 - rs6000:LynxOS:2.2*:*)
1137 - echo rs6000-lynx-lynxos${UNAME_RELEASE}
1138 + SM[BE]S:UNIX_SV:*:*)
1139 + echo mips-dde-sysv${UNAME_RELEASE}
1141 + RM*:ReliantUNIX-*:*:*)
1142 + echo mips-sni-sysv4
1146 @@ -354,12 +1115,144 @@
1150 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1151 + # says <Richard.M.Bartel@ccMail.Census.GOV>
1152 + echo i586-unisys-sysv4
1154 + *:UNIX_System_V:4*:FTX*)
1155 + # From Gerald Hewes <hewes@openmarket.com>.
1156 + # How about differentiating between stratus architectures? -djm
1157 + echo hppa1.1-stratus-sysv4
1160 + # From seanf@swdc.stratus.com.
1161 + echo i860-stratus-sysv4
1164 + # From Paul.Green@stratus.com.
1165 + echo hppa1.1-stratus-vos
1168 + echo m68k-apple-aux${UNAME_RELEASE}
1170 + news*:NEWS-OS:6*:*)
1171 + echo mips-sony-newsos6
1173 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1174 + if [ -d /usr/nec ]; then
1175 + echo mips-nec-sysv${UNAME_RELEASE}
1177 + echo mips-unknown-sysv${UNAME_RELEASE}
1180 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1181 + echo powerpc-be-beos
1183 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1184 + echo powerpc-apple-beos
1186 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1189 + SX-4:SUPER-UX:*:*)
1190 + echo sx4-nec-superux${UNAME_RELEASE}
1192 + SX-5:SUPER-UX:*:*)
1193 + echo sx5-nec-superux${UNAME_RELEASE}
1195 + SX-6:SUPER-UX:*:*)
1196 + echo sx6-nec-superux${UNAME_RELEASE}
1198 + Power*:Rhapsody:*:*)
1199 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
1202 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1205 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1206 + case $UNAME_PROCESSOR in
1207 + *86) UNAME_PROCESSOR=i686 ;;
1208 + unknown) UNAME_PROCESSOR=powerpc ;;
1210 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1212 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
1213 + UNAME_PROCESSOR=`uname -p`
1214 + if test "$UNAME_PROCESSOR" = "x86"; then
1215 + UNAME_PROCESSOR=i386
1218 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1223 + NSR-?:NONSTOP_KERNEL:*:*)
1224 + echo nsr-tandem-nsk${UNAME_RELEASE}
1227 + echo mips-compaq-nonstopux
1229 + BS2000:POSIX*:*:*)
1230 + echo bs2000-siemens-sysv
1232 + DS/*:UNIX_System_V:*:*)
1233 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1236 + # "uname -m" is not consistent, so use $cputype instead. 386
1237 + # is converted to i386 for consistency with other x86
1238 + # operating systems.
1239 + if test "$cputype" = "386"; then
1240 + UNAME_MACHINE=i386
1242 + UNAME_MACHINE="$cputype"
1244 + echo ${UNAME_MACHINE}-unknown-plan9
1247 + echo pdp10-unknown-tops10
1250 + echo pdp10-unknown-tenex
1252 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1253 + echo pdp10-dec-tops20
1255 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1256 + echo pdp10-xkl-tops20
1259 + echo pdp10-unknown-tops20
1262 + echo pdp10-unknown-its
1265 + echo mips-sei-seiux${UNAME_RELEASE}
1268 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1271 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
1272 + case "${UNAME_MACHINE}" in
1273 + A*) echo alpha-dec-vms && exit 0 ;;
1274 + I*) echo ia64-dec-vms && exit 0 ;;
1275 + V*) echo vax-dec-vms && exit 0 ;;
1279 #echo '(No uname command or uname output not recognized.)' 1>&2
1280 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1283 +eval $set_cc_for_build
1284 +cat >$dummy.c <<EOF
1286 +# include <sys/types.h>
1287 +# include <sys/utsname.h>
1292 @@ -368,7 +1261,14 @@
1294 printf ("mips-sony-bsd\n"); exit (0);
1296 - printf ("m68k-sony-newsos\n"); exit (0);
1297 +#include <sys/param.h>
1298 + printf ("m68k-sony-newsos%s\n",
1308 @@ -386,7 +1286,10 @@
1311 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1312 - printf ("%s-next-nextstep%s\n", __ARCHITECTURE__, version==2 ? "2" : "3");
1314 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1316 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1320 @@ -403,7 +1306,7 @@
1323 #if defined (__386BSD__)
1324 - printf ("i386-unknown-bsd\n"); exit (0);
1325 + printf ("i386-pc-bsd\n"); exit (0);
1328 #if defined (sequent)
1329 @@ -416,15 +1319,39 @@
1332 #if defined (_SEQUENT_)
1333 - printf ("i386-sequent-ptx\n"); exit (0);
1334 + struct utsname un;
1338 + if (strncmp(un.version, "V2", 2) == 0) {
1339 + printf ("i386-sequent-ptx2\n"); exit (0);
1341 + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1342 + printf ("i386-sequent-ptx1\n"); exit (0);
1344 + printf ("i386-sequent-ptx\n"); exit (0);
1349 -#if !defined (ultrix)
1350 - printf ("vax-dec-bsd\n"); exit (0);
1352 - printf ("vax-dec-ultrix\n"); exit (0);
1354 +# if !defined (ultrix)
1355 +# include <sys/param.h>
1358 + printf ("vax-dec-bsd4.3\n"); exit (0);
1361 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
1363 + printf ("vax-dec-bsd\n"); exit (0);
1367 + printf ("vax-dec-bsd\n"); exit (0);
1370 + printf ("vax-dec-ultrix\n"); exit (0);
1374 #if defined (alliant) && defined (i860)
1375 @@ -435,8 +1362,7 @@
1379 -${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
1380 -rm -f dummy.c dummy
1381 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
1383 # Apollos put the system type in the environment.
1385 @@ -468,6 +1394,48 @@
1389 -#echo '(Unable to guess system type)' 1>&2
1391 +$0: unable to guess system type
1393 +This script, last modified $timestamp, has failed to recognize
1394 +the operating system you are using. It is advised that you
1395 +download the most up to date version of the config scripts from
1397 + ftp://ftp.gnu.org/pub/gnu/config/
1399 +If the version you run ($0) is already up to date, please
1400 +send the following data and any information you think might be
1401 +pertinent to <config-patches@gnu.org> in order to provide the needed
1402 +information to handle your system.
1404 +config.guess timestamp = $timestamp
1406 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
1407 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
1408 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
1409 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
1411 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1412 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1414 +hostinfo = `(hostinfo) 2>/dev/null`
1415 +/bin/universe = `(/bin/universe) 2>/dev/null`
1416 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1417 +/bin/arch = `(/bin/arch) 2>/dev/null`
1418 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1419 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1421 +UNAME_MACHINE = ${UNAME_MACHINE}
1422 +UNAME_RELEASE = ${UNAME_RELEASE}
1423 +UNAME_SYSTEM = ${UNAME_SYSTEM}
1424 +UNAME_VERSION = ${UNAME_VERSION}
1430 +# eval: (add-hook 'write-file-hooks 'time-stamp)
1431 +# time-stamp-start: "timestamp='"
1432 +# time-stamp-format: "%:y-%02m-%02d"
1433 +# time-stamp-end: "'"
1435 diff -ru tiff.old/config.sub tiff/config.sub
1436 --- tiff.old/config.sub 1996-04-30 00:16:18.000000000 +0200
1437 +++ tiff/config.sub 2005-08-02 16:27:06.000000000 +0200
1440 -# Configuration validation subroutine script, version 1.1.
1441 -# Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
1443 +# Configuration validation subroutine script.
1444 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1445 +# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
1447 +timestamp='2004-06-24'
1449 # This file is (in principle) common to ALL GNU software.
1450 # The presence of a machine in this file suggests that SOME GNU software
1451 -# can handle that machine. It does not imply ALL GNU software can.
1452 +# can handle that machine. It does not imply ALL GNU software can.
1454 # This file is free software; you can redistribute it and/or modify
1455 # it under the terms of the GNU General Public License as published by
1458 # You should have received a copy of the GNU General Public License
1459 # along with this program; if not, write to the Free Software
1460 -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1461 +# Foundation, Inc., 59 Temple Place - Suite 330,
1462 +# Boston, MA 02111-1307, USA.
1464 # As a special exception to the GNU General Public License, if you
1465 # distribute this file as part of a program that contains a
1466 # configuration script generated by Autoconf, you may include it under
1467 # the same distribution terms that you use for the rest of that program.
1469 +# Please send patches to <config-patches@gnu.org>. Submit a context
1470 +# diff and a properly formatted ChangeLog entry.
1472 # Configuration subroutine to validate and canonicalize a configuration type.
1473 # Supply the specified configuration type as an argument.
1474 # If it is invalid, we print an error message on stderr and exit with code 1.
1476 # The goal of this file is to map all the various variations of a given
1477 # machine specification into a single specification in the form:
1478 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
1479 +# or in some cases, the newer four-part form:
1480 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
1481 # It is wrong to echo any other type of specification.
1483 -# First pass through any local machine types.
1491 +me=`echo "$0" | sed -e 's,.*/,,'`
1494 +Usage: $0 [OPTION] CPU-MFR-OPSYS
1497 +Canonicalize a configuration name.
1500 + -h, --help print this help, then exit
1501 + -t, --time-stamp print date of last modification, then exit
1502 + -v, --version print version number, then exit
1504 +Report bugs and patches to <config-patches@gnu.org>."
1507 +GNU config.sub ($timestamp)
1509 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
1510 +Free Software Foundation, Inc.
1512 +This is free software; see the source for copying conditions. There is NO
1513 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1516 +Try \`$me --help' for more information."
1518 +# Parse command line
1519 +while test $# -gt 0 ; do
1521 + --time-stamp | --time* | -t )
1522 + echo "$timestamp" ; exit 0 ;;
1524 + echo "$version" ; exit 0 ;;
1525 + --help | --h* | -h )
1526 + echo "$usage"; exit 0 ;;
1527 + -- ) # Stop option processing
1529 + - ) # Use stdin as input.
1532 + echo "$me: invalid option $1$help"
1536 + # First pass through any local machine types.
1546 + 0) echo "$me: missing argument$help" >&2
1549 + *) echo "$me: too many arguments$help" >&2
1553 -# Separate what the user gave into CPU-COMPANY and OS (if any).
1554 -basic_machine=`echo $1 | sed 's/-[^-]*$//'`
1555 -if [ $basic_machine != $1 ]
1556 -then os=`echo $1 | sed 's/.*-/-/'`
1558 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
1559 +# Here we must recognize all the valid KERNEL-OS combinations.
1560 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
1562 + nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
1563 + kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
1565 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
1568 + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
1569 + if [ $basic_machine != $1 ]
1570 + then os=`echo $1 | sed 's/.*-/-/'`
1575 ### Let's recognize common machines as not being operating systems so
1576 ### that things like config.sub decstation-3100 work. We also
1577 @@ -71,40 +144,66 @@
1578 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
1579 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
1580 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
1581 - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp )
1582 + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
1583 + -apple | -axis | -knuth | -cray)
1587 + -sim | -cisco | -oki | -wec | -winbond)
1610 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1614 - basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
1615 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1618 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1619 - basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
1620 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1623 # Don't forget version if it is 3.2v4 or newer.
1624 - basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
1625 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1629 - basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
1630 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1633 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1637 - basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
1638 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1641 basic_machine=clipper-intergraph
1644 - basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
1645 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1652 @@ -113,42 +212,165 @@
1654 os=`echo $os | sed -e 's/windowsnt/winnt/'`
1659 + -mint | -mint[0-9]*)
1660 + basic_machine=m68k-atari
1665 # Decode aliases for certain CPU-COMPANY combinations.
1666 case $basic_machine in
1667 # Recognize the basic CPU types without company name.
1668 # Some are omitted here because they have special meanings below.
1669 - tahoe | i[345]86 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \
1670 - | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \
1671 - | alpha | we32k | ns16k | clipper | sparclite | i370 | sh \
1672 - | powerpc | sparc64 | 1750a | dsp16xx | mips64 | mipsel \
1673 - | pdp11 | mips64el | mips64orion | mips64orionel )
1676 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
1677 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
1679 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
1681 + | d10v | d30v | dlx | dsp16xx \
1683 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1684 + | i370 | i860 | i960 | ia64 \
1686 + | m32r | m32rle | m68000 | m68k | m88k | mcore \
1687 + | mips | mipsbe | mipseb | mipsel | mipsle \
1689 + | mips64 | mips64el \
1690 + | mips64vr | mips64vrel \
1691 + | mips64orion | mips64orionel \
1692 + | mips64vr4100 | mips64vr4100el \
1693 + | mips64vr4300 | mips64vr4300el \
1694 + | mips64vr5000 | mips64vr5000el \
1695 + | mipsisa32 | mipsisa32el \
1696 + | mipsisa32r2 | mipsisa32r2el \
1697 + | mipsisa64 | mipsisa64el \
1698 + | mipsisa64r2 | mipsisa64r2el \
1699 + | mipsisa64sb1 | mipsisa64sb1el \
1700 + | mipsisa64sr71k | mipsisa64sr71kel \
1701 + | mipstx39 | mipstx39el \
1702 + | mn10200 | mn10300 \
1705 + | openrisc | or32 \
1706 + | pdp10 | pdp11 | pj | pjl \
1707 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
1709 + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
1711 + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
1713 + | tahoe | thumb | tic4x | tic80 | tron \
1716 + | x86 | xscale | xstormy16 | xtensa \
1718 + basic_machine=$basic_machine-unknown
1720 + m6811 | m68hc11 | m6812 | m68hc12)
1721 + # Motorola 68HC11/12.
1722 basic_machine=$basic_machine-unknown
1725 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
1728 + # We use `pc' rather than `unknown'
1729 + # because (1) that's what they normally are, and
1730 + # (2) the word "unknown" tends to confuse beginning users.
1732 + basic_machine=$basic_machine-pc
1734 # Object if more than one company name word.
1736 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1739 # Recognize the basic CPU types with company name.
1740 - vax-* | tahoe-* | i[345]86-* | i860-* | m68k-* | m68000-* | m88k-* \
1741 - | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
1742 - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
1743 - | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
1744 - | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
1745 - | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
1746 - | pdp11-* | sh-* | powerpc-* | sparc64-* | mips64-* | mipsel-* \
1747 - | mips64el-* | mips64orion-* | mips64orionel-* )
1750 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
1751 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
1752 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
1753 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
1756 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
1757 + | clipper-* | craynv-* | cydra-* \
1758 + | d10v-* | d30v-* | dlx-* \
1760 + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
1761 + | h8300-* | h8500-* \
1762 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
1763 + | i*86-* | i860-* | i960-* | ia64-* \
1764 + | ip2k-* | iq2000-* \
1765 + | m32r-* | m32rle-* \
1766 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
1767 + | m88110-* | m88k-* | mcore-* \
1768 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
1770 + | mips64-* | mips64el-* \
1771 + | mips64vr-* | mips64vrel-* \
1772 + | mips64orion-* | mips64orionel-* \
1773 + | mips64vr4100-* | mips64vr4100el-* \
1774 + | mips64vr4300-* | mips64vr4300el-* \
1775 + | mips64vr5000-* | mips64vr5000el-* \
1776 + | mipsisa32-* | mipsisa32el-* \
1777 + | mipsisa32r2-* | mipsisa32r2el-* \
1778 + | mipsisa64-* | mipsisa64el-* \
1779 + | mipsisa64r2-* | mipsisa64r2el-* \
1780 + | mipsisa64sb1-* | mipsisa64sb1el-* \
1781 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
1782 + | mipstx39-* | mipstx39el-* \
1785 + | none-* | np1-* | ns16k-* | ns32k-* \
1787 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
1788 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
1790 + | romp-* | rs6000-* \
1791 + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
1792 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
1793 + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
1794 + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
1795 + | tahoe-* | thumb-* \
1796 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
1798 + | v850-* | v850e-* | vax-* \
1800 + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
1805 # Recognize the various machine names and aliases which stand
1806 # for a CPU type and a company and sometimes even an OS.
1808 + basic_machine=i386-unknown
1811 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
1812 basic_machine=m68000-att
1815 basic_machine=we32k-att
1818 + basic_machine=a29k-amd
1822 + basic_machine=abacus-unknown
1825 + basic_machine=m68010-adobe
1829 basic_machine=fx80-alliant
1831 @@ -159,29 +381,47 @@
1832 basic_machine=a29k-none
1836 + basic_machine=x86_64-pc
1839 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
1842 basic_machine=580-amdahl
1846 - basic_machine=m68k-cbm
1847 + basic_machine=m68k-unknown
1850 - basic_machine=m68k-cbm
1852 + amigaos | amigados)
1853 + basic_machine=m68k-unknown
1857 - basic_machine=m68k-cbm
1858 + basic_machine=m68k-unknown
1862 basic_machine=m68k-apollo
1866 + basic_machine=m68k-apollo
1870 + basic_machine=m68k-apple
1874 basic_machine=ns32k-sequent
1878 + basic_machine=c90-cray
1882 basic_machine=c1-convex
1884 @@ -202,23 +442,42 @@
1885 basic_machine=c38-convex
1889 - basic_machine=ymp-cray
1891 + basic_machine=j90-cray
1895 - basic_machine=cray2-cray
1898 + basic_machine=craynv-cray
1902 + basic_machine=cr16c-unknown
1906 basic_machine=m68k-crds
1908 + cris | cris-* | etrax*)
1909 + basic_machine=cris-axis
1912 + basic_machine=crx-unknown
1916 basic_machine=m68k-da30
1918 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
1919 basic_machine=mips-dec
1921 + decsystem10* | dec10*)
1922 + basic_machine=pdp10-dec
1925 + decsystem20* | dec20*)
1926 + basic_machine=pdp10-dec
1929 delta | 3300 | motorola-3300 | motorola-delta \
1930 | 3300-motorola | delta-motorola)
1931 basic_machine=m68k-motorola
1932 @@ -246,6 +505,10 @@
1933 encore | umax | mmax)
1934 basic_machine=ns32k-encore
1936 + es1800 | OSE68k | ose68k | ose | OSE)
1937 + basic_machine=m68k-ericsson
1941 basic_machine=i860-alliant
1943 @@ -256,6 +519,10 @@
1944 basic_machine=tron-gmicro
1948 + basic_machine=i386-pc
1952 basic_machine=hppa1.1-hitachi
1954 @@ -264,6 +531,14 @@
1955 basic_machine=h8300-hitachi
1959 + basic_machine=h8300-hitachi
1963 + basic_machine=h8500-hitachi
1967 basic_machine=m88k-harris
1969 @@ -279,39 +554,74 @@
1970 basic_machine=m68k-hp
1973 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
1974 + basic_machine=hppa1.0-hp
1976 hp9k2[0-9][0-9] | hp9k31[0-9])
1977 basic_machine=m68000-hp
1980 basic_machine=m68k-hp
1982 - hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
1983 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
1984 + basic_machine=hppa1.0-hp
1986 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
1987 + basic_machine=hppa1.1-hp
1989 + hp9k78[0-9] | hp78[0-9])
1990 + # FIXME: really hppa2.0-hp
1991 + basic_machine=hppa1.1-hp
1993 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
1994 + # FIXME: really hppa2.0-hp
1995 + basic_machine=hppa1.1-hp
1997 + hp9k8[0-9][13679] | hp8[0-9][13679])
1998 basic_machine=hppa1.1-hp
2000 hp9k8[0-9][0-9] | hp8[0-9][0-9])
2001 basic_machine=hppa1.0-hp
2007 + basic_machine=hppa1.1-hp
2011 + basic_machine=hppa1.1-hp
2015 basic_machine=i370-ibm
2018 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
2020 - basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
2022 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2026 - basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
2028 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2032 - basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
2034 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2038 - basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
2040 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2044 + basic_machine=i386-mach
2048 + basic_machine=i386-unknown
2052 basic_machine=mips-sgi
2054 @@ -337,19 +647,51 @@
2055 basic_machine=ns32k-utek
2059 + basic_machine=i386-pc
2063 basic_machine=m68000-convergent
2065 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
2066 + basic_machine=m68k-atari
2070 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
2073 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
2076 + basic_machine=m68k-rom68k
2080 + basic_machine=powerpc-unknown
2084 + basic_machine=i386-pc
2088 + basic_machine=i370-ibm
2092 basic_machine=i486-ncr
2096 + basic_machine=i386-unknown
2100 + basic_machine=armv4l-rebel
2103 news | news700 | news800 | news900)
2104 basic_machine=m68k-sony
2106 @@ -362,6 +704,10 @@
2107 basic_machine=mips-sony
2111 + basic_machine=v70-nec
2115 basic_machine=m68k-next
2117 @@ -387,9 +733,40 @@
2118 basic_machine=i960-intel
2122 + basic_machine=i960-intel
2126 + basic_machine=mips-compaq
2130 basic_machine=np1-gould
2133 + basic_machine=nsr-tandem
2135 + op50n-* | op60c-*)
2136 + basic_machine=hppa1.1-oki
2140 + basic_machine=or32-unknown
2144 + basic_machine=powerpc-ibm
2147 + OSE68000 | ose68000)
2148 + basic_machine=m68000-ericsson
2152 + basic_machine=m68k-none
2156 basic_machine=hppa1.1-hitachi
2158 @@ -404,23 +781,95 @@
2160 basic_machine=m68k-tti
2164 basic_machine=ns32k-pc532
2167 - # We will change tis to say i586 once there has been
2168 - # time for various packages to start to recognize that.
2169 - basic_machine=i486-`echo $basic_machine | sed 's/^[^-]*-//'`
2170 + pentium | p5 | k5 | k6 | nexgen | viac3)
2171 + basic_machine=i586-pc
2173 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
2174 + basic_machine=i686-pc
2176 + pentiumii | pentium2 | pentiumiii | pentium3)
2177 + basic_machine=i686-pc
2180 + basic_machine=i786-pc
2182 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
2183 + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
2185 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
2186 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2188 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
2189 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2192 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
2195 basic_machine=pn-gould
2197 + power) basic_machine=power-ibm
2199 + ppc) basic_machine=powerpc-unknown
2201 + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
2203 + ppcle | powerpclittle | ppc-le | powerpc-little)
2204 + basic_machine=powerpcle-unknown
2206 + ppcle-* | powerpclittle-*)
2207 + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
2209 + ppc64) basic_machine=powerpc64-unknown
2211 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
2213 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
2214 + basic_machine=powerpc64le-unknown
2216 + ppc64le-* | powerpc64little-*)
2217 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
2220 basic_machine=i386-ibm
2223 + basic_machine=i586-unknown
2227 + basic_machine=m68k-rom68k
2231 + basic_machine=mips-siemens
2234 basic_machine=romp-ibm
2237 + basic_machine=s390-ibm
2240 + basic_machine=s390x-ibm
2243 + basic_machine=a29k-amd
2247 + basic_machine=mipsisa64sb1-unknown
2250 + basic_machine=mipsisa64sb1el-unknown
2253 + basic_machine=mips-sei
2257 basic_machine=i386-sequent
2259 @@ -428,6 +877,13 @@
2260 basic_machine=sh-hitachi
2264 + basic_machine=sh64-unknown
2266 + sparclite-wrs | simso-wrs)
2267 + basic_machine=sparclite-wrs
2271 basic_machine=m68k-bull
2273 @@ -435,6 +891,13 @@
2275 basic_machine=spur-unknown
2278 + basic_machine=m68k-tandem
2281 + basic_machine=i860-stratus
2285 basic_machine=m68000-sun
2287 @@ -462,6 +925,10 @@
2288 basic_machine=sparc-sun
2292 + basic_machine=sparc-sun
2296 basic_machine=m68k-sun
2298 @@ -471,17 +938,63 @@
2299 sun386 | sun386i | roadrunner)
2300 basic_machine=i386-sun
2303 + basic_machine=sv1-cray
2307 basic_machine=i386-sequent
2311 + basic_machine=alphaev5-cray
2315 + basic_machine=t90-cray
2319 + basic_machine=tic54x-unknown
2323 + basic_machine=tic55x-unknown
2327 + basic_machine=tic6x-unknown
2331 + basic_machine=mipstx39-unknown
2334 + basic_machine=mipstx39el-unknown
2337 + basic_machine=pdp10-xkl
2341 basic_machine=m68k-ncr
2344 + basic_machine=s390x-ibm
2348 + basic_machine=a29k-amd
2352 basic_machine=a29k-nyu
2356 + basic_machine=v810-nec
2360 basic_machine=vax-dec
2362 @@ -490,6 +1003,9 @@
2363 basic_machine=vax-dec
2367 + basic_machine=f301-fujitsu
2370 basic_machine=i960-wrs
2372 @@ -498,13 +1014,29 @@
2373 basic_machine=m68k-wrs
2377 - basic_machine=xmp-cray
2380 + basic_machine=a29k-wrs
2384 + basic_machine=w65-wdc
2388 + basic_machine=hppa1.1-winbond
2393 basic_machine=xps100-honeywell
2396 + basic_machine=ymp-cray
2400 + basic_machine=z8k-unknown
2404 basic_machine=none-none
2406 @@ -512,28 +1044,47 @@
2408 # Here we handle the default manufacturer of certain CPU types. It is in
2409 # some cases the only manufacturer, in others, it is the most popular.
2411 - basic_machine=mips-mips
2413 + basic_machine=hppa1.1-winbond
2416 + basic_machine=hppa1.1-oki
2419 + basic_machine=hppa1.1-oki
2422 basic_machine=romp-ibm
2425 + basic_machine=mmix-knuth
2428 basic_machine=rs6000-ibm
2431 basic_machine=vax-dec
2434 + # there are many clones, so DEC is not a safe bet
2435 + basic_machine=pdp10-unknown
2438 basic_machine=pdp11-dec
2441 basic_machine=we32k-att
2444 + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
2445 + basic_machine=sh-unknown
2448 + basic_machine=sh64-unknown
2450 + sparc | sparcv8 | sparcv9 | sparcv9b)
2451 basic_machine=sparc-sun
2455 basic_machine=cydra-cydrome
2458 @@ -542,6 +1093,15 @@
2460 basic_machine=clipper-highlevel
2462 + mac | mpw | mac-mpw)
2463 + basic_machine=m68k-apple
2466 + basic_machine=powerpc-apple
2469 + # Make sure to match an already-canonicalized machine name.
2472 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
2474 @@ -565,6 +1125,8 @@
2475 if [ x"$os" != x"" ]
2478 + # First match some system type aliases
2479 + # that might get confused with valid system types.
2480 # -solaris* is a basic system type, with this one exception.
2481 -solaris1 | -solaris1.*)
2482 os=`echo $os | sed -e 's|solaris1|sunos4|'`
2483 @@ -572,22 +1134,68 @@
2494 - os=`echo $os | sed -e 's|gnu/linux|linux|'`
2495 + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
2497 # First accept the basic system types.
2498 # The portable systems comes first.
2499 - # Each alternative must end in a *, to match a version number.
2500 + # Each alternative MUST END IN A *, to match a version number.
2501 # -sysv* is not here because it comes later, after sysvr4.
2502 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
2503 - | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[345]* \
2504 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
2505 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
2506 - | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
2507 - | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
2508 - | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
2509 - | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \
2510 - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
2511 - | -ptx* | -coff* | -winnt*)
2512 + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
2514 + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
2515 + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
2516 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
2517 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
2518 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
2519 + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
2520 + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
2521 + | -chorusos* | -chorusrdb* \
2522 + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
2523 + | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
2524 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
2525 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
2526 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
2527 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
2528 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
2529 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
2530 + # Remember, each alternative MUST END IN *, to match a version number.
2533 + case $basic_machine in
2544 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
2546 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
2547 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
2548 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
2551 + os=`echo $os | sed -e 's|mac|macos|'`
2554 + os=-linux-dietlibc
2557 + os=`echo $os | sed -e 's|linux|linux-gnu|'`
2560 os=`echo $os | sed -e 's|sunos5|solaris2|'`
2561 @@ -595,6 +1203,15 @@
2563 os=`echo $os | sed -e 's|sunos6|solaris3|'`
2577 @@ -610,9 +1227,37 @@
2602 + # Preserve the version number of sinix5.
2604 + os=`echo $os | sed -e 's|sinix|sysv|'`
2615 @@ -631,9 +1276,24 @@
2616 # This must come after -sysvr4.
2628 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
2640 @@ -659,12 +1319,28 @@
2654 + # This must come before the *-dec entry.
2670 @@ -674,15 +1350,42 @@
2686 *-tti) # must be before sparc entry or we get the wrong os.
2713 @@ -693,7 +1396,7 @@
2722 @@ -707,6 +1410,9 @@
2732 @@ -722,21 +1428,39 @@
2757 + f30[01]-fujitsu | f700-fujitsu)
2775 @@ -755,15 +1479,18 @@
2797 @@ -779,15 +1506,47 @@
2814 + -vxsim* | -vxworks* | -windiss*)
2826 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
2833 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
2837 echo $basic_machine$os
2841 +# eval: (add-hook 'write-file-hooks 'time-stamp)
2842 +# time-stamp-start: "timestamp='"
2843 +# time-stamp-format: "%:y-%02m-%02d"
2844 +# time-stamp-end: "'"