config.guess (xdelta3-3.0.10) | : | config.guess (xdelta3-3.0.11) | ||
---|---|---|---|---|
#! /bin/sh | #! /bin/sh | |||
# Attempt to guess a canonical system name. | # Attempt to guess a canonical system name. | |||
# Copyright 1992-2014 Free Software Foundation, Inc. | # Copyright 1992-2015 Free Software Foundation, Inc. | |||
timestamp='2014-02-12' | timestamp='2015-03-04' | |||
# This file is free software; you can redistribute it and/or modify it | # This file is free software; you can redistribute it and/or modify it | |||
# under the terms of the GNU General Public License as published by | # under the terms of the GNU General Public License as published by | |||
# the Free Software Foundation; either version 3 of the License, or | # the Free Software Foundation; either version 3 of the License, or | |||
# (at your option) any later version. | # (at your option) any later version. | |||
# | # | |||
# This program is distributed in the hope that it will be useful, but | # This program is distributed in the hope that it will be useful, but | |||
# WITHOUT ANY WARRANTY; without even the implied warranty of | # WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# General Public License for more details. | # General Public License for more details. | |||
skipping to change at line 27 | skipping to change at line 27 | |||
# You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | |||
# along with this program; if not, see <http://www.gnu.org/licenses/>. | # along with this program; if not, see <http://www.gnu.org/licenses/>. | |||
# | # | |||
# As a special exception to the GNU General Public License, if you | # As a special exception to the GNU General Public License, if you | |||
# distribute this file as part of a program that contains a | # distribute this file as part of a program that contains a | |||
# configuration script generated by Autoconf, you may include it under | # configuration script generated by Autoconf, you may include it under | |||
# the same distribution terms that you use for the rest of that | # the same distribution terms that you use for the rest of that | |||
# program. This Exception is an additional permission under section 7 | # program. This Exception is an additional permission under section 7 | |||
# of the GNU General Public License, version 3 ("GPLv3"). | # of the GNU General Public License, version 3 ("GPLv3"). | |||
# | # | |||
# Originally written by Per Bothner. | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. | |||
# | # | |||
# You can get the latest version of this script from: | # You can get the latest version of this script from: | |||
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;h b=HEAD | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;h b=HEAD | |||
# | # | |||
# Please send patches with a ChangeLog entry to config-patches@gnu.org. | # Please send patches to <config-patches@gnu.org>. | |||
me=`echo "$0" | sed -e 's,.*/,,'` | me=`echo "$0" | sed -e 's,.*/,,'` | |||
usage="\ | usage="\ | |||
Usage: $0 [OPTION] | Usage: $0 [OPTION] | |||
Output the configuration name of the system \`$me' is run on. | Output the configuration name of the system \`$me' is run on. | |||
Operation modes: | Operation modes: | |||
-h, --help print this help, then exit | -h, --help print this help, then exit | |||
-t, --time-stamp print date of last modification, then exit | -t, --time-stamp print date of last modification, then exit | |||
-v, --version print version number, then exit | -v, --version print version number, then exit | |||
Report bugs and patches to <config-patches@gnu.org>." | Report bugs and patches to <config-patches@gnu.org>." | |||
version="\ | version="\ | |||
GNU config.guess ($timestamp) | GNU config.guess ($timestamp) | |||
Originally written by Per Bothner. | Originally written by Per Bothner. | |||
Copyright 1992-2014 Free Software Foundation, Inc. | Copyright 1992-2015 Free Software Foundation, Inc. | |||
This is free software; see the source for copying conditions. There is NO | This is free software; see the source for copying conditions. There is NO | |||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | |||
help=" | help=" | |||
Try \`$me --help' for more information." | Try \`$me --help' for more information." | |||
# Parse command line | # Parse command line | |||
while test $# -gt 0 ; do | while test $# -gt 0 ; do | |||
case $1 in | case $1 in | |||
skipping to change at line 170 | skipping to change at line 170 | |||
# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | |||
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | |||
# switched to ELF, *-*-netbsd* would select the old | # switched to ELF, *-*-netbsd* would select the old | |||
# object file format. This provides both forward | # object file format. This provides both forward | |||
# compatibility and a consistent mechanism for selecting the | # compatibility and a consistent mechanism for selecting the | |||
# object file format. | # object file format. | |||
# | # | |||
# Note: NetBSD doesn't particularly care about the vendor | # Note: NetBSD doesn't particularly care about the vendor | |||
# portion of the name. We always set it to "unknown". | # portion of the name. We always set it to "unknown". | |||
sysctl="sysctl -n hw.machine_arch" | sysctl="sysctl -n hw.machine_arch" | |||
UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ | UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ | |||
/usr/sbin/$sysctl 2>/dev/null || echo unknown)` | /sbin/$sysctl 2>/dev/null || \ | |||
/usr/sbin/$sysctl 2>/dev/null || \ | ||||
echo unknown)` | ||||
case "${UNAME_MACHINE_ARCH}" in | case "${UNAME_MACHINE_ARCH}" in | |||
armeb) machine=armeb-unknown ;; | armeb) machine=armeb-unknown ;; | |||
arm*) machine=arm-unknown ;; | arm*) machine=arm-unknown ;; | |||
sh3el) machine=shl-unknown ;; | sh3el) machine=shl-unknown ;; | |||
sh3eb) machine=sh-unknown ;; | sh3eb) machine=sh-unknown ;; | |||
sh5el) machine=sh5le-unknown ;; | sh5el) machine=sh5le-unknown ;; | |||
earmv*) | ||||
arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\ | ||||
1,'` | ||||
endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` | ||||
machine=${arch}${endian}-unknown | ||||
;; | ||||
*) machine=${UNAME_MACHINE_ARCH}-unknown ;; | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; | |||
esac | esac | |||
# The Operating System including object format, if it has switched | # The Operating System including object format, if it has switched | |||
# to ELF recently, or will in the future. | # to ELF recently, or will in the future. | |||
case "${UNAME_MACHINE_ARCH}" in | case "${UNAME_MACHINE_ARCH}" in | |||
arm*|i386|m68k|ns32k|sh3*|sparc|vax) | arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax) | |||
eval $set_cc_for_build | eval $set_cc_for_build | |||
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |||
| grep -q __ELF__ | | grep -q __ELF__ | |||
then | then | |||
# Once all utilities can be ECOFF (netbsdecoff) or a.out (net bsdaout). | # Once all utilities can be ECOFF (netbsdecoff) or a.out (net bsdaout). | |||
# Return netbsd for either. FIX? | # Return netbsd for either. FIX? | |||
os=netbsd | os=netbsd | |||
else | else | |||
os=netbsdelf | os=netbsdelf | |||
fi | fi | |||
;; | ;; | |||
*) | *) | |||
os=netbsd | os=netbsd | |||
;; | ;; | |||
esac | esac | |||
# Determine ABI tags. | ||||
case "${UNAME_MACHINE_ARCH}" in | ||||
earm*) | ||||
expr='s/^earmv[0-9]/-eabi/;s/eb$//' | ||||
abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` | ||||
;; | ||||
esac | ||||
# The OS release | # The OS release | |||
# Debian GNU/NetBSD machines have a different userland, and | # Debian GNU/NetBSD machines have a different userland, and | |||
# thus, need a distinct triplet. However, they do not need | # thus, need a distinct triplet. However, they do not need | |||
# kernel version information, so it can be replaced with a | # kernel version information, so it can be replaced with a | |||
# suitable tag, in the style of linux-gnu. | # suitable tag, in the style of linux-gnu. | |||
case "${UNAME_VERSION}" in | case "${UNAME_VERSION}" in | |||
Debian*) | Debian*) | |||
release='-gnu' | release='-gnu' | |||
;; | ;; | |||
*) | *) | |||
release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | |||
;; | ;; | |||
esac | esac | |||
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | |||
# contains redundant information, the shorter form: | # contains redundant information, the shorter form: | |||
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | |||
echo "${machine}-${os}${release}" | echo "${machine}-${os}${release}${abi}" | |||
exit ;; | exit ;; | |||
*:Bitrig:*:*) | *:Bitrig:*:*) | |||
UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | |||
echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} | echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} | |||
exit ;; | exit ;; | |||
*:OpenBSD:*:*) | *:OpenBSD:*:*) | |||
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | |||
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | |||
exit ;; | exit ;; | |||
*:ekkoBSD:*:*) | *:ekkoBSD:*:*) | |||
skipping to change at line 581 | skipping to change at line 595 | |||
echo rs6000-ibm-aix3.2 | echo rs6000-ibm-aix3.2 | |||
fi | fi | |||
exit ;; | exit ;; | |||
*:AIX:*:[4567]) | *:AIX:*:[4567]) | |||
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk ' { print $1 }'` | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk ' { print $1 }'` | |||
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; th en | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; th en | |||
IBM_ARCH=rs6000 | IBM_ARCH=rs6000 | |||
else | else | |||
IBM_ARCH=powerpc | IBM_ARCH=powerpc | |||
fi | fi | |||
if [ -x /usr/bin/oslevel ] ; then | if [ -x /usr/bin/lslpp ] ; then | |||
IBM_REV=`/usr/bin/oslevel` | IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | | |||
awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` | ||||
else | else | |||
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |||
fi | fi | |||
echo ${IBM_ARCH}-ibm-aix${IBM_REV} | echo ${IBM_ARCH}-ibm-aix${IBM_REV} | |||
exit ;; | exit ;; | |||
*:AIX:*:*) | *:AIX:*:*) | |||
echo rs6000-ibm-aix | echo rs6000-ibm-aix | |||
exit ;; | exit ;; | |||
ibmrt:4.4BSD:*|romp-ibm:BSD:*) | ibmrt:4.4BSD:*|romp-ibm:BSD:*) | |||
echo romp-ibm-bsd4.4 | echo romp-ibm-bsd4.4 | |||
skipping to change at line 828 | skipping to change at line 843 | |||
exit ;; | exit ;; | |||
i*:CYGWIN*:*) | i*:CYGWIN*:*) | |||
echo ${UNAME_MACHINE}-pc-cygwin | echo ${UNAME_MACHINE}-pc-cygwin | |||
exit ;; | exit ;; | |||
*:MINGW64*:*) | *:MINGW64*:*) | |||
echo ${UNAME_MACHINE}-pc-mingw64 | echo ${UNAME_MACHINE}-pc-mingw64 | |||
exit ;; | exit ;; | |||
*:MINGW*:*) | *:MINGW*:*) | |||
echo ${UNAME_MACHINE}-pc-mingw32 | echo ${UNAME_MACHINE}-pc-mingw32 | |||
exit ;; | exit ;; | |||
i*:MSYS*:*) | *:MSYS*:*) | |||
echo ${UNAME_MACHINE}-pc-msys | echo ${UNAME_MACHINE}-pc-msys | |||
exit ;; | exit ;; | |||
i*:windows32*:*) | i*:windows32*:*) | |||
# uname -m includes "-pc" on this system. | # uname -m includes "-pc" on this system. | |||
echo ${UNAME_MACHINE}-mingw32 | echo ${UNAME_MACHINE}-mingw32 | |||
exit ;; | exit ;; | |||
i*:PW*:*) | i*:PW*:*) | |||
echo ${UNAME_MACHINE}-pc-pw32 | echo ${UNAME_MACHINE}-pc-pw32 | |||
exit ;; | exit ;; | |||
*:Interix*:*) | *:Interix*:*) | |||
skipping to change at line 934 | skipping to change at line 949 | |||
exit ;; | exit ;; | |||
avr32*:Linux:*:*) | avr32*:Linux:*:*) | |||
echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |||
exit ;; | exit ;; | |||
cris:Linux:*:*) | cris:Linux:*:*) | |||
echo ${UNAME_MACHINE}-axis-linux-${LIBC} | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |||
exit ;; | exit ;; | |||
crisv32:Linux:*:*) | crisv32:Linux:*:*) | |||
echo ${UNAME_MACHINE}-axis-linux-${LIBC} | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |||
exit ;; | exit ;; | |||
e2k:Linux:*:*) | ||||
echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
exit ;; | ||||
frv:Linux:*:*) | frv:Linux:*:*) | |||
echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |||
exit ;; | exit ;; | |||
hexagon:Linux:*:*) | hexagon:Linux:*:*) | |||
echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |||
exit ;; | exit ;; | |||
i*86:Linux:*:*) | i*86:Linux:*:*) | |||
echo ${UNAME_MACHINE}-pc-linux-${LIBC} | echo ${UNAME_MACHINE}-pc-linux-${LIBC} | |||
exit ;; | exit ;; | |||
ia64:Linux:*:*) | ia64:Linux:*:*) | |||
skipping to change at line 971 | skipping to change at line 989 | |||
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defin ed(MIPSEB) | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defin ed(MIPSEB) | |||
CPU=${UNAME_MACHINE} | CPU=${UNAME_MACHINE} | |||
#else | #else | |||
CPU= | CPU= | |||
#endif | #endif | |||
#endif | #endif | |||
EOF | EOF | |||
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | |||
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } | |||
;; | ;; | |||
or1k:Linux:*:*) | openrisc*:Linux:*:*) | |||
echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | echo or1k-unknown-linux-${LIBC} | |||
exit ;; | exit ;; | |||
or32:Linux:*:*) | or32:Linux:*:* | or1k*:Linux:*:*) | |||
echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |||
exit ;; | exit ;; | |||
padre:Linux:*:*) | padre:Linux:*:*) | |||
echo sparc-unknown-linux-${LIBC} | echo sparc-unknown-linux-${LIBC} | |||
exit ;; | exit ;; | |||
parisc64:Linux:*:* | hppa64:Linux:*:*) | parisc64:Linux:*:* | hppa64:Linux:*:*) | |||
echo hppa64-unknown-linux-${LIBC} | echo hppa64-unknown-linux-${LIBC} | |||
exit ;; | exit ;; | |||
parisc:Linux:*:* | hppa:Linux:*:*) | parisc:Linux:*:* | hppa:Linux:*:*) | |||
# Look for CPU level | # Look for CPU level | |||
End of changes. 15 change blocks. | ||||
15 lines changed or deleted | 34 lines changed or added |