~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to extension/build-aux/config.guess

  • Committer: Arnold D. Robbins
  • Date: 2015-09-25 10:41:00 UTC
  • mto: (408.28.3) (731.1.8)
  • mto: This revision was merged to the branch mainline in revision 565.
  • Revision ID: git-v1:3e762b6f62061974d152dd251f3e83cacca073e3
Update infrastructure files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Attempt to guess a canonical system name.
3
3
#   Copyright 1992-2015 Free Software Foundation, Inc.
4
4
 
5
 
timestamp='2015-01-01'
 
5
timestamp='2015-09-14'
6
6
 
7
7
# This file is free software; you can redistribute it and/or modify it
8
8
# under the terms of the GNU General Public License as published by
168
168
        # Note: NetBSD doesn't particularly care about the vendor
169
169
        # portion of the name.  We always set it to "unknown".
170
170
        sysctl="sysctl -n hw.machine_arch"
171
 
        UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
172
 
            /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
 
171
        UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
 
172
            /sbin/$sysctl 2>/dev/null || \
 
173
            /usr/sbin/$sysctl 2>/dev/null || \
 
174
            echo unknown)`
173
175
        case "${UNAME_MACHINE_ARCH}" in
174
176
            armeb) machine=armeb-unknown ;;
175
177
            arm*) machine=arm-unknown ;;
176
178
            sh3el) machine=shl-unknown ;;
177
179
            sh3eb) machine=sh-unknown ;;
178
180
            sh5el) machine=sh5le-unknown ;;
 
181
            earmv*)
 
182
                arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
 
183
                endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
 
184
                machine=${arch}${endian}-unknown
 
185
                ;;
179
186
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
180
187
        esac
181
188
        # The Operating System including object format, if it has switched
182
189
        # to ELF recently, or will in the future.
183
190
        case "${UNAME_MACHINE_ARCH}" in
184
 
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
 
191
            arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
185
192
                eval $set_cc_for_build
186
193
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
187
194
                        | grep -q __ELF__
197
204
                os=netbsd
198
205
                ;;
199
206
        esac
 
207
        # Determine ABI tags.
 
208
        case "${UNAME_MACHINE_ARCH}" in
 
209
            earm*)
 
210
                expr='s/^earmv[0-9]/-eabi/;s/eb$//'
 
211
                abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
 
212
                ;;
 
213
        esac
200
214
        # The OS release
201
215
        # Debian GNU/NetBSD machines have a different userland, and
202
216
        # thus, need a distinct triplet. However, they do not need
207
221
                release='-gnu'
208
222
                ;;
209
223
            *)
210
 
                release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
 
224
                release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
211
225
                ;;
212
226
        esac
213
227
        # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
214
228
        # contains redundant information, the shorter form:
215
229
        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
216
 
        echo "${machine}-${os}${release}"
 
230
        echo "${machine}-${os}${release}${abi}"
217
231
        exit ;;
218
232
    *:Bitrig:*:*)
219
233
        UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
235
249
    *:MirBSD:*:*)
236
250
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
237
251
        exit ;;
 
252
    *:Sortix:*:*)
 
253
        echo ${UNAME_MACHINE}-unknown-sortix
 
254
        exit ;;
238
255
    alpha:OSF1:*:*)
239
256
        case $UNAME_RELEASE in
240
257
        *4.0)
933
950
    crisv32:Linux:*:*)
934
951
        echo ${UNAME_MACHINE}-axis-linux-${LIBC}
935
952
        exit ;;
 
953
    e2k:Linux:*:*)
 
954
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
955
        exit ;;
936
956
    frv:Linux:*:*)
937
957
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
938
958
        exit ;;
945
965
    ia64:Linux:*:*)
946
966
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
947
967
        exit ;;
 
968
    k1om:Linux:*:*)
 
969
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
970
        exit ;;
948
971
    m32r*:Linux:*:*)
949
972
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
950
973
        exit ;;
1021
1044
        echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1022
1045
        exit ;;
1023
1046
    x86_64:Linux:*:*)
1024
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
1047
        echo ${UNAME_MACHINE}-pc-linux-${LIBC}
1025
1048
        exit ;;
1026
1049
    xtensa*:Linux:*:*)
1027
1050
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}