~sharpie/geos/3.3.2

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine, Alan Boudreault, Francesco Paolo Lovergine
  • Date: 2011-03-03 13:40:04 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110303134004-ocs5d23cuont0q61
Tags: 3.2.2-1
[ Alan Boudreault ]
* New upstream release.

[ Francesco Paolo Lovergine ]
* Policy set to 3.9.1, without changes.
* Merged log for post squeeze release.
* Repository moved to git and changed Vcs-* fields as required.
* Source format moved to 3.0 with quilt support.
* Policy changed to 3.9.1, without changes.
* Added ${misc:Depends} to bin pkgs due to dh use.
* Added -dbg package for debugging symbols.
  (closes: #582273)

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='2009-04-27'
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."
161
161
            arm*) machine=arm-unknown ;;
162
162
            sh3el) machine=shl-unknown ;;
163
163
            sh3eb) machine=sh-unknown ;;
 
164
            sh5el) machine=sh5le-unknown ;;
164
165
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
165
166
        esac
166
167
        # The Operating System including object format, if it has switched
323
324
        case `/usr/bin/uname -p` in
324
325
            sparc) echo sparc-icl-nx7; exit ;;
325
326
        esac ;;
 
327
    s390x:SunOS:*:*)
 
328
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
329
        exit ;;
326
330
    sun4H:SunOS:5.*:*)
327
331
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
328
332
        exit ;;
329
333
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
330
334
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331
335
        exit ;;
332
 
    i86pc:SunOS:5.*:*)
333
 
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
336
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
 
337
        eval $set_cc_for_build
 
338
        SUN_ARCH="i386"
 
339
        # If there is a compiler, see if it is configured for 64-bit objects.
 
340
        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
 
341
        # This test works for both compilers.
 
342
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
343
            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
 
344
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
345
                grep IS_64BIT_ARCH >/dev/null
 
346
            then
 
347
                SUN_ARCH="x86_64"
 
348
            fi
 
349
        fi
 
350
        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334
351
        exit ;;
335
352
    sun4*:SunOS:6*:*)
336
353
        # According to config.sub, this is the proper way to canonicalize
531
548
                echo rs6000-ibm-aix3.2
532
549
        fi
533
550
        exit ;;
534
 
    *:AIX:*:[45])
 
551
    *:AIX:*:[456])
535
552
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
536
553
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
537
554
                IBM_ARCH=rs6000
780
797
    i*:CYGWIN*:*)
781
798
        echo ${UNAME_MACHINE}-pc-cygwin
782
799
        exit ;;
783
 
    i*:MINGW*:*)
 
800
    *:MINGW*:*)
784
801
        echo ${UNAME_MACHINE}-pc-mingw32
785
802
        exit ;;
786
803
    i*:windows32*:*)
790
807
    i*:PW*:*)
791
808
        echo ${UNAME_MACHINE}-pc-pw32
792
809
        exit ;;
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 ;;
 
810
    *:Interix*:[3456]*)
 
811
        case ${UNAME_MACHINE} in
 
812
            x86)
 
813
                echo i586-pc-interix${UNAME_RELEASE}
 
814
                exit ;;
 
815
            EM64T | authenticamd | genuineintel)
 
816
                echo x86_64-unknown-interix${UNAME_RELEASE}
 
817
                exit ;;
 
818
            IA64)
 
819
                echo ia64-unknown-interix${UNAME_RELEASE}
 
820
                exit ;;
 
821
        esac ;;
799
822
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
800
823
        echo i${UNAME_MACHINE}-pc-mks
801
824
        exit ;;
829
852
        echo ${UNAME_MACHINE}-pc-minix
830
853
        exit ;;
831
854
    arm*:Linux:*:*)
832
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
855
        eval $set_cc_for_build
 
856
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
 
857
            | grep -q __ARM_EABI__
 
858
        then
 
859
            echo ${UNAME_MACHINE}-unknown-linux-gnu
 
860
        else
 
861
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
862
        fi
833
863
        exit ;;
834
864
    avr32*:Linux:*:*)
835
865
        echo ${UNAME_MACHINE}-unknown-linux-gnu
921
951
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
922
952
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
923
953
        exit ;;
 
954
    padre:Linux:*:*)
 
955
        echo sparc-unknown-linux-gnu
 
956
        exit ;;
924
957
    parisc:Linux:*:* | hppa:Linux:*:*)
925
958
        # Look for CPU level
926
959
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
950
983
    x86_64:Linux:*:*)
951
984
        echo x86_64-unknown-linux-gnu
952
985
        exit ;;
 
986
    xtensa*:Linux:*:*)
 
987
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
988
        exit ;;
953
989
    i*86:Linux:*:*)
954
990
        # The BFD linker knows what the default object file format is, so
955
991
        # first see if it will tell us. cd to the root directory to prevent
968
1004
          a.out-i386-linux)
969
1005
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
970
1006
                exit ;;
971
 
          coff-i386)
972
 
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
973
 
                exit ;;
974
1007
          "")
975
1008
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
976
1009
                # one that does not give us useful --help.
1085
1118
    pc:*:*:*)
1086
1119
        # Left here for compatibility:
1087
1120
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1088
 
        # the processor, so we play safe by assuming i386.
1089
 
        echo i386-pc-msdosdjgpp
 
1121
        # the processor, so we play safe by assuming i586.
 
1122
        # Note: whatever this is, it MUST be the same as what config.sub
 
1123
        # prints for the "djgpp" host, or else GDB configury will decide that
 
1124
        # this is a cross-build.
 
1125
        echo i586-pc-msdosdjgpp
1090
1126
        exit ;;
1091
1127
    Intel:Mach:3*:*)
1092
1128
        echo i386-pc-mach3
1124
1160
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1125
1161
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1126
1162
          && { echo i486-ncr-sysv4; exit; } ;;
 
1163
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
 
1164
        OS_REL='.3'
 
1165
        test -r /etc/.relid \
 
1166
            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
 
1167
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1168
            && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
 
1169
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
 
1170
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
 
1171
        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
 
1172
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1127
1173
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1128
1174
        echo m68k-unknown-lynxos${UNAME_RELEASE}
1129
1175
        exit ;;
1199
1245
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
1200
1246
        echo i586-pc-beos
1201
1247
        exit ;;
 
1248
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
 
1249
        echo i586-pc-haiku
 
1250
        exit ;;
1202
1251
    SX-4:SUPER-UX:*:*)
1203
1252
        echo sx4-nec-superux${UNAME_RELEASE}
1204
1253
        exit ;;
1208
1257
    SX-6:SUPER-UX:*:*)
1209
1258
        echo sx6-nec-superux${UNAME_RELEASE}
1210
1259
        exit ;;
 
1260
    SX-7:SUPER-UX:*:*)
 
1261
        echo sx7-nec-superux${UNAME_RELEASE}
 
1262
        exit ;;
 
1263
    SX-8:SUPER-UX:*:*)
 
1264
        echo sx8-nec-superux${UNAME_RELEASE}
 
1265
        exit ;;
 
1266
    SX-8R:SUPER-UX:*:*)
 
1267
        echo sx8r-nec-superux${UNAME_RELEASE}
 
1268
        exit ;;
1211
1269
    Power*:Rhapsody:*:*)
1212
1270
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1213
1271
        exit ;;
1298
1356
    i*86:rdos:*:*)
1299
1357
        echo ${UNAME_MACHINE}-pc-rdos
1300
1358
        exit ;;
 
1359
    i*86:AROS:*:*)
 
1360
        echo ${UNAME_MACHINE}-pc-aros
 
1361
        exit ;;
1301
1362
esac
1302
1363
 
1303
1364
#echo '(No uname command or uname output not recognized.)' 1>&2
1458
1519
the operating system you are using. It is advised that you
1459
1520
download the most up to date version of the config scripts from
1460
1521
 
1461
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
 
1522
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1462
1523
and
1463
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
 
1524
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1464
1525
 
1465
1526
If the version you run ($0) is already up to date, please
1466
1527
send the following data and any information you think might be