config.guess (jq-1.5) | : | config.guess (jq-1.6) | ||
---|---|---|---|---|
#! /bin/sh | #! /bin/sh | |||
# Attempt to guess a canonical system name. | # Attempt to guess a canonical system name. | |||
# Copyright 1992-2013 Free Software Foundation, Inc. | # Copyright 1992-2014 Free Software Foundation, Inc. | |||
timestamp='2013-06-10' | timestamp='2014-11-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-2013 Free Software Foundation, Inc. | Copyright 1992-2014 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 151 | skipping to change at line 151 | |||
cat <<-EOF > $dummy.c | cat <<-EOF > $dummy.c | |||
#include <features.h> | #include <features.h> | |||
#if defined(__UCLIBC__) | #if defined(__UCLIBC__) | |||
LIBC=uclibc | LIBC=uclibc | |||
#elif defined(__dietlibc__) | #elif defined(__dietlibc__) | |||
LIBC=dietlibc | LIBC=dietlibc | |||
#else | #else | |||
LIBC=gnu | LIBC=gnu | |||
#endif | #endif | |||
EOF | EOF | |||
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g' ` | |||
;; | ;; | |||
esac | esac | |||
# Note: order is significant - the case branches are not exclusive. | # Note: order is significant - the case branches are not exclusive. | |||
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | |||
*:NetBSD:*:*) | *:NetBSD:*:*) | |||
# NetBSD (nbsd) targets should (where applicable) match one or | # NetBSD (nbsd) targets should (where applicable) match one or | |||
# 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 | |||
skipping to change at line 581 | skipping to change at line 581 | |||
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 829 | |||
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 971 | skipping to change at line 972 | |||
#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 | |||
skipping to change at line 1262 | skipping to change at line 1263 | |||
exit ;; | exit ;; | |||
*:Rhapsody:*:*) | *:Rhapsody:*:*) | |||
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | |||
exit ;; | exit ;; | |||
*:Darwin:*:*) | *:Darwin:*:*) | |||
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | |||
eval $set_cc_for_build | eval $set_cc_for_build | |||
if test "$UNAME_PROCESSOR" = unknown ; then | if test "$UNAME_PROCESSOR" = unknown ; then | |||
UNAME_PROCESSOR=powerpc | UNAME_PROCESSOR=powerpc | |||
fi | fi | |||
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then | |||
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |||
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | | |||
grep IS_64BIT_ARCH >/dev/null | \ | |||
then | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |||
case $UNAME_PROCESSOR in | grep IS_64BIT_ARCH >/dev/null | |||
i386) UNAME_PROCESSOR=x86_64 ;; | then | |||
powerpc) UNAME_PROCESSOR=powerpc64 ;; | case $UNAME_PROCESSOR in | |||
esac | i386) UNAME_PROCESSOR=x86_64 ;; | |||
powerpc) UNAME_PROCESSOR=powerpc64 ;; | ||||
esac | ||||
fi | ||||
fi | fi | |||
elif test "$UNAME_PROCESSOR" = i386 ; then | ||||
# Avoid executing cc on OS X 10.9, as it ships with a stub | ||||
# that puts up a graphical alert prompting to install | ||||
# developer tools. Any system running Mac OS X 10.7 or | ||||
# later (Darwin 11 and later) is required to have a 64-bit | ||||
# processor. This is not true of the ARM version of Darwin | ||||
# that Apple uses in portable devices. | ||||
UNAME_PROCESSOR=x86_64 | ||||
fi | fi | |||
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | |||
exit ;; | exit ;; | |||
*:procnto*:*:* | *:QNX:[0123456789]*:*) | *:procnto*:*:* | *:QNX:[0123456789]*:*) | |||
UNAME_PROCESSOR=`uname -p` | UNAME_PROCESSOR=`uname -p` | |||
if test "$UNAME_PROCESSOR" = "x86"; then | if test "$UNAME_PROCESSOR" = "x86"; then | |||
UNAME_PROCESSOR=i386 | UNAME_PROCESSOR=i386 | |||
UNAME_MACHINE=pc | UNAME_MACHINE=pc | |||
fi | fi | |||
echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | |||
skipping to change at line 1363 | skipping to change at line 1374 | |||
echo ${UNAME_MACHINE}-pc-rdos | echo ${UNAME_MACHINE}-pc-rdos | |||
exit ;; | exit ;; | |||
i*86:AROS:*:*) | i*86:AROS:*:*) | |||
echo ${UNAME_MACHINE}-pc-aros | echo ${UNAME_MACHINE}-pc-aros | |||
exit ;; | exit ;; | |||
x86_64:VMkernel:*:*) | x86_64:VMkernel:*:*) | |||
echo ${UNAME_MACHINE}-unknown-esx | echo ${UNAME_MACHINE}-unknown-esx | |||
exit ;; | exit ;; | |||
esac | esac | |||
eval $set_cc_for_build | ||||
cat >$dummy.c <<EOF | ||||
#ifdef _SEQUENT_ | ||||
# include <sys/types.h> | ||||
# include <sys/utsname.h> | ||||
#endif | ||||
main () | ||||
{ | ||||
#if defined (sony) | ||||
#if defined (MIPSEB) | ||||
/* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, | ||||
I don't know.... */ | ||||
printf ("mips-sony-bsd\n"); exit (0); | ||||
#else | ||||
#include <sys/param.h> | ||||
printf ("m68k-sony-newsos%s\n", | ||||
#ifdef NEWSOS4 | ||||
"4" | ||||
#else | ||||
"" | ||||
#endif | ||||
); exit (0); | ||||
#endif | ||||
#endif | ||||
#if defined (__arm) && defined (__acorn) && defined (__unix) | ||||
printf ("arm-acorn-riscix\n"); exit (0); | ||||
#endif | ||||
#if defined (hp300) && !defined (hpux) | ||||
printf ("m68k-hp-bsd\n"); exit (0); | ||||
#endif | ||||
#if defined (NeXT) | ||||
#if !defined (__ARCHITECTURE__) | ||||
#define __ARCHITECTURE__ "m68k" | ||||
#endif | ||||
int version; | ||||
version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; | ||||
if (version < 4) | ||||
printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); | ||||
else | ||||
printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); | ||||
exit (0); | ||||
#endif | ||||
#if defined (MULTIMAX) || defined (n16) | ||||
#if defined (UMAXV) | ||||
printf ("ns32k-encore-sysv\n"); exit (0); | ||||
#else | ||||
#if defined (CMU) | ||||
printf ("ns32k-encore-mach\n"); exit (0); | ||||
#else | ||||
printf ("ns32k-encore-bsd\n"); exit (0); | ||||
#endif | ||||
#endif | ||||
#endif | ||||
#if defined (__386BSD__) | ||||
printf ("i386-pc-bsd\n"); exit (0); | ||||
#endif | ||||
#if defined (sequent) | ||||
#if defined (i386) | ||||
printf ("i386-sequent-dynix\n"); exit (0); | ||||
#endif | ||||
#if defined (ns32000) | ||||
printf ("ns32k-sequent-dynix\n"); exit (0); | ||||
#endif | ||||
#endif | ||||
#if defined (_SEQUENT_) | ||||
struct utsname un; | ||||
uname(&un); | ||||
if (strncmp(un.version, "V2", 2) == 0) { | ||||
printf ("i386-sequent-ptx2\n"); exit (0); | ||||
} | ||||
if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ | ||||
printf ("i386-sequent-ptx1\n"); exit (0); | ||||
} | ||||
printf ("i386-sequent-ptx\n"); exit (0); | ||||
#endif | ||||
#if defined (vax) | ||||
# if !defined (ultrix) | ||||
# include <sys/param.h> | ||||
# if defined (BSD) | ||||
# if BSD == 43 | ||||
printf ("vax-dec-bsd4.3\n"); exit (0); | ||||
# else | ||||
# if BSD == 199006 | ||||
printf ("vax-dec-bsd4.3reno\n"); exit (0); | ||||
# else | ||||
printf ("vax-dec-bsd\n"); exit (0); | ||||
# endif | ||||
# endif | ||||
# else | ||||
printf ("vax-dec-bsd\n"); exit (0); | ||||
# endif | ||||
# else | ||||
printf ("vax-dec-ultrix\n"); exit (0); | ||||
# endif | ||||
#endif | ||||
#if defined (alliant) && defined (i860) | ||||
printf ("i860-alliant-bsd\n"); exit (0); | ||||
#endif | ||||
exit (1); | ||||
} | ||||
EOF | ||||
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && | ||||
{ echo "$SYSTEM_NAME"; exit; } | ||||
# Apollos put the system type in the environment. | ||||
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } | ||||
# Convex versions that predate uname can use getsysinfo(1) | ||||
if [ -x /usr/convex/getsysinfo ] | ||||
then | ||||
case `getsysinfo -f cpu_type` in | ||||
c1*) | ||||
echo c1-convex-bsd | ||||
exit ;; | ||||
c2*) | ||||
if getsysinfo -f scalar_acc | ||||
then echo c32-convex-bsd | ||||
else echo c2-convex-bsd | ||||
fi | ||||
exit ;; | ||||
c34*) | ||||
echo c34-convex-bsd | ||||
exit ;; | ||||
c38*) | ||||
echo c38-convex-bsd | ||||
exit ;; | ||||
c4*) | ||||
echo c4-convex-bsd | ||||
exit ;; | ||||
esac | ||||
fi | ||||
cat >&2 <<EOF | cat >&2 <<EOF | |||
$0: unable to guess system type | $0: unable to guess system type | |||
This script, last modified $timestamp, has failed to recognize | This script, last modified $timestamp, has failed to recognize | |||
the operating system you are using. It is advised that you | the operating system you are using. It is advised that you | |||
download the most up to date version of the config scripts from | download the most up to date version of the config scripts 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 | |||
and | and | |||
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb= HEAD | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb= HEAD | |||
End of changes. 13 change blocks. | ||||
169 lines changed or deleted | 33 lines changed or added |