2
2
# Attempt to guess a canonical system name.
3
3
# Copyright 1992-2016 Free Software Foundation, Inc.
4
4
5
- timestamp=' 2016-02-11 '
5
+ timestamp=' 2016-05-15 '
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
@@ -186,9 +186,12 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
186
186
* ) machine=${UNAME_MACHINE_ARCH} -unknown ;;
187
187
esac
188
188
# The Operating System including object format, if it has switched
189
- # to ELF recently, or will in the future.
189
+ # to ELF recently ( or will in the future) and ABI .
190
190
case " ${UNAME_MACHINE_ARCH} " in
191
- arm* |earm* |i386|m68k|ns32k|sh3* |sparc|vax)
191
+ earm* )
192
+ os=netbsdelf
193
+ ;;
194
+ arm* |i386|m68k|ns32k|sh3* |sparc|vax)
192
195
eval $set_cc_for_build
193
196
if echo __ELF__ | $CC_FOR_BUILD -E - 2> /dev/null \
194
197
| grep -q __ELF__
@@ -386,7 +389,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
386
389
# This test works for both compilers.
387
390
if [ " $CC_FOR_BUILD " != no_compiler_found ]; then
388
391
if (echo ' #ifdef __amd64' ; echo IS_64BIT_ARCH; echo ' #endif' ) | \
389
- (CCOPTS= $CC_FOR_BUILD -E - 2> /dev/null) | \
392
+ (CCOPTS=" " $CC_FOR_BUILD -E - 2> /dev/null) | \
390
393
grep IS_64BIT_ARCH > /dev/null
391
394
then
392
395
SUN_ARCH=x86_64
684
687
exit (0);
685
688
}
686
689
EOF
687
- (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy .c 2> /dev/null) && HP_ARCH=` $dummy `
690
+ (CCOPTS=" " $CC_FOR_BUILD -o $dummy $dummy .c 2> /dev/null) && HP_ARCH=` $dummy `
688
691
test -z " $HP_ARCH " && HP_ARCH=hppa
689
692
fi ;;
690
693
esac
701
704
# $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
702
705
# => hppa64-hp-hpux11.23
703
706
704
- if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2> /dev/null) |
707
+ if echo __LP64__ | (CCOPTS=" " $CC_FOR_BUILD -E - 2> /dev/null) |
705
708
grep -q __LP64__
706
709
then
707
710
HP_ARCH=hppa2.0w
900
903
exit ;;
901
904
* :GNU/* :* :* )
902
905
# other systems with GNU libc and userland
903
- echo ${UNAME_MACHINE} -unknown-` echo ${UNAME_SYSTEM} | sed ' s,^[^/]*/,,' | tr ' [A-Z] ' ' [a-z] ' ` ` echo ${UNAME_RELEASE} | sed -e ' s/[-(].*//' ` -${LIBC}
906
+ echo ${UNAME_MACHINE} -unknown-` echo ${UNAME_SYSTEM} | sed ' s,^[^/]*/,,' | tr " [:upper:] " " [:lower:] " ` ` echo ${UNAME_RELEASE} | sed -e ' s/[-(].*//' ` -${LIBC}
904
907
exit ;;
905
908
i* 86:Minix:* :* )
906
909
echo ${UNAME_MACHINE} -pc-minix
@@ -1276,6 +1279,9 @@ EOF
1276
1279
SX-8R:SUPER-UX:* :* )
1277
1280
echo sx8r-nec-superux${UNAME_RELEASE}
1278
1281
exit ;;
1282
+ SX-ACE:SUPER-UX:* :* )
1283
+ echo sxace-nec-superux${UNAME_RELEASE}
1284
+ exit ;;
1279
1285
Power* :Rhapsody:* :* )
1280
1286
echo powerpc-apple-rhapsody${UNAME_RELEASE}
1281
1287
exit ;;
@@ -1291,7 +1297,7 @@ EOF
1291
1297
if test ` echo " $UNAME_RELEASE " | sed -e ' s/\..*//' ` -le 10 ; then
1292
1298
if [ " $CC_FOR_BUILD " != no_compiler_found ]; then
1293
1299
if (echo ' #ifdef __LP64__' ; echo IS_64BIT_ARCH; echo ' #endif' ) | \
1294
- (CCOPTS= $CC_FOR_BUILD -E - 2> /dev/null) | \
1300
+ (CCOPTS=" " $CC_FOR_BUILD -E - 2> /dev/null) | \
1295
1301
grep IS_64BIT_ARCH > /dev/null
1296
1302
then
1297
1303
case $UNAME_PROCESSOR in
@@ -1386,7 +1392,7 @@ EOF
1386
1392
echo i386-pc-xenix
1387
1393
exit ;;
1388
1394
i* 86:skyos:* :* )
1389
- echo ${UNAME_MACHINE} -pc-skyos` echo ${UNAME_RELEASE} ` | sed -e ' s/ .*$//'
1395
+ echo ${UNAME_MACHINE} -pc-skyos` echo ${UNAME_RELEASE} | sed -e ' s/ .*$//' `
1390
1396
exit ;;
1391
1397
i* 86:rdos:* :* )
1392
1398
echo ${UNAME_MACHINE} -pc-rdos
@@ -1405,18 +1411,17 @@ esac
1405
1411
cat >&2 << EOF
1406
1412
$0 : unable to guess system type
1407
1413
1408
- This script, last modified $timestamp , has failed to recognize
1409
- the operating system you are using. It is advised that you
1410
- download the most up to date version of the config scripts from
1414
+ This script (version $timestamp ) , has failed to recognize the
1415
+ operating system you are using. If your script is old, overwrite
1416
+ config.guess and config.sub with the latest versions from:
1411
1417
1412
1418
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
1413
1419
and
1414
1420
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1415
1421
1416
- If the version you run ($0 ) is already up to date, please
1417
- send the following data and any information you think might be
1418
- pertinent to <[email protected] > in order to provide the needed
1419
- information to handle your system.
1422
+ If $0 has already been updated, send the following data and any
1423
+ information you think might be pertinent to [email protected] to
1424
+ provide the necessary information to handle your system.
1420
1425
1421
1426
config.guess timestamp = $timestamp
1422
1427
0 commit comments