~ubuntu-branches/ubuntu/gutsy/tomboy/gutsy-updates

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-11-16 21:24:14 UTC
  • mfrom: (1.1.7 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20061116212414-i9mqu3nnn90ulo7m
Tags: 0.5.0-0ubuntu1
* New upstream release
* debian/patches/52_applet-crash.patch:
  + Dropped, merged upstream
* debian/control,
  debian/patches/52_external-dbus-sharp.patch:
  + Build depend on libdbus-1-cil and build against it instead of the
    bundled version
* debian/rules:
  + Install DBus service file into the correct directory
* debian/patches/53_tomboy-tray-icon.patch:
  + Correctly set the icon for the trayicon

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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
 
5
#   Inc.
5
6
 
6
 
timestamp='2005-08-03'
 
7
timestamp='2006-05-13'
7
8
 
8
9
# This file is free software; you can redistribute it and/or modify it
9
10
# under the terms of the GNU General Public License as published by
106
107
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107
108
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108
109
: ${TMPDIR=/tmp} ;
109
 
 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 
110
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110
111
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111
112
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112
113
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
138
139
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
139
140
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140
141
 
 
142
case "${UNAME_MACHINE}" in
 
143
    i?86)
 
144
        test -z "$VENDOR" && VENDOR=pc
 
145
        ;;
 
146
    *)
 
147
        test -z "$VENDOR" && VENDOR=unknown
 
148
        ;;
 
149
esac
 
150
test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
 
151
 
141
152
# Note: order is significant - the case branches are not exclusive.
142
153
 
143
154
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
206
217
    *:ekkoBSD:*:*)
207
218
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
208
219
        exit ;;
 
220
    *:SolidBSD:*:*)
 
221
        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
 
222
        exit ;;
209
223
    macppc:MirBSD:*:*)
210
224
        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
211
225
        exit ;;
764
778
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
765
779
        exit ;;
766
780
    *:FreeBSD:*:*)
767
 
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
781
        case ${UNAME_MACHINE} in
 
782
            pc98)
 
783
                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
784
            amd64)
 
785
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
786
            *)
 
787
                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
788
        esac
768
789
        exit ;;
769
790
    i*:CYGWIN*:*)
770
791
        echo ${UNAME_MACHINE}-pc-cygwin
779
800
    i*:PW*:*)
780
801
        echo ${UNAME_MACHINE}-pc-pw32
781
802
        exit ;;
782
 
    x86:Interix*:[34]*)
783
 
        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
 
803
    x86:Interix*:[345]*)
 
804
        echo i586-pc-interix${UNAME_RELEASE}
 
805
        exit ;;
 
806
    EM64T:Interix*:[345]*)
 
807
        echo x86_64-unknown-interix${UNAME_RELEASE}
784
808
        exit ;;
785
809
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
786
810
        echo i${UNAME_MACHINE}-pc-mks
815
839
        echo ${UNAME_MACHINE}-pc-minix
816
840
        exit ;;
817
841
    arm*:Linux:*:*)
818
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
842
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
819
843
        exit ;;
820
844
    cris:Linux:*:*)
821
845
        echo cris-axis-linux-gnu
824
848
        echo crisv32-axis-linux-gnu
825
849
        exit ;;
826
850
    frv:Linux:*:*)
827
 
        echo frv-unknown-linux-gnu
 
851
        echo frv-${VENDOR}-linux-gnu
828
852
        exit ;;
829
853
    ia64:Linux:*:*)
830
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
854
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
831
855
        exit ;;
832
856
    m32r*:Linux:*:*)
833
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
857
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
834
858
        exit ;;
835
859
    m68*:Linux:*:*)
836
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
860
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
837
861
        exit ;;
838
862
    mips:Linux:*:*)
839
863
        eval $set_cc_for_build
851
875
        #endif
852
876
        #endif
853
877
EOF
854
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
855
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
 
878
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
879
            /^CPU/{
 
880
                s: ::g
 
881
                p
 
882
            }'`"
 
883
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
856
884
        ;;
857
885
    mips64:Linux:*:*)
858
886
        eval $set_cc_for_build
870
898
        #endif
871
899
        #endif
872
900
EOF
873
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
874
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
 
901
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
902
            /^CPU/{
 
903
                s: ::g
 
904
                p
 
905
            }'`"
 
906
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
875
907
        ;;
876
908
    or32:Linux:*:*)
877
 
        echo or32-unknown-linux-gnu
 
909
        echo or32-${VENDOR}-linux-gnu
878
910
        exit ;;
879
911
    ppc:Linux:*:*)
880
 
        echo powerpc-unknown-linux-gnu
 
912
        echo powerpc-${VENDOR}-linux-gnu
881
913
        exit ;;
882
914
    ppc64:Linux:*:*)
883
 
        echo powerpc64-unknown-linux-gnu
 
915
        echo powerpc64-${VENDOR}-linux-gnu
884
916
        exit ;;
885
917
    alpha:Linux:*:*)
886
918
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
894
926
        esac
895
927
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
896
928
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
897
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
 
929
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
898
930
        exit ;;
899
931
    parisc:Linux:*:* | hppa:Linux:*:*)
900
932
        # Look for CPU level
901
933
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
902
 
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
903
 
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
904
 
          *)    echo hppa-unknown-linux-gnu ;;
 
934
          PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;;
 
935
          PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
 
936
          *)    echo hppa-${VENDOR}-linux-gnu ;;
905
937
        esac
906
938
        exit ;;
907
939
    parisc64:Linux:*:* | hppa64:Linux:*:*)
908
 
        echo hppa64-unknown-linux-gnu
 
940
        echo hppa64-${VENDOR}-linux-gnu
909
941
        exit ;;
910
942
    s390:Linux:*:* | s390x:Linux:*:*)
911
943
        echo ${UNAME_MACHINE}-ibm-linux
912
944
        exit ;;
913
945
    sh64*:Linux:*:*)
914
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
946
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
915
947
        exit ;;
916
948
    sh*:Linux:*:*)
917
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
949
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
918
950
        exit ;;
919
951
    sparc:Linux:*:* | sparc64:Linux:*:*)
920
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
952
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
953
        exit ;;
 
954
    vax:Linux:*:*)
 
955
        echo ${UNAME_MACHINE}-dec-linux-gnu
921
956
        exit ;;
922
957
    x86_64:Linux:*:*)
923
 
        echo x86_64-unknown-linux-gnu
 
958
        echo x86_64-${VENDOR}-linux-gnu
924
959
        exit ;;
925
960
    i*86:Linux:*:*)
926
961
        # The BFD linker knows what the default object file format is, so
935
970
                                    p'`
936
971
        case "$ld_supported_targets" in
937
972
          elf32-i386)
938
 
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
 
973
                TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux-gnu"
939
974
                ;;
940
975
          a.out-i386-linux)
941
 
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
 
976
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuaout"
942
977
                exit ;;
943
978
          coff-i386)
944
 
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
 
979
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnucoff"
945
980
                exit ;;
946
981
          "")
947
982
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
948
983
                # one that does not give us useful --help.
949
 
                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
 
984
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuoldld"
950
985
                exit ;;
951
986
        esac
952
987
        # Determine whether the default compiler is a.out or elf
964
999
        LIBC=gnulibc1
965
1000
        # endif
966
1001
        #else
967
 
        #ifdef __INTEL_COMPILER
 
1002
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
968
1003
        LIBC=gnu
969
1004
        #else
970
1005
        LIBC=gnuaout
974
1009
        LIBC=dietlibc
975
1010
        #endif
976
1011
EOF
977
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
 
1012
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
1013
            /^LIBC/{
 
1014
                s: ::g
 
1015
                p
 
1016
            }'`"
978
1017
        test x"${LIBC}" != x && {
979
 
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
 
1018
                echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
980
1019
                exit
981
1020
        }
982
1021
        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1185
1224
    *:Darwin:*:*)
1186
1225
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1187
1226
        case $UNAME_PROCESSOR in
1188
 
            *86) UNAME_PROCESSOR=i686 ;;
1189
1227
            unknown) UNAME_PROCESSOR=powerpc ;;
1190
1228
        esac
1191
1229
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1264
1302
    i*86:skyos:*:*)
1265
1303
        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1266
1304
        exit ;;
 
1305
    i*86:rdos:*:*)
 
1306
        echo ${UNAME_MACHINE}-pc-rdos
 
1307
        exit ;;
1267
1308
esac
1268
1309
 
1269
1310
#echo '(No uname command or uname output not recognized.)' 1>&2