~james-w/+junk/fuse-debian-upstream

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: James Westby
  • Date: 2008-05-16 12:57:48 UTC
  • Revision ID: jw+debian@jameswestby.net-20080516125748-b8m5dtnbbyjtjpkg
Tags: upstream-debian-2.3.0
Import upstream from fuse_2.3.0.orig.tar.gz

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-03-12'
 
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
203
203
    amiga:OpenBSD:*:*)
204
204
        echo m68k-unknown-openbsd${UNAME_RELEASE}
205
205
        exit 0 ;;
206
 
    arc:OpenBSD:*:*)
207
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
208
 
        exit 0 ;;
209
206
    cats:OpenBSD:*:*)
210
207
        echo arm-unknown-openbsd${UNAME_RELEASE}
211
208
        exit 0 ;;
212
209
    hp300:OpenBSD:*:*)
213
210
        echo m68k-unknown-openbsd${UNAME_RELEASE}
214
211
        exit 0 ;;
 
212
    luna88k:OpenBSD:*:*)
 
213
        echo m88k-unknown-openbsd${UNAME_RELEASE}
 
214
        exit 0 ;;
215
215
    mac68k:OpenBSD:*:*)
216
216
        echo m68k-unknown-openbsd${UNAME_RELEASE}
217
217
        exit 0 ;;
227
227
    mvmeppc:OpenBSD:*:*)
228
228
        echo powerpc-unknown-openbsd${UNAME_RELEASE}
229
229
        exit 0 ;;
230
 
    pegasos:OpenBSD:*:*)
231
 
        echo powerpc-unknown-openbsd${UNAME_RELEASE}
232
 
        exit 0 ;;
233
 
    pmax:OpenBSD:*:*)
234
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
235
 
        exit 0 ;;
236
230
    sgi:OpenBSD:*:*)
237
 
        echo mipseb-unknown-openbsd${UNAME_RELEASE}
 
231
        echo mips64-unknown-openbsd${UNAME_RELEASE}
238
232
        exit 0 ;;
239
233
    sun3:OpenBSD:*:*)
240
234
        echo m68k-unknown-openbsd${UNAME_RELEASE}
241
235
        exit 0 ;;
242
 
    wgrisc:OpenBSD:*:*)
243
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
244
 
        exit 0 ;;
245
236
    *:OpenBSD:*:*)
246
237
        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
247
238
        exit 0 ;;
307
298
        # 1.2 uses "1.2" for uname -r.
308
299
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
309
300
        exit 0 ;;
310
 
    Alpha*:OpenVMS:*:*)
311
 
        echo alpha-hp-vms
312
 
        exit 0 ;;
313
301
    Alpha\ *:Windows_NT*:*)
314
302
        # How do we know it's Interix rather than the generic POSIX subsystem?
315
303
        # Should we change UNAME_MACHINE based on the output of uname instead
331
319
    *:OS/390:*:*)
332
320
        echo i370-ibm-openedition
333
321
        exit 0 ;;
 
322
    *:z/VM:*:*)
 
323
        echo s390-ibm-zvmoe
 
324
        exit 0 ;;
334
325
    *:OS400:*:*)
335
326
        echo powerpc-ibm-os400
336
327
        exit 0 ;;
354
345
    DRS?6000:unix:4.0:6*)
355
346
        echo sparc-icl-nx6
356
347
        exit 0 ;;
357
 
    DRS?6000:UNIX_SV:4.2*:7*)
 
348
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
358
349
        case `/usr/bin/uname -p` in
359
350
            sparc) echo sparc-icl-nx7 && exit 0 ;;
360
351
        esac ;;
764
755
        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
765
756
        exit 0 ;;
766
757
    *:UNICOS/mp:*:*)
767
 
        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
 
758
        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
768
759
        exit 0 ;;
769
760
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
770
761
        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
787
778
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
788
779
        exit 0 ;;
789
780
    *:FreeBSD:*:*)
790
 
        # Determine whether the default compiler uses glibc.
791
 
        eval $set_cc_for_build
792
 
        sed 's/^        //' << EOF >$dummy.c
793
 
        #include <features.h>
794
 
        #if __GLIBC__ >= 2
795
 
        LIBC=gnu
796
 
        #else
797
 
        LIBC=
798
 
        #endif
799
 
EOF
800
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
801
 
        # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
802
 
        # FreeBSD's kernel, but not the complete OS.
803
 
        case ${LIBC} in gnu) kernel_only='k' ;; esac
804
 
        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/[-(].*//'`
805
782
        exit 0 ;;
806
783
    i*:CYGWIN*:*)
807
784
        echo ${UNAME_MACHINE}-pc-cygwin
850
827
    cris:Linux:*:*)
851
828
        echo cris-axis-linux-gnu
852
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 ;;
853
836
    ia64:Linux:*:*)
854
837
        echo ${UNAME_MACHINE}-unknown-linux-gnu
855
838
        exit 0 ;;
1096
1079
    M680?0:D-NIX:5.3:*)
1097
1080
        echo m68k-diab-dnix
1098
1081
        exit 0 ;;
1099
 
    M68*:*:R3V[567]*:*)
 
1082
    M68*:*:R3V[5678]*:*)
1100
1083
        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1101
 
    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)
1102
1085
        OS_REL=''
1103
1086
        test -r /etc/.relid \
1104
1087
        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1196
1179
        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1197
1180
        exit 0 ;;
1198
1181
    *:Darwin:*:*)
1199
 
        case `uname -p` in
 
1182
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
 
1183
        case $UNAME_PROCESSOR in
1200
1184
            *86) UNAME_PROCESSOR=i686 ;;
1201
 
            powerpc) UNAME_PROCESSOR=powerpc ;;
 
1185
            unknown) UNAME_PROCESSOR=powerpc ;;
1202
1186
        esac
1203
1187
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1204
1188
        exit 0 ;;
1260
1244
    *:DragonFly:*:*)
1261
1245
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1262
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
 
1256
        exit 0 ;;
1263
1257
esac
1264
1258
 
1265
1259
#echo '(No uname command or uname output not recognized.)' 1>&2