~ubuntu-branches/debian/sid/fragrouter/sid

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Frank Lichtenheld
  • Date: 2004-09-14 02:55:38 UTC
  • Revision ID: james.westby@ubuntu.com-20040914025538-ylfs407cpgh92ryj
Tags: 1.6-2.2
* NMU
* Argh, upload with urgency=high

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='2003-05-19'
 
6
timestamp='2004-08-13'
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
106
106
: ${TMPDIR=/tmp} ;
107
107
 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
108
108
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
 
109
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
109
110
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
110
111
dummy=$tmp/dummy ;
111
112
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
196
197
        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
197
198
        echo "${machine}-${os}${release}"
198
199
        exit 0 ;;
 
200
    amd64:OpenBSD:*:*)
 
201
        echo x86_64-unknown-openbsd${UNAME_RELEASE}
 
202
        exit 0 ;;
199
203
    amiga:OpenBSD:*:*)
200
204
        echo m68k-unknown-openbsd${UNAME_RELEASE}
201
205
        exit 0 ;;
202
 
    arc:OpenBSD:*:*)
203
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
 
206
    cats:OpenBSD:*:*)
 
207
        echo arm-unknown-openbsd${UNAME_RELEASE}
204
208
        exit 0 ;;
205
209
    hp300:OpenBSD:*:*)
206
210
        echo m68k-unknown-openbsd${UNAME_RELEASE}
207
211
        exit 0 ;;
 
212
    luna88k:OpenBSD:*:*)
 
213
        echo m88k-unknown-openbsd${UNAME_RELEASE}
 
214
        exit 0 ;;
208
215
    mac68k:OpenBSD:*:*)
209
216
        echo m68k-unknown-openbsd${UNAME_RELEASE}
210
217
        exit 0 ;;
220
227
    mvmeppc:OpenBSD:*:*)
221
228
        echo powerpc-unknown-openbsd${UNAME_RELEASE}
222
229
        exit 0 ;;
223
 
    pmax:OpenBSD:*:*)
224
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
225
 
        exit 0 ;;
226
230
    sgi:OpenBSD:*:*)
227
 
        echo mipseb-unknown-openbsd${UNAME_RELEASE}
 
231
        echo mips64-unknown-openbsd${UNAME_RELEASE}
228
232
        exit 0 ;;
229
233
    sun3:OpenBSD:*:*)
230
234
        echo m68k-unknown-openbsd${UNAME_RELEASE}
231
235
        exit 0 ;;
232
 
    wgrisc:OpenBSD:*:*)
233
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
234
 
        exit 0 ;;
235
236
    *:OpenBSD:*:*)
236
237
        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
237
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 ;;
238
248
    alpha:OSF1:*:*)
239
 
        if test $UNAME_RELEASE = "V4.0"; then
 
249
        case $UNAME_RELEASE in
 
250
        *4.0)
240
251
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
241
 
        fi
 
252
                ;;
 
253
        *5.*)
 
254
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
 
255
                ;;
 
256
        esac
242
257
        # According to Compaq, /usr/sbin/psrinfo has been available on
243
258
        # OSF/1 and Tru64 systems produced since 1995.  I hope that
244
259
        # covers most systems running today.  This code pipes the CPU
276
291
            "EV7.9 (21364A)")
277
292
                UNAME_MACHINE="alphaev79" ;;
278
293
        esac
 
294
        # A Pn.n version is a patched version.
279
295
        # A Vn.n version is a released version.
280
296
        # A Tn.n version is a released field test version.
281
297
        # A Xn.n version is an unreleased experimental baselevel.
282
298
        # 1.2 uses "1.2" for uname -r.
283
 
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
 
299
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
284
300
        exit 0 ;;
285
301
    Alpha\ *:Windows_NT*:*)
286
302
        # How do we know it's Interix rather than the generic POSIX subsystem?
303
319
    *:OS/390:*:*)
304
320
        echo i370-ibm-openedition
305
321
        exit 0 ;;
 
322
    *:OS400:*:*)
 
323
        echo powerpc-ibm-os400
 
324
        exit 0 ;;
306
325
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
307
326
        echo arm-acorn-riscix${UNAME_RELEASE}
308
327
        exit 0;;
320
339
    NILE*:*:*:dcosx)
321
340
        echo pyramid-pyramid-svr4
322
341
        exit 0 ;;
 
342
    DRS?6000:unix:4.0:6*)
 
343
        echo sparc-icl-nx6
 
344
        exit 0 ;;
323
345
    DRS?6000:UNIX_SV:4.2*:7*)
324
346
        case `/usr/bin/uname -p` in
325
347
            sparc) echo sparc-icl-nx7 && exit 0 ;;
392
414
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
393
415
        echo m68k-unknown-mint${UNAME_RELEASE}
394
416
        exit 0 ;;
 
417
    m68k:machten:*:*)
 
418
        echo m68k-apple-machten${UNAME_RELEASE}
 
419
        exit 0 ;;
395
420
    powerpc:machten:*:*)
396
421
        echo powerpc-apple-machten${UNAME_RELEASE}
397
422
        exit 0 ;;
727
752
        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
728
753
        exit 0 ;;
729
754
    *:UNICOS/mp:*:*)
730
 
        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
 
755
        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
731
756
        exit 0 ;;
732
757
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
733
758
        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
735
760
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
736
761
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
737
762
        exit 0 ;;
 
763
    5000:UNIX_System_V:4.*:*)
 
764
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
765
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
 
766
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 
767
        exit 0 ;;
738
768
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
739
769
        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
740
770
        exit 0 ;;
744
774
    *:BSD/OS:*:*)
745
775
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
746
776
        exit 0 ;;
747
 
    *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
748
 
        # Determine whether the default compiler uses glibc.
749
 
        eval $set_cc_for_build
750
 
        sed 's/^        //' << EOF >$dummy.c
751
 
        #include <features.h>
752
 
        #if __GLIBC__ >= 2
753
 
        LIBC=gnu
754
 
        #else
755
 
        LIBC=
756
 
        #endif
757
 
EOF
758
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
759
 
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
 
777
    *:FreeBSD:*:*)
 
778
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
760
779
        exit 0 ;;
761
780
    i*:CYGWIN*:*)
762
781
        echo ${UNAME_MACHINE}-pc-cygwin
767
786
    i*:PW*:*)
768
787
        echo ${UNAME_MACHINE}-pc-pw32
769
788
        exit 0 ;;
770
 
    x86:Interix*:3*)
771
 
        echo i586-pc-interix3
 
789
    x86:Interix*:[34]*)
 
790
        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
772
791
        exit 0 ;;
773
792
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
774
793
        echo i${UNAME_MACHINE}-pc-mks
789
808
        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
790
809
        exit 0 ;;
791
810
    *:GNU:*:*)
 
811
        # the GNU system
792
812
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
793
813
        exit 0 ;;
 
814
    *:GNU/*:*:*)
 
815
        # other systems with GNU libc and userland
 
816
        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
 
817
        exit 0 ;;
794
818
    i*86:Minix:*:*)
795
819
        echo ${UNAME_MACHINE}-pc-minix
796
820
        exit 0 ;;
803
827
    ia64:Linux:*:*)
804
828
        echo ${UNAME_MACHINE}-unknown-linux-gnu
805
829
        exit 0 ;;
 
830
    m32r*:Linux:*:*)
 
831
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
832
        exit 0 ;;
806
833
    m68*:Linux:*:*)
807
834
        echo ${UNAME_MACHINE}-unknown-linux-gnu
808
835
        exit 0 ;;
878
905
    s390:Linux:*:* | s390x:Linux:*:*)
879
906
        echo ${UNAME_MACHINE}-ibm-linux
880
907
        exit 0 ;;
 
908
    sh64*:Linux:*:*)
 
909
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
910
        exit 0 ;;
881
911
    sh*:Linux:*:*)
882
912
        echo ${UNAME_MACHINE}-unknown-linux-gnu
883
913
        exit 0 ;;
935
965
        LIBC=gnuaout
936
966
        #endif
937
967
        #endif
 
968
        #ifdef __dietlibc__
 
969
        LIBC=dietlibc
 
970
        #endif
938
971
EOF
939
972
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
940
973
        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
965
998
    i*86:atheos:*:*)
966
999
        echo ${UNAME_MACHINE}-unknown-atheos
967
1000
        exit 0 ;;
 
1001
        i*86:syllable:*:*)
 
1002
        echo ${UNAME_MACHINE}-pc-syllable
 
1003
        exit 0 ;;
968
1004
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
969
1005
        echo i386-unknown-lynxos${UNAME_RELEASE}
970
1006
        exit 0 ;;
1034
1070
    M680?0:D-NIX:5.3:*)
1035
1071
        echo m68k-diab-dnix
1036
1072
        exit 0 ;;
1037
 
    M68*:*:R3V[567]*:*)
 
1073
    M68*:*:R3V[5678]*:*)
1038
1074
        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1039
 
    3[34]??:*: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)
 
1075
    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)
1040
1076
        OS_REL=''
1041
1077
        test -r /etc/.relid \
1042
1078
        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1134
1170
        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1135
1171
        exit 0 ;;
1136
1172
    *:Darwin:*:*)
1137
 
        case `uname -p` in
 
1173
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
 
1174
        case $UNAME_PROCESSOR in
1138
1175
            *86) UNAME_PROCESSOR=i686 ;;
1139
 
            powerpc) UNAME_PROCESSOR=powerpc ;;
 
1176
            unknown) UNAME_PROCESSOR=powerpc ;;
1140
1177
        esac
1141
1178
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1142
1179
        exit 0 ;;
1151
1188
    *:QNX:*:4*)
1152
1189
        echo i386-pc-qnx
1153
1190
        exit 0 ;;
1154
 
    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
 
1191
    NSR-?:NONSTOP_KERNEL:*:*)
1155
1192
        echo nsr-tandem-nsk${UNAME_RELEASE}
1156
1193
        exit 0 ;;
1157
1194
    *:NonStop-UX:*:*)
1192
1229
    *:ITS:*:*)
1193
1230
        echo pdp10-unknown-its
1194
1231
        exit 0 ;;
 
1232
    SEI:*:*:SEIUX)
 
1233
        echo mips-sei-seiux${UNAME_RELEASE}
 
1234
        exit 0 ;;
 
1235
    *:DragonFly:*:*)
 
1236
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
1237
        exit 0 ;;
 
1238
    *:*VMS:*:*)
 
1239
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
 
1240
        case "${UNAME_MACHINE}" in
 
1241
            A*) echo alpha-dec-vms && exit 0 ;;
 
1242
            I*) echo ia64-dec-vms && exit 0 ;;
 
1243
            V*) echo vax-dec-vms && exit 0 ;;
 
1244
        esac
1195
1245
esac
1196
1246
 
1197
1247
#echo '(No uname command or uname output not recognized.)' 1>&2