comparison config.guess @ 304:c6de09ad3017 r21-0b50

Import from CVS: tag r21-0b50
author cvs
date Mon, 13 Aug 2007 10:41:12 +0200
parents 538048ae2ab8
children 972bbb6d6ca2
comparison
equal deleted inserted replaced
303:d02ffe1d75ed 304:c6de09ad3017
1 #! /bin/sh 1 #! /bin/sh
2 # Attempt to guess a canonical system name. 2 # Attempt to guess a canonical system name.
3 # Copyright (C) 1992, 93, 94, 95, 1996 Free Software Foundation, Inc. 3 # Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
4 # 4 #
5 # This file is free software; you can redistribute it and/or modify it 5 # This file is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by 6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or 7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version. 8 # (at your option) any later version.
50 50
51 # Note: order is significant - the case branches are not exclusive. 51 # Note: order is significant - the case branches are not exclusive.
52 52
53 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 53 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
54 alpha:OSF1:*:*) 54 alpha:OSF1:*:*)
55 if test $UNAME_RELEASE = "V4.0"; then
56 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
57 fi
55 # A Vn.n version is a released version. 58 # A Vn.n version is a released version.
56 # A Tn.n version is a released field test version. 59 # A Tn.n version is a released field test version.
57 # A Xn.n version is an unreleased experimental baselevel. 60 # A Xn.n version is an unreleased experimental baselevel.
58 # 1.2 uses "1.2" for uname -r. 61 # 1.2 uses "1.2" for uname -r.
59 echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//'` 62 cat <<EOF >dummy.s
63 .globl main
64 .ent main
65 main:
66 .frame \$30,0,\$26,0
67 .prologue 0
68 .long 0x47e03d80 # implver $0
69 lda \$2,259
70 .long 0x47e20c21 # amask $2,$1
71 srl \$1,8,\$2
72 sll \$2,2,\$2
73 sll \$0,3,\$0
74 addl \$1,\$0,\$0
75 addl \$2,\$0,\$0
76 ret \$31,(\$26),1
77 .end main
78 EOF
79 ${CC-cc} dummy.s -o dummy 2>/dev/null
80 if test "$?" = 0 ; then
81 ./dummy
82 case "$?" in
83 7)
84 UNAME_MACHINE="alpha"
85 ;;
86 15)
87 UNAME_MACHINE="alphaev5"
88 ;;
89 14)
90 UNAME_MACHINE="alphaev56"
91 ;;
92 10)
93 UNAME_MACHINE="alphapca56"
94 ;;
95 16)
96 UNAME_MACHINE="alphaev6"
97 ;;
98 esac
99 fi
100 rm -f dummy.s dummy
101 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]`
60 exit 0 ;; 102 exit 0 ;;
61 21064:Windows_NT:50:3) 103 21064:Windows_NT:50:3)
62 echo alpha-dec-winnt3.5 104 echo alpha-dec-winnt3.5
63 exit 0 ;; 105 exit 0 ;;
64 Amiga*:UNIX_System_V:4.0:*) 106 Amiga*:UNIX_System_V:4.0:*)
66 exit 0;; 108 exit 0;;
67 amiga:NetBSD:*:*) 109 amiga:NetBSD:*:*)
68 echo m68k-cbm-netbsd${UNAME_RELEASE} 110 echo m68k-cbm-netbsd${UNAME_RELEASE}
69 exit 0 ;; 111 exit 0 ;;
70 amiga:OpenBSD:*:*) 112 amiga:OpenBSD:*:*)
71 echo m68k-cbm-openbsd${UNAME_RELEASE} 113 echo m68k-unknown-openbsd${UNAME_RELEASE}
72 exit 0 ;; 114 exit 0 ;;
115 arc64:OpenBSD:*:*)
116 echo mips64el-unknown-openbsd${UNAME_RELEASE}
117 exit 0 ;;
118 arc:OpenBSD:*:*)
119 echo mipsel-unknown-openbsd${UNAME_RELEASE}
120 exit 0 ;;
121 hkmips:OpenBSD:*:*)
122 echo mips-unknown-openbsd${UNAME_RELEASE}
123 exit 0 ;;
124 pmax:OpenBSD:*:*)
125 echo mipsel-unknown-openbsd${UNAME_RELEASE}
126 exit 0 ;;
127 sgi:OpenBSD:*:*)
128 echo mips-unknown-openbsd${UNAME_RELEASE}
129 exit 0 ;;
130 wgrisc:OpenBSD:*:*)
131 echo mipsel-unknown-openbsd${UNAME_RELEASE}
132 exit 0 ;;
73 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 133 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
74 echo arm-acorn-riscix${UNAME_RELEASE} 134 echo arm-acorn-riscix${UNAME_RELEASE}
135 exit 0;;
136 arm32:NetBSD:*:*)
137 echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
138 exit 0 ;;
139 SR2?01:HI-UX/MPP:*:*)
140 echo hppa1.1-hitachi-hiuxmpp
75 exit 0;; 141 exit 0;;
76 Pyramid*:OSx*:*:*|MIS*:OSx*:*:*) 142 Pyramid*:OSx*:*:*|MIS*:OSx*:*:*)
77 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 143 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
78 if test "`(/bin/universe) 2>/dev/null`" = att ; then 144 if test "`(/bin/universe) 2>/dev/null`" = att ; then
79 echo pyramid-pyramid-sysv3 145 echo pyramid-pyramid-sysv3
81 echo pyramid-pyramid-bsd 147 echo pyramid-pyramid-bsd
82 fi 148 fi
83 exit 0 ;; 149 exit 0 ;;
84 NILE:*:*:dcosx) 150 NILE:*:*:dcosx)
85 echo pyramid-pyramid-svr4 151 echo pyramid-pyramid-svr4
152 exit 0 ;;
153 sun4H:SunOS:5.*:*)
154 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
86 exit 0 ;; 155 exit 0 ;;
87 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 156 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
88 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 157 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
89 exit 0 ;; 158 exit 0 ;;
90 i86pc:SunOS:5.*:*) 159 i86pc:SunOS:5.*:*)
106 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 175 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
107 exit 0 ;; 176 exit 0 ;;
108 sun3*:SunOS:*:*) 177 sun3*:SunOS:*:*)
109 echo m68k-sun-sunos${UNAME_RELEASE} 178 echo m68k-sun-sunos${UNAME_RELEASE}
110 exit 0 ;; 179 exit 0 ;;
180 sun*:*:4.2BSD:*)
181 UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
182 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
183 case "`/bin/arch`" in
184 sun3)
185 echo m68k-sun-sunos${UNAME_RELEASE}
186 ;;
187 sun4)
188 echo sparc-sun-sunos${UNAME_RELEASE}
189 ;;
190 esac
191 exit 0 ;;
111 aushp:SunOS:*:*) 192 aushp:SunOS:*:*)
112 echo sparc-auspex-sunos${UNAME_RELEASE} 193 echo sparc-auspex-sunos${UNAME_RELEASE}
113 exit 0 ;; 194 exit 0 ;;
114 atari*:NetBSD:*:*) 195 atari*:NetBSD:*:*)
115 echo m68k-atari-netbsd${UNAME_RELEASE} 196 echo m68k-atari-netbsd${UNAME_RELEASE}
116 exit 0 ;; 197 exit 0 ;;
117 atari*:OpenBSD:*:*) 198 atari*:OpenBSD:*:*)
118 echo m68k-atari-openbsd${UNAME_RELEASE} 199 echo m68k-unknown-openbsd${UNAME_RELEASE}
119 exit 0 ;; 200 exit 0 ;;
120 sun3*:NetBSD:*:*) 201 sun3*:NetBSD:*:*)
121 echo m68k-sun-netbsd${UNAME_RELEASE} 202 echo m68k-sun-netbsd${UNAME_RELEASE}
122 exit 0 ;; 203 exit 0 ;;
123 sun3*:OpenBSD:*:*) 204 sun3*:OpenBSD:*:*)
124 echo m68k-sun-openbsd${UNAME_RELEASE} 205 echo m68k-unknown-openbsd${UNAME_RELEASE}
125 exit 0 ;; 206 exit 0 ;;
126 mac68k:NetBSD:*:*) 207 mac68k:NetBSD:*:*)
127 echo m68k-apple-netbsd${UNAME_RELEASE} 208 echo m68k-apple-netbsd${UNAME_RELEASE}
128 exit 0 ;; 209 exit 0 ;;
129 mac68k:OpenBSD:*:*) 210 mac68k:OpenBSD:*:*)
130 echo m68k-apple-openbsd${UNAME_RELEASE} 211 echo m68k-unknown-openbsd${UNAME_RELEASE}
212 exit 0 ;;
213 mvme68k:OpenBSD:*:*)
214 echo m68k-unknown-openbsd${UNAME_RELEASE}
215 exit 0 ;;
216 mvme88k:OpenBSD:*:*)
217 echo m88k-unknown-openbsd${UNAME_RELEASE}
131 exit 0 ;; 218 exit 0 ;;
132 powerpc:machten:*:*) 219 powerpc:machten:*:*)
133 echo powerpc-apple-machten${UNAME_RELEASE} 220 echo powerpc-apple-machten${UNAME_RELEASE}
134 exit 0 ;; 221 exit 0 ;;
135 RISC*:Mach:*:*) 222 RISC*:Mach:*:*)
138 RISC*:ULTRIX:*:*) 225 RISC*:ULTRIX:*:*)
139 echo mips-dec-ultrix${UNAME_RELEASE} 226 echo mips-dec-ultrix${UNAME_RELEASE}
140 exit 0 ;; 227 exit 0 ;;
141 VAX*:ULTRIX*:*:*) 228 VAX*:ULTRIX*:*:*)
142 echo vax-dec-ultrix${UNAME_RELEASE} 229 echo vax-dec-ultrix${UNAME_RELEASE}
230 exit 0 ;;
231 2020:CLIX:*:*)
232 echo clipper-intergraph-clix${UNAME_RELEASE}
143 exit 0 ;; 233 exit 0 ;;
144 mips:*:*:UMIPS | mips:*:*:RISCos) 234 mips:*:*:UMIPS | mips:*:*:RISCos)
145 sed 's/^ //' << EOF >dummy.c 235 sed 's/^ //' << EOF >dummy.c
146 int main (argc, argv) int argc; char **argv; { 236 int main (argc, argv) int argc; char **argv; {
147 #if defined (host_mips) && defined (MIPSEB) 237 #if defined (host_mips) && defined (MIPSEB)
373 echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` 463 echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
374 exit 0 ;; 464 exit 0 ;;
375 hp3[0-9][05]:NetBSD:*:*) 465 hp3[0-9][05]:NetBSD:*:*)
376 echo m68k-hp-netbsd${UNAME_RELEASE} 466 echo m68k-hp-netbsd${UNAME_RELEASE}
377 exit 0 ;; 467 exit 0 ;;
378 hp3[0-9][05]:OpenBSD:*:*) 468 hp300:OpenBSD:*:*)
379 echo m68k-hp-openbsd${UNAME_RELEASE} 469 echo m68k-unknown-openbsd${UNAME_RELEASE}
380 exit 0 ;; 470 exit 0 ;;
381 i?86:BSD/386:*:* | *:BSD/OS:*:*) 471 i?86:BSD/386:*:* | *:BSD/OS:*:*)
382 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 472 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
383 exit 0 ;; 473 exit 0 ;;
384 *:FreeBSD:*:*) 474 *:FreeBSD:*:*)
389 exit 0 ;; 479 exit 0 ;;
390 *:OpenBSD:*:*) 480 *:OpenBSD:*:*)
391 echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 481 echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
392 exit 0 ;; 482 exit 0 ;;
393 i*:CYGWIN*:*) 483 i*:CYGWIN*:*)
394 echo i386-pc-cygwin32 484 echo ${UNAME_MACHINE}-pc-cygwin32
485 exit 0 ;;
486 i*:MINGW*:*)
487 echo ${UNAME_MACHINE}-pc-mingw32
395 exit 0 ;; 488 exit 0 ;;
396 p*:CYGWIN*:*) 489 p*:CYGWIN*:*)
397 echo powerpcle-unknown-cygwin32 490 echo powerpcle-unknown-cygwin32
398 exit 0 ;; 491 exit 0 ;;
399 prep*:SunOS:5.*:*) 492 prep*:SunOS:5.*:*)
400 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 493 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
401 exit 0 ;; 494 exit 0 ;;
402 *:GNU:*:*) 495 *:GNU:*:*)
403 echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 496 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
404 exit 0 ;; 497 exit 0 ;;
405 *:Linux:*:*) 498 *:Linux:*:*)
499 # uname on the ARM produces all sorts of strangeness, and we need to
500 # filter it out.
501 case "$UNAME_MACHINE" in
502 arm* | sa110*) UNAME_MACHINE="arm" ;;
503 esac
504
406 # The BFD linker knows what the default object file format is, so 505 # The BFD linker knows what the default object file format is, so
407 # first see if it will tell us. 506 # first see if it will tell us.
408 ld_help_string=`ld --help 2>&1` 507 ld_help_string=`ld --help 2>&1`
409 if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i.86"; then 508 ld_supported_emulations=`echo $ld_help_string \
410 echo "${UNAME_MACHINE}-pc-linux-gnu" ; exit 0 509 | sed -ne '/supported emulations:/!d
411 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86linux"; then 510 s/[ ][ ]*/ /g
412 echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 511 s/.*supported emulations: *//
413 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86coff"; then 512 s/ .*//
414 echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 513 p'`
415 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then 514 case "$ld_supported_emulations" in
416 echo "${UNAME_MACHINE}-unknown-linux-gnu" ; exit 0 515 i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
417 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then 516 i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;;
418 echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 517 sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
419 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf32ppc"; then 518 armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
420 echo "powerpc-unknown-linux-gnu" ; exit 0 519 m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
421 elif test "${UNAME_MACHINE}" = "alpha" ; then 520 elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;;
422 echo alpha-unknown-linux-gnu ; exit 0 521 esac
423 elif test "${UNAME_MACHINE}" = "sparc" ; then 522
424 echo sparc-unknown-linux-gnu ; exit 0 523 if test "${UNAME_MACHINE}" = "alpha" ; then
425 else 524 sed 's/^ //' <<EOF >dummy.s
426 # Either a pre-BFD a.out linker (linux-gnuoldld) or one that does not give us 525 .globl main
427 # useful --help. Gcc wants to distinguish between linux-gnuoldld and linux-gnuaout. 526 .ent main
428 test ! -d /usr/lib/ldscripts/. \ 527 main:
429 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 528 .frame \$30,0,\$26,0
529 .prologue 0
530 .long 0x47e03d80 # implver $0
531 lda \$2,259
532 .long 0x47e20c21 # amask $2,$1
533 srl \$1,8,\$2
534 sll \$2,2,\$2
535 sll \$0,3,\$0
536 addl \$1,\$0,\$0
537 addl \$2,\$0,\$0
538 ret \$31,(\$26),1
539 .end main
540 EOF
541 LIBC=""
542 ${CC-cc} dummy.s -o dummy 2>/dev/null
543 if test "$?" = 0 ; then
544 ./dummy
545 case "$?" in
546 7)
547 UNAME_MACHINE="alpha"
548 ;;
549 15)
550 UNAME_MACHINE="alphaev5"
551 ;;
552 14)
553 UNAME_MACHINE="alphaev56"
554 ;;
555 10)
556 UNAME_MACHINE="alphapca56"
557 ;;
558 16)
559 UNAME_MACHINE="alphaev6"
560 ;;
561 esac
562
563 objdump --private-headers dummy | \
564 grep ld.so.1 > /dev/null
565 if test "$?" = 0 ; then
566 LIBC="libc1"
567 fi
568 fi
569 rm -f dummy.s dummy
570 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
571 elif test "${UNAME_MACHINE}" = "mips" ; then
572 cat >dummy.c <<EOF
573 main(argc, argv)
574 int argc;
575 char *argv[];
576 {
577 #ifdef __MIPSEB__
578 printf ("%s-unknown-linux-gnu\n", argv[1]);
579 #endif
580 #ifdef __MIPSEL__
581 printf ("%sel-unknown-linux-gnu\n", argv[1]);
582 #endif
583 return 0;
584 }
585 EOF
586 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
587 rm -f dummy.c dummy
588 else
589 # Either a pre-BFD a.out linker (linux-gnuoldld)
590 # or one that does not give us useful --help.
591 # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
592 # If ld does not provide *any* "supported emulations:"
593 # that means it is gnuoldld.
594 echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
595 test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
596
597 case "${UNAME_MACHINE}" in
598 i?86)
599 VENDOR=pc;
600 ;;
601 *)
602 VENDOR=unknown;
603 ;;
604 esac
430 # Determine whether the default compiler is a.out or elf 605 # Determine whether the default compiler is a.out or elf
431 cat >dummy.c <<EOF 606 cat >dummy.c <<EOF
607 #include <features.h>
432 main(argc, argv) 608 main(argc, argv)
433 int argc; 609 int argc;
434 char *argv[]; 610 char *argv[];
435 { 611 {
436 #ifdef __ELF__ 612 #ifdef __ELF__
437 printf ("%s-pc-linux-gnu\n", argv[1]); 613 # ifdef __GLIBC__
614 # if __GLIBC__ >= 2
615 printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
616 # else
617 printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
618 # endif
619 # else
620 printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
621 # endif
438 #else 622 #else
439 printf ("%s-pc-linux-gnuaout\n", argv[1]); 623 printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
440 #endif 624 #endif
441 return 0; 625 return 0;
442 } 626 }
443 EOF 627 EOF
444 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 628 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
447 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions 631 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
448 # are messed up and put the nodename in both sysname and nodename. 632 # are messed up and put the nodename in both sysname and nodename.
449 i?86:DYNIX/ptx:4*:*) 633 i?86:DYNIX/ptx:4*:*)
450 echo i386-sequent-sysv4 634 echo i386-sequent-sysv4
451 exit 0 ;; 635 exit 0 ;;
636 i?86:UNIX_SV:4.2MP:2.*)
637 # Unixware is an offshoot of SVR4, but it has its own version
638 # number series starting with 2...
639 # I am not positive that other SVR4 systems won't match this,
640 # I just have to hope. -- rms.
641 # Use sysv4.2uw... so that sysv4* matches it.
642 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
643 exit 0 ;;
452 i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) 644 i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
453 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 645 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
454 echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} 646 echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
455 else 647 else
456 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} 648 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
468 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 660 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
469 else 661 else
470 echo ${UNAME_MACHINE}-pc-sysv32 662 echo ${UNAME_MACHINE}-pc-sysv32
471 fi 663 fi
472 exit 0 ;; 664 exit 0 ;;
665 pc:*:*:*)
666 # uname -m prints for DJGPP always 'pc', but it prints nothing about
667 # the processor, so we play safe by assuming i386.
668 echo i386-pc-msdosdjgpp
669 exit 0 ;;
473 Intel:Mach:3*:*) 670 Intel:Mach:3*:*)
474 echo i386-pc-mach3 671 echo i386-pc-mach3
475 exit 0 ;; 672 exit 0 ;;
476 paragon:*:*:*) 673 paragon:*:*:*)
477 echo i860-intel-osf1 674 echo i860-intel-osf1
527 echo ${UNAME_MACHINE}-sni-sysv4 724 echo ${UNAME_MACHINE}-sni-sysv4
528 else 725 else
529 echo ns32k-sni-sysv 726 echo ns32k-sni-sysv
530 fi 727 fi
531 exit 0 ;; 728 exit 0 ;;
729 PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
730 # says <Richard.M.Bartel@ccMail.Census.GOV>
731 echo i586-unisys-sysv4
732 exit 0 ;;
532 *:UNIX_System_V:4*:FTX*) 733 *:UNIX_System_V:4*:FTX*)
533 # From Gerald Hewes <hewes@openmarket.com>. 734 # From Gerald Hewes <hewes@openmarket.com>.
534 # How about differentiating between stratus architectures? -djm 735 # How about differentiating between stratus architectures? -djm
535 echo hppa1.1-stratus-sysv4 736 echo hppa1.1-stratus-sysv4
536 exit 0 ;; 737 exit 0 ;;
539 echo i860-stratus-sysv4 740 echo i860-stratus-sysv4
540 exit 0 ;; 741 exit 0 ;;
541 mc68*:A/UX:*:*) 742 mc68*:A/UX:*:*)
542 echo m68k-apple-aux${UNAME_RELEASE} 743 echo m68k-apple-aux${UNAME_RELEASE}
543 exit 0 ;; 744 exit 0 ;;
745 news*:NEWS-OS:*:6*)
746 echo mips-sony-newsos6
747 exit 0 ;;
544 R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*) 748 R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*)
545 if [ -d /usr/nec ]; then 749 if [ -d /usr/nec ]; then
546 echo mips-nec-sysv${UNAME_RELEASE} 750 echo mips-nec-sysv${UNAME_RELEASE}
547 else 751 else
548 echo mips-unknown-sysv${UNAME_RELEASE} 752 echo mips-unknown-sysv${UNAME_RELEASE}
549 fi 753 fi
550 exit 0 ;;
551 PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
552 # says <Richard.M.Bartel@ccMail.Census.GOV>
553 echo i586-unisys-sysv4
554 exit 0 ;; 754 exit 0 ;;
555 esac 755 esac
556 756
557 #echo '(No uname command or uname output not recognized.)' 1>&2 757 #echo '(No uname command or uname output not recognized.)' 1>&2
558 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 758 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2