~ubuntu-branches/ubuntu/quantal/mutt/quantal-security

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-06-19 10:29:06 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080619102906-qw80cgc0ave6ifj8
Tags: 1.5.18-2ubuntu1
* Merge from debian unstable, remaining changes:
  - Build-depend on elinks (elinks doesn't provide links anymore).

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 Free Software Foundation, Inc.
6
5
 
7
 
timestamp='2007-07-22'
 
6
timestamp='2005-07-08'
8
7
 
9
8
# This file is free software; you can redistribute it and/or modify it
10
9
# under the terms of the GNU General Public License as published by
107
106
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108
107
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
109
108
: ${TMPDIR=/tmp} ;
110
 
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 
109
 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
111
110
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
112
111
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
113
112
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
161
160
            arm*) machine=arm-unknown ;;
162
161
            sh3el) machine=shl-unknown ;;
163
162
            sh3eb) machine=sh-unknown ;;
164
 
            sh5el) machine=sh5le-unknown ;;
165
163
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
166
164
        esac
167
165
        # The Operating System including object format, if it has switched
208
206
    *:ekkoBSD:*:*)
209
207
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
210
208
        exit ;;
211
 
    *:SolidBSD:*:*)
212
 
        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
213
 
        exit ;;
214
209
    macppc:MirBSD:*:*)
215
 
        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
 
210
        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
216
211
        exit ;;
217
212
    *:MirBSD:*:*)
218
213
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
330
325
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
331
326
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332
327
        exit ;;
333
 
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
 
328
    i86pc:SunOS:5.*:*)
334
329
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335
330
        exit ;;
336
331
    sun4*:SunOS:6*:*)
769
764
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
770
765
        exit ;;
771
766
    *:FreeBSD:*:*)
772
 
        case ${UNAME_MACHINE} in
773
 
            pc98)
774
 
                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
775
 
            amd64)
776
 
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
777
 
            *)
778
 
                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
779
 
        esac
 
767
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
780
768
        exit ;;
781
769
    i*:CYGWIN*:*)
782
770
        echo ${UNAME_MACHINE}-pc-cygwin
783
771
        exit ;;
784
 
    *:MINGW*:*)
 
772
    i*:MINGW*:*)
785
773
        echo ${UNAME_MACHINE}-pc-mingw32
786
774
        exit ;;
787
775
    i*:windows32*:*)
791
779
    i*:PW*:*)
792
780
        echo ${UNAME_MACHINE}-pc-pw32
793
781
        exit ;;
794
 
    *:Interix*:[3456]*)
795
 
        case ${UNAME_MACHINE} in
796
 
            x86)
797
 
                echo i586-pc-interix${UNAME_RELEASE}
798
 
                exit ;;
799
 
            EM64T | authenticamd)
800
 
                echo x86_64-unknown-interix${UNAME_RELEASE}
801
 
                exit ;;
802
 
        esac ;;
 
782
    x86:Interix*:[34]*)
 
783
        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
 
784
        exit ;;
803
785
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
804
786
        echo i${UNAME_MACHINE}-pc-mks
805
787
        exit ;;
812
794
    i*:UWIN*:*)
813
795
        echo ${UNAME_MACHINE}-pc-uwin
814
796
        exit ;;
815
 
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
 
797
    amd64:CYGWIN*:*:*)
816
798
        echo x86_64-unknown-cygwin
817
799
        exit ;;
818
800
    p*:CYGWIN*:*)
835
817
    arm*:Linux:*:*)
836
818
        echo ${UNAME_MACHINE}-unknown-linux-gnu
837
819
        exit ;;
838
 
    avr32*:Linux:*:*)
839
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
840
 
        exit ;;
841
820
    cris:Linux:*:*)
842
821
        echo cris-axis-linux-gnu
843
822
        exit ;;
872
851
        #endif
873
852
        #endif
874
853
EOF
875
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
876
 
            /^CPU/{
877
 
                s: ::g
878
 
                p
879
 
            }'`"
 
854
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
880
855
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
881
856
        ;;
882
857
    mips64:Linux:*:*)
895
870
        #endif
896
871
        #endif
897
872
EOF
898
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
899
 
            /^CPU/{
900
 
                s: ::g
901
 
                p
902
 
            }'`"
 
873
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
903
874
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
904
875
        ;;
905
 
    or32:Linux:*:*)
906
 
        echo or32-unknown-linux-gnu
907
 
        exit ;;
908
876
    ppc:Linux:*:*)
909
877
        echo powerpc-unknown-linux-gnu
910
878
        exit ;;
948
916
    sparc:Linux:*:* | sparc64:Linux:*:*)
949
917
        echo ${UNAME_MACHINE}-unknown-linux-gnu
950
918
        exit ;;
951
 
    vax:Linux:*:*)
952
 
        echo ${UNAME_MACHINE}-dec-linux-gnu
953
 
        exit ;;
954
919
    x86_64:Linux:*:*)
955
920
        echo x86_64-unknown-linux-gnu
956
921
        exit ;;
957
 
    xtensa:Linux:*:*)
958
 
        echo xtensa-unknown-linux-gnu
959
 
        exit ;;
960
922
    i*86:Linux:*:*)
961
923
        # The BFD linker knows what the default object file format is, so
962
924
        # first see if it will tell us. cd to the root directory to prevent
999
961
        LIBC=gnulibc1
1000
962
        # endif
1001
963
        #else
1002
 
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
 
964
        #ifdef __INTEL_COMPILER
1003
965
        LIBC=gnu
1004
966
        #else
1005
967
        LIBC=gnuaout
1009
971
        LIBC=dietlibc
1010
972
        #endif
1011
973
EOF
1012
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1013
 
            /^LIBC/{
1014
 
                s: ::g
1015
 
                p
1016
 
            }'`"
 
974
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
1017
975
        test x"${LIBC}" != x && {
1018
976
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1019
977
                exit
1215
1173
    SX-6:SUPER-UX:*:*)
1216
1174
        echo sx6-nec-superux${UNAME_RELEASE}
1217
1175
        exit ;;
1218
 
    SX-7:SUPER-UX:*:*)
1219
 
        echo sx7-nec-superux${UNAME_RELEASE}
1220
 
        exit ;;
1221
 
    SX-8:SUPER-UX:*:*)
1222
 
        echo sx8-nec-superux${UNAME_RELEASE}
1223
 
        exit ;;
1224
 
    SX-8R:SUPER-UX:*:*)
1225
 
        echo sx8r-nec-superux${UNAME_RELEASE}
1226
 
        exit ;;
1227
1176
    Power*:Rhapsody:*:*)
1228
1177
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1229
1178
        exit ;;
1233
1182
    *:Darwin:*:*)
1234
1183
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1235
1184
        case $UNAME_PROCESSOR in
 
1185
            *86) UNAME_PROCESSOR=i686 ;;
1236
1186
            unknown) UNAME_PROCESSOR=powerpc ;;
1237
1187
        esac
1238
1188
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1311
1261
    i*86:skyos:*:*)
1312
1262
        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1313
1263
        exit ;;
1314
 
    i*86:rdos:*:*)
1315
 
        echo ${UNAME_MACHINE}-pc-rdos
1316
 
        exit ;;
1317
1264
esac
1318
1265
 
1319
1266
#echo '(No uname command or uname output not recognized.)' 1>&2