~ubuntu-branches/ubuntu/trusty/alsa-plugins/trusty

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Package Import Robot
  • Author(s): Luke Yelavich
  • Date: 2013-07-26 10:57:49 UTC
  • mfrom: (3.1.16 sid)
  • Revision ID: package-import@ubuntu.com-20130726105749-ymn7cpbi75gmgplw
Tags: 1.0.27-2ubuntu1
* Merge from debian unstable, remaining changes:
  - Create libasound2-plugins-extra package which contains plugins that use
    libav.

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 Free Software Foundation,
5
 
#   Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
 
5
#   2011, 2012 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2006-05-13'
 
7
timestamp='2012-06-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
27
25
# the same distribution terms that you use for the rest of that program.
28
26
 
29
27
 
30
 
# Originally written by Per Bothner <per@bothner.com>.
31
 
# Please send patches to <config-patches@gnu.org>.  Submit a context
32
 
# diff and a properly formatted ChangeLog entry.
 
28
# Originally written by Per Bothner.  Please send patches (context
 
29
# diff format) to <config-patches@gnu.org> and include a ChangeLog
 
30
# entry.
33
31
#
34
32
# This script attempts to guess a canonical system name similar to
35
33
# config.sub.  If it succeeds, it prints the system name on stdout, and
36
34
# exits with 0.  Otherwise, it exits with 1.
37
35
#
38
 
# The plan is that this can be called by configure scripts if you
39
 
# don't specify an explicit build system type.
 
36
# You can get the latest version of this script from:
 
37
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
40
38
 
41
39
me=`echo "$0" | sed -e 's,.*/,,'`
42
40
 
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, 2002, 2003, 2004, 2005
 
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
60
59
Free Software Foundation, Inc.
61
60
 
62
61
This is free software; see the source for copying conditions.  There is NO
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
171
160
            arm*) machine=arm-unknown ;;
172
161
            sh3el) machine=shl-unknown ;;
173
162
            sh3eb) machine=sh-unknown ;;
 
163
            sh5el) machine=sh5le-unknown ;;
174
164
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
175
165
        esac
176
166
        # The Operating System including object format, if it has switched
179
169
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
180
170
                eval $set_cc_for_build
181
171
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
182
 
                        | grep __ELF__ >/dev/null
 
172
                        | grep -q __ELF__
183
173
                then
184
174
                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
185
175
                    # Return netbsd for either.  FIX?
189
179
                fi
190
180
                ;;
191
181
            *)
192
 
                os=netbsd
 
182
                os=netbsd
193
183
                ;;
194
184
        esac
195
185
        # The OS release
221
211
        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
222
212
        exit ;;
223
213
    macppc:MirBSD:*:*)
224
 
        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
 
214
        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
225
215
        exit ;;
226
216
    *:MirBSD:*:*)
227
217
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
232
222
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
233
223
                ;;
234
224
        *5.*)
235
 
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
 
225
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
236
226
                ;;
237
227
        esac
238
228
        # According to Compaq, /usr/sbin/psrinfo has been available on
278
268
        # A Xn.n version is an unreleased experimental baselevel.
279
269
        # 1.2 uses "1.2" for uname -r.
280
270
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
281
 
        exit ;;
 
271
        # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
 
272
        exitcode=$?
 
273
        trap '' 0
 
274
        exit $exitcode ;;
282
275
    Alpha\ *:Windows_NT*:*)
283
276
        # How do we know it's Interix rather than the generic POSIX subsystem?
284
277
        # Should we change UNAME_MACHINE based on the output of uname instead
304
297
        echo s390-ibm-zvmoe
305
298
        exit ;;
306
299
    *:OS400:*:*)
307
 
        echo powerpc-ibm-os400
 
300
        echo powerpc-ibm-os400
308
301
        exit ;;
309
302
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
310
303
        echo arm-acorn-riscix${UNAME_RELEASE}
333
326
        case `/usr/bin/uname -p` in
334
327
            sparc) echo sparc-icl-nx7; exit ;;
335
328
        esac ;;
 
329
    s390x:SunOS:*:*)
 
330
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
331
        exit ;;
336
332
    sun4H:SunOS:5.*:*)
337
333
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
338
334
        exit ;;
339
335
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
340
336
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
341
337
        exit ;;
342
 
    i86pc:SunOS:5.*:*)
343
 
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
338
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
 
339
        echo i386-pc-auroraux${UNAME_RELEASE}
 
340
        exit ;;
 
341
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
 
342
        eval $set_cc_for_build
 
343
        SUN_ARCH="i386"
 
344
        # If there is a compiler, see if it is configured for 64-bit objects.
 
345
        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
 
346
        # This test works for both compilers.
 
347
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
348
            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
 
349
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
350
                grep IS_64BIT_ARCH >/dev/null
 
351
            then
 
352
                SUN_ARCH="x86_64"
 
353
            fi
 
354
        fi
 
355
        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
344
356
        exit ;;
345
357
    sun4*:SunOS:6*:*)
346
358
        # According to config.sub, this is the proper way to canonicalize
384
396
    # MiNT.  But MiNT is downward compatible to TOS, so this should
385
397
    # be no problem.
386
398
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
387
 
        echo m68k-atari-mint${UNAME_RELEASE}
 
399
        echo m68k-atari-mint${UNAME_RELEASE}
388
400
        exit ;;
389
401
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
390
402
        echo m68k-atari-mint${UNAME_RELEASE}
391
 
        exit ;;
 
403
        exit ;;
392
404
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
393
 
        echo m68k-atari-mint${UNAME_RELEASE}
 
405
        echo m68k-atari-mint${UNAME_RELEASE}
394
406
        exit ;;
395
407
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
396
 
        echo m68k-milan-mint${UNAME_RELEASE}
397
 
        exit ;;
 
408
        echo m68k-milan-mint${UNAME_RELEASE}
 
409
        exit ;;
398
410
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
399
 
        echo m68k-hades-mint${UNAME_RELEASE}
400
 
        exit ;;
 
411
        echo m68k-hades-mint${UNAME_RELEASE}
 
412
        exit ;;
401
413
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
402
 
        echo m68k-unknown-mint${UNAME_RELEASE}
403
 
        exit ;;
 
414
        echo m68k-unknown-mint${UNAME_RELEASE}
 
415
        exit ;;
404
416
    m68k:machten:*:*)
405
417
        echo m68k-apple-machten${UNAME_RELEASE}
406
418
        exit ;;
470
482
        echo m88k-motorola-sysv3
471
483
        exit ;;
472
484
    AViiON:dgux:*:*)
473
 
        # DG/UX returns AViiON for all architectures
474
 
        UNAME_PROCESSOR=`/usr/bin/uname -p`
 
485
        # DG/UX returns AViiON for all architectures
 
486
        UNAME_PROCESSOR=`/usr/bin/uname -p`
475
487
        if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
476
488
        then
477
489
            if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
484
496
        else
485
497
            echo i586-dg-dgux${UNAME_RELEASE}
486
498
        fi
487
 
        exit ;;
 
499
        exit ;;
488
500
    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
489
501
        echo m88k-dolphin-sysv3
490
502
        exit ;;
541
553
                echo rs6000-ibm-aix3.2
542
554
        fi
543
555
        exit ;;
544
 
    *:AIX:*:[45])
 
556
    *:AIX:*:[4567])
545
557
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
546
558
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
547
559
                IBM_ARCH=rs6000
584
596
            9000/[678][0-9][0-9])
585
597
                if [ -x /usr/bin/getconf ]; then
586
598
                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
587
 
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
588
 
                    case "${sc_cpu_version}" in
589
 
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
590
 
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
591
 
                      532)                      # CPU_PA_RISC2_0
592
 
                        case "${sc_kernel_bits}" in
593
 
                          32) HP_ARCH="hppa2.0n" ;;
594
 
                          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" ;;
595
607
                          '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
596
 
                        esac ;;
597
 
                    esac
 
608
                        esac ;;
 
609
                    esac
598
610
                fi
599
611
                if [ "${HP_ARCH}" = "" ]; then
600
612
                    eval $set_cc_for_build
601
 
                    sed 's/^              //' << EOF >$dummy.c
602
 
 
603
 
              #define _HPUX_SOURCE
604
 
              #include <stdlib.h>
605
 
              #include <unistd.h>
606
 
 
607
 
              int main ()
608
 
              {
609
 
              #if defined(_SC_KERNEL_BITS)
610
 
                  long bits = sysconf(_SC_KERNEL_BITS);
611
 
              #endif
612
 
                  long cpu  = sysconf (_SC_CPU_VERSION);
613
 
 
614
 
                  switch (cpu)
615
 
                {
616
 
                case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
617
 
                case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
618
 
                case CPU_PA_RISC2_0:
619
 
              #if defined(_SC_KERNEL_BITS)
620
 
                    switch (bits)
621
 
                        {
622
 
                        case 64: puts ("hppa2.0w"); break;
623
 
                        case 32: puts ("hppa2.0n"); break;
624
 
                        default: puts ("hppa2.0"); break;
625
 
                        } break;
626
 
              #else  /* !defined(_SC_KERNEL_BITS) */
627
 
                    puts ("hppa2.0"); break;
628
 
              #endif
629
 
                default: puts ("hppa1.0"); break;
630
 
                }
631
 
                  exit (0);
632
 
              }
 
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
                }
633
645
EOF
634
646
                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
635
647
                    test -z "$HP_ARCH" && HP_ARCH=hppa
649
661
            # => hppa64-hp-hpux11.23
650
662
 
651
663
            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
652
 
                grep __LP64__ >/dev/null
 
664
                grep -q __LP64__
653
665
            then
654
666
                HP_ARCH="hppa2.0w"
655
667
            else
720
732
        exit ;;
721
733
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
722
734
        echo c1-convex-bsd
723
 
        exit ;;
 
735
        exit ;;
724
736
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
725
737
        if getsysinfo -f scalar_acc
726
738
        then echo c32-convex-bsd
727
739
        else echo c2-convex-bsd
728
740
        fi
729
 
        exit ;;
 
741
        exit ;;
730
742
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
731
743
        echo c34-convex-bsd
732
 
        exit ;;
 
744
        exit ;;
733
745
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
734
746
        echo c38-convex-bsd
735
 
        exit ;;
 
747
        exit ;;
736
748
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
737
749
        echo c4-convex-bsd
738
 
        exit ;;
 
750
        exit ;;
739
751
    CRAY*Y-MP:*:*:*)
740
752
        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
741
753
        exit ;;
759
771
        exit ;;
760
772
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
761
773
        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
762
 
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
763
 
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
764
 
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
765
 
        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 ;;
766
778
    5000:UNIX_System_V:4.*:*)
767
 
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
768
 
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
769
 
        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}"
770
782
        exit ;;
771
783
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
772
784
        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
778
790
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
779
791
        exit ;;
780
792
    *:FreeBSD:*:*)
781
 
        case ${UNAME_MACHINE} in
782
 
            pc98)
783
 
                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
793
        UNAME_PROCESSOR=`/usr/bin/uname -p`
 
794
        case ${UNAME_PROCESSOR} in
784
795
            amd64)
785
796
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
786
797
            *)
787
 
                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
798
                echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
788
799
        esac
789
800
        exit ;;
790
801
    i*:CYGWIN*:*)
791
802
        echo ${UNAME_MACHINE}-pc-cygwin
792
803
        exit ;;
793
 
    i*:MINGW*:*)
 
804
    *:MINGW*:*)
794
805
        echo ${UNAME_MACHINE}-pc-mingw32
795
806
        exit ;;
 
807
    i*:MSYS*:*)
 
808
        echo ${UNAME_MACHINE}-pc-msys
 
809
        exit ;;
796
810
    i*:windows32*:*)
797
 
        # uname -m includes "-pc" on this system.
798
 
        echo ${UNAME_MACHINE}-mingw32
 
811
        # uname -m includes "-pc" on this system.
 
812
        echo ${UNAME_MACHINE}-mingw32
799
813
        exit ;;
800
814
    i*:PW*:*)
801
815
        echo ${UNAME_MACHINE}-pc-pw32
802
816
        exit ;;
803
 
    x86:Interix*:[345]*)
804
 
        echo i586-pc-interix${UNAME_RELEASE}
805
 
        exit ;;
806
 
    EM64T:Interix*:[345]*)
807
 
        echo x86_64-unknown-interix${UNAME_RELEASE}
808
 
        exit ;;
 
817
    *:Interix*:*)
 
818
        case ${UNAME_MACHINE} in
 
819
            x86)
 
820
                echo i586-pc-interix${UNAME_RELEASE}
 
821
                exit ;;
 
822
            authenticamd | genuineintel | EM64T)
 
823
                echo x86_64-unknown-interix${UNAME_RELEASE}
 
824
                exit ;;
 
825
            IA64)
 
826
                echo ia64-unknown-interix${UNAME_RELEASE}
 
827
                exit ;;
 
828
        esac ;;
809
829
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
810
830
        echo i${UNAME_MACHINE}-pc-mks
811
831
        exit ;;
 
832
    8664:Windows_NT:*)
 
833
        echo x86_64-pc-mks
 
834
        exit ;;
812
835
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
813
836
        # How do we know it's Interix rather than the generic POSIX subsystem?
814
837
        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
838
861
    i*86:Minix:*:*)
839
862
        echo ${UNAME_MACHINE}-pc-minix
840
863
        exit ;;
841
 
    arm*:Linux:*:*)
842
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
843
 
        exit ;;
844
 
    cris:Linux:*:*)
845
 
        echo cris-axis-linux-gnu
846
 
        exit ;;
847
 
    crisv32:Linux:*:*)
848
 
        echo crisv32-axis-linux-gnu
849
 
        exit ;;
850
 
    frv:Linux:*:*)
851
 
        echo frv-${VENDOR}-linux-gnu
852
 
        exit ;;
853
 
    ia64:Linux:*:*)
854
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
855
 
        exit ;;
856
 
    m32r*:Linux:*:*)
857
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
858
 
        exit ;;
859
 
    m68*:Linux:*:*)
860
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
861
 
        exit ;;
862
 
    mips:Linux:*:*)
863
 
        eval $set_cc_for_build
864
 
        sed 's/^        //' << EOF >$dummy.c
865
 
        #undef CPU
866
 
        #undef mips
867
 
        #undef mipsel
868
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
869
 
        CPU=mipsel
870
 
        #else
871
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
872
 
        CPU=mips
873
 
        #else
874
 
        CPU=
875
 
        #endif
876
 
        #endif
877
 
EOF
878
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
879
 
            /^CPU/{
880
 
                s: ::g
881
 
                p
882
 
            }'`"
883
 
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
884
 
        ;;
885
 
    mips64:Linux:*:*)
886
 
        eval $set_cc_for_build
887
 
        sed 's/^        //' << EOF >$dummy.c
888
 
        #undef CPU
889
 
        #undef mips64
890
 
        #undef mips64el
891
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
892
 
        CPU=mips64el
893
 
        #else
894
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
895
 
        CPU=mips64
896
 
        #else
897
 
        CPU=
898
 
        #endif
899
 
        #endif
900
 
EOF
901
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
902
 
            /^CPU/{
903
 
                s: ::g
904
 
                p
905
 
            }'`"
906
 
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
907
 
        ;;
908
 
    or32:Linux:*:*)
909
 
        echo or32-${VENDOR}-linux-gnu
910
 
        exit ;;
911
 
    ppc:Linux:*:*)
912
 
        echo powerpc-${VENDOR}-linux-gnu
913
 
        exit ;;
914
 
    ppc64:Linux:*:*)
915
 
        echo powerpc64-${VENDOR}-linux-gnu
 
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
916
870
        exit ;;
917
871
    alpha:Linux:*:*)
918
872
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
923
877
          EV6)   UNAME_MACHINE=alphaev6 ;;
924
878
          EV67)  UNAME_MACHINE=alphaev67 ;;
925
879
          EV68*) UNAME_MACHINE=alphaev68 ;;
926
 
        esac
927
 
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
 
880
        esac
 
881
        objdump --private-headers /bin/sh | grep -q ld.so.1
928
882
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
929
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
 
883
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
 
884
        exit ;;
 
885
    arm*:Linux:*:*)
 
886
        eval $set_cc_for_build
 
887
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
 
888
            | grep -q __ARM_EABI__
 
889
        then
 
890
            echo ${UNAME_MACHINE}-unknown-linux-gnu
 
891
        else
 
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
 
899
        fi
 
900
        exit ;;
 
901
    avr32*:Linux:*:*)
 
902
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
903
        exit ;;
 
904
    cris:Linux:*:*)
 
905
        echo ${UNAME_MACHINE}-axis-linux-gnu
 
906
        exit ;;
 
907
    crisv32:Linux:*:*)
 
908
        echo ${UNAME_MACHINE}-axis-linux-gnu
 
909
        exit ;;
 
910
    frv:Linux:*:*)
 
911
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
912
        exit ;;
 
913
    hexagon:Linux:*:*)
 
914
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
915
        exit ;;
 
916
    i*86:Linux:*:*)
 
917
        LIBC=gnu
 
918
        eval $set_cc_for_build
 
919
        sed 's/^        //' << EOF >$dummy.c
 
920
        #ifdef __dietlibc__
 
921
        LIBC=dietlibc
 
922
        #endif
 
923
EOF
 
924
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
 
925
        echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
 
926
        exit ;;
 
927
    ia64:Linux:*:*)
 
928
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
929
        exit ;;
 
930
    m32r*:Linux:*:*)
 
931
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
932
        exit ;;
 
933
    m68*:Linux:*:*)
 
934
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
935
        exit ;;
 
936
    mips:Linux:*:* | mips64:Linux:*:*)
 
937
        eval $set_cc_for_build
 
938
        sed 's/^        //' << EOF >$dummy.c
 
939
        #undef CPU
 
940
        #undef ${UNAME_MACHINE}
 
941
        #undef ${UNAME_MACHINE}el
 
942
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
 
943
        CPU=${UNAME_MACHINE}el
 
944
        #else
 
945
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
 
946
        CPU=${UNAME_MACHINE}
 
947
        #else
 
948
        CPU=
 
949
        #endif
 
950
        #endif
 
951
EOF
 
952
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
 
953
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
 
954
        ;;
 
955
    or32:Linux:*:*)
 
956
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
957
        exit ;;
 
958
    padre:Linux:*:*)
 
959
        echo sparc-unknown-linux-gnu
 
960
        exit ;;
 
961
    parisc64:Linux:*:* | hppa64:Linux:*:*)
 
962
        echo hppa64-unknown-linux-gnu
930
963
        exit ;;
931
964
    parisc:Linux:*:* | hppa:Linux:*:*)
932
965
        # Look for CPU level
933
966
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
934
 
          PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;;
935
 
          PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
936
 
          *)    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 ;;
937
970
        esac
938
971
        exit ;;
939
 
    parisc64:Linux:*:* | hppa64:Linux:*:*)
940
 
        echo hppa64-${VENDOR}-linux-gnu
 
972
    ppc64:Linux:*:*)
 
973
        echo powerpc64-unknown-linux-gnu
 
974
        exit ;;
 
975
    ppc:Linux:*:*)
 
976
        echo powerpc-unknown-linux-gnu
941
977
        exit ;;
942
978
    s390:Linux:*:* | s390x:Linux:*:*)
943
979
        echo ${UNAME_MACHINE}-ibm-linux
944
980
        exit ;;
945
981
    sh64*:Linux:*:*)
946
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
982
        echo ${UNAME_MACHINE}-unknown-linux-gnu
947
983
        exit ;;
948
984
    sh*:Linux:*:*)
949
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
985
        echo ${UNAME_MACHINE}-unknown-linux-gnu
950
986
        exit ;;
951
987
    sparc:Linux:*:* | sparc64:Linux:*:*)
952
 
        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
953
992
        exit ;;
954
993
    vax:Linux:*:*)
955
994
        echo ${UNAME_MACHINE}-dec-linux-gnu
956
995
        exit ;;
957
996
    x86_64:Linux:*:*)
958
 
        echo x86_64-${VENDOR}-linux-gnu
959
 
        exit ;;
960
 
    i*86:Linux:*:*)
961
 
        # The BFD linker knows what the default object file format is, so
962
 
        # first see if it will tell us. cd to the root directory to prevent
963
 
        # problems with other programs or directories called `ld' in the path.
964
 
        # Set LC_ALL=C to ensure ld outputs messages in English.
965
 
        ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
966
 
                         | sed -ne '/supported targets:/!d
967
 
                                    s/[         ][      ]*/ /g
968
 
                                    s/.*supported targets: *//
969
 
                                    s/ .*//
970
 
                                    p'`
971
 
        case "$ld_supported_targets" in
972
 
          elf32-i386)
973
 
                TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux-gnu"
974
 
                ;;
975
 
          a.out-i386-linux)
976
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuaout"
977
 
                exit ;;
978
 
          coff-i386)
979
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnucoff"
980
 
                exit ;;
981
 
          "")
982
 
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
983
 
                # one that does not give us useful --help.
984
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuoldld"
985
 
                exit ;;
986
 
        esac
987
 
        # Determine whether the default compiler is a.out or elf
988
 
        eval $set_cc_for_build
989
 
        sed 's/^        //' << EOF >$dummy.c
990
 
        #include <features.h>
991
 
        #ifdef __ELF__
992
 
        # ifdef __GLIBC__
993
 
        #  if __GLIBC__ >= 2
994
 
        LIBC=gnu
995
 
        #  else
996
 
        LIBC=gnulibc1
997
 
        #  endif
998
 
        # else
999
 
        LIBC=gnulibc1
1000
 
        # endif
1001
 
        #else
1002
 
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1003
 
        LIBC=gnu
1004
 
        #else
1005
 
        LIBC=gnuaout
1006
 
        #endif
1007
 
        #endif
1008
 
        #ifdef __dietlibc__
1009
 
        LIBC=dietlibc
1010
 
        #endif
1011
 
EOF
1012
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1013
 
            /^LIBC/{
1014
 
                s: ::g
1015
 
                p
1016
 
            }'`"
1017
 
        test x"${LIBC}" != x && {
1018
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
1019
 
                exit
1020
 
        }
1021
 
        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1022
 
        ;;
 
997
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
998
        exit ;;
 
999
    xtensa*:Linux:*:*)
 
1000
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
1001
        exit ;;
1023
1002
    i*86:DYNIX/ptx:4*:*)
1024
1003
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1025
1004
        # earlier versions are messed up and put the nodename in both
1027
1006
        echo i386-sequent-sysv4
1028
1007
        exit ;;
1029
1008
    i*86:UNIX_SV:4.2MP:2.*)
1030
 
        # Unixware is an offshoot of SVR4, but it has its own version
1031
 
        # number series starting with 2...
1032
 
        # 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,
1033
1012
        # I just have to hope.  -- rms.
1034
 
        # Use sysv4.2uw... so that sysv4* matches it.
 
1013
        # Use sysv4.2uw... so that sysv4* matches it.
1035
1014
        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1036
1015
        exit ;;
1037
1016
    i*86:OS/2:*:*)
1048
1027
    i*86:syllable:*:*)
1049
1028
        echo ${UNAME_MACHINE}-pc-syllable
1050
1029
        exit ;;
1051
 
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
 
1030
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1052
1031
        echo i386-unknown-lynxos${UNAME_RELEASE}
1053
1032
        exit ;;
1054
1033
    i*86:*DOS:*:*)
1063
1042
        fi
1064
1043
        exit ;;
1065
1044
    i*86:*:5:[678]*)
1066
 
        # UnixWare 7.x, OpenUNIX and OpenServer 6.
 
1045
        # UnixWare 7.x, OpenUNIX and OpenServer 6.
1067
1046
        case `/bin/uname -X | grep "^Machine"` in
1068
1047
            *486*)           UNAME_MACHINE=i486 ;;
1069
1048
            *Pentium)        UNAME_MACHINE=i586 ;;
1091
1070
        exit ;;
1092
1071
    pc:*:*:*)
1093
1072
        # Left here for compatibility:
1094
 
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1095
 
        # the processor, so we play safe by assuming i386.
1096
 
        echo i386-pc-msdosdjgpp
1097
 
        exit ;;
 
1073
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
 
1074
        # the processor, so we play safe by assuming i586.
 
1075
        # Note: whatever this is, it MUST be the same as what config.sub
 
1076
        # prints for the "djgpp" host, or else GDB configury will decide that
 
1077
        # this is a cross-build.
 
1078
        echo i586-pc-msdosdjgpp
 
1079
        exit ;;
1098
1080
    Intel:Mach:3*:*)
1099
1081
        echo i386-pc-mach3
1100
1082
        exit ;;
1129
1111
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1130
1112
          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1131
1113
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1132
 
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1133
 
          && { echo i486-ncr-sysv4; exit; } ;;
 
1114
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1115
          && { echo i486-ncr-sysv4; exit; } ;;
 
1116
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
 
1117
        OS_REL='.3'
 
1118
        test -r /etc/.relid \
 
1119
            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
 
1120
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1121
            && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
 
1122
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
 
1123
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
 
1124
        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
 
1125
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1134
1126
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1135
1127
        echo m68k-unknown-lynxos${UNAME_RELEASE}
1136
1128
        exit ;;
1143
1135
    rs6000:LynxOS:2.*:*)
1144
1136
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
1145
1137
        exit ;;
1146
 
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
 
1138
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1147
1139
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
1148
1140
        exit ;;
1149
1141
    SM[BE]S:UNIX_SV:*:*)
1163
1155
                echo ns32k-sni-sysv
1164
1156
        fi
1165
1157
        exit ;;
1166
 
    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1167
 
                      # says <Richard.M.Bartel@ccMail.Census.GOV>
1168
 
        echo i586-unisys-sysv4
1169
 
        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 ;;
1170
1162
    *:UNIX_System_V:4*:FTX*)
1171
1163
        # From Gerald Hewes <hewes@openmarket.com>.
1172
1164
        # How about differentiating between stratus architectures? -djm
1192
1184
        exit ;;
1193
1185
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1194
1186
        if [ -d /usr/nec ]; then
1195
 
                echo mips-nec-sysv${UNAME_RELEASE}
 
1187
                echo mips-nec-sysv${UNAME_RELEASE}
1196
1188
        else
1197
 
                echo mips-unknown-sysv${UNAME_RELEASE}
 
1189
                echo mips-unknown-sysv${UNAME_RELEASE}
1198
1190
        fi
1199
 
        exit ;;
 
1191
        exit ;;
1200
1192
    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
1201
1193
        echo powerpc-be-beos
1202
1194
        exit ;;
1206
1198
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
1207
1199
        echo i586-pc-beos
1208
1200
        exit ;;
 
1201
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
 
1202
        echo i586-pc-haiku
 
1203
        exit ;;
1209
1204
    SX-4:SUPER-UX:*:*)
1210
1205
        echo sx4-nec-superux${UNAME_RELEASE}
1211
1206
        exit ;;
1215
1210
    SX-6:SUPER-UX:*:*)
1216
1211
        echo sx6-nec-superux${UNAME_RELEASE}
1217
1212
        exit ;;
 
1213
    SX-7:SUPER-UX:*:*)
 
1214
        echo sx7-nec-superux${UNAME_RELEASE}
 
1215
        exit ;;
 
1216
    SX-8:SUPER-UX:*:*)
 
1217
        echo sx8-nec-superux${UNAME_RELEASE}
 
1218
        exit ;;
 
1219
    SX-8R:SUPER-UX:*:*)
 
1220
        echo sx8r-nec-superux${UNAME_RELEASE}
 
1221
        exit ;;
1218
1222
    Power*:Rhapsody:*:*)
1219
1223
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1220
1224
        exit ;;
1224
1228
    *:Darwin:*:*)
1225
1229
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1226
1230
        case $UNAME_PROCESSOR in
 
1231
            i386)
 
1232
                eval $set_cc_for_build
 
1233
                if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
1234
                  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
 
1235
                      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
1236
                      grep IS_64BIT_ARCH >/dev/null
 
1237
                  then
 
1238
                      UNAME_PROCESSOR="x86_64"
 
1239
                  fi
 
1240
                fi ;;
1227
1241
            unknown) UNAME_PROCESSOR=powerpc ;;
1228
1242
        esac
1229
1243
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1239
1253
    *:QNX:*:4*)
1240
1254
        echo i386-pc-qnx
1241
1255
        exit ;;
1242
 
    NSE-?:NONSTOP_KERNEL:*:*)
 
1256
    NEO-?:NONSTOP_KERNEL:*:*)
 
1257
        echo neo-tandem-nsk${UNAME_RELEASE}
 
1258
        exit ;;
 
1259
    NSE-*:NONSTOP_KERNEL:*:*)
1243
1260
        echo nse-tandem-nsk${UNAME_RELEASE}
1244
1261
        exit ;;
1245
1262
    NSR-?:NONSTOP_KERNEL:*:*)
1284
1301
        echo pdp10-unknown-its
1285
1302
        exit ;;
1286
1303
    SEI:*:*:SEIUX)
1287
 
        echo mips-sei-seiux${UNAME_RELEASE}
 
1304
        echo mips-sei-seiux${UNAME_RELEASE}
1288
1305
        exit ;;
1289
1306
    *:DragonFly:*:*)
1290
1307
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1291
1308
        exit ;;
1292
1309
    *:*VMS:*:*)
1293
 
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
 
1310
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
1294
1311
        case "${UNAME_MACHINE}" in
1295
1312
            A*) echo alpha-dec-vms ; exit ;;
1296
1313
            I*) echo ia64-dec-vms ; exit ;;
1305
1322
    i*86:rdos:*:*)
1306
1323
        echo ${UNAME_MACHINE}-pc-rdos
1307
1324
        exit ;;
 
1325
    i*86:AROS:*:*)
 
1326
        echo ${UNAME_MACHINE}-pc-aros
 
1327
        exit ;;
 
1328
    x86_64:VMkernel:*:*)
 
1329
        echo ${UNAME_MACHINE}-unknown-esx
 
1330
        exit ;;
1308
1331
esac
1309
1332
 
1310
1333
#echo '(No uname command or uname output not recognized.)' 1>&2
1327
1350
#include <sys/param.h>
1328
1351
  printf ("m68k-sony-newsos%s\n",
1329
1352
#ifdef NEWSOS4
1330
 
          "4"
 
1353
        "4"
1331
1354
#else
1332
 
          ""
 
1355
        ""
1333
1356
#endif
1334
 
         ); exit (0);
 
1357
        ); exit (0);
1335
1358
#endif
1336
1359
#endif
1337
1360
 
1465
1488
the operating system you are using. It is advised that you
1466
1489
download the most up to date version of the config scripts from
1467
1490
 
1468
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
 
1491
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1469
1492
and
1470
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
 
1493
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1471
1494
 
1472
1495
If the version you run ($0) is already up to date, please
1473
1496
send the following data and any information you think might be