~ubuntu-branches/ubuntu/feisty/libgnome/feisty

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-09-07 18:03:53 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050907180353-hf71fcfx1nb0omez
Tags: 2.12.0.1-0ubuntu1
* New upstream realease:
  - Bug fixes
    - Fix schemas install problem with vi translation (Rodney)
  - Updated translations
    - Vietnamese
* debian/patches/fix-vi.po.patch:
  - dropped, done upstream.

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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2004-11-12'
 
6
timestamp='2005-02-10'
7
7
 
8
8
# This file is free software; you can redistribute it and/or modify it
9
9
# under the terms of the GNU General Public License as published by
53
53
GNU config.guess ($timestamp)
54
54
 
55
55
Originally written by Per Bothner.
56
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 
56
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
57
57
Free Software Foundation, Inc.
58
58
 
59
59
This is free software; see the source for copying conditions.  There is NO
136
136
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
137
137
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
138
138
 
 
139
case "${UNAME_MACHINE}" in
 
140
    i?86)
 
141
        test -z "$VENDOR" && VENDOR=pc
 
142
        ;;
 
143
    *)
 
144
        test -z "$VENDOR" && VENDOR=unknown
 
145
        ;;
 
146
esac
 
147
test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
 
148
 
139
149
# Note: order is significant - the case branches are not exclusive.
140
150
 
141
151
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
804
814
    i*:UWIN*:*)
805
815
        echo ${UNAME_MACHINE}-pc-uwin
806
816
        exit 0 ;;
 
817
    amd64:CYGWIN*:*:*)
 
818
        echo x86_64-unknown-cygwin
 
819
        exit 0 ;;
807
820
    p*:CYGWIN*:*)
808
821
        echo powerpcle-unknown-cygwin
809
822
        exit 0 ;;
822
835
        echo ${UNAME_MACHINE}-pc-minix
823
836
        exit 0 ;;
824
837
    arm*:Linux:*:*)
825
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
838
        echo ${UNAME_MACHINE}-${VENDOR}-linux
826
839
        exit 0 ;;
827
840
    cris:Linux:*:*)
828
 
        echo cris-axis-linux-gnu
 
841
        echo cris-axis-linux
829
842
        exit 0 ;;
830
843
    crisv32:Linux:*:*)
831
 
        echo crisv32-axis-linux-gnu
 
844
        echo crisv32-axis-linux
832
845
        exit 0 ;;
833
846
    frv:Linux:*:*)
834
 
        echo frv-unknown-linux-gnu
 
847
        echo frv-${VENDOR}-linux
835
848
        exit 0 ;;
836
849
    ia64:Linux:*:*)
837
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
850
        echo ${UNAME_MACHINE}-${VENDOR}-linux
838
851
        exit 0 ;;
839
852
    m32r*:Linux:*:*)
840
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
853
        echo ${UNAME_MACHINE}-${VENDOR}-linux
841
854
        exit 0 ;;
842
855
    m68*:Linux:*:*)
843
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
856
        echo ${UNAME_MACHINE}-${VENDOR}-linux
844
857
        exit 0 ;;
845
858
    mips:Linux:*:*)
846
859
        eval $set_cc_for_build
859
872
        #endif
860
873
EOF
861
874
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
862
 
        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
 
875
        test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
863
876
        ;;
864
877
    mips64:Linux:*:*)
865
878
        eval $set_cc_for_build
878
891
        #endif
879
892
EOF
880
893
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
881
 
        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
 
894
        test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
882
895
        ;;
883
896
    ppc:Linux:*:*)
884
 
        echo powerpc-unknown-linux-gnu
 
897
        echo powerpc-${VENDOR}-linux
885
898
        exit 0 ;;
886
899
    ppc64:Linux:*:*)
887
 
        echo powerpc64-unknown-linux-gnu
 
900
        echo powerpc64-${VENDOR}-linux
888
901
        exit 0 ;;
889
902
    alpha:Linux:*:*)
890
903
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
897
910
          EV68*) UNAME_MACHINE=alphaev68 ;;
898
911
        esac
899
912
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
900
 
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
901
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
 
913
        if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi
 
914
        echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC}
902
915
        exit 0 ;;
903
916
    parisc:Linux:*:* | hppa:Linux:*:*)
904
917
        # Look for CPU level
905
918
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
906
 
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
907
 
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
908
 
          *)    echo hppa-unknown-linux-gnu ;;
 
919
          PA7*) echo hppa1.1-${VENDOR}-linux ;;
 
920
          PA8*) echo hppa2.0-${VENDOR}-linux ;;
 
921
          *)    echo hppa-${VENDOR}-linux ;;
909
922
        esac
910
923
        exit 0 ;;
911
924
    parisc64:Linux:*:* | hppa64:Linux:*:*)
912
 
        echo hppa64-unknown-linux-gnu
 
925
        echo hppa64-${VENDOR}-linux
913
926
        exit 0 ;;
914
927
    s390:Linux:*:* | s390x:Linux:*:*)
915
928
        echo ${UNAME_MACHINE}-ibm-linux
916
929
        exit 0 ;;
917
930
    sh64*:Linux:*:*)
918
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
931
        echo ${UNAME_MACHINE}-${VENDOR}-linux
919
932
        exit 0 ;;
920
933
    sh*:Linux:*:*)
921
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
934
        echo ${UNAME_MACHINE}-${VENDOR}-linux
922
935
        exit 0 ;;
923
936
    sparc:Linux:*:* | sparc64:Linux:*:*)
924
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
937
        echo ${UNAME_MACHINE}-${VENDOR}-linux
925
938
        exit 0 ;;
926
939
    x86_64:Linux:*:*)
927
 
        echo x86_64-unknown-linux-gnu
 
940
        echo x86_64-${VENDOR}-linux
928
941
        exit 0 ;;
929
942
    i*86:Linux:*:*)
930
943
        # The BFD linker knows what the default object file format is, so
939
952
                                    p'`
940
953
        case "$ld_supported_targets" in
941
954
          elf32-i386)
942
 
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
 
955
                TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux"
943
956
                ;;
944
957
          a.out-i386-linux)
945
 
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
 
958
                echo "${UNAME_MACHINE}-${VENDOR}-linuxaout"
946
959
                exit 0 ;;
947
960
          coff-i386)
948
 
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
 
961
                echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff"
949
962
                exit 0 ;;
950
963
          "")
951
 
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
 
964
                # Either a pre-BFD a.out linker (linuxoldld) or
952
965
                # one that does not give us useful --help.
953
 
                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
 
966
                echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld"
954
967
                exit 0 ;;
955
968
        esac
956
969
        # Determine whether the default compiler is a.out or elf
979
992
        #endif
980
993
EOF
981
994
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
982
 
        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
 
995
        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0
983
996
        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
984
997
        ;;
985
998
    i*86:DYNIX/ptx:4*:*)
1197
1210
    *:QNX:*:4*)
1198
1211
        echo i386-pc-qnx
1199
1212
        exit 0 ;;
 
1213
    NSE-?:NONSTOP_KERNEL:*:*)
 
1214
        echo nse-tandem-nsk${UNAME_RELEASE}
 
1215
        exit 0 ;;
1200
1216
    NSR-?:NONSTOP_KERNEL:*:*)
1201
1217
        echo nsr-tandem-nsk${UNAME_RELEASE}
1202
1218
        exit 0 ;;