~ubuntu-branches/ubuntu/precise/gtk-sharp2/precise

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2008-12-15 15:38:54 UTC
  • mfrom: (1.1.13 upstream) (13.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20081215153854-v2s86r8ubt6lqia6
Tags: 2.12.7-1ubuntu1
* Merge from Debian experimental, remaining changes:
  - debian/rules: symlink documentation directories
* debian/rules: pass CSC=/usr/bin/csc to configure, for the mono 2.0
  transition.
* debian/changelog: update the build-dependencies for mono 2.0.

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
 
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2006-07-02'
 
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
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, 2001,
 
60
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
61
61
 
62
62
This is free software; see the source for copying conditions.  There is NO
63
63
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
139
139
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
140
140
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141
141
 
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
142
# Note: order is significant - the case branches are not exclusive.
153
143
 
154
144
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
171
161
            arm*) machine=arm-unknown ;;
172
162
            sh3el) machine=shl-unknown ;;
173
163
            sh3eb) machine=sh-unknown ;;
 
164
            sh5el) machine=sh5le-unknown ;;
174
165
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
175
166
        esac
176
167
        # The Operating System including object format, if it has switched
339
330
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
340
331
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
341
332
        exit ;;
342
 
    i86pc:SunOS:5.*:*)
 
333
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
343
334
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
344
335
        exit ;;
345
336
    sun4*:SunOS:6*:*)
541
532
                echo rs6000-ibm-aix3.2
542
533
        fi
543
534
        exit ;;
544
 
    *:AIX:*:[45])
 
535
    *:AIX:*:[456])
545
536
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
546
537
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
547
538
                IBM_ARCH=rs6000
790
781
    i*:CYGWIN*:*)
791
782
        echo ${UNAME_MACHINE}-pc-cygwin
792
783
        exit ;;
793
 
    i*:MINGW*:*)
 
784
    *:MINGW*:*)
794
785
        echo ${UNAME_MACHINE}-pc-mingw32
795
786
        exit ;;
796
787
    i*:windows32*:*)
800
791
    i*:PW*:*)
801
792
        echo ${UNAME_MACHINE}-pc-pw32
802
793
        exit ;;
803
 
    x86:Interix*:[3456]*)
804
 
        echo i586-pc-interix${UNAME_RELEASE}
805
 
        exit ;;
806
 
    EM64T:Interix*:[3456]*)
807
 
        echo x86_64-unknown-interix${UNAME_RELEASE}
808
 
        exit ;;
 
794
    *:Interix*:[3456]*)
 
795
        case ${UNAME_MACHINE} in
 
796
            x86)
 
797
                echo i586-pc-interix${UNAME_RELEASE}
 
798
                exit ;;
 
799
            EM64T | authenticamd)
 
800
                echo x86_64-unknown-interix${UNAME_RELEASE}
 
801
                exit ;;
 
802
            IA64)
 
803
                echo ia64-unknown-interix${UNAME_RELEASE}
 
804
                exit ;;
 
805
        esac ;;
809
806
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
810
807
        echo i${UNAME_MACHINE}-pc-mks
811
808
        exit ;;
839
836
        echo ${UNAME_MACHINE}-pc-minix
840
837
        exit ;;
841
838
    arm*:Linux:*:*)
842
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
839
        eval $set_cc_for_build
 
840
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
 
841
            | grep -q __ARM_EABI__
 
842
        then
 
843
            echo ${UNAME_MACHINE}-unknown-linux-gnu
 
844
        else
 
845
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
846
        fi
843
847
        exit ;;
844
848
    avr32*:Linux:*:*)
845
849
        echo ${UNAME_MACHINE}-unknown-linux-gnu
851
855
        echo crisv32-axis-linux-gnu
852
856
        exit ;;
853
857
    frv:Linux:*:*)
854
 
        echo frv-${VENDOR}-linux-gnu
 
858
        echo frv-unknown-linux-gnu
855
859
        exit ;;
856
860
    ia64:Linux:*:*)
857
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
861
        echo ${UNAME_MACHINE}-unknown-linux-gnu
858
862
        exit ;;
859
863
    m32r*:Linux:*:*)
860
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
864
        echo ${UNAME_MACHINE}-unknown-linux-gnu
861
865
        exit ;;
862
866
    m68*:Linux:*:*)
863
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
867
        echo ${UNAME_MACHINE}-unknown-linux-gnu
864
868
        exit ;;
865
869
    mips:Linux:*:*)
866
870
        eval $set_cc_for_build
883
887
                s: ::g
884
888
                p
885
889
            }'`"
886
 
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
 
890
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
887
891
        ;;
888
892
    mips64:Linux:*:*)
889
893
        eval $set_cc_for_build
906
910
                s: ::g
907
911
                p
908
912
            }'`"
909
 
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
 
913
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
910
914
        ;;
911
915
    or32:Linux:*:*)
912
 
        echo or32-${VENDOR}-linux-gnu
 
916
        echo or32-unknown-linux-gnu
913
917
        exit ;;
914
918
    ppc:Linux:*:*)
915
 
        echo powerpc-${VENDOR}-linux-gnu
 
919
        echo powerpc-unknown-linux-gnu
916
920
        exit ;;
917
921
    ppc64:Linux:*:*)
918
 
        echo powerpc64-${VENDOR}-linux-gnu
 
922
        echo powerpc64-unknown-linux-gnu
919
923
        exit ;;
920
924
    alpha:Linux:*:*)
921
925
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
929
933
        esac
930
934
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
931
935
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
932
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
 
936
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
933
937
        exit ;;
934
938
    parisc:Linux:*:* | hppa:Linux:*:*)
935
939
        # Look for CPU level
936
940
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
937
 
          PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;;
938
 
          PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
939
 
          *)    echo hppa-${VENDOR}-linux-gnu ;;
 
941
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
 
942
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
 
943
          *)    echo hppa-unknown-linux-gnu ;;
940
944
        esac
941
945
        exit ;;
942
946
    parisc64:Linux:*:* | hppa64:Linux:*:*)
943
 
        echo hppa64-${VENDOR}-linux-gnu
 
947
        echo hppa64-unknown-linux-gnu
944
948
        exit ;;
945
949
    s390:Linux:*:* | s390x:Linux:*:*)
946
950
        echo ${UNAME_MACHINE}-ibm-linux
947
951
        exit ;;
948
952
    sh64*:Linux:*:*)
949
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
953
        echo ${UNAME_MACHINE}-unknown-linux-gnu
950
954
        exit ;;
951
955
    sh*:Linux:*:*)
952
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
956
        echo ${UNAME_MACHINE}-unknown-linux-gnu
953
957
        exit ;;
954
958
    sparc:Linux:*:* | sparc64:Linux:*:*)
955
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
959
        echo ${UNAME_MACHINE}-unknown-linux-gnu
956
960
        exit ;;
957
961
    vax:Linux:*:*)
958
962
        echo ${UNAME_MACHINE}-dec-linux-gnu
959
963
        exit ;;
960
964
    x86_64:Linux:*:*)
961
 
        echo x86_64-${VENDOR}-linux-gnu
 
965
        echo x86_64-unknown-linux-gnu
 
966
        exit ;;
 
967
    xtensa*:Linux:*:*)
 
968
        echo ${UNAME_MACHINE}-unknown-linux-gnu
962
969
        exit ;;
963
970
    i*86:Linux:*:*)
964
971
        # The BFD linker knows what the default object file format is, so
973
980
                                    p'`
974
981
        case "$ld_supported_targets" in
975
982
          elf32-i386)
976
 
                TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux-gnu"
 
983
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
977
984
                ;;
978
985
          a.out-i386-linux)
979
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuaout"
 
986
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
980
987
                exit ;;
981
988
          coff-i386)
982
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnucoff"
 
989
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
983
990
                exit ;;
984
991
          "")
985
992
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
986
993
                # one that does not give us useful --help.
987
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuoldld"
 
994
                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
988
995
                exit ;;
989
996
        esac
990
997
        # Determine whether the default compiler is a.out or elf
1018
1025
                p
1019
1026
            }'`"
1020
1027
        test x"${LIBC}" != x && {
1021
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
 
1028
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1022
1029
                exit
1023
1030
        }
1024
1031
        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1218
1225
    SX-6:SUPER-UX:*:*)
1219
1226
        echo sx6-nec-superux${UNAME_RELEASE}
1220
1227
        exit ;;
 
1228
    SX-7:SUPER-UX:*:*)
 
1229
        echo sx7-nec-superux${UNAME_RELEASE}
 
1230
        exit ;;
 
1231
    SX-8:SUPER-UX:*:*)
 
1232
        echo sx8-nec-superux${UNAME_RELEASE}
 
1233
        exit ;;
 
1234
    SX-8R:SUPER-UX:*:*)
 
1235
        echo sx8r-nec-superux${UNAME_RELEASE}
 
1236
        exit ;;
1221
1237
    Power*:Rhapsody:*:*)
1222
1238
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1223
1239
        exit ;;
1468
1484
the operating system you are using. It is advised that you
1469
1485
download the most up to date version of the config scripts from
1470
1486
 
1471
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
 
1487
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1472
1488
and
1473
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
 
1489
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1474
1490
 
1475
1491
If the version you run ($0) is already up to date, please
1476
1492
send the following data and any information you think might be