~ubuntu-branches/ubuntu/natty/pidgin-otr/natty-updates

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Thibaut VARENE
  • Date: 2008-07-10 17:34:32 UTC
  • mfrom: (2.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080710173432-aqx359odj7cp182a
Tags: 3.2.0-2
Make key generation use /dev/urandom (Closes: #489523)

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-03-06'
 
6
timestamp='2005-08-03'
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}
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 ;;
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
876
    or32:Linux:*:*)
948
919
    sparc:Linux:*:* | sparc64:Linux:*:*)
949
920
        echo ${UNAME_MACHINE}-unknown-linux-gnu
950
921
        exit ;;
951
 
    vax:Linux:*:*)
952
 
        echo ${UNAME_MACHINE}-dec-linux-gnu
953
 
        exit ;;
954
922
    x86_64:Linux:*:*)
955
923
        echo x86_64-unknown-linux-gnu
956
924
        exit ;;
957
 
    xtensa:Linux:*:*)
958
 
        echo xtensa-unknown-linux-gnu
959
 
        exit ;;
960
925
    i*86:Linux:*:*)
961
926
        # The BFD linker knows what the default object file format is, so
962
927
        # first see if it will tell us. cd to the root directory to prevent
999
964
        LIBC=gnulibc1
1000
965
        # endif
1001
966
        #else
1002
 
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
 
967
        #ifdef __INTEL_COMPILER
1003
968
        LIBC=gnu
1004
969
        #else
1005
970
        LIBC=gnuaout
1009
974
        LIBC=dietlibc
1010
975
        #endif
1011
976
EOF
1012
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1013
 
            /^LIBC/{
1014
 
                s: ::g
1015
 
                p
1016
 
            }'`"
 
977
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
1017
978
        test x"${LIBC}" != x && {
1018
979
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1019
980
                exit
1215
1176
    SX-6:SUPER-UX:*:*)
1216
1177
        echo sx6-nec-superux${UNAME_RELEASE}
1217
1178
        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
1179
    Power*:Rhapsody:*:*)
1228
1180
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1229
1181
        exit ;;
1233
1185
    *:Darwin:*:*)
1234
1186
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1235
1187
        case $UNAME_PROCESSOR in
 
1188
            *86) UNAME_PROCESSOR=i686 ;;
1236
1189
            unknown) UNAME_PROCESSOR=powerpc ;;
1237
1190
        esac
1238
1191
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1311
1264
    i*86:skyos:*:*)
1312
1265
        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1313
1266
        exit ;;
1314
 
    i*86:rdos:*:*)
1315
 
        echo ${UNAME_MACHINE}-pc-rdos
1316
 
        exit ;;
1317
1267
esac
1318
1268
 
1319
1269
#echo '(No uname command or uname output not recognized.)' 1>&2