~ubuntu-branches/ubuntu/trusty/libmspub/trusty-proposed

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2013-01-29 20:49:51 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130129204951-7m097qdd9lnyydcd
Tags: 0.0.4-1
New upstream release

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, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5
 
#   Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
 
5
#   2011, 2012 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2009-11-20'
 
7
timestamp='2012-02-10'
8
8
 
9
9
# This file is free software; you can redistribute it and/or modify it
10
10
# under the terms of the GNU General Public License as published by
17
17
# General Public License for more details.
18
18
#
19
19
# You should have received a copy of the GNU General Public License
20
 
# along with this program; if not, write to the Free Software
21
 
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
22
 
# 02110-1301, USA.
 
20
# along with this program; if not, see <http://www.gnu.org/licenses/>.
23
21
#
24
22
# As a special exception to the GNU General Public License, if you
25
23
# distribute this file as part of a program that contains a
56
54
GNU config.guess ($timestamp)
57
55
 
58
56
Originally written by Per Bothner.
59
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
60
 
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
57
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
 
58
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
 
59
Free Software Foundation, Inc.
61
60
 
62
61
This is free software; see the source for copying conditions.  There is NO
63
62
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
140
139
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141
140
 
142
141
case "${UNAME_MACHINE}" in
143
 
    i?86)
144
 
        test -z "$VENDOR" && VENDOR=pc
145
 
        ;;
146
 
    *)
147
 
        test -z "$VENDOR" && VENDOR=unknown
148
 
        ;;
 
142
  i?86)
 
143
     test -z "$VENDOR" && VENDOR=pc
 
144
     ;;
 
145
  *)
 
146
     test -z "$VENDOR" && VENDOR=unknown
 
147
     ;;
149
148
esac
150
149
test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
151
150
 
154
153
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
155
154
    *:NetBSD:*:*)
156
155
        # NetBSD (nbsd) targets should (where applicable) match one or
157
 
        # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
 
156
        # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
158
157
        # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
159
158
        # switched to ELF, *-*-netbsd* would select the old
160
159
        # object file format.  This provides both forward
190
189
                fi
191
190
                ;;
192
191
            *)
193
 
                os=netbsd
 
192
                os=netbsd
194
193
                ;;
195
194
        esac
196
195
        # The OS release
233
232
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
234
233
                ;;
235
234
        *5.*)
236
 
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
 
235
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
237
236
                ;;
238
237
        esac
239
238
        # According to Compaq, /usr/sbin/psrinfo has been available on
279
278
        # A Xn.n version is an unreleased experimental baselevel.
280
279
        # 1.2 uses "1.2" for uname -r.
281
280
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
282
 
        exit ;;
 
281
        # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
 
282
        exitcode=$?
 
283
        trap '' 0
 
284
        exit $exitcode ;;
283
285
    Alpha\ *:Windows_NT*:*)
284
286
        # How do we know it's Interix rather than the generic POSIX subsystem?
285
287
        # Should we change UNAME_MACHINE based on the output of uname instead
305
307
        echo s390-ibm-zvmoe
306
308
        exit ;;
307
309
    *:OS400:*:*)
308
 
        echo powerpc-ibm-os400
 
310
        echo powerpc-ibm-os400
309
311
        exit ;;
310
312
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
311
313
        echo arm-acorn-riscix${UNAME_RELEASE}
404
406
    # MiNT.  But MiNT is downward compatible to TOS, so this should
405
407
    # be no problem.
406
408
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
407
 
        echo m68k-atari-mint${UNAME_RELEASE}
 
409
        echo m68k-atari-mint${UNAME_RELEASE}
408
410
        exit ;;
409
411
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
410
412
        echo m68k-atari-mint${UNAME_RELEASE}
411
 
        exit ;;
 
413
        exit ;;
412
414
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
413
 
        echo m68k-atari-mint${UNAME_RELEASE}
 
415
        echo m68k-atari-mint${UNAME_RELEASE}
414
416
        exit ;;
415
417
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
416
 
        echo m68k-milan-mint${UNAME_RELEASE}
417
 
        exit ;;
 
418
        echo m68k-milan-mint${UNAME_RELEASE}
 
419
        exit ;;
418
420
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
419
 
        echo m68k-hades-mint${UNAME_RELEASE}
420
 
        exit ;;
 
421
        echo m68k-hades-mint${UNAME_RELEASE}
 
422
        exit ;;
421
423
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
422
 
        echo m68k-${VENDOR}-mint${UNAME_RELEASE}
423
 
        exit ;;
 
424
        echo m68k-${VENDOR}-mint${UNAME_RELEASE}
 
425
        exit ;;
424
426
    m68k:machten:*:*)
425
427
        echo m68k-apple-machten${UNAME_RELEASE}
426
428
        exit ;;
490
492
        echo m88k-motorola-sysv3
491
493
        exit ;;
492
494
    AViiON:dgux:*:*)
493
 
        # DG/UX returns AViiON for all architectures
494
 
        UNAME_PROCESSOR=`/usr/bin/uname -p`
 
495
        # DG/UX returns AViiON for all architectures
 
496
        UNAME_PROCESSOR=`/usr/bin/uname -p`
495
497
        if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
496
498
        then
497
499
            if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
504
506
        else
505
507
            echo i586-dg-dgux${UNAME_RELEASE}
506
508
        fi
507
 
        exit ;;
 
509
        exit ;;
508
510
    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
509
511
        echo m88k-dolphin-sysv3
510
512
        exit ;;
561
563
                echo rs6000-ibm-aix3.2
562
564
        fi
563
565
        exit ;;
564
 
    *:AIX:*:[456])
 
566
    *:AIX:*:[4567])
565
567
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
566
568
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
567
569
                IBM_ARCH=rs6000
604
606
            9000/[678][0-9][0-9])
605
607
                if [ -x /usr/bin/getconf ]; then
606
608
                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
607
 
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
608
 
                    case "${sc_cpu_version}" in
609
 
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
610
 
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
611
 
                      532)                      # CPU_PA_RISC2_0
612
 
                        case "${sc_kernel_bits}" in
613
 
                          32) HP_ARCH="hppa2.0n" ;;
614
 
                          64) HP_ARCH="hppa2.0w" ;;
 
609
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
 
610
                    case "${sc_cpu_version}" in
 
611
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
 
612
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
 
613
                      532)                      # CPU_PA_RISC2_0
 
614
                        case "${sc_kernel_bits}" in
 
615
                          32) HP_ARCH="hppa2.0n" ;;
 
616
                          64) HP_ARCH="hppa2.0w" ;;
615
617
                          '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
616
 
                        esac ;;
617
 
                    esac
 
618
                        esac ;;
 
619
                    esac
618
620
                fi
619
621
                if [ "${HP_ARCH}" = "" ]; then
620
622
                    eval $set_cc_for_build
621
 
                    sed 's/^              //' << EOF >$dummy.c
622
 
 
623
 
              #define _HPUX_SOURCE
624
 
              #include <stdlib.h>
625
 
              #include <unistd.h>
626
 
 
627
 
              int main ()
628
 
              {
629
 
              #if defined(_SC_KERNEL_BITS)
630
 
                  long bits = sysconf(_SC_KERNEL_BITS);
631
 
              #endif
632
 
                  long cpu  = sysconf (_SC_CPU_VERSION);
633
 
 
634
 
                  switch (cpu)
635
 
                {
636
 
                case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
637
 
                case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
638
 
                case CPU_PA_RISC2_0:
639
 
              #if defined(_SC_KERNEL_BITS)
640
 
                    switch (bits)
641
 
                        {
642
 
                        case 64: puts ("hppa2.0w"); break;
643
 
                        case 32: puts ("hppa2.0n"); break;
644
 
                        default: puts ("hppa2.0"); break;
645
 
                        } break;
646
 
              #else  /* !defined(_SC_KERNEL_BITS) */
647
 
                    puts ("hppa2.0"); break;
648
 
              #endif
649
 
                default: puts ("hppa1.0"); break;
650
 
                }
651
 
                  exit (0);
652
 
              }
 
623
                    sed 's/^            //' << EOF >$dummy.c
 
624
 
 
625
                #define _HPUX_SOURCE
 
626
                #include <stdlib.h>
 
627
                #include <unistd.h>
 
628
 
 
629
                int main ()
 
630
                {
 
631
                #if defined(_SC_KERNEL_BITS)
 
632
                    long bits = sysconf(_SC_KERNEL_BITS);
 
633
                #endif
 
634
                    long cpu  = sysconf (_SC_CPU_VERSION);
 
635
 
 
636
                    switch (cpu)
 
637
                        {
 
638
                        case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
 
639
                        case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
 
640
                        case CPU_PA_RISC2_0:
 
641
                #if defined(_SC_KERNEL_BITS)
 
642
                            switch (bits)
 
643
                                {
 
644
                                case 64: puts ("hppa2.0w"); break;
 
645
                                case 32: puts ("hppa2.0n"); break;
 
646
                                default: puts ("hppa2.0"); break;
 
647
                                } break;
 
648
                #else  /* !defined(_SC_KERNEL_BITS) */
 
649
                            puts ("hppa2.0"); break;
 
650
                #endif
 
651
                        default: puts ("hppa1.0"); break;
 
652
                        }
 
653
                    exit (0);
 
654
                }
653
655
EOF
654
656
                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
655
657
                    test -z "$HP_ARCH" && HP_ARCH=hppa
740
742
        exit ;;
741
743
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
742
744
        echo c1-convex-bsd
743
 
        exit ;;
 
745
        exit ;;
744
746
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
745
747
        if getsysinfo -f scalar_acc
746
748
        then echo c32-convex-bsd
747
749
        else echo c2-convex-bsd
748
750
        fi
749
 
        exit ;;
 
751
        exit ;;
750
752
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
751
753
        echo c34-convex-bsd
752
 
        exit ;;
 
754
        exit ;;
753
755
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
754
756
        echo c38-convex-bsd
755
 
        exit ;;
 
757
        exit ;;
756
758
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
757
759
        echo c4-convex-bsd
758
 
        exit ;;
 
760
        exit ;;
759
761
    CRAY*Y-MP:*:*:*)
760
762
        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
761
763
        exit ;;
779
781
        exit ;;
780
782
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
781
783
        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
782
 
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
783
 
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
784
 
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
785
 
        exit ;;
 
784
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
785
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
 
786
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 
787
        exit ;;
786
788
    5000:UNIX_System_V:4.*:*)
787
 
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
788
 
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
789
 
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 
789
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
790
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
 
791
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
790
792
        exit ;;
791
793
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
792
794
        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
798
800
        echo ${UNAME_MACHINE}-${VENDOR}-bsdi${UNAME_RELEASE}
799
801
        exit ;;
800
802
    *:FreeBSD:*:*)
801
 
        case ${UNAME_MACHINE} in
802
 
            pc98)
803
 
                echo i386-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
803
        UNAME_PROCESSOR=`/usr/bin/uname -p`
 
804
        case ${UNAME_PROCESSOR} in
804
805
            amd64)
805
806
                echo x86_64-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
806
807
            *)
807
 
                echo ${UNAME_MACHINE}-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
808
                echo ${UNAME_PROCESSOR}-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
808
809
        esac
809
810
        exit ;;
810
811
    i*:CYGWIN*:*)
813
814
    *:MINGW*:*)
814
815
        echo ${UNAME_MACHINE}-pc-mingw32
815
816
        exit ;;
 
817
    i*:MSYS*:*)
 
818
        echo ${UNAME_MACHINE}-pc-msys
 
819
        exit ;;
816
820
    i*:windows32*:*)
817
 
        # uname -m includes "-pc" on this system.
818
 
        echo ${UNAME_MACHINE}-mingw32
 
821
        # uname -m includes "-pc" on this system.
 
822
        echo ${UNAME_MACHINE}-mingw32
819
823
        exit ;;
820
824
    i*:PW*:*)
821
825
        echo ${UNAME_MACHINE}-pc-pw32
822
826
        exit ;;
823
827
    *:Interix*:*)
824
 
        case ${UNAME_MACHINE} in
 
828
        case ${UNAME_MACHINE} in
825
829
            x86)
826
830
                echo i586-pc-interix${UNAME_RELEASE}
827
831
                exit ;;
867
871
    i*86:Minix:*:*)
868
872
        echo ${UNAME_MACHINE}-pc-minix
869
873
        exit ;;
 
874
    aarch64:Linux:*:*)
 
875
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
876
        exit ;;
 
877
    aarch64_be:Linux:*:*)
 
878
        UNAME_MACHINE=aarch64_be
 
879
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
880
        exit ;;
870
881
    alpha:Linux:*:*)
871
882
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
872
883
          EV5)   UNAME_MACHINE=alphaev5 ;;
876
887
          EV6)   UNAME_MACHINE=alphaev6 ;;
877
888
          EV67)  UNAME_MACHINE=alphaev67 ;;
878
889
          EV68*) UNAME_MACHINE=alphaev68 ;;
879
 
        esac
 
890
        esac
880
891
        objdump --private-headers /bin/sh | grep -q ld.so.1
881
892
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
882
893
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
888
899
        then
889
900
            echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
890
901
        else
891
 
            echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi
 
902
            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
 
903
                | grep -q __ARM_PCS_VFP
 
904
            then
 
905
                echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi
 
906
            else
 
907
                echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabihf
 
908
            fi
892
909
        fi
893
910
        exit ;;
894
911
    avr32*:Linux:*:*)
895
912
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
896
913
        exit ;;
897
914
    cris:Linux:*:*)
898
 
        echo cris-axis-linux-gnu
 
915
        echo ${UNAME_MACHINE}-axis-linux-gnu
899
916
        exit ;;
900
917
    crisv32:Linux:*:*)
901
 
        echo crisv32-axis-linux-gnu
 
918
        echo ${UNAME_MACHINE}-axis-linux-gnu
902
919
        exit ;;
903
920
    frv:Linux:*:*)
904
 
        echo frv-${VENDOR}-linux-gnu
 
921
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
922
        exit ;;
 
923
    hexagon:Linux:*:*)
 
924
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
905
925
        exit ;;
906
926
    i*86:Linux:*:*)
907
927
        LIBC=gnu
912
932
        #endif
913
933
EOF
914
934
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
915
 
        echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
 
935
        echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
916
936
        exit ;;
917
937
    ia64:Linux:*:*)
918
938
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
943
963
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
944
964
        ;;
945
965
    or32:Linux:*:*)
946
 
        echo or32-${VENDOR}-linux-gnu
 
966
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
947
967
        exit ;;
948
968
    padre:Linux:*:*)
949
969
        echo sparc-${VENDOR}-linux-gnu
969
989
        echo ${UNAME_MACHINE}-ibm-linux
970
990
        exit ;;
971
991
    sh64*:Linux:*:*)
972
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
992
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
973
993
        exit ;;
974
994
    sh*:Linux:*:*)
975
995
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
977
997
    sparc:Linux:*:* | sparc64:Linux:*:*)
978
998
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
979
999
        exit ;;
 
1000
    tile*:Linux:*:*)
 
1001
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
1002
        exit ;;
980
1003
    vax:Linux:*:*)
981
1004
        echo ${UNAME_MACHINE}-dec-linux-gnu
982
1005
        exit ;;
983
1006
    x86_64:Linux:*:*)
984
 
        echo x86_64-${VENDOR}-linux-gnu
 
1007
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
985
1008
        exit ;;
986
1009
    xtensa*:Linux:*:*)
987
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
1010
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
988
1011
        exit ;;
989
1012
    i*86:DYNIX/ptx:4*:*)
990
1013
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
993
1016
        echo i386-sequent-sysv4
994
1017
        exit ;;
995
1018
    i*86:UNIX_SV:4.2MP:2.*)
996
 
        # Unixware is an offshoot of SVR4, but it has its own version
997
 
        # number series starting with 2...
998
 
        # I am not positive that other SVR4 systems won't match this,
 
1019
        # Unixware is an offshoot of SVR4, but it has its own version
 
1020
        # number series starting with 2...
 
1021
        # I am not positive that other SVR4 systems won't match this,
999
1022
        # I just have to hope.  -- rms.
1000
 
        # Use sysv4.2uw... so that sysv4* matches it.
 
1023
        # Use sysv4.2uw... so that sysv4* matches it.
1001
1024
        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1002
1025
        exit ;;
1003
1026
    i*86:OS/2:*:*)
1015
1038
        echo ${UNAME_MACHINE}-pc-syllable
1016
1039
        exit ;;
1017
1040
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1018
 
        echo i386-${VENDOR}-lynxos${UNAME_RELEASE}
 
1041
        echo i386-${VENODR}-lynxos${UNAME_RELEASE}
1019
1042
        exit ;;
1020
1043
    i*86:*DOS:*:*)
1021
1044
        echo ${UNAME_MACHINE}-pc-msdosdjgpp
1029
1052
        fi
1030
1053
        exit ;;
1031
1054
    i*86:*:5:[678]*)
1032
 
        # UnixWare 7.x, OpenUNIX and OpenServer 6.
 
1055
        # UnixWare 7.x, OpenUNIX and OpenServer 6.
1033
1056
        case `/bin/uname -X | grep "^Machine"` in
1034
1057
            *486*)           UNAME_MACHINE=i486 ;;
1035
1058
            *Pentium)        UNAME_MACHINE=i586 ;;
1057
1080
        exit ;;
1058
1081
    pc:*:*:*)
1059
1082
        # Left here for compatibility:
1060
 
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1061
 
        # the processor, so we play safe by assuming i586.
 
1083
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
 
1084
        # the processor, so we play safe by assuming i586.
1062
1085
        # Note: whatever this is, it MUST be the same as what config.sub
1063
1086
        # prints for the "djgpp" host, or else GDB configury will decide that
1064
1087
        # this is a cross-build.
1065
1088
        echo i586-pc-msdosdjgpp
1066
 
        exit ;;
 
1089
        exit ;;
1067
1090
    Intel:Mach:3*:*)
1068
1091
        echo i386-pc-mach3
1069
1092
        exit ;;
1074
1097
        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1075
1098
          echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1076
1099
        else # Add other i860-SVR4 vendors below as they are discovered.
1077
 
          echo i860-${VENDOR}-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
 
1100
          echo i860-${VENODR}-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
1078
1101
        fi
1079
1102
        exit ;;
1080
1103
    mini*:CTIX:SYS*5:*)
1098
1121
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1099
1122
          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1100
1123
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1101
 
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1102
 
          && { echo i486-ncr-sysv4; exit; } ;;
 
1124
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1125
          && { echo i486-ncr-sysv4; exit; } ;;
1103
1126
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1104
1127
        OS_REL='.3'
1105
1128
        test -r /etc/.relid \
1142
1165
                echo ns32k-sni-sysv
1143
1166
        fi
1144
1167
        exit ;;
1145
 
    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1146
 
                      # says <Richard.M.Bartel@ccMail.Census.GOV>
1147
 
        echo i586-unisys-sysv4
1148
 
        exit ;;
 
1168
    PENTIUM:*:4.0*:*)   # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
 
1169
                        # says <Richard.M.Bartel@ccMail.Census.GOV>
 
1170
        echo i586-unisys-sysv4
 
1171
        exit ;;
1149
1172
    *:UNIX_System_V:4*:FTX*)
1150
1173
        # From Gerald Hewes <hewes@openmarket.com>.
1151
1174
        # How about differentiating between stratus architectures? -djm
1171
1194
        exit ;;
1172
1195
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1173
1196
        if [ -d /usr/nec ]; then
1174
 
                echo mips-nec-sysv${UNAME_RELEASE}
 
1197
                echo mips-nec-sysv${UNAME_RELEASE}
1175
1198
        else
1176
 
                echo mips-${VENDOR}-sysv${UNAME_RELEASE}
 
1199
                echo mips-${VENDOR}-sysv${UNAME_RELEASE}
1177
1200
        fi
1178
 
        exit ;;
 
1201
        exit ;;
1179
1202
    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
1180
1203
        echo powerpc-be-beos
1181
1204
        exit ;;
1240
1263
    *:QNX:*:4*)
1241
1264
        echo i386-pc-qnx
1242
1265
        exit ;;
 
1266
    NEO-?:NONSTOP_KERNEL:*:*)
 
1267
        echo neo-tandem-nsk${UNAME_RELEASE}
 
1268
        exit ;;
1243
1269
    NSE-?:NONSTOP_KERNEL:*:*)
1244
1270
        echo nse-tandem-nsk${UNAME_RELEASE}
1245
1271
        exit ;;
1285
1311
        echo pdp10-${VENDOR}-its
1286
1312
        exit ;;
1287
1313
    SEI:*:*:SEIUX)
1288
 
        echo mips-sei-seiux${UNAME_RELEASE}
 
1314
        echo mips-sei-seiux${UNAME_RELEASE}
1289
1315
        exit ;;
1290
1316
    *:DragonFly:*:*)
1291
1317
        echo ${UNAME_MACHINE}-${VENDOR}-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1292
1318
        exit ;;
1293
1319
    *:*VMS:*:*)
1294
 
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
 
1320
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
1295
1321
        case "${UNAME_MACHINE}" in
1296
1322
            A*) echo alpha-dec-vms ; exit ;;
1297
1323
            I*) echo ia64-dec-vms ; exit ;;
1309
1335
    i*86:AROS:*:*)
1310
1336
        echo ${UNAME_MACHINE}-pc-aros
1311
1337
        exit ;;
 
1338
    x86_64:VMkernel:*:*)
 
1339
        echo ${UNAME_MACHINE}-${VENDOR}-esx
 
1340
        exit ;;
1312
1341
esac
1313
1342
 
1314
1343
#echo '(No uname command or uname output not recognized.)' 1>&2
1331
1360
#include <sys/param.h>
1332
1361
  printf ("m68k-sony-newsos%s\n",
1333
1362
#ifdef NEWSOS4
1334
 
          "4"
 
1363
        "4"
1335
1364
#else
1336
 
          ""
 
1365
        ""
1337
1366
#endif
1338
 
         ); exit (0);
 
1367
        ); exit (0);
1339
1368
#endif
1340
1369
#endif
1341
1370