~ubuntu-branches/ubuntu/trusty/evolution-exchange/trusty

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Package Import Robot
  • Author(s): Michael Biebl, Jeremy Bicha, Michael Biebl
  • Date: 2012-06-20 06:48:27 UTC
  • mfrom: (1.1.80) (0.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20120620064827-yzlmon3kc8gzd7pf
Tags: 3.4.3-2
* Team upload.

[ Jeremy Bicha ]
* Drop debian/exchange-connector-setup-2.26.1:
  - The manpage doesn't have any useful information and wasn't
    being installed anyway.

[ Michael Biebl ]
* Strip debian/tmp/ from .install file.
* List missing files on installation.
* Update Vcs-* URLs.
* Drop obsolete Build-Depends on liborbit2-dev and group the evo/eds
  Build-Depends together.
* Drop obsolete workaround to set -fPIC explicitly via CFLAGS.

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