~ubuntu-branches/ubuntu/lucid/libatomic-ops/lucid

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Al Stone
  • Date: 2005-02-21 17:15:35 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050221171535-umkri8cwv2qlk369
Tags: 0.5.1-3
Closes: bug#287276: support for amd64 -- thinko, skipped part
of Kurt's patch inadvertently.

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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2004-01-05'
 
6
timestamp='2004-11-12'
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
 
56
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
57
57
Free Software Foundation, Inc.
58
58
 
59
59
This is free software; see the source for copying conditions.  There is NO
197
197
        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
198
198
        echo "${machine}-${os}${release}"
199
199
        exit 0 ;;
 
200
    amd64:OpenBSD:*:*)
 
201
        echo x86_64-unknown-openbsd${UNAME_RELEASE}
 
202
        exit 0 ;;
200
203
    amiga:OpenBSD:*:*)
201
204
        echo m68k-unknown-openbsd${UNAME_RELEASE}
202
205
        exit 0 ;;
203
 
    arc:OpenBSD:*:*)
204
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
 
206
    cats:OpenBSD:*:*)
 
207
        echo arm-unknown-openbsd${UNAME_RELEASE}
205
208
        exit 0 ;;
206
209
    hp300:OpenBSD:*:*)
207
210
        echo m68k-unknown-openbsd${UNAME_RELEASE}
208
211
        exit 0 ;;
 
212
    luna88k:OpenBSD:*:*)
 
213
        echo m88k-unknown-openbsd${UNAME_RELEASE}
 
214
        exit 0 ;;
209
215
    mac68k:OpenBSD:*:*)
210
216
        echo m68k-unknown-openbsd${UNAME_RELEASE}
211
217
        exit 0 ;;
221
227
    mvmeppc:OpenBSD:*:*)
222
228
        echo powerpc-unknown-openbsd${UNAME_RELEASE}
223
229
        exit 0 ;;
224
 
    pegasos:OpenBSD:*:*)
225
 
        echo powerpc-unknown-openbsd${UNAME_RELEASE}
226
 
        exit 0 ;;
227
 
    pmax:OpenBSD:*:*)
228
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
229
 
        exit 0 ;;
230
230
    sgi:OpenBSD:*:*)
231
 
        echo mipseb-unknown-openbsd${UNAME_RELEASE}
 
231
        echo mips64-unknown-openbsd${UNAME_RELEASE}
232
232
        exit 0 ;;
233
233
    sun3:OpenBSD:*:*)
234
234
        echo m68k-unknown-openbsd${UNAME_RELEASE}
235
235
        exit 0 ;;
236
 
    wgrisc:OpenBSD:*:*)
237
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
238
 
        exit 0 ;;
239
236
    *:OpenBSD:*:*)
240
237
        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
241
238
        exit 0 ;;
 
239
    *:ekkoBSD:*:*)
 
240
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
 
241
        exit 0 ;;
 
242
    macppc:MirBSD:*:*)
 
243
        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
 
244
        exit 0 ;;
 
245
    *:MirBSD:*:*)
 
246
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
 
247
        exit 0 ;;
242
248
    alpha:OSF1:*:*)
243
 
        if test $UNAME_RELEASE = "V4.0"; then
 
249
        case $UNAME_RELEASE in
 
250
        *4.0)
244
251
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
245
 
        fi
 
252
                ;;
 
253
        *5.*)
 
254
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
 
255
                ;;
 
256
        esac
246
257
        # According to Compaq, /usr/sbin/psrinfo has been available on
247
258
        # OSF/1 and Tru64 systems produced since 1995.  I hope that
248
259
        # covers most systems running today.  This code pipes the CPU
280
291
            "EV7.9 (21364A)")
281
292
                UNAME_MACHINE="alphaev79" ;;
282
293
        esac
 
294
        # A Pn.n version is a patched version.
283
295
        # A Vn.n version is a released version.
284
296
        # A Tn.n version is a released field test version.
285
297
        # A Xn.n version is an unreleased experimental baselevel.
286
298
        # 1.2 uses "1.2" for uname -r.
287
 
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
288
 
        exit 0 ;;
289
 
    Alpha*:OpenVMS:*:*)
290
 
        echo alpha-hp-vms
 
299
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
291
300
        exit 0 ;;
292
301
    Alpha\ *:Windows_NT*:*)
293
302
        # How do we know it's Interix rather than the generic POSIX subsystem?
310
319
    *:OS/390:*:*)
311
320
        echo i370-ibm-openedition
312
321
        exit 0 ;;
 
322
    *:z/VM:*:*)
 
323
        echo s390-ibm-zvmoe
 
324
        exit 0 ;;
313
325
    *:OS400:*:*)
314
326
        echo powerpc-ibm-os400
315
327
        exit 0 ;;
333
345
    DRS?6000:unix:4.0:6*)
334
346
        echo sparc-icl-nx6
335
347
        exit 0 ;;
336
 
    DRS?6000:UNIX_SV:4.2*:7*)
 
348
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
337
349
        case `/usr/bin/uname -p` in
338
350
            sparc) echo sparc-icl-nx7 && exit 0 ;;
339
351
        esac ;;
405
417
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
406
418
        echo m68k-unknown-mint${UNAME_RELEASE}
407
419
        exit 0 ;;
 
420
    m68k:machten:*:*)
 
421
        echo m68k-apple-machten${UNAME_RELEASE}
 
422
        exit 0 ;;
408
423
    powerpc:machten:*:*)
409
424
        echo powerpc-apple-machten${UNAME_RELEASE}
410
425
        exit 0 ;;
740
755
        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
741
756
        exit 0 ;;
742
757
    *:UNICOS/mp:*:*)
743
 
        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
 
758
        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
744
759
        exit 0 ;;
745
760
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
746
761
        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
763
778
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
764
779
        exit 0 ;;
765
780
    *:FreeBSD:*:*)
766
 
        # Determine whether the default compiler uses glibc.
767
 
        eval $set_cc_for_build
768
 
        sed 's/^        //' << EOF >$dummy.c
769
 
        #include <features.h>
770
 
        #if __GLIBC__ >= 2
771
 
        LIBC=gnu
772
 
        #else
773
 
        LIBC=
774
 
        #endif
775
 
EOF
776
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
777
 
        # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
778
 
        # FreeBSD's kernel, but not the complete OS.
779
 
        case ${LIBC} in gnu) kernel_only='k' ;; esac
780
 
        echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
 
781
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
781
782
        exit 0 ;;
782
783
    i*:CYGWIN*:*)
783
784
        echo ${UNAME_MACHINE}-pc-cygwin
826
827
    cris:Linux:*:*)
827
828
        echo cris-axis-linux-gnu
828
829
        exit 0 ;;
 
830
    crisv32:Linux:*:*)
 
831
        echo crisv32-axis-linux-gnu
 
832
        exit 0 ;;
 
833
    frv:Linux:*:*)
 
834
        echo frv-unknown-linux-gnu
 
835
        exit 0 ;;
829
836
    ia64:Linux:*:*)
830
837
        echo ${UNAME_MACHINE}-unknown-linux-gnu
831
838
        exit 0 ;;
 
839
    m32r*:Linux:*:*)
 
840
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
841
        exit 0 ;;
832
842
    m68*:Linux:*:*)
833
843
        echo ${UNAME_MACHINE}-unknown-linux-gnu
834
844
        exit 0 ;;
1069
1079
    M680?0:D-NIX:5.3:*)
1070
1080
        echo m68k-diab-dnix
1071
1081
        exit 0 ;;
1072
 
    M68*:*:R3V[567]*:*)
 
1082
    M68*:*:R3V[5678]*:*)
1073
1083
        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1074
 
    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
 
1084
    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1075
1085
        OS_REL=''
1076
1086
        test -r /etc/.relid \
1077
1087
        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1169
1179
        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1170
1180
        exit 0 ;;
1171
1181
    *:Darwin:*:*)
1172
 
        case `uname -p` in
 
1182
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
 
1183
        case $UNAME_PROCESSOR in
1173
1184
            *86) UNAME_PROCESSOR=i686 ;;
1174
 
            powerpc) UNAME_PROCESSOR=powerpc ;;
 
1185
            unknown) UNAME_PROCESSOR=powerpc ;;
1175
1186
        esac
1176
1187
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1177
1188
        exit 0 ;;
1230
1241
    SEI:*:*:SEIUX)
1231
1242
        echo mips-sei-seiux${UNAME_RELEASE}
1232
1243
        exit 0 ;;
1233
 
    *:DRAGONFLY:*:*)
1234
 
        echo ${UNAME_MACHINE}-unknown-dragonfly${UNAME_RELEASE}
 
1244
    *:DragonFly:*:*)
 
1245
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
1246
        exit 0 ;;
 
1247
    *:*VMS:*:*)
 
1248
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
 
1249
        case "${UNAME_MACHINE}" in
 
1250
            A*) echo alpha-dec-vms && exit 0 ;;
 
1251
            I*) echo ia64-dec-vms && exit 0 ;;
 
1252
            V*) echo vax-dec-vms && exit 0 ;;
 
1253
        esac ;;
 
1254
    *:XENIX:*:SysV)
 
1255
        echo i386-pc-xenix
1235
1256
        exit 0 ;;
1236
1257
esac
1237
1258