~ubuntu-branches/ubuntu/utopic/esorex/utopic

« back to all changes in this revision

Viewing changes to admin/config.guess

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2012-05-11 12:00:00 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120511120000-4uz6r3lrod1dkly5
Tags: 3.9.6-1
* New upstream version
* Add Multi-Arch default plugin directory
* Set DM-Upload-Allowed

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 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2009-11-20'
 
7
timestamp='2011-11-11'
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
56
56
GNU config.guess ($timestamp)
57
57
 
58
58
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.
 
59
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
 
60
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
 
61
Software Foundation, Inc.
61
62
 
62
63
This is free software; see the source for copying conditions.  There is NO
63
64
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
139
140
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
140
141
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141
142
 
142
 
case "${UNAME_MACHINE}" in
143
 
    i?86)
144
 
        test -z "$VENDOR" && VENDOR=pc
145
 
        ;;
146
 
    *)
147
 
        test -z "$VENDOR" && VENDOR=unknown
148
 
        ;;
149
 
esac
150
 
test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
151
 
 
152
143
# Note: order is significant - the case branches are not exclusive.
153
144
 
154
145
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
190
181
                fi
191
182
                ;;
192
183
            *)
193
 
                os=netbsd
 
184
                os=netbsd
194
185
                ;;
195
186
        esac
196
187
        # The OS release
213
204
        exit ;;
214
205
    *:OpenBSD:*:*)
215
206
        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
216
 
        echo ${UNAME_MACHINE_ARCH}-${VENDOR}-openbsd${UNAME_RELEASE}
 
207
        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
217
208
        exit ;;
218
209
    *:ekkoBSD:*:*)
219
 
        echo ${UNAME_MACHINE}-${VENDOR}-ekkobsd${UNAME_RELEASE}
 
210
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
220
211
        exit ;;
221
212
    *:SolidBSD:*:*)
222
 
        echo ${UNAME_MACHINE}-${VENDOR}-solidbsd${UNAME_RELEASE}
 
213
        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
223
214
        exit ;;
224
215
    macppc:MirBSD:*:*)
225
 
        echo powerpc-${VENDOR}-mirbsd${UNAME_RELEASE}
 
216
        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
226
217
        exit ;;
227
218
    *:MirBSD:*:*)
228
 
        echo ${UNAME_MACHINE}-${VENDOR}-mirbsd${UNAME_RELEASE}
 
219
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
229
220
        exit ;;
230
221
    alpha:OSF1:*:*)
231
222
        case $UNAME_RELEASE in
233
224
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
234
225
                ;;
235
226
        *5.*)
236
 
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
 
227
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
237
228
                ;;
238
229
        esac
239
230
        # According to Compaq, /usr/sbin/psrinfo has been available on
279
270
        # A Xn.n version is an unreleased experimental baselevel.
280
271
        # 1.2 uses "1.2" for uname -r.
281
272
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
282
 
        exit ;;
 
273
        # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
 
274
        exitcode=$?
 
275
        trap '' 0
 
276
        exit $exitcode ;;
283
277
    Alpha\ *:Windows_NT*:*)
284
278
        # How do we know it's Interix rather than the generic POSIX subsystem?
285
279
        # Should we change UNAME_MACHINE based on the output of uname instead
290
284
        echo alpha-dec-winnt3.5
291
285
        exit ;;
292
286
    Amiga*:UNIX_System_V:4.0:*)
293
 
        echo m68k-${VENDOR}-sysv4
 
287
        echo m68k-unknown-sysv4
294
288
        exit ;;
295
289
    *:[Aa]miga[Oo][Ss]:*:*)
296
 
        echo ${UNAME_MACHINE}-${VENDOR}-amigaos
 
290
        echo ${UNAME_MACHINE}-unknown-amigaos
297
291
        exit ;;
298
292
    *:[Mm]orph[Oo][Ss]:*:*)
299
 
        echo ${UNAME_MACHINE}-${VENDOR}-morphos
 
293
        echo ${UNAME_MACHINE}-unknown-morphos
300
294
        exit ;;
301
295
    *:OS/390:*:*)
302
296
        echo i370-ibm-openedition
305
299
        echo s390-ibm-zvmoe
306
300
        exit ;;
307
301
    *:OS400:*:*)
308
 
        echo powerpc-ibm-os400
 
302
        echo powerpc-ibm-os400
309
303
        exit ;;
310
304
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
311
305
        echo arm-acorn-riscix${UNAME_RELEASE}
312
306
        exit ;;
313
307
    arm:riscos:*:*|arm:RISCOS:*:*)
314
 
        echo arm-${VENDOR}-riscos
 
308
        echo arm-unknown-riscos
315
309
        exit ;;
316
310
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
317
311
        echo hppa1.1-hitachi-hiuxmpp
404
398
    # MiNT.  But MiNT is downward compatible to TOS, so this should
405
399
    # be no problem.
406
400
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
407
 
        echo m68k-atari-mint${UNAME_RELEASE}
 
401
        echo m68k-atari-mint${UNAME_RELEASE}
408
402
        exit ;;
409
403
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
410
404
        echo m68k-atari-mint${UNAME_RELEASE}
411
 
        exit ;;
 
405
        exit ;;
412
406
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
413
 
        echo m68k-atari-mint${UNAME_RELEASE}
 
407
        echo m68k-atari-mint${UNAME_RELEASE}
414
408
        exit ;;
415
409
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
416
 
        echo m68k-milan-mint${UNAME_RELEASE}
417
 
        exit ;;
 
410
        echo m68k-milan-mint${UNAME_RELEASE}
 
411
        exit ;;
418
412
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
419
 
        echo m68k-hades-mint${UNAME_RELEASE}
420
 
        exit ;;
 
413
        echo m68k-hades-mint${UNAME_RELEASE}
 
414
        exit ;;
421
415
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
422
 
        echo m68k-${VENDOR}-mint${UNAME_RELEASE}
423
 
        exit ;;
 
416
        echo m68k-unknown-mint${UNAME_RELEASE}
 
417
        exit ;;
424
418
    m68k:machten:*:*)
425
419
        echo m68k-apple-machten${UNAME_RELEASE}
426
420
        exit ;;
490
484
        echo m88k-motorola-sysv3
491
485
        exit ;;
492
486
    AViiON:dgux:*:*)
493
 
        # DG/UX returns AViiON for all architectures
494
 
        UNAME_PROCESSOR=`/usr/bin/uname -p`
 
487
        # DG/UX returns AViiON for all architectures
 
488
        UNAME_PROCESSOR=`/usr/bin/uname -p`
495
489
        if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
496
490
        then
497
491
            if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
504
498
        else
505
499
            echo i586-dg-dgux${UNAME_RELEASE}
506
500
        fi
507
 
        exit ;;
 
501
        exit ;;
508
502
    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
509
503
        echo m88k-dolphin-sysv3
510
504
        exit ;;
561
555
                echo rs6000-ibm-aix3.2
562
556
        fi
563
557
        exit ;;
564
 
    *:AIX:*:[456])
 
558
    *:AIX:*:[4567])
565
559
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
566
560
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
567
561
                IBM_ARCH=rs6000
604
598
            9000/[678][0-9][0-9])
605
599
                if [ -x /usr/bin/getconf ]; then
606
600
                    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" ;;
 
601
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
 
602
                    case "${sc_cpu_version}" in
 
603
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
 
604
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
 
605
                      532)                      # CPU_PA_RISC2_0
 
606
                        case "${sc_kernel_bits}" in
 
607
                          32) HP_ARCH="hppa2.0n" ;;
 
608
                          64) HP_ARCH="hppa2.0w" ;;
615
609
                          '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
616
 
                        esac ;;
617
 
                    esac
 
610
                        esac ;;
 
611
                    esac
618
612
                fi
619
613
                if [ "${HP_ARCH}" = "" ]; then
620
614
                    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
 
              }
 
615
                    sed 's/^            //' << EOF >$dummy.c
 
616
 
 
617
                #define _HPUX_SOURCE
 
618
                #include <stdlib.h>
 
619
                #include <unistd.h>
 
620
 
 
621
                int main ()
 
622
                {
 
623
                #if defined(_SC_KERNEL_BITS)
 
624
                    long bits = sysconf(_SC_KERNEL_BITS);
 
625
                #endif
 
626
                    long cpu  = sysconf (_SC_CPU_VERSION);
 
627
 
 
628
                    switch (cpu)
 
629
                        {
 
630
                        case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
 
631
                        case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
 
632
                        case CPU_PA_RISC2_0:
 
633
                #if defined(_SC_KERNEL_BITS)
 
634
                            switch (bits)
 
635
                                {
 
636
                                case 64: puts ("hppa2.0w"); break;
 
637
                                case 32: puts ("hppa2.0n"); break;
 
638
                                default: puts ("hppa2.0"); break;
 
639
                                } break;
 
640
                #else  /* !defined(_SC_KERNEL_BITS) */
 
641
                            puts ("hppa2.0"); break;
 
642
                #endif
 
643
                        default: puts ("hppa1.0"); break;
 
644
                        }
 
645
                    exit (0);
 
646
                }
653
647
EOF
654
648
                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
655
649
                    test -z "$HP_ARCH" && HP_ARCH=hppa
730
724
        exit ;;
731
725
    i*86:OSF1:*:*)
732
726
        if [ -x /usr/sbin/sysversion ] ; then
733
 
            echo ${UNAME_MACHINE}-${VENDOR}-osf1mk
 
727
            echo ${UNAME_MACHINE}-unknown-osf1mk
734
728
        else
735
 
            echo ${UNAME_MACHINE}-${VENDOR}-osf1
 
729
            echo ${UNAME_MACHINE}-unknown-osf1
736
730
        fi
737
731
        exit ;;
738
732
    parisc*:Lites*:*:*)
740
734
        exit ;;
741
735
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
742
736
        echo c1-convex-bsd
743
 
        exit ;;
 
737
        exit ;;
744
738
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
745
739
        if getsysinfo -f scalar_acc
746
740
        then echo c32-convex-bsd
747
741
        else echo c2-convex-bsd
748
742
        fi
749
 
        exit ;;
 
743
        exit ;;
750
744
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
751
745
        echo c34-convex-bsd
752
 
        exit ;;
 
746
        exit ;;
753
747
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
754
748
        echo c38-convex-bsd
755
 
        exit ;;
 
749
        exit ;;
756
750
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
757
751
        echo c4-convex-bsd
758
 
        exit ;;
 
752
        exit ;;
759
753
    CRAY*Y-MP:*:*:*)
760
754
        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
761
755
        exit ;;
779
773
        exit ;;
780
774
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
781
775
        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 ;;
 
776
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
777
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
 
778
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 
779
        exit ;;
786
780
    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}"
 
781
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
782
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
 
783
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
790
784
        exit ;;
791
785
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
792
786
        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
793
787
        exit ;;
794
788
    sparc*:BSD/OS:*:*)
795
 
        echo sparc-${VENDOR}-bsdi${UNAME_RELEASE}
 
789
        echo sparc-unknown-bsdi${UNAME_RELEASE}
796
790
        exit ;;
797
791
    *:BSD/OS:*:*)
798
 
        echo ${UNAME_MACHINE}-${VENDOR}-bsdi${UNAME_RELEASE}
 
792
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
799
793
        exit ;;
800
794
    *:FreeBSD:*:*)
801
 
        case ${UNAME_MACHINE} in
802
 
            pc98)
803
 
                echo i386-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
795
        UNAME_PROCESSOR=`/usr/bin/uname -p`
 
796
        case ${UNAME_PROCESSOR} in
804
797
            amd64)
805
 
                echo x86_64-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
798
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
806
799
            *)
807
 
                echo ${UNAME_MACHINE}-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
800
                echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
808
801
        esac
809
802
        exit ;;
810
803
    i*:CYGWIN*:*)
813
806
    *:MINGW*:*)
814
807
        echo ${UNAME_MACHINE}-pc-mingw32
815
808
        exit ;;
 
809
    i*:MSYS*:*)
 
810
        echo ${UNAME_MACHINE}-pc-msys
 
811
        exit ;;
816
812
    i*:windows32*:*)
817
 
        # uname -m includes "-pc" on this system.
818
 
        echo ${UNAME_MACHINE}-mingw32
 
813
        # uname -m includes "-pc" on this system.
 
814
        echo ${UNAME_MACHINE}-mingw32
819
815
        exit ;;
820
816
    i*:PW*:*)
821
817
        echo ${UNAME_MACHINE}-pc-pw32
822
818
        exit ;;
823
819
    *:Interix*:*)
824
 
        case ${UNAME_MACHINE} in
 
820
        case ${UNAME_MACHINE} in
825
821
            x86)
826
822
                echo i586-pc-interix${UNAME_RELEASE}
827
823
                exit ;;
828
824
            authenticamd | genuineintel | EM64T)
829
 
                echo x86_64-${VENDOR}-interix${UNAME_RELEASE}
 
825
                echo x86_64-unknown-interix${UNAME_RELEASE}
830
826
                exit ;;
831
827
            IA64)
832
 
                echo ia64-${VENDOR}-interix${UNAME_RELEASE}
 
828
                echo ia64-unknown-interix${UNAME_RELEASE}
833
829
                exit ;;
834
830
        esac ;;
835
831
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
848
844
        echo ${UNAME_MACHINE}-pc-uwin
849
845
        exit ;;
850
846
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
851
 
        echo x86_64-${VENDOR}-cygwin
 
847
        echo x86_64-unknown-cygwin
852
848
        exit ;;
853
849
    p*:CYGWIN*:*)
854
 
        echo powerpcle-${VENDOR}-cygwin
 
850
        echo powerpcle-unknown-cygwin
855
851
        exit ;;
856
852
    prep*:SunOS:5.*:*)
857
 
        echo powerpcle-${VENDOR}-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
853
        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
858
854
        exit ;;
859
855
    *:GNU:*:*)
860
856
        # the GNU system
861
 
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
 
857
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
862
858
        exit ;;
863
859
    *:GNU/*:*:*)
864
860
        # other systems with GNU libc and userland
865
 
        echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
 
861
        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
866
862
        exit ;;
867
863
    i*86:Minix:*:*)
868
864
        echo ${UNAME_MACHINE}-pc-minix
876
872
          EV6)   UNAME_MACHINE=alphaev6 ;;
877
873
          EV67)  UNAME_MACHINE=alphaev67 ;;
878
874
          EV68*) UNAME_MACHINE=alphaev68 ;;
879
 
        esac
 
875
        esac
880
876
        objdump --private-headers /bin/sh | grep -q ld.so.1
881
877
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
882
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
 
878
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
883
879
        exit ;;
884
880
    arm*:Linux:*:*)
885
881
        eval $set_cc_for_build
886
882
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
887
883
            | grep -q __ARM_EABI__
888
884
        then
889
 
            echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
885
            echo ${UNAME_MACHINE}-unknown-linux-gnu
890
886
        else
891
 
            echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi
 
887
            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
 
888
                | grep -q __ARM_PCS_VFP
 
889
            then
 
890
                echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
891
            else
 
892
                echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
 
893
            fi
892
894
        fi
893
895
        exit ;;
894
896
    avr32*:Linux:*:*)
895
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
897
        echo ${UNAME_MACHINE}-unknown-linux-gnu
896
898
        exit ;;
897
899
    cris:Linux:*:*)
898
900
        echo cris-axis-linux-gnu
901
903
        echo crisv32-axis-linux-gnu
902
904
        exit ;;
903
905
    frv:Linux:*:*)
904
 
        echo frv-${VENDOR}-linux-gnu
 
906
        echo frv-unknown-linux-gnu
 
907
        exit ;;
 
908
    hexagon:Linux:*:*)
 
909
        echo hexagon-unknown-linux-gnu
905
910
        exit ;;
906
911
    i*86:Linux:*:*)
907
912
        LIBC=gnu
912
917
        #endif
913
918
EOF
914
919
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
915
 
        echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
 
920
        echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
916
921
        exit ;;
917
922
    ia64:Linux:*:*)
918
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
923
        echo ${UNAME_MACHINE}-unknown-linux-gnu
919
924
        exit ;;
920
925
    m32r*:Linux:*:*)
921
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
926
        echo ${UNAME_MACHINE}-unknown-linux-gnu
922
927
        exit ;;
923
928
    m68*:Linux:*:*)
924
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
929
        echo ${UNAME_MACHINE}-unknown-linux-gnu
925
930
        exit ;;
926
931
    mips:Linux:*:* | mips64:Linux:*:*)
927
932
        eval $set_cc_for_build
940
945
        #endif
941
946
EOF
942
947
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
943
 
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
 
948
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
944
949
        ;;
945
950
    or32:Linux:*:*)
946
 
        echo or32-${VENDOR}-linux-gnu
 
951
        echo or32-unknown-linux-gnu
947
952
        exit ;;
948
953
    padre:Linux:*:*)
949
 
        echo sparc-${VENDOR}-linux-gnu
 
954
        echo sparc-unknown-linux-gnu
950
955
        exit ;;
951
956
    parisc64:Linux:*:* | hppa64:Linux:*:*)
952
 
        echo hppa64-${VENDOR}-linux-gnu
 
957
        echo hppa64-unknown-linux-gnu
953
958
        exit ;;
954
959
    parisc:Linux:*:* | hppa:Linux:*:*)
955
960
        # Look for CPU level
956
961
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
957
 
          PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;;
958
 
          PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
959
 
          *)    echo hppa-${VENDOR}-linux-gnu ;;
 
962
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
 
963
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
 
964
          *)    echo hppa-unknown-linux-gnu ;;
960
965
        esac
961
966
        exit ;;
962
967
    ppc64:Linux:*:*)
963
 
        echo powerpc64-${VENDOR}-linux-gnu
 
968
        echo powerpc64-unknown-linux-gnu
964
969
        exit ;;
965
970
    ppc:Linux:*:*)
966
 
        echo powerpc-${VENDOR}-linux-gnu
 
971
        echo powerpc-unknown-linux-gnu
967
972
        exit ;;
968
973
    s390:Linux:*:* | s390x:Linux:*:*)
969
974
        echo ${UNAME_MACHINE}-ibm-linux
970
975
        exit ;;
971
976
    sh64*:Linux:*:*)
972
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
977
        echo ${UNAME_MACHINE}-unknown-linux-gnu
973
978
        exit ;;
974
979
    sh*:Linux:*:*)
975
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
980
        echo ${UNAME_MACHINE}-unknown-linux-gnu
976
981
        exit ;;
977
982
    sparc:Linux:*:* | sparc64:Linux:*:*)
978
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
983
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
984
        exit ;;
 
985
    tile*:Linux:*:*)
 
986
        echo ${UNAME_MACHINE}-unknown-linux-gnu
979
987
        exit ;;
980
988
    vax:Linux:*:*)
981
989
        echo ${UNAME_MACHINE}-dec-linux-gnu
982
990
        exit ;;
983
991
    x86_64:Linux:*:*)
984
 
        echo x86_64-${VENDOR}-linux-gnu
 
992
        echo x86_64-unknown-linux-gnu
985
993
        exit ;;
986
994
    xtensa*:Linux:*:*)
987
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
995
        echo ${UNAME_MACHINE}-unknown-linux-gnu
988
996
        exit ;;
989
997
    i*86:DYNIX/ptx:4*:*)
990
998
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
993
1001
        echo i386-sequent-sysv4
994
1002
        exit ;;
995
1003
    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,
 
1004
        # Unixware is an offshoot of SVR4, but it has its own version
 
1005
        # number series starting with 2...
 
1006
        # I am not positive that other SVR4 systems won't match this,
999
1007
        # I just have to hope.  -- rms.
1000
 
        # Use sysv4.2uw... so that sysv4* matches it.
 
1008
        # Use sysv4.2uw... so that sysv4* matches it.
1001
1009
        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1002
1010
        exit ;;
1003
1011
    i*86:OS/2:*:*)
1006
1014
        echo ${UNAME_MACHINE}-pc-os2-emx
1007
1015
        exit ;;
1008
1016
    i*86:XTS-300:*:STOP)
1009
 
        echo ${UNAME_MACHINE}-${VENDOR}-stop
 
1017
        echo ${UNAME_MACHINE}-unknown-stop
1010
1018
        exit ;;
1011
1019
    i*86:atheos:*:*)
1012
 
        echo ${UNAME_MACHINE}-${VENDOR}-atheos
 
1020
        echo ${UNAME_MACHINE}-unknown-atheos
1013
1021
        exit ;;
1014
1022
    i*86:syllable:*:*)
1015
1023
        echo ${UNAME_MACHINE}-pc-syllable
1016
1024
        exit ;;
1017
1025
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1018
 
        echo i386-${VENDOR}-lynxos${UNAME_RELEASE}
 
1026
        echo i386-unknown-lynxos${UNAME_RELEASE}
1019
1027
        exit ;;
1020
1028
    i*86:*DOS:*:*)
1021
1029
        echo ${UNAME_MACHINE}-pc-msdosdjgpp
1029
1037
        fi
1030
1038
        exit ;;
1031
1039
    i*86:*:5:[678]*)
1032
 
        # UnixWare 7.x, OpenUNIX and OpenServer 6.
 
1040
        # UnixWare 7.x, OpenUNIX and OpenServer 6.
1033
1041
        case `/bin/uname -X | grep "^Machine"` in
1034
1042
            *486*)           UNAME_MACHINE=i486 ;;
1035
1043
            *Pentium)        UNAME_MACHINE=i586 ;;
1036
1044
            *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1037
1045
        esac
1038
 
        echo ${UNAME_MACHINE}-${VENDOR}-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
 
1046
        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1039
1047
        exit ;;
1040
1048
    i*86:*:3.2:*)
1041
1049
        if test -f /usr/options/cb.name; then
1057
1065
        exit ;;
1058
1066
    pc:*:*:*)
1059
1067
        # 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.
 
1068
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
 
1069
        # the processor, so we play safe by assuming i586.
1062
1070
        # Note: whatever this is, it MUST be the same as what config.sub
1063
1071
        # prints for the "djgpp" host, or else GDB configury will decide that
1064
1072
        # this is a cross-build.
1065
1073
        echo i586-pc-msdosdjgpp
1066
 
        exit ;;
 
1074
        exit ;;
1067
1075
    Intel:Mach:3*:*)
1068
1076
        echo i386-pc-mach3
1069
1077
        exit ;;
1074
1082
        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1075
1083
          echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1076
1084
        else # Add other i860-SVR4 vendors below as they are discovered.
1077
 
          echo i860-${VENDOR}-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
 
1085
          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
1078
1086
        fi
1079
1087
        exit ;;
1080
1088
    mini*:CTIX:SYS*5:*)
1098
1106
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1099
1107
          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1100
1108
    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; } ;;
 
1109
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1110
          && { echo i486-ncr-sysv4; exit; } ;;
1103
1111
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1104
1112
        OS_REL='.3'
1105
1113
        test -r /etc/.relid \
1111
1119
        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1112
1120
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1113
1121
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1114
 
        echo m68k-${VENDOR}-lynxos${UNAME_RELEASE}
 
1122
        echo m68k-unknown-lynxos${UNAME_RELEASE}
1115
1123
        exit ;;
1116
1124
    mc68030:UNIX_System_V:4.*:*)
1117
1125
        echo m68k-atari-sysv4
1118
1126
        exit ;;
1119
1127
    TSUNAMI:LynxOS:2.*:*)
1120
 
        echo sparc-${VENDOR}-lynxos${UNAME_RELEASE}
 
1128
        echo sparc-unknown-lynxos${UNAME_RELEASE}
1121
1129
        exit ;;
1122
1130
    rs6000:LynxOS:2.*:*)
1123
 
        echo rs6000-${VENDOR}-lynxos${UNAME_RELEASE}
 
1131
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
1124
1132
        exit ;;
1125
1133
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1126
 
        echo powerpc-${VENDOR}-lynxos${UNAME_RELEASE}
 
1134
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
1127
1135
        exit ;;
1128
1136
    SM[BE]S:UNIX_SV:*:*)
1129
1137
        echo mips-dde-sysv${UNAME_RELEASE}
1142
1150
                echo ns32k-sni-sysv
1143
1151
        fi
1144
1152
        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 ;;
 
1153
    PENTIUM:*:4.0*:*)   # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
 
1154
                        # says <Richard.M.Bartel@ccMail.Census.GOV>
 
1155
        echo i586-unisys-sysv4
 
1156
        exit ;;
1149
1157
    *:UNIX_System_V:4*:FTX*)
1150
1158
        # From Gerald Hewes <hewes@openmarket.com>.
1151
1159
        # How about differentiating between stratus architectures? -djm
1171
1179
        exit ;;
1172
1180
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1173
1181
        if [ -d /usr/nec ]; then
1174
 
                echo mips-nec-sysv${UNAME_RELEASE}
 
1182
                echo mips-nec-sysv${UNAME_RELEASE}
1175
1183
        else
1176
 
                echo mips-${VENDOR}-sysv${UNAME_RELEASE}
 
1184
                echo mips-unknown-sysv${UNAME_RELEASE}
1177
1185
        fi
1178
 
        exit ;;
 
1186
        exit ;;
1179
1187
    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
1180
1188
        echo powerpc-be-beos
1181
1189
        exit ;;
1240
1248
    *:QNX:*:4*)
1241
1249
        echo i386-pc-qnx
1242
1250
        exit ;;
 
1251
    NEO-?:NONSTOP_KERNEL:*:*)
 
1252
        echo neo-tandem-nsk${UNAME_RELEASE}
 
1253
        exit ;;
1243
1254
    NSE-?:NONSTOP_KERNEL:*:*)
1244
1255
        echo nse-tandem-nsk${UNAME_RELEASE}
1245
1256
        exit ;;
1264
1275
        else
1265
1276
            UNAME_MACHINE="$cputype"
1266
1277
        fi
1267
 
        echo ${UNAME_MACHINE}-${VENDOR}-plan9
 
1278
        echo ${UNAME_MACHINE}-unknown-plan9
1268
1279
        exit ;;
1269
1280
    *:TOPS-10:*:*)
1270
 
        echo pdp10-${VENDOR}-tops10
 
1281
        echo pdp10-unknown-tops10
1271
1282
        exit ;;
1272
1283
    *:TENEX:*:*)
1273
 
        echo pdp10-${VENDOR}-tenex
 
1284
        echo pdp10-unknown-tenex
1274
1285
        exit ;;
1275
1286
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1276
1287
        echo pdp10-dec-tops20
1279
1290
        echo pdp10-xkl-tops20
1280
1291
        exit ;;
1281
1292
    *:TOPS-20:*:*)
1282
 
        echo pdp10-${VENDOR}-tops20
 
1293
        echo pdp10-unknown-tops20
1283
1294
        exit ;;
1284
1295
    *:ITS:*:*)
1285
 
        echo pdp10-${VENDOR}-its
 
1296
        echo pdp10-unknown-its
1286
1297
        exit ;;
1287
1298
    SEI:*:*:SEIUX)
1288
 
        echo mips-sei-seiux${UNAME_RELEASE}
 
1299
        echo mips-sei-seiux${UNAME_RELEASE}
1289
1300
        exit ;;
1290
1301
    *:DragonFly:*:*)
1291
 
        echo ${UNAME_MACHINE}-${VENDOR}-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
1302
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1292
1303
        exit ;;
1293
1304
    *:*VMS:*:*)
1294
 
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
 
1305
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
1295
1306
        case "${UNAME_MACHINE}" in
1296
1307
            A*) echo alpha-dec-vms ; exit ;;
1297
1308
            I*) echo ia64-dec-vms ; exit ;;
1331
1342
#include <sys/param.h>
1332
1343
  printf ("m68k-sony-newsos%s\n",
1333
1344
#ifdef NEWSOS4
1334
 
          "4"
 
1345
        "4"
1335
1346
#else
1336
 
          ""
 
1347
        ""
1337
1348
#endif
1338
 
         ); exit (0);
 
1349
        ); exit (0);
1339
1350
#endif
1340
1351
#endif
1341
1352