~ubuntu-branches/ubuntu/saucy/cpptest/saucy

« back to all changes in this revision

Viewing changes to config/config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-05-12 20:21:46 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100512202146-vwt55nfazbor3xvb
Tags: 1.1.1-0ubuntu1
* New upstream release.
* Switch to debhelper 7.
* Switch to debian 3.0 (quilt) format.
* Update debian/copyright.
* Refresh patches.
* Bump Standards.

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
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2007-01-15'
 
7
timestamp='2009-12-30'
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
27
27
# the same distribution terms that you use for the rest of that program.
28
28
 
29
29
 
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.
 
30
# Originally written by Per Bothner.  Please send patches (context
 
31
# diff format) to <config-patches@gnu.org> and include a ChangeLog
 
32
# entry.
33
33
#
34
34
# This script attempts to guess a canonical system name similar to
35
35
# config.sub.  If it succeeds, it prints the system name on stdout, and
36
36
# exits with 0.  Otherwise, it exits with 1.
37
37
#
38
 
# The plan is that this can be called by configure scripts if you
39
 
# don't specify an explicit build system type.
 
38
# You can get the latest version of this script from:
 
39
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
40
40
 
41
41
me=`echo "$0" | sed -e 's,.*/,,'`
42
42
 
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, 2002, 2003, 2004, 2005
60
 
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 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
 
 
143
case "${UNAME_SYSTEM}" in
 
144
Linux|GNU/*)
 
145
        eval $set_cc_for_build
 
146
        cat <<-EOF > $dummy.c
 
147
        #include <features.h>
 
148
        #ifdef __UCLIBC__
 
149
        # ifdef __UCLIBC_CONFIG_VERSION__
 
150
        LIBC=uclibc __UCLIBC_CONFIG_VERSION__
 
151
        # else
 
152
        LIBC=uclibc
 
153
        # endif
 
154
        #else
 
155
        # ifdef __dietlibc__
 
156
        LIBC=dietlibc
 
157
        # else
 
158
        LIBC=gnu
 
159
        # endif
 
160
        #endif
 
161
        EOF
 
162
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
 
163
        ;;
 
164
esac
 
165
 
142
166
# Note: order is significant - the case branches are not exclusive.
143
167
 
144
168
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
170
194
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
171
195
                eval $set_cc_for_build
172
196
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
173
 
                        | grep __ELF__ >/dev/null
 
197
                        | grep -q __ELF__
174
198
                then
175
199
                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
176
200
                    # Return netbsd for either.  FIX?
324
348
        case `/usr/bin/uname -p` in
325
349
            sparc) echo sparc-icl-nx7; exit ;;
326
350
        esac ;;
 
351
    s390x:SunOS:*:*)
 
352
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
353
        exit ;;
327
354
    sun4H:SunOS:5.*:*)
328
355
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
329
356
        exit ;;
330
357
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
331
358
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332
359
        exit ;;
333
 
    i86pc:SunOS:5.*:*)
334
 
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
360
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
 
361
        echo i386-pc-auroraux${UNAME_RELEASE}
 
362
        exit ;;
 
363
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
 
364
        eval $set_cc_for_build
 
365
        SUN_ARCH="i386"
 
366
        # If there is a compiler, see if it is configured for 64-bit objects.
 
367
        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
 
368
        # This test works for both compilers.
 
369
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
370
            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
 
371
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
372
                grep IS_64BIT_ARCH >/dev/null
 
373
            then
 
374
                SUN_ARCH="x86_64"
 
375
            fi
 
376
        fi
 
377
        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335
378
        exit ;;
336
379
    sun4*:SunOS:6*:*)
337
380
        # According to config.sub, this is the proper way to canonicalize
532
575
                echo rs6000-ibm-aix3.2
533
576
        fi
534
577
        exit ;;
535
 
    *:AIX:*:[45])
 
578
    *:AIX:*:[456])
536
579
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
537
580
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
538
581
                IBM_ARCH=rs6000
640
683
            # => hppa64-hp-hpux11.23
641
684
 
642
685
            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
643
 
                grep __LP64__ >/dev/null
 
686
                grep -q __LP64__
644
687
            then
645
688
                HP_ARCH="hppa2.0w"
646
689
            else
791
834
    i*:PW*:*)
792
835
        echo ${UNAME_MACHINE}-pc-pw32
793
836
        exit ;;
794
 
    x86:Interix*:[3456]*)
795
 
        echo i586-pc-interix${UNAME_RELEASE}
796
 
        exit ;;
797
 
    EM64T:Interix*:[3456]* | authenticamd:Interix*:[3456]*)
798
 
        echo x86_64-unknown-interix${UNAME_RELEASE}
799
 
        exit ;;
 
837
    *:Interix*:*)
 
838
        case ${UNAME_MACHINE} in
 
839
            x86)
 
840
                echo i586-pc-interix${UNAME_RELEASE}
 
841
                exit ;;
 
842
            authenticamd | genuineintel | EM64T)
 
843
                echo x86_64-unknown-interix${UNAME_RELEASE}
 
844
                exit ;;
 
845
            IA64)
 
846
                echo ia64-unknown-interix${UNAME_RELEASE}
 
847
                exit ;;
 
848
        esac ;;
800
849
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
801
850
        echo i${UNAME_MACHINE}-pc-mks
802
851
        exit ;;
 
852
    8664:Windows_NT:*)
 
853
        echo x86_64-pc-mks
 
854
        exit ;;
803
855
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
804
856
        # How do we know it's Interix rather than the generic POSIX subsystem?
805
857
        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
820
872
        exit ;;
821
873
    *:GNU:*:*)
822
874
        # the GNU system
823
 
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
 
875
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
824
876
        exit ;;
825
877
    *:GNU/*:*:*)
826
878
        # other systems with GNU libc and userland
827
 
        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
 
879
        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
828
880
        exit ;;
829
881
    i*86:Minix:*:*)
830
882
        echo ${UNAME_MACHINE}-pc-minix
831
883
        exit ;;
832
 
    arm*:Linux:*:*)
833
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
834
 
        exit ;;
835
 
    avr32*:Linux:*:*)
836
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
837
 
        exit ;;
838
 
    cris:Linux:*:*)
839
 
        echo cris-axis-linux-gnu
840
 
        exit ;;
841
 
    crisv32:Linux:*:*)
842
 
        echo crisv32-axis-linux-gnu
843
 
        exit ;;
844
 
    frv:Linux:*:*)
845
 
        echo frv-unknown-linux-gnu
846
 
        exit ;;
847
 
    ia64:Linux:*:*)
848
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
849
 
        exit ;;
850
 
    m32r*:Linux:*:*)
851
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
852
 
        exit ;;
853
 
    m68*:Linux:*:*)
854
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
855
 
        exit ;;
856
 
    mips:Linux:*:*)
857
 
        eval $set_cc_for_build
858
 
        sed 's/^        //' << EOF >$dummy.c
859
 
        #undef CPU
860
 
        #undef mips
861
 
        #undef mipsel
862
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
863
 
        CPU=mipsel
864
 
        #else
865
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
866
 
        CPU=mips
867
 
        #else
868
 
        CPU=
869
 
        #endif
870
 
        #endif
871
 
EOF
872
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
873
 
            /^CPU/{
874
 
                s: ::g
875
 
                p
876
 
            }'`"
877
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
878
 
        ;;
879
 
    mips64:Linux:*:*)
880
 
        eval $set_cc_for_build
881
 
        sed 's/^        //' << EOF >$dummy.c
882
 
        #undef CPU
883
 
        #undef mips64
884
 
        #undef mips64el
885
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
886
 
        CPU=mips64el
887
 
        #else
888
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
889
 
        CPU=mips64
890
 
        #else
891
 
        CPU=
892
 
        #endif
893
 
        #endif
894
 
EOF
895
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
896
 
            /^CPU/{
897
 
                s: ::g
898
 
                p
899
 
            }'`"
900
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
901
 
        ;;
902
 
    or32:Linux:*:*)
903
 
        echo or32-unknown-linux-gnu
904
 
        exit ;;
905
 
    ppc:Linux:*:*)
906
 
        echo powerpc-unknown-linux-gnu
907
 
        exit ;;
908
 
    ppc64:Linux:*:*)
909
 
        echo powerpc64-unknown-linux-gnu
910
 
        exit ;;
911
884
    alpha:Linux:*:*)
912
885
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
913
886
          EV5)   UNAME_MACHINE=alphaev5 ;;
918
891
          EV67)  UNAME_MACHINE=alphaev67 ;;
919
892
          EV68*) UNAME_MACHINE=alphaev68 ;;
920
893
        esac
921
 
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
922
 
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
923
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
 
894
        objdump --private-headers /bin/sh | grep -q ld.so.1
 
895
        if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
 
896
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
897
        exit ;;
 
898
    arm*:Linux:*:*)
 
899
        eval $set_cc_for_build
 
900
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
 
901
            | grep -q __ARM_EABI__
 
902
        then
 
903
            echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
904
        else
 
905
            echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
 
906
        fi
 
907
        exit ;;
 
908
    avr32*:Linux:*:*)
 
909
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
910
        exit ;;
 
911
    cris:Linux:*:*)
 
912
        echo cris-axis-linux-${LIBC}
 
913
        exit ;;
 
914
    crisv32:Linux:*:*)
 
915
        echo crisv32-axis-linux-${LIBC}
 
916
        exit ;;
 
917
    frv:Linux:*:*)
 
918
        echo frv-unknown-linux-${LIBC}
 
919
        exit ;;
 
920
    i*86:Linux:*:*)
 
921
        echo ${UNAME_MACHINE}-pc-linux-${LIBC}
 
922
        exit ;;
 
923
    ia64:Linux:*:*)
 
924
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
925
        exit ;;
 
926
    m32r*:Linux:*:*)
 
927
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
928
        exit ;;
 
929
    m68*:Linux:*:*)
 
930
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
931
        exit ;;
 
932
    mips:Linux:*:* | mips64:Linux:*:*)
 
933
        eval $set_cc_for_build
 
934
        sed 's/^        //' << EOF >$dummy.c
 
935
        #undef CPU
 
936
        #undef ${UNAME_MACHINE}
 
937
        #undef ${UNAME_MACHINE}el
 
938
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
 
939
        CPU=${UNAME_MACHINE}el
 
940
        #else
 
941
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
 
942
        CPU=${UNAME_MACHINE}
 
943
        #else
 
944
        CPU=
 
945
        #endif
 
946
        #endif
 
947
EOF
 
948
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
 
949
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
 
950
        ;;
 
951
    or32:Linux:*:*)
 
952
        echo or32-unknown-linux-${LIBC}
 
953
        exit ;;
 
954
    padre:Linux:*:*)
 
955
        echo sparc-unknown-linux-${LIBC}
 
956
        exit ;;
 
957
    parisc64:Linux:*:* | hppa64:Linux:*:*)
 
958
        echo hppa64-unknown-linux-${LIBC}
924
959
        exit ;;
925
960
    parisc:Linux:*:* | hppa:Linux:*:*)
926
961
        # Look for CPU level
927
962
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
928
 
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
929
 
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
930
 
          *)    echo hppa-unknown-linux-gnu ;;
 
963
          PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
 
964
          PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
 
965
          *)    echo hppa-unknown-linux-${LIBC} ;;
931
966
        esac
932
967
        exit ;;
933
 
    parisc64:Linux:*:* | hppa64:Linux:*:*)
934
 
        echo hppa64-unknown-linux-gnu
 
968
    ppc64:Linux:*:*)
 
969
        echo powerpc64-unknown-linux-${LIBC}
 
970
        exit ;;
 
971
    ppc:Linux:*:*)
 
972
        echo powerpc-unknown-linux-${LIBC}
935
973
        exit ;;
936
974
    s390:Linux:*:* | s390x:Linux:*:*)
937
975
        echo ${UNAME_MACHINE}-ibm-linux
938
976
        exit ;;
939
977
    sh64*:Linux:*:*)
940
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
978
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
941
979
        exit ;;
942
980
    sh*:Linux:*:*)
943
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
981
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
944
982
        exit ;;
945
983
    sparc:Linux:*:* | sparc64:Linux:*:*)
946
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
984
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
947
985
        exit ;;
948
986
    vax:Linux:*:*)
949
 
        echo ${UNAME_MACHINE}-dec-linux-gnu
 
987
        echo ${UNAME_MACHINE}-dec-linux-${LIBC}
950
988
        exit ;;
951
989
    x86_64:Linux:*:*)
952
 
        echo x86_64-unknown-linux-gnu
953
 
        exit ;;
954
 
    xtensa:Linux:*:*)
955
 
        echo xtensa-unknown-linux-gnu
956
 
        exit ;;
957
 
    i*86:Linux:*:*)
958
 
        # The BFD linker knows what the default object file format is, so
959
 
        # first see if it will tell us. cd to the root directory to prevent
960
 
        # problems with other programs or directories called `ld' in the path.
961
 
        # Set LC_ALL=C to ensure ld outputs messages in English.
962
 
        ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
963
 
                         | sed -ne '/supported targets:/!d
964
 
                                    s/[         ][      ]*/ /g
965
 
                                    s/.*supported targets: *//
966
 
                                    s/ .*//
967
 
                                    p'`
968
 
        case "$ld_supported_targets" in
969
 
          elf32-i386)
970
 
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
971
 
                ;;
972
 
          a.out-i386-linux)
973
 
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
974
 
                exit ;;
975
 
          coff-i386)
976
 
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
977
 
                exit ;;
978
 
          "")
979
 
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
980
 
                # one that does not give us useful --help.
981
 
                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
982
 
                exit ;;
983
 
        esac
984
 
        # Determine whether the default compiler is a.out or elf
985
 
        eval $set_cc_for_build
986
 
        sed 's/^        //' << EOF >$dummy.c
987
 
        #include <features.h>
988
 
        #ifdef __ELF__
989
 
        # ifdef __GLIBC__
990
 
        #  if __GLIBC__ >= 2
991
 
        LIBC=gnu
992
 
        #  else
993
 
        LIBC=gnulibc1
994
 
        #  endif
995
 
        # else
996
 
        LIBC=gnulibc1
997
 
        # endif
998
 
        #else
999
 
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1000
 
        LIBC=gnu
1001
 
        #else
1002
 
        LIBC=gnuaout
1003
 
        #endif
1004
 
        #endif
1005
 
        #ifdef __dietlibc__
1006
 
        LIBC=dietlibc
1007
 
        #endif
1008
 
EOF
1009
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1010
 
            /^LIBC/{
1011
 
                s: ::g
1012
 
                p
1013
 
            }'`"
1014
 
        test x"${LIBC}" != x && {
1015
 
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1016
 
                exit
1017
 
        }
1018
 
        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1019
 
        ;;
 
990
        echo x86_64-unknown-linux-${LIBC}
 
991
        exit ;;
 
992
    xtensa*:Linux:*:*)
 
993
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
994
        exit ;;
1020
995
    i*86:DYNIX/ptx:4*:*)
1021
996
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1022
997
        # earlier versions are messed up and put the nodename in both
1045
1020
    i*86:syllable:*:*)
1046
1021
        echo ${UNAME_MACHINE}-pc-syllable
1047
1022
        exit ;;
1048
 
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
 
1023
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1049
1024
        echo i386-unknown-lynxos${UNAME_RELEASE}
1050
1025
        exit ;;
1051
1026
    i*86:*DOS:*:*)
1089
1064
    pc:*:*:*)
1090
1065
        # Left here for compatibility:
1091
1066
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1092
 
        # the processor, so we play safe by assuming i386.
1093
 
        echo i386-pc-msdosdjgpp
 
1067
        # the processor, so we play safe by assuming i586.
 
1068
        # Note: whatever this is, it MUST be the same as what config.sub
 
1069
        # prints for the "djgpp" host, or else GDB configury will decide that
 
1070
        # this is a cross-build.
 
1071
        echo i586-pc-msdosdjgpp
1094
1072
        exit ;;
1095
1073
    Intel:Mach:3*:*)
1096
1074
        echo i386-pc-mach3
1128
1106
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1129
1107
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1130
1108
          && { echo i486-ncr-sysv4; exit; } ;;
 
1109
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
 
1110
        OS_REL='.3'
 
1111
        test -r /etc/.relid \
 
1112
            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
 
1113
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1114
            && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
 
1115
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
 
1116
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
 
1117
        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
 
1118
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1131
1119
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1132
1120
        echo m68k-unknown-lynxos${UNAME_RELEASE}
1133
1121
        exit ;;
1140
1128
    rs6000:LynxOS:2.*:*)
1141
1129
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
1142
1130
        exit ;;
1143
 
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
 
1131
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1144
1132
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
1145
1133
        exit ;;
1146
1134
    SM[BE]S:UNIX_SV:*:*)
1203
1191
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
1204
1192
        echo i586-pc-beos
1205
1193
        exit ;;
 
1194
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
 
1195
        echo i586-pc-haiku
 
1196
        exit ;;
1206
1197
    SX-4:SUPER-UX:*:*)
1207
1198
        echo sx4-nec-superux${UNAME_RELEASE}
1208
1199
        exit ;;
1230
1221
    *:Darwin:*:*)
1231
1222
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1232
1223
        case $UNAME_PROCESSOR in
 
1224
            i386)
 
1225
                eval $set_cc_for_build
 
1226
                if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
1227
                  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
 
1228
                      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
1229
                      grep IS_64BIT_ARCH >/dev/null
 
1230
                  then
 
1231
                      UNAME_PROCESSOR="x86_64"
 
1232
                  fi
 
1233
                fi ;;
1233
1234
            unknown) UNAME_PROCESSOR=powerpc ;;
1234
1235
        esac
1235
1236
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1311
1312
    i*86:rdos:*:*)
1312
1313
        echo ${UNAME_MACHINE}-pc-rdos
1313
1314
        exit ;;
 
1315
    i*86:AROS:*:*)
 
1316
        echo ${UNAME_MACHINE}-pc-aros
 
1317
        exit ;;
1314
1318
esac
1315
1319
 
1316
1320
#echo '(No uname command or uname output not recognized.)' 1>&2
1471
1475
the operating system you are using. It is advised that you
1472
1476
download the most up to date version of the config scripts from
1473
1477
 
1474
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
 
1478
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1475
1479
and
1476
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
 
1480
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1477
1481
 
1478
1482
If the version you run ($0) is already up to date, please
1479
1483
send the following data and any information you think might be