~ubuntu-branches/ubuntu/wily/libwpd/wily-proposed

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2013-08-20 22:00:26 UTC
  • mfrom: (1.5.5)
  • Revision ID: package-import@ubuntu.com-20130820220026-9p9khyr1llcfkypl
Tags: 0.9.9-1
* New upstream release

* bump dh compat to 9, use /usr/share/dpkg/{architecture,buildflags}.mk 

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
 
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5
 
#   2011, 2012, 2013 Free Software Foundation, Inc.
 
3
#   Copyright 1992-2013 Free Software Foundation, Inc.
6
4
 
7
 
timestamp='2012-12-29'
 
5
timestamp='2013-06-10'
8
6
 
9
7
# This file is free software; you can redistribute it and/or modify it
10
8
# under the terms of the GNU General Public License as published by
26
24
# program.  This Exception is an additional permission under section 7
27
25
# of the GNU General Public License, version 3 ("GPLv3").
28
26
#
29
 
# Originally written by Per Bothner. 
 
27
# Originally written by Per Bothner.
30
28
#
31
29
# You can get the latest version of this script from:
32
30
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
52
50
GNU config.guess ($timestamp)
53
51
 
54
52
Originally written by Per Bothner.
55
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
56
 
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
57
 
2012, 2013 Free Software Foundation, Inc.
 
53
Copyright 1992-2013 Free Software Foundation, Inc.
58
54
 
59
55
This is free software; see the source for copying conditions.  There is NO
60
56
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
136
132
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
137
133
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
138
134
 
 
135
case "${UNAME_SYSTEM}" in
 
136
Linux|GNU|GNU/*)
 
137
        # If the system lacks a compiler, then just pick glibc.
 
138
        # We could probably try harder.
 
139
        LIBC=gnu
 
140
 
 
141
        eval $set_cc_for_build
 
142
        cat <<-EOF > $dummy.c
 
143
        #include <features.h>
 
144
        #if defined(__UCLIBC__)
 
145
        LIBC=uclibc
 
146
        #elif defined(__dietlibc__)
 
147
        LIBC=dietlibc
 
148
        #else
 
149
        LIBC=gnu
 
150
        #endif
 
151
        EOF
 
152
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
 
153
        ;;
 
154
esac
 
155
 
139
156
case "${UNAME_MACHINE}" in
140
157
  i?86)
141
158
     test -z "$VENDOR" && VENDOR=pc
867
884
        exit ;;
868
885
    *:GNU:*:*)
869
886
        # the GNU system
870
 
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
 
887
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
871
888
        exit ;;
872
889
    *:GNU/*:*:*)
873
890
        # other systems with GNU libc and userland
874
 
        echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
 
891
        echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
875
892
        exit ;;
876
893
    i*86:Minix:*:*)
877
894
        echo ${UNAME_MACHINE}-pc-minix
878
895
        exit ;;
879
896
    aarch64:Linux:*:*)
880
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
897
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
881
898
        exit ;;
882
899
    aarch64_be:Linux:*:*)
883
900
        UNAME_MACHINE=aarch64_be
884
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
901
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
885
902
        exit ;;
886
903
    alpha:Linux:*:*)
887
904
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
894
911
          EV68*) UNAME_MACHINE=alphaev68 ;;
895
912
        esac
896
913
        objdump --private-headers /bin/sh | grep -q ld.so.1
897
 
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
898
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
 
914
        if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
 
915
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
 
916
        exit ;;
 
917
    arc:Linux:*:* | arceb:Linux:*:*)
 
918
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
899
919
        exit ;;
900
920
    arm*:Linux:*:*)
901
921
        eval $set_cc_for_build
902
922
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
903
923
            | grep -q __ARM_EABI__
904
924
        then
905
 
            echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
925
            echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
906
926
        else
907
927
            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
908
928
                | grep -q __ARM_PCS_VFP
909
929
            then
910
 
                echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi
 
930
                echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}eabi
911
931
            else
912
 
                echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabihf
 
932
                echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}eabihf
913
933
            fi
914
934
        fi
915
935
        exit ;;
916
936
    avr32*:Linux:*:*)
917
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
937
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
918
938
        exit ;;
919
939
    cris:Linux:*:*)
920
 
        echo ${UNAME_MACHINE}-axis-linux-gnu
 
940
        echo ${UNAME_MACHINE}-axis-linux-${LIBC}
921
941
        exit ;;
922
942
    crisv32:Linux:*:*)
923
 
        echo ${UNAME_MACHINE}-axis-linux-gnu
 
943
        echo ${UNAME_MACHINE}-axis-linux-${LIBC}
924
944
        exit ;;
925
945
    frv:Linux:*:*)
926
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
946
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
927
947
        exit ;;
928
948
    hexagon:Linux:*:*)
929
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
949
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
930
950
        exit ;;
931
951
    i*86:Linux:*:*)
932
 
        LIBC=gnu
933
 
        eval $set_cc_for_build
934
 
        sed 's/^        //' << EOF >$dummy.c
935
 
        #ifdef __dietlibc__
936
 
        LIBC=dietlibc
937
 
        #endif
938
 
EOF
939
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
940
 
        echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
 
952
        echo ${UNAME_MACHINE}-pc-linux-${LIBC}
941
953
        exit ;;
942
954
    ia64:Linux:*:*)
943
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
955
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
944
956
        exit ;;
945
957
    m32r*:Linux:*:*)
946
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
958
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
947
959
        exit ;;
948
960
    m68*:Linux:*:*)
949
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
961
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
950
962
        exit ;;
951
963
    mips:Linux:*:* | mips64:Linux:*:*)
952
964
        eval $set_cc_for_build
965
977
        #endif
966
978
EOF
967
979
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
968
 
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
 
980
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-${LIBC}"; exit; }
969
981
        ;;
 
982
    or1k:Linux:*:*)
 
983
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
 
984
        exit ;;
970
985
    or32:Linux:*:*)
971
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
986
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
972
987
        exit ;;
973
988
    padre:Linux:*:*)
974
 
        echo sparc-${VENDOR}-linux-gnu
 
989
        echo sparc-${VENDOR}-linux-${LIBC}
975
990
        exit ;;
976
991
    parisc64:Linux:*:* | hppa64:Linux:*:*)
977
 
        echo hppa64-${VENDOR}-linux-gnu
 
992
        echo hppa64-${VENDOR}-linux-${LIBC}
978
993
        exit ;;
979
994
    parisc:Linux:*:* | hppa:Linux:*:*)
980
995
        # Look for CPU level
981
996
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
982
 
          PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;;
983
 
          PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
984
 
          *)    echo hppa-${VENDOR}-linux-gnu ;;
 
997
          PA7*) echo hppa1.1-${VENDOR}-linux-${LIBC} ;;
 
998
          PA8*) echo hppa2.0-${VENDOR}-linux-${LIBC} ;;
 
999
          *)    echo hppa-${VENDOR}-linux-${LIBC} ;;
985
1000
        esac
986
1001
        exit ;;
987
1002
    ppc64:Linux:*:*)
988
 
        echo powerpc64-${VENDOR}-linux-gnu
 
1003
        echo powerpc64-${VENDOR}-linux-${LIBC}
989
1004
        exit ;;
990
1005
    ppc:Linux:*:*)
991
 
        echo powerpc-${VENDOR}-linux-gnu
 
1006
        echo powerpc-${VENDOR}-linux-${LIBC}
 
1007
        exit ;;
 
1008
    ppc64le:Linux:*:*)
 
1009
        echo powerpc64le-${VENDOR}-linux-${LIBC}
 
1010
        exit ;;
 
1011
    ppcle:Linux:*:*)
 
1012
        echo powerpcle-${VENDOR}-linux-${LIBC}
992
1013
        exit ;;
993
1014
    s390:Linux:*:* | s390x:Linux:*:*)
994
 
        echo ${UNAME_MACHINE}-ibm-linux
 
1015
        echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
995
1016
        exit ;;
996
1017
    sh64*:Linux:*:*)
997
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
1018
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
998
1019
        exit ;;
999
1020
    sh*:Linux:*:*)
1000
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
1021
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1001
1022
        exit ;;
1002
1023
    sparc:Linux:*:* | sparc64:Linux:*:*)
1003
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
1024
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1004
1025
        exit ;;
1005
1026
    tile*:Linux:*:*)
1006
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
1027
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1007
1028
        exit ;;
1008
1029
    vax:Linux:*:*)
1009
 
        echo ${UNAME_MACHINE}-dec-linux-gnu
 
1030
        echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1010
1031
        exit ;;
1011
1032
    x86_64:Linux:*:*)
1012
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
1033
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1013
1034
        exit ;;
1014
1035
    xtensa*:Linux:*:*)
1015
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
1036
        echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1016
1037
        exit ;;
1017
1038
    i*86:DYNIX/ptx:4*:*)
1018
1039
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1245
1266
        exit ;;
1246
1267
    *:Darwin:*:*)
1247
1268
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1248
 
        case $UNAME_PROCESSOR in
1249
 
            i386)
1250
 
                eval $set_cc_for_build
1251
 
                if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1252
 
                  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1253
 
                      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1254
 
                      grep IS_64BIT_ARCH >/dev/null
1255
 
                  then
1256
 
                      UNAME_PROCESSOR="x86_64"
1257
 
                  fi
1258
 
                fi ;;
1259
 
            unknown) UNAME_PROCESSOR=powerpc ;;
1260
 
        esac
 
1269
        eval $set_cc_for_build
 
1270
        if test "$UNAME_PROCESSOR" = unknown ; then
 
1271
            UNAME_PROCESSOR=powerpc
 
1272
        fi
 
1273
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
1274
            if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
 
1275
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
1276
                grep IS_64BIT_ARCH >/dev/null
 
1277
            then
 
1278
                case $UNAME_PROCESSOR in
 
1279
                    i386) UNAME_PROCESSOR=x86_64 ;;
 
1280
                    powerpc) UNAME_PROCESSOR=powerpc64 ;;
 
1281
                esac
 
1282
            fi
 
1283
        fi
1261
1284
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1262
1285
        exit ;;
1263
1286
    *:procnto*:*:* | *:QNX:[0123456789]*:*)