~ubuntu-branches/ubuntu/quantal/kde-i18n-bg/quantal

« back to all changes in this revision

Viewing changes to admin/config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-11-15 14:14:36 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20071115141436-hzfzqcay39812gx8
Tags: 4:3.5.8-0ubuntu1
New upstream release

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-06-30'
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 ; } ;
126
125
        ;;
127
126
 ,,*)   CC_FOR_BUILD=$CC ;;
128
127
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
129
 
esac ; set_cc_for_build= ;'
 
128
esac ;'
130
129
 
131
130
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
132
131
# (ghazi@noc.rutgers.edu 1994-08-24)
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}
628
623
        esac
629
624
        if [ ${HP_ARCH} = "hppa2.0w" ]
630
625
        then
631
 
            eval $set_cc_for_build
 
626
            # avoid double evaluation of $set_cc_for_build
 
627
            test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
632
628
 
633
629
            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
634
630
            # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
769
765
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
770
766
        exit ;;
771
767
    *: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
 
768
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
780
769
        exit ;;
781
770
    i*:CYGWIN*:*)
782
771
        echo ${UNAME_MACHINE}-pc-cygwin
783
772
        exit ;;
784
 
    *:MINGW*:*)
 
773
    i*:MINGW*:*)
785
774
        echo ${UNAME_MACHINE}-pc-mingw32
786
775
        exit ;;
787
776
    i*:windows32*:*)
791
780
    i*:PW*:*)
792
781
        echo ${UNAME_MACHINE}-pc-pw32
793
782
        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 ;;
 
783
    x86:Interix*:[34]*)
 
784
        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
 
785
        exit ;;
803
786
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
804
787
        echo i${UNAME_MACHINE}-pc-mks
805
788
        exit ;;
812
795
    i*:UWIN*:*)
813
796
        echo ${UNAME_MACHINE}-pc-uwin
814
797
        exit ;;
815
 
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
 
798
    amd64:CYGWIN*:*:*)
816
799
        echo x86_64-unknown-cygwin
817
800
        exit ;;
818
801
    p*:CYGWIN*:*)
835
818
    arm*:Linux:*:*)
836
819
        echo ${UNAME_MACHINE}-unknown-linux-gnu
837
820
        exit ;;
838
 
    avr32*:Linux:*:*)
839
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
840
 
        exit ;;
841
821
    cris:Linux:*:*)
842
822
        echo cris-axis-linux-gnu
843
823
        exit ;;
872
852
        #endif
873
853
        #endif
874
854
EOF
875
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
876
 
            /^CPU/{
877
 
                s: ::g
878
 
                p
879
 
            }'`"
 
855
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
880
856
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
881
857
        ;;
882
858
    mips64:Linux:*:*)
895
871
        #endif
896
872
        #endif
897
873
EOF
898
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
899
 
            /^CPU/{
900
 
                s: ::g
901
 
                p
902
 
            }'`"
 
874
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
903
875
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
904
876
        ;;
905
 
    or32:Linux:*:*)
906
 
        echo or32-unknown-linux-gnu
907
 
        exit ;;
908
877
    ppc:Linux:*:*)
909
878
        echo powerpc-unknown-linux-gnu
910
879
        exit ;;
948
917
    sparc:Linux:*:* | sparc64:Linux:*:*)
949
918
        echo ${UNAME_MACHINE}-unknown-linux-gnu
950
919
        exit ;;
951
 
    vax:Linux:*:*)
952
 
        echo ${UNAME_MACHINE}-dec-linux-gnu
953
 
        exit ;;
954
920
    x86_64:Linux:*:*)
955
921
        echo x86_64-unknown-linux-gnu
956
922
        exit ;;
957
 
    xtensa:Linux:*:*)
958
 
        echo xtensa-unknown-linux-gnu
959
 
        exit ;;
960
923
    i*86:Linux:*:*)
961
924
        # The BFD linker knows what the default object file format is, so
962
925
        # first see if it will tell us. cd to the root directory to prevent
999
962
        LIBC=gnulibc1
1000
963
        # endif
1001
964
        #else
1002
 
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
 
965
        #ifdef __INTEL_COMPILER
1003
966
        LIBC=gnu
1004
967
        #else
1005
968
        LIBC=gnuaout
1009
972
        LIBC=dietlibc
1010
973
        #endif
1011
974
EOF
1012
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1013
 
            /^LIBC/{
1014
 
                s: ::g
1015
 
                p
1016
 
            }'`"
 
975
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
1017
976
        test x"${LIBC}" != x && {
1018
977
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1019
978
                exit
1215
1174
    SX-6:SUPER-UX:*:*)
1216
1175
        echo sx6-nec-superux${UNAME_RELEASE}
1217
1176
        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
1177
    Power*:Rhapsody:*:*)
1228
1178
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1229
1179
        exit ;;
1233
1183
    *:Darwin:*:*)
1234
1184
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1235
1185
        case $UNAME_PROCESSOR in
 
1186
            *86) UNAME_PROCESSOR=i686 ;;
1236
1187
            unknown) UNAME_PROCESSOR=powerpc ;;
1237
1188
        esac
1238
1189
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1311
1262
    i*86:skyos:*:*)
1312
1263
        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1313
1264
        exit ;;
1314
 
    i*86:rdos:*:*)
1315
 
        echo ${UNAME_MACHINE}-pc-rdos
1316
 
        exit ;;
1317
1265
esac
1318
1266
 
1319
1267
#echo '(No uname command or uname output not recognized.)' 1>&2