~ubuntu-branches/ubuntu/oneiric/soqt/oneiric

« back to all changes in this revision

Viewing changes to cfg/config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2004-05-29 02:58:50 UTC
  • Revision ID: james.westby@ubuntu.com-20040529025850-nkh0l2b0mixwkcgh
Tags: 1.0.2-3
Build against coin-2, rather than coin-1.  Closes: #241102.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Attempt to guess a canonical system name.
3
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2002-03-20'
 
6
timestamp='2003-01-10'
7
7
 
8
8
# This file is free software; you can redistribute it and/or modify it
9
9
# under the terms of the GNU General Public License as published by
88
88
  exit 1
89
89
fi
90
90
 
91
 
 
92
 
dummy=dummy-$$
93
 
trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
94
 
 
95
 
# CC_FOR_BUILD -- compiler used by this script.
 
91
trap 'exit 1' 1 2 15
 
92
 
 
93
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
 
94
# compiler to aid in system detection is discouraged as it requires
 
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
98
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
97
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
100
 
 ,,)    echo "int dummy(){}" > $dummy.c ;
 
101
# Portable tmp directory creation inspired by the Autoconf team.
 
102
 
 
103
set_cc_for_build='
 
104
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
 
105
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
 
106
: ${TMPDIR=/tmp} ;
 
107
 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 
108
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
 
109
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
 
110
dummy=$tmp/dummy ;
 
111
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
 
112
case $CC_FOR_BUILD,$HOST_CC,$CC in
 
113
 ,,)    echo "int x;" > $dummy.c ;
101
114
        for c in cc gcc c89 c99 ; do
102
 
          ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
103
 
          if test $? = 0 ; then
 
115
          if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
104
116
             CC_FOR_BUILD="$c"; break ;
105
117
          fi ;
106
118
        done ;
107
 
        rm -f $dummy.c $dummy.o $dummy.rel ;
108
119
        if test x"$CC_FOR_BUILD" = x ; then
109
120
          CC_FOR_BUILD=no_compiler_found ;
110
121
        fi
111
122
        ;;
112
123
 ,,*)   CC_FOR_BUILD=$CC ;;
113
124
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
114
 
esac'
 
125
esac ;'
115
126
 
116
127
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
117
128
# (ghazi@noc.rutgers.edu 1994-08-24)
142
153
        UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
143
154
            /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
144
155
        case "${UNAME_MACHINE_ARCH}" in
 
156
            armeb) machine=armeb-unknown ;;
145
157
            arm*) machine=arm-unknown ;;
146
158
            sh3el) machine=shl-unknown ;;
147
159
            sh3eb) machine=sh-unknown ;;
167
179
                ;;
168
180
        esac
169
181
        # The OS release
170
 
        release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
 
182
        # Debian GNU/NetBSD machines have a different userland, and
 
183
        # thus, need a distinct triplet. However, they do not need
 
184
        # kernel version information, so it can be replaced with a
 
185
        # suitable tag, in the style of linux-gnu.
 
186
        case "${UNAME_VERSION}" in
 
187
            Debian*)
 
188
                release='-gnu'
 
189
                ;;
 
190
            *)
 
191
                release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
 
192
                ;;
 
193
        esac
171
194
        # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
172
195
        # contains redundant information, the shorter form:
173
196
        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
212
235
    *:OpenBSD:*:*)
213
236
        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
214
237
        exit 0 ;;
 
238
    *:MicroBSD:*:*)
 
239
        echo ${UNAME_MACHINE}-unknown-microbsd${UNAME_RELEASE}
 
240
        exit 0 ;;
215
241
    alpha:OSF1:*:*)
216
242
        if test $UNAME_RELEASE = "V4.0"; then
217
243
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
220
246
        # A Tn.n version is a released field test version.
221
247
        # A Xn.n version is an unreleased experimental baselevel.
222
248
        # 1.2 uses "1.2" for uname -r.
 
249
        eval $set_cc_for_build
223
250
        cat <<EOF >$dummy.s
224
251
        .data
225
252
\$Lformat:
245
272
        jsr \$26,exit
246
273
        .end main
247
274
EOF
248
 
        eval $set_cc_for_build
249
 
        $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
 
275
        $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null
250
276
        if test "$?" = 0 ; then
251
 
                case `./$dummy` in
 
277
                case `$dummy` in
252
278
                        0-0)
253
279
                                UNAME_MACHINE="alpha"
254
280
                                ;;
270
296
                        2-1307)
271
297
                                UNAME_MACHINE="alphaev68"
272
298
                                ;;
 
299
                        3-1307)
 
300
                                UNAME_MACHINE="alphaev7"
 
301
                                ;;
273
302
                esac
274
303
        fi
275
 
        rm -f $dummy.s $dummy
276
304
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
277
305
        exit 0 ;;
278
306
    Alpha\ *:Windows_NT*:*)
313
341
    NILE*:*:*:dcosx)
314
342
        echo pyramid-pyramid-svr4
315
343
        exit 0 ;;
 
344
    DRS?6000:UNIX_SV:4.2*:7*)
 
345
        case `/usr/bin/uname -p` in
 
346
            sparc) echo sparc-icl-nx7 && exit 0 ;;
 
347
        esac ;;
316
348
    sun4H:SunOS:5.*:*)
317
349
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
318
350
        exit 0 ;;
419
451
          exit (-1);
420
452
        }
421
453
EOF
422
 
        $CC_FOR_BUILD $dummy.c -o $dummy \
423
 
          && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
424
 
          && rm -f $dummy.c $dummy && exit 0
425
 
        rm -f $dummy.c $dummy
 
454
        $CC_FOR_BUILD -o $dummy $dummy.c \
 
455
          && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
 
456
          && exit 0
426
457
        echo mips-mips-riscos${UNAME_RELEASE}
427
458
        exit 0 ;;
428
459
    Motorola:PowerMAX_OS:*:*)
429
460
        echo powerpc-motorola-powermax
430
461
        exit 0 ;;
 
462
    Motorola:*:4.3:PL8-*)
 
463
        echo powerpc-harris-powermax
 
464
        exit 0 ;;
 
465
    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
 
466
        echo powerpc-harris-powermax
 
467
        exit 0 ;;
431
468
    Night_Hawk:Power_UNIX:*:*)
432
469
        echo powerpc-harris-powerunix
433
470
        exit 0 ;;
500
537
                        exit(0);
501
538
                        }
502
539
EOF
503
 
                $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
504
 
                rm -f $dummy.c $dummy
 
540
                $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
505
541
                echo rs6000-ibm-aix3.2.5
506
542
        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
507
543
                echo rs6000-ibm-aix3.2.4
599
635
                  exit (0);
600
636
              }
601
637
EOF
602
 
                    (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy`
603
 
                    if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
604
 
                    rm -f $dummy.c $dummy
 
638
                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
 
639
                    test -z "$HP_ARCH" && HP_ARCH=hppa
605
640
                fi ;;
606
641
        esac
 
642
        if [ ${HP_ARCH} = "hppa2.0w" ]
 
643
        then
 
644
            # avoid double evaluation of $set_cc_for_build
 
645
            test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
 
646
            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
 
647
            then
 
648
                HP_ARCH="hppa2.0w"
 
649
            else
 
650
                HP_ARCH="hppa64"
 
651
            fi
 
652
        fi
607
653
        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
608
654
        exit 0 ;;
609
655
    ia64:HP-UX:*:*)
637
683
          exit (0);
638
684
        }
639
685
EOF
640
 
        $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
641
 
        rm -f $dummy.c $dummy
 
686
        $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
642
687
        echo unknown-hitachi-hiuxwe2
643
688
        exit 0 ;;
644
689
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
696
741
    CRAY*TS:*:*:*)
697
742
        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
698
743
        exit 0 ;;
699
 
    CRAY*T3D:*:*:*)
700
 
        echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
701
 
        exit 0 ;;
702
744
    CRAY*T3E:*:*:*)
703
745
        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
704
746
        exit 0 ;;
705
747
    CRAY*SV1:*:*:*)
706
748
        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
707
749
        exit 0 ;;
 
750
    *:UNICOS/mp:*:*)
 
751
        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
 
752
        exit 0 ;;
708
753
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
709
754
        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
710
755
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
721
766
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
722
767
        exit 0 ;;
723
768
    *:FreeBSD:*:*)
724
 
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
769
        # Determine whether the default compiler uses glibc.
 
770
        eval $set_cc_for_build
 
771
        sed 's/^        //' << EOF >$dummy.c
 
772
        #include <features.h>
 
773
        #if __GLIBC__ >= 2
 
774
        LIBC=gnu
 
775
        #else
 
776
        LIBC=
 
777
        #endif
 
778
EOF
 
779
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
 
780
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
725
781
        exit 0 ;;
726
782
    i*:CYGWIN*:*)
727
783
        echo ${UNAME_MACHINE}-pc-cygwin
733
789
        echo ${UNAME_MACHINE}-pc-pw32
734
790
        exit 0 ;;
735
791
    x86:Interix*:3*)
736
 
        echo i386-pc-interix3
 
792
        echo i586-pc-interix3
 
793
        exit 0 ;;
 
794
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
 
795
        echo i${UNAME_MACHINE}-pc-mks
737
796
        exit 0 ;;
738
797
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
739
798
        # How do we know it's Interix rather than the generic POSIX subsystem?
740
799
        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
741
800
        # UNAME_MACHINE based on the output of uname instead of i386?
742
 
        echo i386-pc-interix
 
801
        echo i586-pc-interix
743
802
        exit 0 ;;
744
803
    i*:UWIN*:*)
745
804
        echo ${UNAME_MACHINE}-pc-uwin
782
841
        #endif
783
842
EOF
784
843
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
785
 
        rm -f $dummy.c
786
 
        test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
 
844
        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
 
845
        ;;
 
846
    mips64:Linux:*:*)
 
847
        eval $set_cc_for_build
 
848
        sed 's/^        //' << EOF >$dummy.c
 
849
        #undef CPU
 
850
        #undef mips64
 
851
        #undef mips64el
 
852
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
 
853
        CPU=mips64el
 
854
        #else
 
855
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
 
856
        CPU=mips64
 
857
        #else
 
858
        CPU=
 
859
        #endif
 
860
        #endif
 
861
EOF
 
862
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
 
863
        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
787
864
        ;;
788
865
    ppc:Linux:*:*)
789
866
        echo powerpc-unknown-linux-gnu
845
922
                ;;
846
923
          a.out-i386-linux)
847
924
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
848
 
                exit 0 ;;               
 
925
                exit 0 ;;
849
926
          coff-i386)
850
927
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
851
928
                exit 0 ;;
878
955
        #endif
879
956
EOF
880
957
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
881
 
        rm -f $dummy.c
882
958
        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
883
959
        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
884
960
        ;;
896
972
        # Use sysv4.2uw... so that sysv4* matches it.
897
973
        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
898
974
        exit 0 ;;
 
975
    i*86:OS/2:*:*)
 
976
        # If we were able to find `uname', then EMX Unix compatibility
 
977
        # is probably installed.
 
978
        echo ${UNAME_MACHINE}-pc-os2-emx
 
979
        exit 0 ;;
 
980
    i*86:XTS-300:*:STOP)
 
981
        echo ${UNAME_MACHINE}-unknown-stop
 
982
        exit 0 ;;
 
983
    i*86:atheos:*:*)
 
984
        echo ${UNAME_MACHINE}-unknown-atheos
 
985
        exit 0 ;;
 
986
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
 
987
        echo i386-unknown-lynxos${UNAME_RELEASE}
 
988
        exit 0 ;;
 
989
    i*86:*DOS:*:*)
 
990
        echo ${UNAME_MACHINE}-pc-msdosdjgpp
 
991
        exit 0 ;;
899
992
    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
900
993
        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
901
994
        if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
917
1010
                UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
918
1011
                echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
919
1012
        elif /bin/uname -X 2>/dev/null >/dev/null ; then
920
 
                UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
921
 
                (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
922
 
                (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
 
1013
                UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
 
1014
                (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
 
1015
                (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
923
1016
                        && UNAME_MACHINE=i586
924
 
                (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
 
1017
                (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
925
1018
                        && UNAME_MACHINE=i686
926
 
                (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
 
1019
                (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
927
1020
                        && UNAME_MACHINE=i686
928
1021
                echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
929
1022
        else
930
1023
                echo ${UNAME_MACHINE}-pc-sysv32
931
1024
        fi
932
1025
        exit 0 ;;
933
 
    i*86:*DOS:*:*)
934
 
        echo ${UNAME_MACHINE}-pc-msdosdjgpp
935
 
        exit 0 ;;
936
1026
    pc:*:*:*)
937
1027
        # Left here for compatibility:
938
1028
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
956
1046
        # "miniframe"
957
1047
        echo m68010-convergent-sysv
958
1048
        exit 0 ;;
 
1049
    mc68k:UNIX:SYSTEM5:3.51m)
 
1050
        echo m68k-convergent-sysv
 
1051
        exit 0 ;;
 
1052
    M680?0:D-NIX:5.3:*)
 
1053
        echo m68k-diab-dnix
 
1054
        exit 0 ;;
959
1055
    M68*:*:R3V[567]*:*)
960
1056
        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
961
 
    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 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)
 
1057
    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 | SDS2:*:4.0:3.0)
962
1058
        OS_REL=''
963
1059
        test -r /etc/.relid \
964
1060
        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
975
1071
    mc68030:UNIX_System_V:4.*:*)
976
1072
        echo m68k-atari-sysv4
977
1073
        exit 0 ;;
978
 
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
979
 
        echo i386-unknown-lynxos${UNAME_RELEASE}
980
 
        exit 0 ;;
981
1074
    TSUNAMI:LynxOS:2.*:*)
982
1075
        echo sparc-unknown-lynxos${UNAME_RELEASE}
983
1076
        exit 0 ;;
1049
1142
    SX-5:SUPER-UX:*:*)
1050
1143
        echo sx5-nec-superux${UNAME_RELEASE}
1051
1144
        exit 0 ;;
 
1145
    SX-6:SUPER-UX:*:*)
 
1146
        echo sx6-nec-superux${UNAME_RELEASE}
 
1147
        exit 0 ;;
1052
1148
    Power*:Rhapsody:*:*)
1053
1149
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1054
1150
        exit 0 ;;
1056
1152
        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1057
1153
        exit 0 ;;
1058
1154
    *:Darwin:*:*)
1059
 
        echo `uname -p`-apple-darwin${UNAME_RELEASE}
 
1155
        case `uname -p` in
 
1156
            *86) UNAME_PROCESSOR=i686 ;;
 
1157
            powerpc) UNAME_PROCESSOR=powerpc ;;
 
1158
        esac
 
1159
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1060
1160
        exit 0 ;;
1061
1161
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
1062
1162
        UNAME_PROCESSOR=`uname -p`
1069
1169
    *:QNX:*:4*)
1070
1170
        echo i386-pc-qnx
1071
1171
        exit 0 ;;
1072
 
    NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*)
 
1172
    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
1073
1173
        echo nsr-tandem-nsk${UNAME_RELEASE}
1074
1174
        exit 0 ;;
1075
1175
    *:NonStop-UX:*:*)
1092
1192
        fi
1093
1193
        echo ${UNAME_MACHINE}-unknown-plan9
1094
1194
        exit 0 ;;
1095
 
    i*86:OS/2:*:*)
1096
 
        # If we were able to find `uname', then EMX Unix compatibility
1097
 
        # is probably installed.
1098
 
        echo ${UNAME_MACHINE}-pc-os2-emx
1099
 
        exit 0 ;;
1100
1195
    *:TOPS-10:*:*)
1101
1196
        echo pdp10-unknown-tops10
1102
1197
        exit 0 ;;
1115
1210
    *:ITS:*:*)
1116
1211
        echo pdp10-unknown-its
1117
1212
        exit 0 ;;
1118
 
    i*86:XTS-300:*:STOP)
1119
 
        echo ${UNAME_MACHINE}-unknown-stop
1120
 
        exit 0 ;;
1121
 
    i*86:atheos:*:*)
1122
 
        echo ${UNAME_MACHINE}-unknown-atheos
1123
 
        exit 0 ;;
1124
1213
esac
1125
1214
 
1126
1215
#echo '(No uname command or uname output not recognized.)' 1>&2
1241
1330
}
1242
1331
EOF
1243
1332
 
1244
 
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
1245
 
rm -f $dummy.c $dummy
 
1333
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
1246
1334
 
1247
1335
# Apollos put the system type in the environment.
1248
1336