~ubuntu-branches/ubuntu/dapper/xorg-server/dapper-proposed

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Stone
  • Date: 2006-01-06 08:00:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060106080052-pstc5whufpekm1bt
Tags: 1:1.0.1-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
4
#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2004-01-24'
 
6
timestamp='2003-06-17'
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
136
136
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
137
137
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
138
138
 
 
139
## for Red Hat Linux
 
140
if test -f /etc/redhat-release ; then
 
141
    VENDOR=redhat ;
 
142
else
 
143
    VENDOR= ;
 
144
fi
 
145
 
139
146
# Note: order is significant - the case branches are not exclusive.
140
147
 
141
148
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
221
228
    mvmeppc:OpenBSD:*:*)
222
229
        echo powerpc-unknown-openbsd${UNAME_RELEASE}
223
230
        exit 0 ;;
224
 
    pegasos:OpenBSD:*:*)
225
 
        echo powerpc-unknown-openbsd${UNAME_RELEASE}
226
 
        exit 0 ;;
227
231
    pmax:OpenBSD:*:*)
228
232
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
229
233
        exit 0 ;;
310
314
    *:OS/390:*:*)
311
315
        echo i370-ibm-openedition
312
316
        exit 0 ;;
313
 
    *:OS400:*:*)
314
 
        echo powerpc-ibm-os400
315
 
        exit 0 ;;
316
317
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
317
318
        echo arm-acorn-riscix${UNAME_RELEASE}
318
319
        exit 0;;
405
406
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
406
407
        echo m68k-unknown-mint${UNAME_RELEASE}
407
408
        exit 0 ;;
408
 
    m68k:machten:*:*)
409
 
        echo m68k-apple-machten${UNAME_RELEASE}
410
 
        exit 0 ;;
411
409
    powerpc:machten:*:*)
412
410
        echo powerpc-apple-machten${UNAME_RELEASE}
413
411
        exit 0 ;;
743
741
        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
744
742
        exit 0 ;;
745
743
    *:UNICOS/mp:*:*)
746
 
        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
 
744
        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
747
745
        exit 0 ;;
748
746
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
749
747
        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
751
749
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
752
750
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
753
751
        exit 0 ;;
754
 
    5000:UNIX_System_V:4.*:*)
755
 
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
756
 
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
757
 
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
758
 
        exit 0 ;;
759
752
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
760
753
        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
761
754
        exit 0 ;;
765
758
    *:BSD/OS:*:*)
766
759
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
767
760
        exit 0 ;;
768
 
    *:FreeBSD:*:*)
 
761
    *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
769
762
        # Determine whether the default compiler uses glibc.
770
763
        eval $set_cc_for_build
771
764
        sed 's/^        //' << EOF >$dummy.c
777
770
        #endif
778
771
EOF
779
772
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
780
 
        # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
781
 
        # FreeBSD's kernel, but not the complete OS.
782
 
        case ${LIBC} in gnu) kernel_only='k' ;; esac
783
 
        echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
 
773
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
784
774
        exit 0 ;;
785
775
    i*:CYGWIN*:*)
786
776
        echo ${UNAME_MACHINE}-pc-cygwin
813
803
        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
814
804
        exit 0 ;;
815
805
    *:GNU:*:*)
816
 
        # the GNU system
817
806
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
818
807
        exit 0 ;;
819
 
    *:GNU/*:*:*)
820
 
        # other systems with GNU libc and userland
821
 
        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
822
 
        exit 0 ;;
823
808
    i*86:Minix:*:*)
824
809
        echo ${UNAME_MACHINE}-pc-minix
825
810
        exit 0 ;;
830
815
        echo cris-axis-linux-gnu
831
816
        exit 0 ;;
832
817
    ia64:Linux:*:*)
833
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
818
        echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu
834
819
        exit 0 ;;
835
820
    m68*:Linux:*:*)
836
821
        echo ${UNAME_MACHINE}-unknown-linux-gnu
874
859
        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
875
860
        ;;
876
861
    ppc:Linux:*:*)
877
 
        echo powerpc-unknown-linux-gnu
 
862
        echo powerpc-${VENDOR:-unknown}-linux-gnu
878
863
        exit 0 ;;
879
864
    ppc64:Linux:*:*)
880
 
        echo powerpc64-unknown-linux-gnu
 
865
        echo powerpc64-${VENDOR:-unknown}-linux-gnu
881
866
        exit 0 ;;
882
867
    alpha:Linux:*:*)
883
868
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
905
890
        echo hppa64-unknown-linux-gnu
906
891
        exit 0 ;;
907
892
    s390:Linux:*:* | s390x:Linux:*:*)
908
 
        echo ${UNAME_MACHINE}-ibm-linux
 
893
        echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu
909
894
        exit 0 ;;
910
895
    sh64*:Linux:*:*)
911
896
        echo ${UNAME_MACHINE}-unknown-linux-gnu
917
902
        echo ${UNAME_MACHINE}-unknown-linux-gnu
918
903
        exit 0 ;;
919
904
    x86_64:Linux:*:*)
920
 
        echo x86_64-unknown-linux-gnu
 
905
        echo x86_64-${VENDOR:-unknown}-linux-gnu
921
906
        exit 0 ;;
922
907
    i*86:Linux:*:*)
923
908
        # The BFD linker knows what the default object file format is, so
967
952
        LIBC=gnuaout
968
953
        #endif
969
954
        #endif
970
 
        #ifdef __dietlibc__
971
 
        LIBC=dietlibc
972
 
        #endif
973
955
EOF
974
956
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
975
 
        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
 
957
        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0
976
958
        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
977
959
        ;;
978
960
    i*86:DYNIX/ptx:4*:*)
1000
982
    i*86:atheos:*:*)
1001
983
        echo ${UNAME_MACHINE}-unknown-atheos
1002
984
        exit 0 ;;
1003
 
        i*86:syllable:*:*)
1004
 
        echo ${UNAME_MACHINE}-pc-syllable
1005
 
        exit 0 ;;
1006
985
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1007
986
        echo i386-unknown-lynxos${UNAME_RELEASE}
1008
987
        exit 0 ;;
1074
1053
        exit 0 ;;
1075
1054
    M68*:*:R3V[567]*:*)
1076
1055
        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1077
 
    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)
 
1056
    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)
1078
1057
        OS_REL=''
1079
1058
        test -r /etc/.relid \
1080
1059
        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1189
1168
    *:QNX:*:4*)
1190
1169
        echo i386-pc-qnx
1191
1170
        exit 0 ;;
1192
 
    NSR-?:NONSTOP_KERNEL:*:*)
 
1171
    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
1193
1172
        echo nsr-tandem-nsk${UNAME_RELEASE}
1194
1173
        exit 0 ;;
1195
1174
    *:NonStop-UX:*:*)
1233
1212
    SEI:*:*:SEIUX)
1234
1213
        echo mips-sei-seiux${UNAME_RELEASE}
1235
1214
        exit 0 ;;
1236
 
    *:DragonFly:*:*)
1237
 
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1238
 
        exit 0 ;;
1239
1215
esac
1240
1216
 
1241
1217
#echo '(No uname command or uname output not recognized.)' 1>&2