~ubuntu-branches/ubuntu/lucid/gnome-terminal/lucid-updates

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-09-07 15:07:22 UTC
  • mfrom: (1.4.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100907150722-e7cisxidt9h4rqlc
Tags: 2.30.2-0ubuntu1
* Update to stable upstream version 2.30.2, fixes:
  - LP: #526437 - Gtk-CRITICAL **: gtk_accel_map_unlock_path: assertion 
    `entry != NULL && entry->lock_count > 0' failed
  - LP: #534225 - setup_http_proxy_env constructs no_proxy incorrectly
* Revert commit 8dfe341 - bump VTE req to 0.24.0. This was just bumped to
  the current stable version of VTE for 2.30.0, but it's not actually
  required (and Lucid only has 0.23.5 anyway)
  - add debian/patches/21_dont_bump_vte_version.patch
* Refresh patches
  - update debian/patches/01_lpi.patch
  - update debian/patches/99_autoreconf.patch

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
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2009-11-20'
 
7
timestamp='2008-01-23'
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.  Please send patches (context
31
 
# diff format) to <config-patches@gnu.org> and include a ChangeLog
32
 
# entry.
 
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.
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
 
# 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
 
38
# The plan is that this can be called by configure scripts if you
 
39
# don't specify an explicit build system type.
40
40
 
41
41
me=`echo "$0" | sed -e 's,.*/,,'`
42
42
 
170
170
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
171
171
                eval $set_cc_for_build
172
172
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
173
 
                        | grep -q __ELF__
 
173
                        | grep __ELF__ >/dev/null
174
174
                then
175
175
                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
176
176
                    # Return netbsd for either.  FIX?
324
324
        case `/usr/bin/uname -p` in
325
325
            sparc) echo sparc-icl-nx7; exit ;;
326
326
        esac ;;
327
 
    s390x:SunOS:*:*)
328
 
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
329
 
        exit ;;
330
327
    sun4H:SunOS:5.*:*)
331
328
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332
329
        exit ;;
333
330
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
334
331
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335
332
        exit ;;
336
 
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
337
 
        echo i386-pc-auroraux${UNAME_RELEASE}
338
 
        exit ;;
339
333
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
340
 
        eval $set_cc_for_build
341
 
        SUN_ARCH="i386"
342
 
        # If there is a compiler, see if it is configured for 64-bit objects.
343
 
        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
344
 
        # This test works for both compilers.
345
 
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
346
 
            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
347
 
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
348
 
                grep IS_64BIT_ARCH >/dev/null
349
 
            then
350
 
                SUN_ARCH="x86_64"
351
 
            fi
352
 
        fi
353
 
        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
334
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
354
335
        exit ;;
355
336
    sun4*:SunOS:6*:*)
356
337
        # According to config.sub, this is the proper way to canonicalize
659
640
            # => hppa64-hp-hpux11.23
660
641
 
661
642
            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
662
 
                grep -q __LP64__
 
643
                grep __LP64__ >/dev/null
663
644
            then
664
645
                HP_ARCH="hppa2.0w"
665
646
            else
810
791
    i*:PW*:*)
811
792
        echo ${UNAME_MACHINE}-pc-pw32
812
793
        exit ;;
813
 
    *:Interix*:*)
 
794
    *:Interix*:[3456]*)
814
795
        case ${UNAME_MACHINE} in
815
796
            x86)
816
797
                echo i586-pc-interix${UNAME_RELEASE}
817
798
                exit ;;
818
 
            authenticamd | genuineintel | EM64T)
 
799
            EM64T | authenticamd)
819
800
                echo x86_64-unknown-interix${UNAME_RELEASE}
820
801
                exit ;;
821
802
            IA64)
825
806
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
826
807
        echo i${UNAME_MACHINE}-pc-mks
827
808
        exit ;;
828
 
    8664:Windows_NT:*)
829
 
        echo x86_64-pc-mks
830
 
        exit ;;
831
809
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
832
810
        # How do we know it's Interix rather than the generic POSIX subsystem?
833
811
        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
857
835
    i*86:Minix:*:*)
858
836
        echo ${UNAME_MACHINE}-pc-minix
859
837
        exit ;;
860
 
    alpha:Linux:*:*)
861
 
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
862
 
          EV5)   UNAME_MACHINE=alphaev5 ;;
863
 
          EV56)  UNAME_MACHINE=alphaev56 ;;
864
 
          PCA56) UNAME_MACHINE=alphapca56 ;;
865
 
          PCA57) UNAME_MACHINE=alphapca56 ;;
866
 
          EV6)   UNAME_MACHINE=alphaev6 ;;
867
 
          EV67)  UNAME_MACHINE=alphaev67 ;;
868
 
          EV68*) UNAME_MACHINE=alphaev68 ;;
869
 
        esac
870
 
        objdump --private-headers /bin/sh | grep -q ld.so.1
871
 
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
872
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
873
 
        exit ;;
874
838
    arm*:Linux:*:*)
875
839
        eval $set_cc_for_build
876
840
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
893
857
    frv:Linux:*:*)
894
858
        echo frv-unknown-linux-gnu
895
859
        exit ;;
896
 
    i*86:Linux:*:*)
897
 
        LIBC=gnu
898
 
        eval $set_cc_for_build
899
 
        sed 's/^        //' << EOF >$dummy.c
900
 
        #ifdef __dietlibc__
901
 
        LIBC=dietlibc
902
 
        #endif
903
 
EOF
904
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
905
 
        echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
906
 
        exit ;;
907
860
    ia64:Linux:*:*)
908
861
        echo ${UNAME_MACHINE}-unknown-linux-gnu
909
862
        exit ;;
913
866
    m68*:Linux:*:*)
914
867
        echo ${UNAME_MACHINE}-unknown-linux-gnu
915
868
        exit ;;
916
 
    mips:Linux:*:* | mips64:Linux:*:*)
917
 
        eval $set_cc_for_build
918
 
        sed 's/^        //' << EOF >$dummy.c
919
 
        #undef CPU
920
 
        #undef ${UNAME_MACHINE}
921
 
        #undef ${UNAME_MACHINE}el
922
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
923
 
        CPU=${UNAME_MACHINE}el
924
 
        #else
925
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
926
 
        CPU=${UNAME_MACHINE}
927
 
        #else
928
 
        CPU=
929
 
        #endif
930
 
        #endif
931
 
EOF
932
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
 
869
    mips:Linux:*:*)
 
870
        eval $set_cc_for_build
 
871
        sed 's/^        //' << EOF >$dummy.c
 
872
        #undef CPU
 
873
        #undef mips
 
874
        #undef mipsel
 
875
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
 
876
        CPU=mipsel
 
877
        #else
 
878
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
 
879
        CPU=mips
 
880
        #else
 
881
        CPU=
 
882
        #endif
 
883
        #endif
 
884
EOF
 
885
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
886
            /^CPU/{
 
887
                s: ::g
 
888
                p
 
889
            }'`"
 
890
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
 
891
        ;;
 
892
    mips64:Linux:*:*)
 
893
        eval $set_cc_for_build
 
894
        sed 's/^        //' << EOF >$dummy.c
 
895
        #undef CPU
 
896
        #undef mips64
 
897
        #undef mips64el
 
898
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
 
899
        CPU=mips64el
 
900
        #else
 
901
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
 
902
        CPU=mips64
 
903
        #else
 
904
        CPU=
 
905
        #endif
 
906
        #endif
 
907
EOF
 
908
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
909
            /^CPU/{
 
910
                s: ::g
 
911
                p
 
912
            }'`"
933
913
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
934
914
        ;;
935
915
    or32:Linux:*:*)
936
916
        echo or32-unknown-linux-gnu
937
917
        exit ;;
938
 
    padre:Linux:*:*)
939
 
        echo sparc-unknown-linux-gnu
940
 
        exit ;;
941
 
    parisc64:Linux:*:* | hppa64:Linux:*:*)
942
 
        echo hppa64-unknown-linux-gnu
 
918
    ppc:Linux:*:*)
 
919
        echo powerpc-unknown-linux-gnu
 
920
        exit ;;
 
921
    ppc64:Linux:*:*)
 
922
        echo powerpc64-unknown-linux-gnu
 
923
        exit ;;
 
924
    alpha:Linux:*:*)
 
925
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
 
926
          EV5)   UNAME_MACHINE=alphaev5 ;;
 
927
          EV56)  UNAME_MACHINE=alphaev56 ;;
 
928
          PCA56) UNAME_MACHINE=alphapca56 ;;
 
929
          PCA57) UNAME_MACHINE=alphapca56 ;;
 
930
          EV6)   UNAME_MACHINE=alphaev6 ;;
 
931
          EV67)  UNAME_MACHINE=alphaev67 ;;
 
932
          EV68*) UNAME_MACHINE=alphaev68 ;;
 
933
        esac
 
934
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
 
935
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
 
936
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
943
937
        exit ;;
944
938
    parisc:Linux:*:* | hppa:Linux:*:*)
945
939
        # Look for CPU level
949
943
          *)    echo hppa-unknown-linux-gnu ;;
950
944
        esac
951
945
        exit ;;
952
 
    ppc64:Linux:*:*)
953
 
        echo powerpc64-unknown-linux-gnu
954
 
        exit ;;
955
 
    ppc:Linux:*:*)
956
 
        echo powerpc-unknown-linux-gnu
 
946
    parisc64:Linux:*:* | hppa64:Linux:*:*)
 
947
        echo hppa64-unknown-linux-gnu
957
948
        exit ;;
958
949
    s390:Linux:*:* | s390x:Linux:*:*)
959
950
        echo ${UNAME_MACHINE}-ibm-linux
976
967
    xtensa*:Linux:*:*)
977
968
        echo ${UNAME_MACHINE}-unknown-linux-gnu
978
969
        exit ;;
 
970
    i*86:Linux:*:*)
 
971
        # The BFD linker knows what the default object file format is, so
 
972
        # first see if it will tell us. cd to the root directory to prevent
 
973
        # problems with other programs or directories called `ld' in the path.
 
974
        # Set LC_ALL=C to ensure ld outputs messages in English.
 
975
        ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
 
976
                         | sed -ne '/supported targets:/!d
 
977
                                    s/[         ][      ]*/ /g
 
978
                                    s/.*supported targets: *//
 
979
                                    s/ .*//
 
980
                                    p'`
 
981
        case "$ld_supported_targets" in
 
982
          elf32-i386)
 
983
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
 
984
                ;;
 
985
          a.out-i386-linux)
 
986
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
 
987
                exit ;;
 
988
          coff-i386)
 
989
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
 
990
                exit ;;
 
991
          "")
 
992
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
 
993
                # one that does not give us useful --help.
 
994
                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
 
995
                exit ;;
 
996
        esac
 
997
        # Determine whether the default compiler is a.out or elf
 
998
        eval $set_cc_for_build
 
999
        sed 's/^        //' << EOF >$dummy.c
 
1000
        #include <features.h>
 
1001
        #ifdef __ELF__
 
1002
        # ifdef __GLIBC__
 
1003
        #  if __GLIBC__ >= 2
 
1004
        LIBC=gnu
 
1005
        #  else
 
1006
        LIBC=gnulibc1
 
1007
        #  endif
 
1008
        # else
 
1009
        LIBC=gnulibc1
 
1010
        # endif
 
1011
        #else
 
1012
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
 
1013
        LIBC=gnu
 
1014
        #else
 
1015
        LIBC=gnuaout
 
1016
        #endif
 
1017
        #endif
 
1018
        #ifdef __dietlibc__
 
1019
        LIBC=dietlibc
 
1020
        #endif
 
1021
EOF
 
1022
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
1023
            /^LIBC/{
 
1024
                s: ::g
 
1025
                p
 
1026
            }'`"
 
1027
        test x"${LIBC}" != x && {
 
1028
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
 
1029
                exit
 
1030
        }
 
1031
        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
 
1032
        ;;
979
1033
    i*86:DYNIX/ptx:4*:*)
980
1034
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
981
1035
        # earlier versions are messed up and put the nodename in both
1004
1058
    i*86:syllable:*:*)
1005
1059
        echo ${UNAME_MACHINE}-pc-syllable
1006
1060
        exit ;;
1007
 
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
 
1061
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1008
1062
        echo i386-unknown-lynxos${UNAME_RELEASE}
1009
1063
        exit ;;
1010
1064
    i*86:*DOS:*:*)
1048
1102
    pc:*:*:*)
1049
1103
        # Left here for compatibility:
1050
1104
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1051
 
        # the processor, so we play safe by assuming i586.
1052
 
        # Note: whatever this is, it MUST be the same as what config.sub
1053
 
        # prints for the "djgpp" host, or else GDB configury will decide that
1054
 
        # this is a cross-build.
1055
 
        echo i586-pc-msdosdjgpp
 
1105
        # the processor, so we play safe by assuming i386.
 
1106
        echo i386-pc-msdosdjgpp
1056
1107
        exit ;;
1057
1108
    Intel:Mach:3*:*)
1058
1109
        echo i386-pc-mach3
1090
1141
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1091
1142
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1092
1143
          && { echo i486-ncr-sysv4; exit; } ;;
1093
 
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1094
 
        OS_REL='.3'
1095
 
        test -r /etc/.relid \
1096
 
            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1097
 
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1098
 
            && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1099
 
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1100
 
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1101
 
        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1102
 
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1103
1144
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1104
1145
        echo m68k-unknown-lynxos${UNAME_RELEASE}
1105
1146
        exit ;;
1112
1153
    rs6000:LynxOS:2.*:*)
1113
1154
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
1114
1155
        exit ;;
1115
 
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
 
1156
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1116
1157
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
1117
1158
        exit ;;
1118
1159
    SM[BE]S:UNIX_SV:*:*)
1175
1216
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
1176
1217
        echo i586-pc-beos
1177
1218
        exit ;;
1178
 
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
1179
 
        echo i586-pc-haiku
1180
 
        exit ;;
1181
1219
    SX-4:SUPER-UX:*:*)
1182
1220
        echo sx4-nec-superux${UNAME_RELEASE}
1183
1221
        exit ;;
1205
1243
    *:Darwin:*:*)
1206
1244
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1207
1245
        case $UNAME_PROCESSOR in
1208
 
            i386)
1209
 
                eval $set_cc_for_build
1210
 
                if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1211
 
                  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1212
 
                      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1213
 
                      grep IS_64BIT_ARCH >/dev/null
1214
 
                  then
1215
 
                      UNAME_PROCESSOR="x86_64"
1216
 
                  fi
1217
 
                fi ;;
1218
1246
            unknown) UNAME_PROCESSOR=powerpc ;;
1219
1247
        esac
1220
1248
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1296
1324
    i*86:rdos:*:*)
1297
1325
        echo ${UNAME_MACHINE}-pc-rdos
1298
1326
        exit ;;
1299
 
    i*86:AROS:*:*)
1300
 
        echo ${UNAME_MACHINE}-pc-aros
1301
 
        exit ;;
1302
1327
esac
1303
1328
 
1304
1329
#echo '(No uname command or uname output not recognized.)' 1>&2