~ubuntu-branches/ubuntu/oneiric/sg3-utils/oneiric

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-11-05 20:42:13 UTC
  • mfrom: (5.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091105204213-ug7wrb6m7l9kmvyg
Tags: 1.28-2
* QA upload.
* Add libsgutils2-2.symbols.kfreebsd. Some of the symbols are Linux
  specific causing FTBFS on kfreebsd.

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
5
 
#   Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
 
5
#   Inc.
6
6
 
7
 
timestamp='2008-01-23'
 
7
timestamp='2006-07-02'
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,
60
 
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
59
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
60
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."
161
161
            arm*) machine=arm-unknown ;;
162
162
            sh3el) machine=shl-unknown ;;
163
163
            sh3eb) machine=sh-unknown ;;
164
 
            sh5el) machine=sh5le-unknown ;;
165
164
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
166
165
        esac
167
166
        # The Operating System including object format, if it has switched
330
329
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
331
330
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332
331
        exit ;;
333
 
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
 
332
    i86pc:SunOS:5.*:*)
334
333
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335
334
        exit ;;
336
335
    sun4*:SunOS:6*:*)
532
531
                echo rs6000-ibm-aix3.2
533
532
        fi
534
533
        exit ;;
535
 
    *:AIX:*:[456])
 
534
    *:AIX:*:[45])
536
535
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
537
536
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
538
537
                IBM_ARCH=rs6000
781
780
    i*:CYGWIN*:*)
782
781
        echo ${UNAME_MACHINE}-pc-cygwin
783
782
        exit ;;
784
 
    *:MINGW*:*)
 
783
    i*:MINGW*:*)
785
784
        echo ${UNAME_MACHINE}-pc-mingw32
786
785
        exit ;;
787
786
    i*:windows32*:*)
791
790
    i*:PW*:*)
792
791
        echo ${UNAME_MACHINE}-pc-pw32
793
792
        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 ;;
 
793
    x86:Interix*:[3456]*)
 
794
        echo i586-pc-interix${UNAME_RELEASE}
 
795
        exit ;;
 
796
    EM64T:Interix*:[3456]*)
 
797
        echo x86_64-unknown-interix${UNAME_RELEASE}
 
798
        exit ;;
806
799
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
807
800
        echo i${UNAME_MACHINE}-pc-mks
808
801
        exit ;;
836
829
        echo ${UNAME_MACHINE}-pc-minix
837
830
        exit ;;
838
831
    arm*:Linux:*:*)
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
 
832
        echo ${UNAME_MACHINE}-unknown-linux-gnu
847
833
        exit ;;
848
834
    avr32*:Linux:*:*)
849
835
        echo ${UNAME_MACHINE}-unknown-linux-gnu
964
950
    x86_64:Linux:*:*)
965
951
        echo x86_64-unknown-linux-gnu
966
952
        exit ;;
967
 
    xtensa*:Linux:*:*)
968
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
969
 
        exit ;;
970
953
    i*86:Linux:*:*)
971
954
        # The BFD linker knows what the default object file format is, so
972
955
        # first see if it will tell us. cd to the root directory to prevent
1225
1208
    SX-6:SUPER-UX:*:*)
1226
1209
        echo sx6-nec-superux${UNAME_RELEASE}
1227
1210
        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 ;;
1237
1211
    Power*:Rhapsody:*:*)
1238
1212
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1239
1213
        exit ;;
1484
1458
the operating system you are using. It is advised that you
1485
1459
download the most up to date version of the config scripts from
1486
1460
 
1487
 
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
 
1461
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1488
1462
and
1489
 
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
 
1463
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1490
1464
 
1491
1465
If the version you run ($0) is already up to date, please
1492
1466
send the following data and any information you think might be