comparison config.guess @ 48504:30a573658814

Upgrade to current (2002-11-13) version from <ftp://ftp.gnu.org/pub/gnu/config/>.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 22 Nov 2002 11:28:54 +0000
parents 70f18b582c77
children 36655436667a
comparison
equal deleted inserted replaced
48503:1829d7a0d8bd 48504:30a573658814
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, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4 # 2000, 2001, 2002 Free Software Foundation, Inc. 4 # 2000, 2001, 2002 Free Software Foundation, Inc.
5 5
6 timestamp='2002-05-22' 6 timestamp='2002-11-13'
7 7
8 # This file is free software; you can redistribute it and/or modify it 8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by 9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or 10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version. 11 # (at your option) any later version.
86 if test $# != 0; then 86 if test $# != 0; then
87 echo "$me: too many arguments$help" >&2 87 echo "$me: too many arguments$help" >&2
88 exit 1 88 exit 1
89 fi 89 fi
90 90
91 91 trap 'exit 1' 1 2 15
92 dummy=dummy-$$ 92
93 trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15 93 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
94 94 # compiler to aid in system detection is discouraged as it requires
95 # CC_FOR_BUILD -- compiler used by this script. 95 # temporary files to be created and, as you can see below, it is a
96 # headache to deal with in a portable fashion.
97
96 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 98 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
97 # use `HOST_CC' if defined, but it is deprecated. 99 # use `HOST_CC' if defined, but it is deprecated.
98 100
99 set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in 101 # This shell variable is my proudest work .. or something. --bje
100 ,,) echo "int dummy(){}" > $dummy.c ; 102
103 set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ;
104 (old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old)
105 || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ;
106 dummy=$tmpdir/dummy ;
107 files="$dummy.c $dummy.o $dummy.rel $dummy" ;
108 trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;
109 case $CC_FOR_BUILD,$HOST_CC,$CC in
110 ,,) echo "int x;" > $dummy.c ;
101 for c in cc gcc c89 c99 ; do 111 for c in cc gcc c89 c99 ; do
102 ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; 112 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
103 if test $? = 0 ; then
104 CC_FOR_BUILD="$c"; break ; 113 CC_FOR_BUILD="$c"; break ;
105 fi ; 114 fi ;
106 done ; 115 done ;
107 rm -f $dummy.c $dummy.o $dummy.rel ; 116 rm -f $files ;
108 if test x"$CC_FOR_BUILD" = x ; then 117 if test x"$CC_FOR_BUILD" = x ; then
109 CC_FOR_BUILD=no_compiler_found ; 118 CC_FOR_BUILD=no_compiler_found ;
110 fi 119 fi
111 ;; 120 ;;
112 ,,*) CC_FOR_BUILD=$CC ;; 121 ,,*) CC_FOR_BUILD=$CC ;;
113 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 122 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
114 esac' 123 esac ;
124 unset files'
115 125
116 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. 126 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
117 # (ghazi@noc.rutgers.edu 1994-08-24) 127 # (ghazi@noc.rutgers.edu 1994-08-24)
118 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then 128 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
119 PATH=$PATH:/.attbin ; export PATH 129 PATH=$PATH:/.attbin ; export PATH
219 fi 229 fi
220 # A Vn.n version is a released version. 230 # A Vn.n version is a released version.
221 # A Tn.n version is a released field test version. 231 # A Tn.n version is a released field test version.
222 # A Xn.n version is an unreleased experimental baselevel. 232 # A Xn.n version is an unreleased experimental baselevel.
223 # 1.2 uses "1.2" for uname -r. 233 # 1.2 uses "1.2" for uname -r.
234 eval $set_cc_for_build
224 cat <<EOF >$dummy.s 235 cat <<EOF >$dummy.s
225 .data 236 .data
226 \$Lformat: 237 \$Lformat:
227 .byte 37,100,45,37,120,10,0 # "%d-%x\n" 238 .byte 37,100,45,37,120,10,0 # "%d-%x\n"
228 239
244 ldgp \$29,0(\$26) 255 ldgp \$29,0(\$26)
245 mov 0,\$16 256 mov 0,\$16
246 jsr \$26,exit 257 jsr \$26,exit
247 .end main 258 .end main
248 EOF 259 EOF
249 eval $set_cc_for_build 260 $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null
250 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
251 if test "$?" = 0 ; then 261 if test "$?" = 0 ; then
252 case `./$dummy` in 262 case `$dummy` in
253 0-0) 263 0-0)
254 UNAME_MACHINE="alpha" 264 UNAME_MACHINE="alpha"
255 ;; 265 ;;
256 1-0) 266 1-0)
257 UNAME_MACHINE="alphaev5" 267 UNAME_MACHINE="alphaev5"
269 UNAME_MACHINE="alphaev67" 279 UNAME_MACHINE="alphaev67"
270 ;; 280 ;;
271 2-1307) 281 2-1307)
272 UNAME_MACHINE="alphaev68" 282 UNAME_MACHINE="alphaev68"
273 ;; 283 ;;
284 3-1307)
285 UNAME_MACHINE="alphaev7"
286 ;;
274 esac 287 esac
275 fi 288 fi
276 rm -f $dummy.s $dummy 289 rm -f $dummy.s $dummy && rmdir $tmpdir
277 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 290 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
278 exit 0 ;; 291 exit 0 ;;
279 Alpha\ *:Windows_NT*:*) 292 Alpha\ *:Windows_NT*:*)
280 # How do we know it's Interix rather than the generic POSIX subsystem? 293 # How do we know it's Interix rather than the generic POSIX subsystem?
281 # Should we change UNAME_MACHINE based on the output of uname instead 294 # Should we change UNAME_MACHINE based on the output of uname instead
312 fi 325 fi
313 exit 0 ;; 326 exit 0 ;;
314 NILE*:*:*:dcosx) 327 NILE*:*:*:dcosx)
315 echo pyramid-pyramid-svr4 328 echo pyramid-pyramid-svr4
316 exit 0 ;; 329 exit 0 ;;
330 DRS?6000:UNIX_SV:4.2*:7*)
331 case `/usr/bin/uname -p` in
332 sparc) echo sparc-icl-nx7 && exit 0 ;;
333 esac ;;
317 sun4H:SunOS:5.*:*) 334 sun4H:SunOS:5.*:*)
318 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 335 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
319 exit 0 ;; 336 exit 0 ;;
320 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 337 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
321 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 338 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
418 #endif 435 #endif
419 #endif 436 #endif
420 exit (-1); 437 exit (-1);
421 } 438 }
422 EOF 439 EOF
423 $CC_FOR_BUILD $dummy.c -o $dummy \ 440 $CC_FOR_BUILD -o $dummy $dummy.c \
424 && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 441 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
425 && rm -f $dummy.c $dummy && exit 0 442 && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
426 rm -f $dummy.c $dummy 443 rm -f $dummy.c $dummy && rmdir $tmpdir
427 echo mips-mips-riscos${UNAME_RELEASE} 444 echo mips-mips-riscos${UNAME_RELEASE}
428 exit 0 ;; 445 exit 0 ;;
429 Motorola:PowerMAX_OS:*:*) 446 Motorola:PowerMAX_OS:*:*)
430 echo powerpc-motorola-powermax 447 echo powerpc-motorola-powermax
431 exit 0 ;; 448 exit 0 ;;
432 Night_Hawk:*:*:PowerMAX_OS) 449 Motorola:*:4.3:PL8-*)
450 echo powerpc-harris-powermax
451 exit 0 ;;
452 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
433 echo powerpc-harris-powermax 453 echo powerpc-harris-powermax
434 exit 0 ;; 454 exit 0 ;;
435 Night_Hawk:Power_UNIX:*:*) 455 Night_Hawk:Power_UNIX:*:*)
436 echo powerpc-harris-powerunix 456 echo powerpc-harris-powerunix
437 exit 0 ;; 457 exit 0 ;;
502 exit(1); 522 exit(1);
503 puts("powerpc-ibm-aix3.2.5"); 523 puts("powerpc-ibm-aix3.2.5");
504 exit(0); 524 exit(0);
505 } 525 }
506 EOF 526 EOF
507 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 527 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
508 rm -f $dummy.c $dummy 528 rm -f $dummy.c $dummy && rmdir $tmpdir
509 echo rs6000-ibm-aix3.2.5 529 echo rs6000-ibm-aix3.2.5
510 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 530 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
511 echo rs6000-ibm-aix3.2.4 531 echo rs6000-ibm-aix3.2.4
512 else 532 else
513 echo rs6000-ibm-aix3.2 533 echo rs6000-ibm-aix3.2
601 default: puts ("hppa1.0"); break; 621 default: puts ("hppa1.0"); break;
602 } 622 }
603 exit (0); 623 exit (0);
604 } 624 }
605 EOF 625 EOF
606 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy` 626 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
607 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi 627 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
608 rm -f $dummy.c $dummy 628 rm -f $dummy.c $dummy && rmdir $tmpdir
609 fi ;; 629 fi ;;
610 esac 630 esac
611 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 631 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
612 exit 0 ;; 632 exit 0 ;;
613 ia64:HP-UX:*:*) 633 ia64:HP-UX:*:*)
639 puts ("m68k-hitachi-hiuxwe2"); 659 puts ("m68k-hitachi-hiuxwe2");
640 else puts ("unknown-hitachi-hiuxwe2"); 660 else puts ("unknown-hitachi-hiuxwe2");
641 exit (0); 661 exit (0);
642 } 662 }
643 EOF 663 EOF
644 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 664 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
645 rm -f $dummy.c $dummy 665 rm -f $dummy.c $dummy && rmdir $tmpdir
646 echo unknown-hitachi-hiuxwe2 666 echo unknown-hitachi-hiuxwe2
647 exit 0 ;; 667 exit 0 ;;
648 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 668 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
649 echo hppa1.1-hp-bsd 669 echo hppa1.1-hp-bsd
650 exit 0 ;; 670 exit 0 ;;
723 exit 0 ;; 743 exit 0 ;;
724 *:BSD/OS:*:*) 744 *:BSD/OS:*:*)
725 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 745 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
726 exit 0 ;; 746 exit 0 ;;
727 *:FreeBSD:*:*) 747 *:FreeBSD:*:*)
728 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 748 # Determine whether the default compiler uses glibc.
749 eval $set_cc_for_build
750 sed 's/^ //' << EOF >$dummy.c
751 #include <features.h>
752 #if __GLIBC__ >= 2
753 LIBC=gnu
754 #else
755 LIBC=
756 #endif
757 EOF
758 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
759 rm -f $dummy.c && rmdir $tmpdir
760 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
729 exit 0 ;; 761 exit 0 ;;
730 i*:CYGWIN*:*) 762 i*:CYGWIN*:*)
731 echo ${UNAME_MACHINE}-pc-cygwin 763 echo ${UNAME_MACHINE}-pc-cygwin
732 exit 0 ;; 764 exit 0 ;;
733 i*:MINGW*:*) 765 i*:MINGW*:*)
736 i*:PW*:*) 768 i*:PW*:*)
737 echo ${UNAME_MACHINE}-pc-pw32 769 echo ${UNAME_MACHINE}-pc-pw32
738 exit 0 ;; 770 exit 0 ;;
739 x86:Interix*:3*) 771 x86:Interix*:3*)
740 echo i386-pc-interix3 772 echo i386-pc-interix3
773 exit 0 ;;
774 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
775 echo i${UNAME_MACHINE}-pc-mks
741 exit 0 ;; 776 exit 0 ;;
742 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 777 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
743 # How do we know it's Interix rather than the generic POSIX subsystem? 778 # How do we know it's Interix rather than the generic POSIX subsystem?
744 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 779 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
745 # UNAME_MACHINE based on the output of uname instead of i386? 780 # UNAME_MACHINE based on the output of uname instead of i386?
784 CPU= 819 CPU=
785 #endif 820 #endif
786 #endif 821 #endif
787 EOF 822 EOF
788 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 823 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
789 rm -f $dummy.c 824 rm -f $dummy.c && rmdir $tmpdir
790 test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 825 test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
791 ;; 826 ;;
792 ppc:Linux:*:*) 827 ppc:Linux:*:*)
793 echo powerpc-unknown-linux-gnu 828 echo powerpc-unknown-linux-gnu
794 exit 0 ;; 829 exit 0 ;;
847 elf32-i386) 882 elf32-i386)
848 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 883 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
849 ;; 884 ;;
850 a.out-i386-linux) 885 a.out-i386-linux)
851 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 886 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
852 exit 0 ;; 887 exit 0 ;;
853 coff-i386) 888 coff-i386)
854 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 889 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
855 exit 0 ;; 890 exit 0 ;;
856 "") 891 "")
857 # Either a pre-BFD a.out linker (linux-gnuoldld) or 892 # Either a pre-BFD a.out linker (linux-gnuoldld) or
880 LIBC=gnuaout 915 LIBC=gnuaout
881 #endif 916 #endif
882 #endif 917 #endif
883 EOF 918 EOF
884 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 919 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
885 rm -f $dummy.c 920 rm -f $dummy.c && rmdir $tmpdir
886 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 921 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
887 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 922 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
888 ;; 923 ;;
889 i*86:DYNIX/ptx:4*:*) 924 i*86:DYNIX/ptx:4*:*)
890 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 925 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
919 i*86:*:3.2:*) 954 i*86:*:3.2:*)
920 if test -f /usr/options/cb.name; then 955 if test -f /usr/options/cb.name; then
921 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 956 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
922 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 957 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
923 elif /bin/uname -X 2>/dev/null >/dev/null ; then 958 elif /bin/uname -X 2>/dev/null >/dev/null ; then
924 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` 959 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
925 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 960 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
926 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ 961 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
927 && UNAME_MACHINE=i586 962 && UNAME_MACHINE=i586
928 (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \ 963 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
929 && UNAME_MACHINE=i686 964 && UNAME_MACHINE=i686
930 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ 965 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
931 && UNAME_MACHINE=i686 966 && UNAME_MACHINE=i686
932 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 967 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
933 else 968 else
934 echo ${UNAME_MACHINE}-pc-sysv32 969 echo ${UNAME_MACHINE}-pc-sysv32
935 fi 970 fi
957 fi 992 fi
958 exit 0 ;; 993 exit 0 ;;
959 mini*:CTIX:SYS*5:*) 994 mini*:CTIX:SYS*5:*)
960 # "miniframe" 995 # "miniframe"
961 echo m68010-convergent-sysv 996 echo m68010-convergent-sysv
997 exit 0 ;;
998 mc68k:UNIX:SYSTEM5:3.51m)
999 echo m68k-convergent-sysv
1000 exit 0 ;;
1001 M680?0:D-NIX:5.3:*)
1002 echo m68k-diab-dnix
962 exit 0 ;; 1003 exit 0 ;;
963 M68*:*:R3V[567]*:*) 1004 M68*:*:R3V[567]*:*)
964 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1005 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
965 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) 1006 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)
966 OS_REL='' 1007 OS_REL=''
1051 echo sx4-nec-superux${UNAME_RELEASE} 1092 echo sx4-nec-superux${UNAME_RELEASE}
1052 exit 0 ;; 1093 exit 0 ;;
1053 SX-5:SUPER-UX:*:*) 1094 SX-5:SUPER-UX:*:*)
1054 echo sx5-nec-superux${UNAME_RELEASE} 1095 echo sx5-nec-superux${UNAME_RELEASE}
1055 exit 0 ;; 1096 exit 0 ;;
1097 SX-6:SUPER-UX:*:*)
1098 echo sx6-nec-superux${UNAME_RELEASE}
1099 exit 0 ;;
1056 Power*:Rhapsody:*:*) 1100 Power*:Rhapsody:*:*)
1057 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1101 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1058 exit 0 ;; 1102 exit 0 ;;
1059 *:Rhapsody:*:*) 1103 *:Rhapsody:*:*)
1060 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1104 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1071 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1115 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1072 exit 0 ;; 1116 exit 0 ;;
1073 *:QNX:*:4*) 1117 *:QNX:*:4*)
1074 echo i386-pc-qnx 1118 echo i386-pc-qnx
1075 exit 0 ;; 1119 exit 0 ;;
1076 NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*) 1120 NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
1077 echo nsr-tandem-nsk${UNAME_RELEASE} 1121 echo nsr-tandem-nsk${UNAME_RELEASE}
1078 exit 0 ;; 1122 exit 0 ;;
1079 *:NonStop-UX:*:*) 1123 *:NonStop-UX:*:*)
1080 echo mips-compaq-nonstopux 1124 echo mips-compaq-nonstopux
1081 exit 0 ;; 1125 exit 0 ;;
1243 1287
1244 exit (1); 1288 exit (1);
1245 } 1289 }
1246 EOF 1290 EOF
1247 1291
1248 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0 1292 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
1249 rm -f $dummy.c $dummy 1293 rm -f $dummy.c $dummy && rmdir $tmpdir
1250 1294
1251 # Apollos put the system type in the environment. 1295 # Apollos put the system type in the environment.
1252 1296
1253 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } 1297 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
1254 1298