Merge lp:~dannf/ubuntu/saucy/libatasmart/lp1234343 into lp:ubuntu/saucy/libatasmart

Proposed by dann frazier
Status: Needs review
Proposed branch: lp:~dannf/ubuntu/saucy/libatasmart/lp1234343
Merge into: lp:ubuntu/saucy/libatasmart
Diff against target: 4756 lines (+4193/-133)
9 files modified
.pc/applied-patches (+1/-0)
.pc/config-sub-guess-update.patch/build-aux/config.guess (+1522/-0)
.pc/config-sub-guess-update.patch/build-aux/config.sub (+1766/-0)
build-aux/config.guess (+115/-79)
build-aux/config.sub (+78/-53)
debian/changelog (+6/-0)
debian/control (+2/-1)
debian/patches/config-sub-guess-update.patch (+702/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~dannf/ubuntu/saucy/libatasmart/lp1234343
Reviewer Review Type Date Requested Status
Dimitri John Ledkov Needs Fixing
Review via email: mp+188902@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

This package is already using dh, and instead of including a static patch to update config.{sub,guess} one would ideally automate it, e.g with "dh $@ --with autoreconf" and adding a Build-dep on dh-autoreconf. This is far more minimal patch, which is also suitable to be forwarded to Debian.

I think I will simply upload "--with autoreconf" patch and forward the bug to debian.

review: Needs Fixing
Revision history for this message
dann frazier (dannf) wrote :

On Thu, Oct 3, 2013 at 4:41 AM, Dmitrijs Ledkovs <email address hidden> wrote:
> Review: Needs Fixing
>
> This package is already using dh, and instead of including a static patch to update config.{sub,guess} one would ideally automate it, e.g with "dh $@ --with autoreconf" and adding a Build-dep on dh-autoreconf. This is far more minimal patch, which is also suitable to be forwarded to Debian.
>
> I think I will simply upload "--with autoreconf" patch and forward the bug to debian.

Sounds good. Note that the bug has been forwarded to Debian already,
so you can just update my patch there.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

On 3 October 2013 15:15, dann frazier <email address hidden> wrote:
> On Thu, Oct 3, 2013 at 4:41 AM, Dmitrijs Ledkovs <email address hidden> wrote:
>> Review: Needs Fixing
>>
>> This package is already using dh, and instead of including a static patch to update config.{sub,guess} one would ideally automate it, e.g with "dh $@ --with autoreconf" and adding a Build-dep on dh-autoreconf. This is far more minimal patch, which is also suitable to be forwarded to Debian.
>>
>> I think I will simply upload "--with autoreconf" patch and forward the bug to debian.
>
>
> Sounds good. Note that the bug has been forwarded to Debian already,
> so you can just update my patch there.

yeap, noted. waiting for my upload to be accepted, before updating the
debian bug report.
I also commited on to branches & sponsored your various exynos5440 fixes.

Regards,

Dmitrijs.

Unmerged revisions

26. By dann frazier

Update config.{sub,guess} to fix build failure on arm64 (LP: #1234343)

25. By dann frazier

start new ubuntu release

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.pc/applied-patches'
2--- .pc/applied-patches 2013-03-25 07:38:36 +0000
3+++ .pc/applied-patches 2013-10-02 19:20:36 +0000
4@@ -1,2 +1,3 @@
5 0001-Dont-test-undefined-bits.patch
6 0002-Drop-our-own-many-bad-sectors-heuristic.patch
7+config-sub-guess-update.patch
8
9=== added directory '.pc/config-sub-guess-update.patch'
10=== added file '.pc/config-sub-guess-update.patch/.timestamp'
11=== added directory '.pc/config-sub-guess-update.patch/build-aux'
12=== added file '.pc/config-sub-guess-update.patch/build-aux/config.guess'
13--- .pc/config-sub-guess-update.patch/build-aux/config.guess 1970-01-01 00:00:00 +0000
14+++ .pc/config-sub-guess-update.patch/build-aux/config.guess 2013-10-02 19:20:36 +0000
15@@ -0,0 +1,1522 @@
16+#! /bin/sh
17+# Attempt to guess a canonical system name.
18+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
19+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
20+# 2011, 2012 Free Software Foundation, Inc.
21+
22+timestamp='2012-01-01'
23+
24+# This file is free software; you can redistribute it and/or modify it
25+# under the terms of the GNU General Public License as published by
26+# the Free Software Foundation; either version 2 of the License, or
27+# (at your option) any later version.
28+#
29+# This program is distributed in the hope that it will be useful, but
30+# WITHOUT ANY WARRANTY; without even the implied warranty of
31+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
32+# General Public License for more details.
33+#
34+# You should have received a copy of the GNU General Public License
35+# along with this program; if not, write to the Free Software
36+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
37+# 02110-1301, USA.
38+#
39+# As a special exception to the GNU General Public License, if you
40+# distribute this file as part of a program that contains a
41+# configuration script generated by Autoconf, you may include it under
42+# the same distribution terms that you use for the rest of that program.
43+
44+
45+# Originally written by Per Bothner. Please send patches (context
46+# diff format) to <config-patches@gnu.org> and include a ChangeLog
47+# entry.
48+#
49+# This script attempts to guess a canonical system name similar to
50+# config.sub. If it succeeds, it prints the system name on stdout, and
51+# exits with 0. Otherwise, it exits with 1.
52+#
53+# You can get the latest version of this script from:
54+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
55+
56+me=`echo "$0" | sed -e 's,.*/,,'`
57+
58+usage="\
59+Usage: $0 [OPTION]
60+
61+Output the configuration name of the system \`$me' is run on.
62+
63+Operation modes:
64+ -h, --help print this help, then exit
65+ -t, --time-stamp print date of last modification, then exit
66+ -v, --version print version number, then exit
67+
68+Report bugs and patches to <config-patches@gnu.org>."
69+
70+version="\
71+GNU config.guess ($timestamp)
72+
73+Originally written by Per Bothner.
74+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
75+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
76+Free Software Foundation, Inc.
77+
78+This is free software; see the source for copying conditions. There is NO
79+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
80+
81+help="
82+Try \`$me --help' for more information."
83+
84+# Parse command line
85+while test $# -gt 0 ; do
86+ case $1 in
87+ --time-stamp | --time* | -t )
88+ echo "$timestamp" ; exit ;;
89+ --version | -v )
90+ echo "$version" ; exit ;;
91+ --help | --h* | -h )
92+ echo "$usage"; exit ;;
93+ -- ) # Stop option processing
94+ shift; break ;;
95+ - ) # Use stdin as input.
96+ break ;;
97+ -* )
98+ echo "$me: invalid option $1$help" >&2
99+ exit 1 ;;
100+ * )
101+ break ;;
102+ esac
103+done
104+
105+if test $# != 0; then
106+ echo "$me: too many arguments$help" >&2
107+ exit 1
108+fi
109+
110+trap 'exit 1' 1 2 15
111+
112+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
113+# compiler to aid in system detection is discouraged as it requires
114+# temporary files to be created and, as you can see below, it is a
115+# headache to deal with in a portable fashion.
116+
117+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
118+# use `HOST_CC' if defined, but it is deprecated.
119+
120+# Portable tmp directory creation inspired by the Autoconf team.
121+
122+set_cc_for_build='
123+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
124+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
125+: ${TMPDIR=/tmp} ;
126+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
127+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
128+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
129+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
130+dummy=$tmp/dummy ;
131+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
132+case $CC_FOR_BUILD,$HOST_CC,$CC in
133+ ,,) echo "int x;" > $dummy.c ;
134+ for c in cc gcc c89 c99 ; do
135+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
136+ CC_FOR_BUILD="$c"; break ;
137+ fi ;
138+ done ;
139+ if test x"$CC_FOR_BUILD" = x ; then
140+ CC_FOR_BUILD=no_compiler_found ;
141+ fi
142+ ;;
143+ ,,*) CC_FOR_BUILD=$CC ;;
144+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
145+esac ; set_cc_for_build= ;'
146+
147+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
148+# (ghazi@noc.rutgers.edu 1994-08-24)
149+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
150+ PATH=$PATH:/.attbin ; export PATH
151+fi
152+
153+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
154+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
155+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
156+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
157+
158+# Note: order is significant - the case branches are not exclusive.
159+
160+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
161+ *:NetBSD:*:*)
162+ # NetBSD (nbsd) targets should (where applicable) match one or
163+ # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
164+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
165+ # switched to ELF, *-*-netbsd* would select the old
166+ # object file format. This provides both forward
167+ # compatibility and a consistent mechanism for selecting the
168+ # object file format.
169+ #
170+ # Note: NetBSD doesn't particularly care about the vendor
171+ # portion of the name. We always set it to "unknown".
172+ sysctl="sysctl -n hw.machine_arch"
173+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
174+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
175+ case "${UNAME_MACHINE_ARCH}" in
176+ armeb) machine=armeb-unknown ;;
177+ arm*) machine=arm-unknown ;;
178+ sh3el) machine=shl-unknown ;;
179+ sh3eb) machine=sh-unknown ;;
180+ sh5el) machine=sh5le-unknown ;;
181+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
182+ esac
183+ # The Operating System including object format, if it has switched
184+ # to ELF recently, or will in the future.
185+ case "${UNAME_MACHINE_ARCH}" in
186+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
187+ eval $set_cc_for_build
188+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
189+ | grep -q __ELF__
190+ then
191+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
192+ # Return netbsd for either. FIX?
193+ os=netbsd
194+ else
195+ os=netbsdelf
196+ fi
197+ ;;
198+ *)
199+ os=netbsd
200+ ;;
201+ esac
202+ # The OS release
203+ # Debian GNU/NetBSD machines have a different userland, and
204+ # thus, need a distinct triplet. However, they do not need
205+ # kernel version information, so it can be replaced with a
206+ # suitable tag, in the style of linux-gnu.
207+ case "${UNAME_VERSION}" in
208+ Debian*)
209+ release='-gnu'
210+ ;;
211+ *)
212+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
213+ ;;
214+ esac
215+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
216+ # contains redundant information, the shorter form:
217+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
218+ echo "${machine}-${os}${release}"
219+ exit ;;
220+ *:OpenBSD:*:*)
221+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
222+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
223+ exit ;;
224+ *:ekkoBSD:*:*)
225+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
226+ exit ;;
227+ *:SolidBSD:*:*)
228+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
229+ exit ;;
230+ macppc:MirBSD:*:*)
231+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
232+ exit ;;
233+ *:MirBSD:*:*)
234+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
235+ exit ;;
236+ alpha:OSF1:*:*)
237+ case $UNAME_RELEASE in
238+ *4.0)
239+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
240+ ;;
241+ *5.*)
242+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
243+ ;;
244+ esac
245+ # According to Compaq, /usr/sbin/psrinfo has been available on
246+ # OSF/1 and Tru64 systems produced since 1995. I hope that
247+ # covers most systems running today. This code pipes the CPU
248+ # types through head -n 1, so we only detect the type of CPU 0.
249+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
250+ case "$ALPHA_CPU_TYPE" in
251+ "EV4 (21064)")
252+ UNAME_MACHINE="alpha" ;;
253+ "EV4.5 (21064)")
254+ UNAME_MACHINE="alpha" ;;
255+ "LCA4 (21066/21068)")
256+ UNAME_MACHINE="alpha" ;;
257+ "EV5 (21164)")
258+ UNAME_MACHINE="alphaev5" ;;
259+ "EV5.6 (21164A)")
260+ UNAME_MACHINE="alphaev56" ;;
261+ "EV5.6 (21164PC)")
262+ UNAME_MACHINE="alphapca56" ;;
263+ "EV5.7 (21164PC)")
264+ UNAME_MACHINE="alphapca57" ;;
265+ "EV6 (21264)")
266+ UNAME_MACHINE="alphaev6" ;;
267+ "EV6.7 (21264A)")
268+ UNAME_MACHINE="alphaev67" ;;
269+ "EV6.8CB (21264C)")
270+ UNAME_MACHINE="alphaev68" ;;
271+ "EV6.8AL (21264B)")
272+ UNAME_MACHINE="alphaev68" ;;
273+ "EV6.8CX (21264D)")
274+ UNAME_MACHINE="alphaev68" ;;
275+ "EV6.9A (21264/EV69A)")
276+ UNAME_MACHINE="alphaev69" ;;
277+ "EV7 (21364)")
278+ UNAME_MACHINE="alphaev7" ;;
279+ "EV7.9 (21364A)")
280+ UNAME_MACHINE="alphaev79" ;;
281+ esac
282+ # A Pn.n version is a patched version.
283+ # A Vn.n version is a released version.
284+ # A Tn.n version is a released field test version.
285+ # A Xn.n version is an unreleased experimental baselevel.
286+ # 1.2 uses "1.2" for uname -r.
287+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
288+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
289+ exitcode=$?
290+ trap '' 0
291+ exit $exitcode ;;
292+ Alpha\ *:Windows_NT*:*)
293+ # How do we know it's Interix rather than the generic POSIX subsystem?
294+ # Should we change UNAME_MACHINE based on the output of uname instead
295+ # of the specific Alpha model?
296+ echo alpha-pc-interix
297+ exit ;;
298+ 21064:Windows_NT:50:3)
299+ echo alpha-dec-winnt3.5
300+ exit ;;
301+ Amiga*:UNIX_System_V:4.0:*)
302+ echo m68k-unknown-sysv4
303+ exit ;;
304+ *:[Aa]miga[Oo][Ss]:*:*)
305+ echo ${UNAME_MACHINE}-unknown-amigaos
306+ exit ;;
307+ *:[Mm]orph[Oo][Ss]:*:*)
308+ echo ${UNAME_MACHINE}-unknown-morphos
309+ exit ;;
310+ *:OS/390:*:*)
311+ echo i370-ibm-openedition
312+ exit ;;
313+ *:z/VM:*:*)
314+ echo s390-ibm-zvmoe
315+ exit ;;
316+ *:OS400:*:*)
317+ echo powerpc-ibm-os400
318+ exit ;;
319+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
320+ echo arm-acorn-riscix${UNAME_RELEASE}
321+ exit ;;
322+ arm:riscos:*:*|arm:RISCOS:*:*)
323+ echo arm-unknown-riscos
324+ exit ;;
325+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
326+ echo hppa1.1-hitachi-hiuxmpp
327+ exit ;;
328+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
329+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
330+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
331+ echo pyramid-pyramid-sysv3
332+ else
333+ echo pyramid-pyramid-bsd
334+ fi
335+ exit ;;
336+ NILE*:*:*:dcosx)
337+ echo pyramid-pyramid-svr4
338+ exit ;;
339+ DRS?6000:unix:4.0:6*)
340+ echo sparc-icl-nx6
341+ exit ;;
342+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
343+ case `/usr/bin/uname -p` in
344+ sparc) echo sparc-icl-nx7; exit ;;
345+ esac ;;
346+ s390x:SunOS:*:*)
347+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
348+ exit ;;
349+ sun4H:SunOS:5.*:*)
350+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
351+ exit ;;
352+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
353+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
354+ exit ;;
355+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
356+ echo i386-pc-auroraux${UNAME_RELEASE}
357+ exit ;;
358+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
359+ eval $set_cc_for_build
360+ SUN_ARCH="i386"
361+ # If there is a compiler, see if it is configured for 64-bit objects.
362+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
363+ # This test works for both compilers.
364+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
365+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
366+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
367+ grep IS_64BIT_ARCH >/dev/null
368+ then
369+ SUN_ARCH="x86_64"
370+ fi
371+ fi
372+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
373+ exit ;;
374+ sun4*:SunOS:6*:*)
375+ # According to config.sub, this is the proper way to canonicalize
376+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
377+ # it's likely to be more like Solaris than SunOS4.
378+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
379+ exit ;;
380+ sun4*:SunOS:*:*)
381+ case "`/usr/bin/arch -k`" in
382+ Series*|S4*)
383+ UNAME_RELEASE=`uname -v`
384+ ;;
385+ esac
386+ # Japanese Language versions have a version number like `4.1.3-JL'.
387+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
388+ exit ;;
389+ sun3*:SunOS:*:*)
390+ echo m68k-sun-sunos${UNAME_RELEASE}
391+ exit ;;
392+ sun*:*:4.2BSD:*)
393+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
394+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
395+ case "`/bin/arch`" in
396+ sun3)
397+ echo m68k-sun-sunos${UNAME_RELEASE}
398+ ;;
399+ sun4)
400+ echo sparc-sun-sunos${UNAME_RELEASE}
401+ ;;
402+ esac
403+ exit ;;
404+ aushp:SunOS:*:*)
405+ echo sparc-auspex-sunos${UNAME_RELEASE}
406+ exit ;;
407+ # The situation for MiNT is a little confusing. The machine name
408+ # can be virtually everything (everything which is not
409+ # "atarist" or "atariste" at least should have a processor
410+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
411+ # to the lowercase version "mint" (or "freemint"). Finally
412+ # the system name "TOS" denotes a system which is actually not
413+ # MiNT. But MiNT is downward compatible to TOS, so this should
414+ # be no problem.
415+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
416+ echo m68k-atari-mint${UNAME_RELEASE}
417+ exit ;;
418+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
419+ echo m68k-atari-mint${UNAME_RELEASE}
420+ exit ;;
421+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
422+ echo m68k-atari-mint${UNAME_RELEASE}
423+ exit ;;
424+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
425+ echo m68k-milan-mint${UNAME_RELEASE}
426+ exit ;;
427+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
428+ echo m68k-hades-mint${UNAME_RELEASE}
429+ exit ;;
430+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
431+ echo m68k-unknown-mint${UNAME_RELEASE}
432+ exit ;;
433+ m68k:machten:*:*)
434+ echo m68k-apple-machten${UNAME_RELEASE}
435+ exit ;;
436+ powerpc:machten:*:*)
437+ echo powerpc-apple-machten${UNAME_RELEASE}
438+ exit ;;
439+ RISC*:Mach:*:*)
440+ echo mips-dec-mach_bsd4.3
441+ exit ;;
442+ RISC*:ULTRIX:*:*)
443+ echo mips-dec-ultrix${UNAME_RELEASE}
444+ exit ;;
445+ VAX*:ULTRIX*:*:*)
446+ echo vax-dec-ultrix${UNAME_RELEASE}
447+ exit ;;
448+ 2020:CLIX:*:* | 2430:CLIX:*:*)
449+ echo clipper-intergraph-clix${UNAME_RELEASE}
450+ exit ;;
451+ mips:*:*:UMIPS | mips:*:*:RISCos)
452+ eval $set_cc_for_build
453+ sed 's/^ //' << EOF >$dummy.c
454+#ifdef __cplusplus
455+#include <stdio.h> /* for printf() prototype */
456+ int main (int argc, char *argv[]) {
457+#else
458+ int main (argc, argv) int argc; char *argv[]; {
459+#endif
460+ #if defined (host_mips) && defined (MIPSEB)
461+ #if defined (SYSTYPE_SYSV)
462+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
463+ #endif
464+ #if defined (SYSTYPE_SVR4)
465+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
466+ #endif
467+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
468+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
469+ #endif
470+ #endif
471+ exit (-1);
472+ }
473+EOF
474+ $CC_FOR_BUILD -o $dummy $dummy.c &&
475+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
476+ SYSTEM_NAME=`$dummy $dummyarg` &&
477+ { echo "$SYSTEM_NAME"; exit; }
478+ echo mips-mips-riscos${UNAME_RELEASE}
479+ exit ;;
480+ Motorola:PowerMAX_OS:*:*)
481+ echo powerpc-motorola-powermax
482+ exit ;;
483+ Motorola:*:4.3:PL8-*)
484+ echo powerpc-harris-powermax
485+ exit ;;
486+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
487+ echo powerpc-harris-powermax
488+ exit ;;
489+ Night_Hawk:Power_UNIX:*:*)
490+ echo powerpc-harris-powerunix
491+ exit ;;
492+ m88k:CX/UX:7*:*)
493+ echo m88k-harris-cxux7
494+ exit ;;
495+ m88k:*:4*:R4*)
496+ echo m88k-motorola-sysv4
497+ exit ;;
498+ m88k:*:3*:R3*)
499+ echo m88k-motorola-sysv3
500+ exit ;;
501+ AViiON:dgux:*:*)
502+ # DG/UX returns AViiON for all architectures
503+ UNAME_PROCESSOR=`/usr/bin/uname -p`
504+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
505+ then
506+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
507+ [ ${TARGET_BINARY_INTERFACE}x = x ]
508+ then
509+ echo m88k-dg-dgux${UNAME_RELEASE}
510+ else
511+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
512+ fi
513+ else
514+ echo i586-dg-dgux${UNAME_RELEASE}
515+ fi
516+ exit ;;
517+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
518+ echo m88k-dolphin-sysv3
519+ exit ;;
520+ M88*:*:R3*:*)
521+ # Delta 88k system running SVR3
522+ echo m88k-motorola-sysv3
523+ exit ;;
524+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
525+ echo m88k-tektronix-sysv3
526+ exit ;;
527+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
528+ echo m68k-tektronix-bsd
529+ exit ;;
530+ *:IRIX*:*:*)
531+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
532+ exit ;;
533+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
534+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
535+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
536+ i*86:AIX:*:*)
537+ echo i386-ibm-aix
538+ exit ;;
539+ ia64:AIX:*:*)
540+ if [ -x /usr/bin/oslevel ] ; then
541+ IBM_REV=`/usr/bin/oslevel`
542+ else
543+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
544+ fi
545+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
546+ exit ;;
547+ *:AIX:2:3)
548+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
549+ eval $set_cc_for_build
550+ sed 's/^ //' << EOF >$dummy.c
551+ #include <sys/systemcfg.h>
552+
553+ main()
554+ {
555+ if (!__power_pc())
556+ exit(1);
557+ puts("powerpc-ibm-aix3.2.5");
558+ exit(0);
559+ }
560+EOF
561+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
562+ then
563+ echo "$SYSTEM_NAME"
564+ else
565+ echo rs6000-ibm-aix3.2.5
566+ fi
567+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
568+ echo rs6000-ibm-aix3.2.4
569+ else
570+ echo rs6000-ibm-aix3.2
571+ fi
572+ exit ;;
573+ *:AIX:*:[4567])
574+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
575+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
576+ IBM_ARCH=rs6000
577+ else
578+ IBM_ARCH=powerpc
579+ fi
580+ if [ -x /usr/bin/oslevel ] ; then
581+ IBM_REV=`/usr/bin/oslevel`
582+ else
583+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
584+ fi
585+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
586+ exit ;;
587+ *:AIX:*:*)
588+ echo rs6000-ibm-aix
589+ exit ;;
590+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
591+ echo romp-ibm-bsd4.4
592+ exit ;;
593+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
594+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
595+ exit ;; # report: romp-ibm BSD 4.3
596+ *:BOSX:*:*)
597+ echo rs6000-bull-bosx
598+ exit ;;
599+ DPX/2?00:B.O.S.:*:*)
600+ echo m68k-bull-sysv3
601+ exit ;;
602+ 9000/[34]??:4.3bsd:1.*:*)
603+ echo m68k-hp-bsd
604+ exit ;;
605+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
606+ echo m68k-hp-bsd4.4
607+ exit ;;
608+ 9000/[34678]??:HP-UX:*:*)
609+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
610+ case "${UNAME_MACHINE}" in
611+ 9000/31? ) HP_ARCH=m68000 ;;
612+ 9000/[34]?? ) HP_ARCH=m68k ;;
613+ 9000/[678][0-9][0-9])
614+ if [ -x /usr/bin/getconf ]; then
615+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
616+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
617+ case "${sc_cpu_version}" in
618+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
619+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
620+ 532) # CPU_PA_RISC2_0
621+ case "${sc_kernel_bits}" in
622+ 32) HP_ARCH="hppa2.0n" ;;
623+ 64) HP_ARCH="hppa2.0w" ;;
624+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
625+ esac ;;
626+ esac
627+ fi
628+ if [ "${HP_ARCH}" = "" ]; then
629+ eval $set_cc_for_build
630+ sed 's/^ //' << EOF >$dummy.c
631+
632+ #define _HPUX_SOURCE
633+ #include <stdlib.h>
634+ #include <unistd.h>
635+
636+ int main ()
637+ {
638+ #if defined(_SC_KERNEL_BITS)
639+ long bits = sysconf(_SC_KERNEL_BITS);
640+ #endif
641+ long cpu = sysconf (_SC_CPU_VERSION);
642+
643+ switch (cpu)
644+ {
645+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
646+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
647+ case CPU_PA_RISC2_0:
648+ #if defined(_SC_KERNEL_BITS)
649+ switch (bits)
650+ {
651+ case 64: puts ("hppa2.0w"); break;
652+ case 32: puts ("hppa2.0n"); break;
653+ default: puts ("hppa2.0"); break;
654+ } break;
655+ #else /* !defined(_SC_KERNEL_BITS) */
656+ puts ("hppa2.0"); break;
657+ #endif
658+ default: puts ("hppa1.0"); break;
659+ }
660+ exit (0);
661+ }
662+EOF
663+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
664+ test -z "$HP_ARCH" && HP_ARCH=hppa
665+ fi ;;
666+ esac
667+ if [ ${HP_ARCH} = "hppa2.0w" ]
668+ then
669+ eval $set_cc_for_build
670+
671+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
672+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
673+ # generating 64-bit code. GNU and HP use different nomenclature:
674+ #
675+ # $ CC_FOR_BUILD=cc ./config.guess
676+ # => hppa2.0w-hp-hpux11.23
677+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
678+ # => hppa64-hp-hpux11.23
679+
680+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
681+ grep -q __LP64__
682+ then
683+ HP_ARCH="hppa2.0w"
684+ else
685+ HP_ARCH="hppa64"
686+ fi
687+ fi
688+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
689+ exit ;;
690+ ia64:HP-UX:*:*)
691+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
692+ echo ia64-hp-hpux${HPUX_REV}
693+ exit ;;
694+ 3050*:HI-UX:*:*)
695+ eval $set_cc_for_build
696+ sed 's/^ //' << EOF >$dummy.c
697+ #include <unistd.h>
698+ int
699+ main ()
700+ {
701+ long cpu = sysconf (_SC_CPU_VERSION);
702+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
703+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
704+ results, however. */
705+ if (CPU_IS_PA_RISC (cpu))
706+ {
707+ switch (cpu)
708+ {
709+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
710+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
711+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
712+ default: puts ("hppa-hitachi-hiuxwe2"); break;
713+ }
714+ }
715+ else if (CPU_IS_HP_MC68K (cpu))
716+ puts ("m68k-hitachi-hiuxwe2");
717+ else puts ("unknown-hitachi-hiuxwe2");
718+ exit (0);
719+ }
720+EOF
721+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
722+ { echo "$SYSTEM_NAME"; exit; }
723+ echo unknown-hitachi-hiuxwe2
724+ exit ;;
725+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
726+ echo hppa1.1-hp-bsd
727+ exit ;;
728+ 9000/8??:4.3bsd:*:*)
729+ echo hppa1.0-hp-bsd
730+ exit ;;
731+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
732+ echo hppa1.0-hp-mpeix
733+ exit ;;
734+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
735+ echo hppa1.1-hp-osf
736+ exit ;;
737+ hp8??:OSF1:*:*)
738+ echo hppa1.0-hp-osf
739+ exit ;;
740+ i*86:OSF1:*:*)
741+ if [ -x /usr/sbin/sysversion ] ; then
742+ echo ${UNAME_MACHINE}-unknown-osf1mk
743+ else
744+ echo ${UNAME_MACHINE}-unknown-osf1
745+ fi
746+ exit ;;
747+ parisc*:Lites*:*:*)
748+ echo hppa1.1-hp-lites
749+ exit ;;
750+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
751+ echo c1-convex-bsd
752+ exit ;;
753+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
754+ if getsysinfo -f scalar_acc
755+ then echo c32-convex-bsd
756+ else echo c2-convex-bsd
757+ fi
758+ exit ;;
759+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
760+ echo c34-convex-bsd
761+ exit ;;
762+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
763+ echo c38-convex-bsd
764+ exit ;;
765+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
766+ echo c4-convex-bsd
767+ exit ;;
768+ CRAY*Y-MP:*:*:*)
769+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
770+ exit ;;
771+ CRAY*[A-Z]90:*:*:*)
772+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
773+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
774+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
775+ -e 's/\.[^.]*$/.X/'
776+ exit ;;
777+ CRAY*TS:*:*:*)
778+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
779+ exit ;;
780+ CRAY*T3E:*:*:*)
781+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
782+ exit ;;
783+ CRAY*SV1:*:*:*)
784+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
785+ exit ;;
786+ *:UNICOS/mp:*:*)
787+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
788+ exit ;;
789+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
790+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
791+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
792+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
793+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
794+ exit ;;
795+ 5000:UNIX_System_V:4.*:*)
796+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
797+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
798+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
799+ exit ;;
800+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
801+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
802+ exit ;;
803+ sparc*:BSD/OS:*:*)
804+ echo sparc-unknown-bsdi${UNAME_RELEASE}
805+ exit ;;
806+ *:BSD/OS:*:*)
807+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
808+ exit ;;
809+ *:FreeBSD:*:*)
810+ UNAME_PROCESSOR=`/usr/bin/uname -p`
811+ case ${UNAME_PROCESSOR} in
812+ amd64)
813+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
814+ *)
815+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
816+ esac
817+ exit ;;
818+ i*:CYGWIN*:*)
819+ echo ${UNAME_MACHINE}-pc-cygwin
820+ exit ;;
821+ *:MINGW*:*)
822+ echo ${UNAME_MACHINE}-pc-mingw32
823+ exit ;;
824+ i*:MSYS*:*)
825+ echo ${UNAME_MACHINE}-pc-msys
826+ exit ;;
827+ i*:windows32*:*)
828+ # uname -m includes "-pc" on this system.
829+ echo ${UNAME_MACHINE}-mingw32
830+ exit ;;
831+ i*:PW*:*)
832+ echo ${UNAME_MACHINE}-pc-pw32
833+ exit ;;
834+ *:Interix*:*)
835+ case ${UNAME_MACHINE} in
836+ x86)
837+ echo i586-pc-interix${UNAME_RELEASE}
838+ exit ;;
839+ authenticamd | genuineintel | EM64T)
840+ echo x86_64-unknown-interix${UNAME_RELEASE}
841+ exit ;;
842+ IA64)
843+ echo ia64-unknown-interix${UNAME_RELEASE}
844+ exit ;;
845+ esac ;;
846+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
847+ echo i${UNAME_MACHINE}-pc-mks
848+ exit ;;
849+ 8664:Windows_NT:*)
850+ echo x86_64-pc-mks
851+ exit ;;
852+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
853+ # How do we know it's Interix rather than the generic POSIX subsystem?
854+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
855+ # UNAME_MACHINE based on the output of uname instead of i386?
856+ echo i586-pc-interix
857+ exit ;;
858+ i*:UWIN*:*)
859+ echo ${UNAME_MACHINE}-pc-uwin
860+ exit ;;
861+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
862+ echo x86_64-unknown-cygwin
863+ exit ;;
864+ p*:CYGWIN*:*)
865+ echo powerpcle-unknown-cygwin
866+ exit ;;
867+ prep*:SunOS:5.*:*)
868+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
869+ exit ;;
870+ *:GNU:*:*)
871+ # the GNU system
872+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
873+ exit ;;
874+ *:GNU/*:*:*)
875+ # other systems with GNU libc and userland
876+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
877+ exit ;;
878+ i*86:Minix:*:*)
879+ echo ${UNAME_MACHINE}-pc-minix
880+ exit ;;
881+ alpha:Linux:*:*)
882+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
883+ EV5) UNAME_MACHINE=alphaev5 ;;
884+ EV56) UNAME_MACHINE=alphaev56 ;;
885+ PCA56) UNAME_MACHINE=alphapca56 ;;
886+ PCA57) UNAME_MACHINE=alphapca56 ;;
887+ EV6) UNAME_MACHINE=alphaev6 ;;
888+ EV67) UNAME_MACHINE=alphaev67 ;;
889+ EV68*) UNAME_MACHINE=alphaev68 ;;
890+ esac
891+ objdump --private-headers /bin/sh | grep -q ld.so.1
892+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
893+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
894+ exit ;;
895+ arm*:Linux:*:*)
896+ eval $set_cc_for_build
897+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
898+ | grep -q __ARM_EABI__
899+ then
900+ echo ${UNAME_MACHINE}-unknown-linux-gnu
901+ else
902+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
903+ | grep -q __ARM_PCS_VFP
904+ then
905+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
906+ else
907+ echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
908+ fi
909+ fi
910+ exit ;;
911+ avr32*:Linux:*:*)
912+ echo ${UNAME_MACHINE}-unknown-linux-gnu
913+ exit ;;
914+ cris:Linux:*:*)
915+ echo ${UNAME_MACHINE}-axis-linux-gnu
916+ exit ;;
917+ crisv32:Linux:*:*)
918+ echo ${UNAME_MACHINE}-axis-linux-gnu
919+ exit ;;
920+ frv:Linux:*:*)
921+ echo ${UNAME_MACHINE}-unknown-linux-gnu
922+ exit ;;
923+ hexagon:Linux:*:*)
924+ echo ${UNAME_MACHINE}-unknown-linux-gnu
925+ exit ;;
926+ i*86:Linux:*:*)
927+ LIBC=gnu
928+ eval $set_cc_for_build
929+ sed 's/^ //' << EOF >$dummy.c
930+ #ifdef __dietlibc__
931+ LIBC=dietlibc
932+ #endif
933+EOF
934+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
935+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
936+ exit ;;
937+ ia64:Linux:*:*)
938+ echo ${UNAME_MACHINE}-unknown-linux-gnu
939+ exit ;;
940+ m32r*:Linux:*:*)
941+ echo ${UNAME_MACHINE}-unknown-linux-gnu
942+ exit ;;
943+ m68*:Linux:*:*)
944+ echo ${UNAME_MACHINE}-unknown-linux-gnu
945+ exit ;;
946+ mips:Linux:*:* | mips64:Linux:*:*)
947+ eval $set_cc_for_build
948+ sed 's/^ //' << EOF >$dummy.c
949+ #undef CPU
950+ #undef ${UNAME_MACHINE}
951+ #undef ${UNAME_MACHINE}el
952+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
953+ CPU=${UNAME_MACHINE}el
954+ #else
955+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
956+ CPU=${UNAME_MACHINE}
957+ #else
958+ CPU=
959+ #endif
960+ #endif
961+EOF
962+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
963+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
964+ ;;
965+ or32:Linux:*:*)
966+ echo ${UNAME_MACHINE}-unknown-linux-gnu
967+ exit ;;
968+ padre:Linux:*:*)
969+ echo sparc-unknown-linux-gnu
970+ exit ;;
971+ parisc64:Linux:*:* | hppa64:Linux:*:*)
972+ echo hppa64-unknown-linux-gnu
973+ exit ;;
974+ parisc:Linux:*:* | hppa:Linux:*:*)
975+ # Look for CPU level
976+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
977+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
978+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
979+ *) echo hppa-unknown-linux-gnu ;;
980+ esac
981+ exit ;;
982+ ppc64:Linux:*:*)
983+ echo powerpc64-unknown-linux-gnu
984+ exit ;;
985+ ppc:Linux:*:*)
986+ echo powerpc-unknown-linux-gnu
987+ exit ;;
988+ s390:Linux:*:* | s390x:Linux:*:*)
989+ echo ${UNAME_MACHINE}-ibm-linux
990+ exit ;;
991+ sh64*:Linux:*:*)
992+ echo ${UNAME_MACHINE}-unknown-linux-gnu
993+ exit ;;
994+ sh*:Linux:*:*)
995+ echo ${UNAME_MACHINE}-unknown-linux-gnu
996+ exit ;;
997+ sparc:Linux:*:* | sparc64:Linux:*:*)
998+ echo ${UNAME_MACHINE}-unknown-linux-gnu
999+ exit ;;
1000+ tile*:Linux:*:*)
1001+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1002+ exit ;;
1003+ vax:Linux:*:*)
1004+ echo ${UNAME_MACHINE}-dec-linux-gnu
1005+ exit ;;
1006+ x86_64:Linux:*:*)
1007+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1008+ exit ;;
1009+ xtensa*:Linux:*:*)
1010+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1011+ exit ;;
1012+ i*86:DYNIX/ptx:4*:*)
1013+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1014+ # earlier versions are messed up and put the nodename in both
1015+ # sysname and nodename.
1016+ echo i386-sequent-sysv4
1017+ exit ;;
1018+ i*86:UNIX_SV:4.2MP:2.*)
1019+ # Unixware is an offshoot of SVR4, but it has its own version
1020+ # number series starting with 2...
1021+ # I am not positive that other SVR4 systems won't match this,
1022+ # I just have to hope. -- rms.
1023+ # Use sysv4.2uw... so that sysv4* matches it.
1024+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1025+ exit ;;
1026+ i*86:OS/2:*:*)
1027+ # If we were able to find `uname', then EMX Unix compatibility
1028+ # is probably installed.
1029+ echo ${UNAME_MACHINE}-pc-os2-emx
1030+ exit ;;
1031+ i*86:XTS-300:*:STOP)
1032+ echo ${UNAME_MACHINE}-unknown-stop
1033+ exit ;;
1034+ i*86:atheos:*:*)
1035+ echo ${UNAME_MACHINE}-unknown-atheos
1036+ exit ;;
1037+ i*86:syllable:*:*)
1038+ echo ${UNAME_MACHINE}-pc-syllable
1039+ exit ;;
1040+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1041+ echo i386-unknown-lynxos${UNAME_RELEASE}
1042+ exit ;;
1043+ i*86:*DOS:*:*)
1044+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
1045+ exit ;;
1046+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1047+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1048+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1049+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1050+ else
1051+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1052+ fi
1053+ exit ;;
1054+ i*86:*:5:[678]*)
1055+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
1056+ case `/bin/uname -X | grep "^Machine"` in
1057+ *486*) UNAME_MACHINE=i486 ;;
1058+ *Pentium) UNAME_MACHINE=i586 ;;
1059+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1060+ esac
1061+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1062+ exit ;;
1063+ i*86:*:3.2:*)
1064+ if test -f /usr/options/cb.name; then
1065+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1066+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1067+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
1068+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1069+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1070+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1071+ && UNAME_MACHINE=i586
1072+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1073+ && UNAME_MACHINE=i686
1074+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1075+ && UNAME_MACHINE=i686
1076+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1077+ else
1078+ echo ${UNAME_MACHINE}-pc-sysv32
1079+ fi
1080+ exit ;;
1081+ pc:*:*:*)
1082+ # Left here for compatibility:
1083+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
1084+ # the processor, so we play safe by assuming i586.
1085+ # Note: whatever this is, it MUST be the same as what config.sub
1086+ # prints for the "djgpp" host, or else GDB configury will decide that
1087+ # this is a cross-build.
1088+ echo i586-pc-msdosdjgpp
1089+ exit ;;
1090+ Intel:Mach:3*:*)
1091+ echo i386-pc-mach3
1092+ exit ;;
1093+ paragon:*:*:*)
1094+ echo i860-intel-osf1
1095+ exit ;;
1096+ i860:*:4.*:*) # i860-SVR4
1097+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1098+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1099+ else # Add other i860-SVR4 vendors below as they are discovered.
1100+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1101+ fi
1102+ exit ;;
1103+ mini*:CTIX:SYS*5:*)
1104+ # "miniframe"
1105+ echo m68010-convergent-sysv
1106+ exit ;;
1107+ mc68k:UNIX:SYSTEM5:3.51m)
1108+ echo m68k-convergent-sysv
1109+ exit ;;
1110+ M680?0:D-NIX:5.3:*)
1111+ echo m68k-diab-dnix
1112+ exit ;;
1113+ M68*:*:R3V[5678]*:*)
1114+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1115+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1116+ OS_REL=''
1117+ test -r /etc/.relid \
1118+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1119+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1120+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1121+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1122+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1123+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1124+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1125+ && { echo i486-ncr-sysv4; exit; } ;;
1126+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1127+ OS_REL='.3'
1128+ test -r /etc/.relid \
1129+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1130+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1131+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1132+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1133+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1134+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1135+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1136+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1137+ echo m68k-unknown-lynxos${UNAME_RELEASE}
1138+ exit ;;
1139+ mc68030:UNIX_System_V:4.*:*)
1140+ echo m68k-atari-sysv4
1141+ exit ;;
1142+ TSUNAMI:LynxOS:2.*:*)
1143+ echo sparc-unknown-lynxos${UNAME_RELEASE}
1144+ exit ;;
1145+ rs6000:LynxOS:2.*:*)
1146+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
1147+ exit ;;
1148+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1149+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
1150+ exit ;;
1151+ SM[BE]S:UNIX_SV:*:*)
1152+ echo mips-dde-sysv${UNAME_RELEASE}
1153+ exit ;;
1154+ RM*:ReliantUNIX-*:*:*)
1155+ echo mips-sni-sysv4
1156+ exit ;;
1157+ RM*:SINIX-*:*:*)
1158+ echo mips-sni-sysv4
1159+ exit ;;
1160+ *:SINIX-*:*:*)
1161+ if uname -p 2>/dev/null >/dev/null ; then
1162+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
1163+ echo ${UNAME_MACHINE}-sni-sysv4
1164+ else
1165+ echo ns32k-sni-sysv
1166+ fi
1167+ exit ;;
1168+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1169+ # says <Richard.M.Bartel@ccMail.Census.GOV>
1170+ echo i586-unisys-sysv4
1171+ exit ;;
1172+ *:UNIX_System_V:4*:FTX*)
1173+ # From Gerald Hewes <hewes@openmarket.com>.
1174+ # How about differentiating between stratus architectures? -djm
1175+ echo hppa1.1-stratus-sysv4
1176+ exit ;;
1177+ *:*:*:FTX*)
1178+ # From seanf@swdc.stratus.com.
1179+ echo i860-stratus-sysv4
1180+ exit ;;
1181+ i*86:VOS:*:*)
1182+ # From Paul.Green@stratus.com.
1183+ echo ${UNAME_MACHINE}-stratus-vos
1184+ exit ;;
1185+ *:VOS:*:*)
1186+ # From Paul.Green@stratus.com.
1187+ echo hppa1.1-stratus-vos
1188+ exit ;;
1189+ mc68*:A/UX:*:*)
1190+ echo m68k-apple-aux${UNAME_RELEASE}
1191+ exit ;;
1192+ news*:NEWS-OS:6*:*)
1193+ echo mips-sony-newsos6
1194+ exit ;;
1195+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1196+ if [ -d /usr/nec ]; then
1197+ echo mips-nec-sysv${UNAME_RELEASE}
1198+ else
1199+ echo mips-unknown-sysv${UNAME_RELEASE}
1200+ fi
1201+ exit ;;
1202+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1203+ echo powerpc-be-beos
1204+ exit ;;
1205+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1206+ echo powerpc-apple-beos
1207+ exit ;;
1208+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1209+ echo i586-pc-beos
1210+ exit ;;
1211+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1212+ echo i586-pc-haiku
1213+ exit ;;
1214+ SX-4:SUPER-UX:*:*)
1215+ echo sx4-nec-superux${UNAME_RELEASE}
1216+ exit ;;
1217+ SX-5:SUPER-UX:*:*)
1218+ echo sx5-nec-superux${UNAME_RELEASE}
1219+ exit ;;
1220+ SX-6:SUPER-UX:*:*)
1221+ echo sx6-nec-superux${UNAME_RELEASE}
1222+ exit ;;
1223+ SX-7:SUPER-UX:*:*)
1224+ echo sx7-nec-superux${UNAME_RELEASE}
1225+ exit ;;
1226+ SX-8:SUPER-UX:*:*)
1227+ echo sx8-nec-superux${UNAME_RELEASE}
1228+ exit ;;
1229+ SX-8R:SUPER-UX:*:*)
1230+ echo sx8r-nec-superux${UNAME_RELEASE}
1231+ exit ;;
1232+ Power*:Rhapsody:*:*)
1233+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
1234+ exit ;;
1235+ *:Rhapsody:*:*)
1236+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1237+ exit ;;
1238+ *:Darwin:*:*)
1239+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1240+ case $UNAME_PROCESSOR in
1241+ i386)
1242+ eval $set_cc_for_build
1243+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1244+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1245+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1246+ grep IS_64BIT_ARCH >/dev/null
1247+ then
1248+ UNAME_PROCESSOR="x86_64"
1249+ fi
1250+ fi ;;
1251+ unknown) UNAME_PROCESSOR=powerpc ;;
1252+ esac
1253+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1254+ exit ;;
1255+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
1256+ UNAME_PROCESSOR=`uname -p`
1257+ if test "$UNAME_PROCESSOR" = "x86"; then
1258+ UNAME_PROCESSOR=i386
1259+ UNAME_MACHINE=pc
1260+ fi
1261+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1262+ exit ;;
1263+ *:QNX:*:4*)
1264+ echo i386-pc-qnx
1265+ exit ;;
1266+ NEO-?:NONSTOP_KERNEL:*:*)
1267+ echo neo-tandem-nsk${UNAME_RELEASE}
1268+ exit ;;
1269+ NSE-?:NONSTOP_KERNEL:*:*)
1270+ echo nse-tandem-nsk${UNAME_RELEASE}
1271+ exit ;;
1272+ NSR-?:NONSTOP_KERNEL:*:*)
1273+ echo nsr-tandem-nsk${UNAME_RELEASE}
1274+ exit ;;
1275+ *:NonStop-UX:*:*)
1276+ echo mips-compaq-nonstopux
1277+ exit ;;
1278+ BS2000:POSIX*:*:*)
1279+ echo bs2000-siemens-sysv
1280+ exit ;;
1281+ DS/*:UNIX_System_V:*:*)
1282+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1283+ exit ;;
1284+ *:Plan9:*:*)
1285+ # "uname -m" is not consistent, so use $cputype instead. 386
1286+ # is converted to i386 for consistency with other x86
1287+ # operating systems.
1288+ if test "$cputype" = "386"; then
1289+ UNAME_MACHINE=i386
1290+ else
1291+ UNAME_MACHINE="$cputype"
1292+ fi
1293+ echo ${UNAME_MACHINE}-unknown-plan9
1294+ exit ;;
1295+ *:TOPS-10:*:*)
1296+ echo pdp10-unknown-tops10
1297+ exit ;;
1298+ *:TENEX:*:*)
1299+ echo pdp10-unknown-tenex
1300+ exit ;;
1301+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1302+ echo pdp10-dec-tops20
1303+ exit ;;
1304+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1305+ echo pdp10-xkl-tops20
1306+ exit ;;
1307+ *:TOPS-20:*:*)
1308+ echo pdp10-unknown-tops20
1309+ exit ;;
1310+ *:ITS:*:*)
1311+ echo pdp10-unknown-its
1312+ exit ;;
1313+ SEI:*:*:SEIUX)
1314+ echo mips-sei-seiux${UNAME_RELEASE}
1315+ exit ;;
1316+ *:DragonFly:*:*)
1317+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1318+ exit ;;
1319+ *:*VMS:*:*)
1320+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
1321+ case "${UNAME_MACHINE}" in
1322+ A*) echo alpha-dec-vms ; exit ;;
1323+ I*) echo ia64-dec-vms ; exit ;;
1324+ V*) echo vax-dec-vms ; exit ;;
1325+ esac ;;
1326+ *:XENIX:*:SysV)
1327+ echo i386-pc-xenix
1328+ exit ;;
1329+ i*86:skyos:*:*)
1330+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1331+ exit ;;
1332+ i*86:rdos:*:*)
1333+ echo ${UNAME_MACHINE}-pc-rdos
1334+ exit ;;
1335+ i*86:AROS:*:*)
1336+ echo ${UNAME_MACHINE}-pc-aros
1337+ exit ;;
1338+esac
1339+
1340+#echo '(No uname command or uname output not recognized.)' 1>&2
1341+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1342+
1343+eval $set_cc_for_build
1344+cat >$dummy.c <<EOF
1345+#ifdef _SEQUENT_
1346+# include <sys/types.h>
1347+# include <sys/utsname.h>
1348+#endif
1349+main ()
1350+{
1351+#if defined (sony)
1352+#if defined (MIPSEB)
1353+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1354+ I don't know.... */
1355+ printf ("mips-sony-bsd\n"); exit (0);
1356+#else
1357+#include <sys/param.h>
1358+ printf ("m68k-sony-newsos%s\n",
1359+#ifdef NEWSOS4
1360+ "4"
1361+#else
1362+ ""
1363+#endif
1364+ ); exit (0);
1365+#endif
1366+#endif
1367+
1368+#if defined (__arm) && defined (__acorn) && defined (__unix)
1369+ printf ("arm-acorn-riscix\n"); exit (0);
1370+#endif
1371+
1372+#if defined (hp300) && !defined (hpux)
1373+ printf ("m68k-hp-bsd\n"); exit (0);
1374+#endif
1375+
1376+#if defined (NeXT)
1377+#if !defined (__ARCHITECTURE__)
1378+#define __ARCHITECTURE__ "m68k"
1379+#endif
1380+ int version;
1381+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1382+ if (version < 4)
1383+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1384+ else
1385+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1386+ exit (0);
1387+#endif
1388+
1389+#if defined (MULTIMAX) || defined (n16)
1390+#if defined (UMAXV)
1391+ printf ("ns32k-encore-sysv\n"); exit (0);
1392+#else
1393+#if defined (CMU)
1394+ printf ("ns32k-encore-mach\n"); exit (0);
1395+#else
1396+ printf ("ns32k-encore-bsd\n"); exit (0);
1397+#endif
1398+#endif
1399+#endif
1400+
1401+#if defined (__386BSD__)
1402+ printf ("i386-pc-bsd\n"); exit (0);
1403+#endif
1404+
1405+#if defined (sequent)
1406+#if defined (i386)
1407+ printf ("i386-sequent-dynix\n"); exit (0);
1408+#endif
1409+#if defined (ns32000)
1410+ printf ("ns32k-sequent-dynix\n"); exit (0);
1411+#endif
1412+#endif
1413+
1414+#if defined (_SEQUENT_)
1415+ struct utsname un;
1416+
1417+ uname(&un);
1418+
1419+ if (strncmp(un.version, "V2", 2) == 0) {
1420+ printf ("i386-sequent-ptx2\n"); exit (0);
1421+ }
1422+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1423+ printf ("i386-sequent-ptx1\n"); exit (0);
1424+ }
1425+ printf ("i386-sequent-ptx\n"); exit (0);
1426+
1427+#endif
1428+
1429+#if defined (vax)
1430+# if !defined (ultrix)
1431+# include <sys/param.h>
1432+# if defined (BSD)
1433+# if BSD == 43
1434+ printf ("vax-dec-bsd4.3\n"); exit (0);
1435+# else
1436+# if BSD == 199006
1437+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
1438+# else
1439+ printf ("vax-dec-bsd\n"); exit (0);
1440+# endif
1441+# endif
1442+# else
1443+ printf ("vax-dec-bsd\n"); exit (0);
1444+# endif
1445+# else
1446+ printf ("vax-dec-ultrix\n"); exit (0);
1447+# endif
1448+#endif
1449+
1450+#if defined (alliant) && defined (i860)
1451+ printf ("i860-alliant-bsd\n"); exit (0);
1452+#endif
1453+
1454+ exit (1);
1455+}
1456+EOF
1457+
1458+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1459+ { echo "$SYSTEM_NAME"; exit; }
1460+
1461+# Apollos put the system type in the environment.
1462+
1463+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1464+
1465+# Convex versions that predate uname can use getsysinfo(1)
1466+
1467+if [ -x /usr/convex/getsysinfo ]
1468+then
1469+ case `getsysinfo -f cpu_type` in
1470+ c1*)
1471+ echo c1-convex-bsd
1472+ exit ;;
1473+ c2*)
1474+ if getsysinfo -f scalar_acc
1475+ then echo c32-convex-bsd
1476+ else echo c2-convex-bsd
1477+ fi
1478+ exit ;;
1479+ c34*)
1480+ echo c34-convex-bsd
1481+ exit ;;
1482+ c38*)
1483+ echo c38-convex-bsd
1484+ exit ;;
1485+ c4*)
1486+ echo c4-convex-bsd
1487+ exit ;;
1488+ esac
1489+fi
1490+
1491+cat >&2 <<EOF
1492+$0: unable to guess system type
1493+
1494+This script, last modified $timestamp, has failed to recognize
1495+the operating system you are using. It is advised that you
1496+download the most up to date version of the config scripts from
1497+
1498+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1499+and
1500+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1501+
1502+If the version you run ($0) is already up to date, please
1503+send the following data and any information you think might be
1504+pertinent to <config-patches@gnu.org> in order to provide the needed
1505+information to handle your system.
1506+
1507+config.guess timestamp = $timestamp
1508+
1509+uname -m = `(uname -m) 2>/dev/null || echo unknown`
1510+uname -r = `(uname -r) 2>/dev/null || echo unknown`
1511+uname -s = `(uname -s) 2>/dev/null || echo unknown`
1512+uname -v = `(uname -v) 2>/dev/null || echo unknown`
1513+
1514+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1515+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1516+
1517+hostinfo = `(hostinfo) 2>/dev/null`
1518+/bin/universe = `(/bin/universe) 2>/dev/null`
1519+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1520+/bin/arch = `(/bin/arch) 2>/dev/null`
1521+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1522+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1523+
1524+UNAME_MACHINE = ${UNAME_MACHINE}
1525+UNAME_RELEASE = ${UNAME_RELEASE}
1526+UNAME_SYSTEM = ${UNAME_SYSTEM}
1527+UNAME_VERSION = ${UNAME_VERSION}
1528+EOF
1529+
1530+exit 1
1531+
1532+# Local variables:
1533+# eval: (add-hook 'write-file-hooks 'time-stamp)
1534+# time-stamp-start: "timestamp='"
1535+# time-stamp-format: "%:y-%02m-%02d"
1536+# time-stamp-end: "'"
1537+# End:
1538
1539=== added file '.pc/config-sub-guess-update.patch/build-aux/config.sub'
1540--- .pc/config-sub-guess-update.patch/build-aux/config.sub 1970-01-01 00:00:00 +0000
1541+++ .pc/config-sub-guess-update.patch/build-aux/config.sub 2013-10-02 19:20:36 +0000
1542@@ -0,0 +1,1766 @@
1543+#! /bin/sh
1544+# Configuration validation subroutine script.
1545+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1546+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
1547+# 2011, 2012 Free Software Foundation, Inc.
1548+
1549+timestamp='2012-01-01'
1550+
1551+# This file is (in principle) common to ALL GNU software.
1552+# The presence of a machine in this file suggests that SOME GNU software
1553+# can handle that machine. It does not imply ALL GNU software can.
1554+#
1555+# This file is free software; you can redistribute it and/or modify
1556+# it under the terms of the GNU General Public License as published by
1557+# the Free Software Foundation; either version 2 of the License, or
1558+# (at your option) any later version.
1559+#
1560+# This program is distributed in the hope that it will be useful,
1561+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1562+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1563+# GNU General Public License for more details.
1564+#
1565+# You should have received a copy of the GNU General Public License
1566+# along with this program; if not, write to the Free Software
1567+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
1568+# 02110-1301, USA.
1569+#
1570+# As a special exception to the GNU General Public License, if you
1571+# distribute this file as part of a program that contains a
1572+# configuration script generated by Autoconf, you may include it under
1573+# the same distribution terms that you use for the rest of that program.
1574+
1575+
1576+# Please send patches to <config-patches@gnu.org>. Submit a context
1577+# diff and a properly formatted GNU ChangeLog entry.
1578+#
1579+# Configuration subroutine to validate and canonicalize a configuration type.
1580+# Supply the specified configuration type as an argument.
1581+# If it is invalid, we print an error message on stderr and exit with code 1.
1582+# Otherwise, we print the canonical config type on stdout and succeed.
1583+
1584+# You can get the latest version of this script from:
1585+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1586+
1587+# This file is supposed to be the same for all GNU packages
1588+# and recognize all the CPU types, system types and aliases
1589+# that are meaningful with *any* GNU software.
1590+# Each package is responsible for reporting which valid configurations
1591+# it does not support. The user should be able to distinguish
1592+# a failure to support a valid configuration from a meaningless
1593+# configuration.
1594+
1595+# The goal of this file is to map all the various variations of a given
1596+# machine specification into a single specification in the form:
1597+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
1598+# or in some cases, the newer four-part form:
1599+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
1600+# It is wrong to echo any other type of specification.
1601+
1602+me=`echo "$0" | sed -e 's,.*/,,'`
1603+
1604+usage="\
1605+Usage: $0 [OPTION] CPU-MFR-OPSYS
1606+ $0 [OPTION] ALIAS
1607+
1608+Canonicalize a configuration name.
1609+
1610+Operation modes:
1611+ -h, --help print this help, then exit
1612+ -t, --time-stamp print date of last modification, then exit
1613+ -v, --version print version number, then exit
1614+
1615+Report bugs and patches to <config-patches@gnu.org>."
1616+
1617+version="\
1618+GNU config.sub ($timestamp)
1619+
1620+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
1621+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
1622+Free Software Foundation, Inc.
1623+
1624+This is free software; see the source for copying conditions. There is NO
1625+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1626+
1627+help="
1628+Try \`$me --help' for more information."
1629+
1630+# Parse command line
1631+while test $# -gt 0 ; do
1632+ case $1 in
1633+ --time-stamp | --time* | -t )
1634+ echo "$timestamp" ; exit ;;
1635+ --version | -v )
1636+ echo "$version" ; exit ;;
1637+ --help | --h* | -h )
1638+ echo "$usage"; exit ;;
1639+ -- ) # Stop option processing
1640+ shift; break ;;
1641+ - ) # Use stdin as input.
1642+ break ;;
1643+ -* )
1644+ echo "$me: invalid option $1$help"
1645+ exit 1 ;;
1646+
1647+ *local*)
1648+ # First pass through any local machine types.
1649+ echo $1
1650+ exit ;;
1651+
1652+ * )
1653+ break ;;
1654+ esac
1655+done
1656+
1657+case $# in
1658+ 0) echo "$me: missing argument$help" >&2
1659+ exit 1;;
1660+ 1) ;;
1661+ *) echo "$me: too many arguments$help" >&2
1662+ exit 1;;
1663+esac
1664+
1665+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
1666+# Here we must recognize all the valid KERNEL-OS combinations.
1667+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
1668+case $maybe_os in
1669+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
1670+ linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
1671+ knetbsd*-gnu* | netbsd*-gnu* | \
1672+ kopensolaris*-gnu* | \
1673+ storm-chaos* | os2-emx* | rtmk-nova*)
1674+ os=-$maybe_os
1675+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
1676+ ;;
1677+ *)
1678+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
1679+ if [ $basic_machine != $1 ]
1680+ then os=`echo $1 | sed 's/.*-/-/'`
1681+ else os=; fi
1682+ ;;
1683+esac
1684+
1685+### Let's recognize common machines as not being operating systems so
1686+### that things like config.sub decstation-3100 work. We also
1687+### recognize some manufacturers as not being operating systems, so we
1688+### can provide default operating systems below.
1689+case $os in
1690+ -sun*os*)
1691+ # Prevent following clause from handling this invalid input.
1692+ ;;
1693+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
1694+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
1695+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
1696+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
1697+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
1698+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
1699+ -apple | -axis | -knuth | -cray | -microblaze)
1700+ os=
1701+ basic_machine=$1
1702+ ;;
1703+ -bluegene*)
1704+ os=-cnk
1705+ ;;
1706+ -sim | -cisco | -oki | -wec | -winbond)
1707+ os=
1708+ basic_machine=$1
1709+ ;;
1710+ -scout)
1711+ ;;
1712+ -wrs)
1713+ os=-vxworks
1714+ basic_machine=$1
1715+ ;;
1716+ -chorusos*)
1717+ os=-chorusos
1718+ basic_machine=$1
1719+ ;;
1720+ -chorusrdb)
1721+ os=-chorusrdb
1722+ basic_machine=$1
1723+ ;;
1724+ -hiux*)
1725+ os=-hiuxwe2
1726+ ;;
1727+ -sco6)
1728+ os=-sco5v6
1729+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1730+ ;;
1731+ -sco5)
1732+ os=-sco3.2v5
1733+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1734+ ;;
1735+ -sco4)
1736+ os=-sco3.2v4
1737+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1738+ ;;
1739+ -sco3.2.[4-9]*)
1740+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1741+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1742+ ;;
1743+ -sco3.2v[4-9]*)
1744+ # Don't forget version if it is 3.2v4 or newer.
1745+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1746+ ;;
1747+ -sco5v6*)
1748+ # Don't forget version if it is 3.2v4 or newer.
1749+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1750+ ;;
1751+ -sco*)
1752+ os=-sco3.2v2
1753+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1754+ ;;
1755+ -udk*)
1756+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1757+ ;;
1758+ -isc)
1759+ os=-isc2.2
1760+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1761+ ;;
1762+ -clix*)
1763+ basic_machine=clipper-intergraph
1764+ ;;
1765+ -isc*)
1766+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1767+ ;;
1768+ -lynx*)
1769+ os=-lynxos
1770+ ;;
1771+ -ptx*)
1772+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
1773+ ;;
1774+ -windowsnt*)
1775+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
1776+ ;;
1777+ -psos*)
1778+ os=-psos
1779+ ;;
1780+ -mint | -mint[0-9]*)
1781+ basic_machine=m68k-atari
1782+ os=-mint
1783+ ;;
1784+esac
1785+
1786+# Decode aliases for certain CPU-COMPANY combinations.
1787+case $basic_machine in
1788+ # Recognize the basic CPU types without company name.
1789+ # Some are omitted here because they have special meanings below.
1790+ 1750a | 580 \
1791+ | a29k \
1792+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
1793+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
1794+ | am33_2.0 \
1795+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
1796+ | be32 | be64 \
1797+ | bfin \
1798+ | c4x | clipper \
1799+ | d10v | d30v | dlx | dsp16xx \
1800+ | epiphany \
1801+ | fido | fr30 | frv \
1802+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1803+ | hexagon \
1804+ | i370 | i860 | i960 | ia64 \
1805+ | ip2k | iq2000 \
1806+ | le32 | le64 \
1807+ | lm32 \
1808+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
1809+ | maxq | mb | microblaze | mcore | mep | metag \
1810+ | mips | mipsbe | mipseb | mipsel | mipsle \
1811+ | mips16 \
1812+ | mips64 | mips64el \
1813+ | mips64octeon | mips64octeonel \
1814+ | mips64orion | mips64orionel \
1815+ | mips64r5900 | mips64r5900el \
1816+ | mips64vr | mips64vrel \
1817+ | mips64vr4100 | mips64vr4100el \
1818+ | mips64vr4300 | mips64vr4300el \
1819+ | mips64vr5000 | mips64vr5000el \
1820+ | mips64vr5900 | mips64vr5900el \
1821+ | mipsisa32 | mipsisa32el \
1822+ | mipsisa32r2 | mipsisa32r2el \
1823+ | mipsisa64 | mipsisa64el \
1824+ | mipsisa64r2 | mipsisa64r2el \
1825+ | mipsisa64sb1 | mipsisa64sb1el \
1826+ | mipsisa64sr71k | mipsisa64sr71kel \
1827+ | mipstx39 | mipstx39el \
1828+ | mn10200 | mn10300 \
1829+ | moxie \
1830+ | mt \
1831+ | msp430 \
1832+ | nds32 | nds32le | nds32be \
1833+ | nios | nios2 \
1834+ | ns16k | ns32k \
1835+ | open8 \
1836+ | or32 \
1837+ | pdp10 | pdp11 | pj | pjl \
1838+ | powerpc | powerpc64 | powerpc64le | powerpcle \
1839+ | pyramid \
1840+ | rl78 | rx \
1841+ | score \
1842+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
1843+ | sh64 | sh64le \
1844+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
1845+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
1846+ | spu \
1847+ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
1848+ | ubicom32 \
1849+ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
1850+ | we32k \
1851+ | x86 | xc16x | xstormy16 | xtensa \
1852+ | z8k | z80)
1853+ basic_machine=$basic_machine-unknown
1854+ ;;
1855+ c54x)
1856+ basic_machine=tic54x-unknown
1857+ ;;
1858+ c55x)
1859+ basic_machine=tic55x-unknown
1860+ ;;
1861+ c6x)
1862+ basic_machine=tic6x-unknown
1863+ ;;
1864+ m6811 | m68hc11 | m6812 | m68hc12 | picochip)
1865+ basic_machine=$basic_machine-unknown
1866+ os=-none
1867+ ;;
1868+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
1869+ ;;
1870+ ms1)
1871+ basic_machine=mt-unknown
1872+ ;;
1873+
1874+ strongarm | thumb | xscale)
1875+ basic_machine=arm-unknown
1876+ ;;
1877+
1878+ xscaleeb)
1879+ basic_machine=armeb-unknown
1880+ ;;
1881+
1882+ xscaleel)
1883+ basic_machine=armel-unknown
1884+ ;;
1885+
1886+ # We use `pc' rather than `unknown'
1887+ # because (1) that's what they normally are, and
1888+ # (2) the word "unknown" tends to confuse beginning users.
1889+ i*86 | x86_64)
1890+ basic_machine=$basic_machine-pc
1891+ ;;
1892+ # Object if more than one company name word.
1893+ *-*-*)
1894+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1895+ exit 1
1896+ ;;
1897+ # Recognize the basic CPU types with company name.
1898+ 580-* \
1899+ | a29k-* \
1900+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
1901+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
1902+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
1903+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
1904+ | avr-* | avr32-* \
1905+ | be32-* | be64-* \
1906+ | bfin-* | bs2000-* \
1907+ | c[123]* | c30-* | [cjt]90-* | c4x-* \
1908+ | clipper-* | craynv-* | cydra-* \
1909+ | d10v-* | d30v-* | dlx-* \
1910+ | elxsi-* \
1911+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
1912+ | h8300-* | h8500-* \
1913+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
1914+ | hexagon-* \
1915+ | i*86-* | i860-* | i960-* | ia64-* \
1916+ | ip2k-* | iq2000-* \
1917+ | le32-* | le64-* \
1918+ | lm32-* \
1919+ | m32c-* | m32r-* | m32rle-* \
1920+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
1921+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
1922+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
1923+ | mips16-* \
1924+ | mips64-* | mips64el-* \
1925+ | mips64octeon-* | mips64octeonel-* \
1926+ | mips64orion-* | mips64orionel-* \
1927+ | mips64r5900-* | mips64r5900el-* \
1928+ | mips64vr-* | mips64vrel-* \
1929+ | mips64vr4100-* | mips64vr4100el-* \
1930+ | mips64vr4300-* | mips64vr4300el-* \
1931+ | mips64vr5000-* | mips64vr5000el-* \
1932+ | mips64vr5900-* | mips64vr5900el-* \
1933+ | mipsisa32-* | mipsisa32el-* \
1934+ | mipsisa32r2-* | mipsisa32r2el-* \
1935+ | mipsisa64-* | mipsisa64el-* \
1936+ | mipsisa64r2-* | mipsisa64r2el-* \
1937+ | mipsisa64sb1-* | mipsisa64sb1el-* \
1938+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
1939+ | mipstx39-* | mipstx39el-* \
1940+ | mmix-* \
1941+ | mt-* \
1942+ | msp430-* \
1943+ | nds32-* | nds32le-* | nds32be-* \
1944+ | nios-* | nios2-* \
1945+ | none-* | np1-* | ns16k-* | ns32k-* \
1946+ | open8-* \
1947+ | orion-* \
1948+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
1949+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
1950+ | pyramid-* \
1951+ | rl78-* | romp-* | rs6000-* | rx-* \
1952+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
1953+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
1954+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
1955+ | sparclite-* \
1956+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
1957+ | tahoe-* \
1958+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
1959+ | tile*-* \
1960+ | tron-* \
1961+ | ubicom32-* \
1962+ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
1963+ | vax-* \
1964+ | we32k-* \
1965+ | x86-* | x86_64-* | xc16x-* | xps100-* \
1966+ | xstormy16-* | xtensa*-* \
1967+ | ymp-* \
1968+ | z8k-* | z80-*)
1969+ ;;
1970+ # Recognize the basic CPU types without company name, with glob match.
1971+ xtensa*)
1972+ basic_machine=$basic_machine-unknown
1973+ ;;
1974+ # Recognize the various machine names and aliases which stand
1975+ # for a CPU type and a company and sometimes even an OS.
1976+ 386bsd)
1977+ basic_machine=i386-unknown
1978+ os=-bsd
1979+ ;;
1980+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
1981+ basic_machine=m68000-att
1982+ ;;
1983+ 3b*)
1984+ basic_machine=we32k-att
1985+ ;;
1986+ a29khif)
1987+ basic_machine=a29k-amd
1988+ os=-udi
1989+ ;;
1990+ abacus)
1991+ basic_machine=abacus-unknown
1992+ ;;
1993+ adobe68k)
1994+ basic_machine=m68010-adobe
1995+ os=-scout
1996+ ;;
1997+ alliant | fx80)
1998+ basic_machine=fx80-alliant
1999+ ;;
2000+ altos | altos3068)
2001+ basic_machine=m68k-altos
2002+ ;;
2003+ am29k)
2004+ basic_machine=a29k-none
2005+ os=-bsd
2006+ ;;
2007+ amd64)
2008+ basic_machine=x86_64-pc
2009+ ;;
2010+ amd64-*)
2011+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
2012+ ;;
2013+ amdahl)
2014+ basic_machine=580-amdahl
2015+ os=-sysv
2016+ ;;
2017+ amiga | amiga-*)
2018+ basic_machine=m68k-unknown
2019+ ;;
2020+ amigaos | amigados)
2021+ basic_machine=m68k-unknown
2022+ os=-amigaos
2023+ ;;
2024+ amigaunix | amix)
2025+ basic_machine=m68k-unknown
2026+ os=-sysv4
2027+ ;;
2028+ apollo68)
2029+ basic_machine=m68k-apollo
2030+ os=-sysv
2031+ ;;
2032+ apollo68bsd)
2033+ basic_machine=m68k-apollo
2034+ os=-bsd
2035+ ;;
2036+ aros)
2037+ basic_machine=i386-pc
2038+ os=-aros
2039+ ;;
2040+ aux)
2041+ basic_machine=m68k-apple
2042+ os=-aux
2043+ ;;
2044+ balance)
2045+ basic_machine=ns32k-sequent
2046+ os=-dynix
2047+ ;;
2048+ blackfin)
2049+ basic_machine=bfin-unknown
2050+ os=-linux
2051+ ;;
2052+ blackfin-*)
2053+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
2054+ os=-linux
2055+ ;;
2056+ bluegene*)
2057+ basic_machine=powerpc-ibm
2058+ os=-cnk
2059+ ;;
2060+ c54x-*)
2061+ basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
2062+ ;;
2063+ c55x-*)
2064+ basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
2065+ ;;
2066+ c6x-*)
2067+ basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
2068+ ;;
2069+ c90)
2070+ basic_machine=c90-cray
2071+ os=-unicos
2072+ ;;
2073+ cegcc)
2074+ basic_machine=arm-unknown
2075+ os=-cegcc
2076+ ;;
2077+ convex-c1)
2078+ basic_machine=c1-convex
2079+ os=-bsd
2080+ ;;
2081+ convex-c2)
2082+ basic_machine=c2-convex
2083+ os=-bsd
2084+ ;;
2085+ convex-c32)
2086+ basic_machine=c32-convex
2087+ os=-bsd
2088+ ;;
2089+ convex-c34)
2090+ basic_machine=c34-convex
2091+ os=-bsd
2092+ ;;
2093+ convex-c38)
2094+ basic_machine=c38-convex
2095+ os=-bsd
2096+ ;;
2097+ cray | j90)
2098+ basic_machine=j90-cray
2099+ os=-unicos
2100+ ;;
2101+ craynv)
2102+ basic_machine=craynv-cray
2103+ os=-unicosmp
2104+ ;;
2105+ cr16 | cr16-*)
2106+ basic_machine=cr16-unknown
2107+ os=-elf
2108+ ;;
2109+ crds | unos)
2110+ basic_machine=m68k-crds
2111+ ;;
2112+ crisv32 | crisv32-* | etraxfs*)
2113+ basic_machine=crisv32-axis
2114+ ;;
2115+ cris | cris-* | etrax*)
2116+ basic_machine=cris-axis
2117+ ;;
2118+ crx)
2119+ basic_machine=crx-unknown
2120+ os=-elf
2121+ ;;
2122+ da30 | da30-*)
2123+ basic_machine=m68k-da30
2124+ ;;
2125+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
2126+ basic_machine=mips-dec
2127+ ;;
2128+ decsystem10* | dec10*)
2129+ basic_machine=pdp10-dec
2130+ os=-tops10
2131+ ;;
2132+ decsystem20* | dec20*)
2133+ basic_machine=pdp10-dec
2134+ os=-tops20
2135+ ;;
2136+ delta | 3300 | motorola-3300 | motorola-delta \
2137+ | 3300-motorola | delta-motorola)
2138+ basic_machine=m68k-motorola
2139+ ;;
2140+ delta88)
2141+ basic_machine=m88k-motorola
2142+ os=-sysv3
2143+ ;;
2144+ dicos)
2145+ basic_machine=i686-pc
2146+ os=-dicos
2147+ ;;
2148+ djgpp)
2149+ basic_machine=i586-pc
2150+ os=-msdosdjgpp
2151+ ;;
2152+ dpx20 | dpx20-*)
2153+ basic_machine=rs6000-bull
2154+ os=-bosx
2155+ ;;
2156+ dpx2* | dpx2*-bull)
2157+ basic_machine=m68k-bull
2158+ os=-sysv3
2159+ ;;
2160+ ebmon29k)
2161+ basic_machine=a29k-amd
2162+ os=-ebmon
2163+ ;;
2164+ elxsi)
2165+ basic_machine=elxsi-elxsi
2166+ os=-bsd
2167+ ;;
2168+ encore | umax | mmax)
2169+ basic_machine=ns32k-encore
2170+ ;;
2171+ es1800 | OSE68k | ose68k | ose | OSE)
2172+ basic_machine=m68k-ericsson
2173+ os=-ose
2174+ ;;
2175+ fx2800)
2176+ basic_machine=i860-alliant
2177+ ;;
2178+ genix)
2179+ basic_machine=ns32k-ns
2180+ ;;
2181+ gmicro)
2182+ basic_machine=tron-gmicro
2183+ os=-sysv
2184+ ;;
2185+ go32)
2186+ basic_machine=i386-pc
2187+ os=-go32
2188+ ;;
2189+ h3050r* | hiux*)
2190+ basic_machine=hppa1.1-hitachi
2191+ os=-hiuxwe2
2192+ ;;
2193+ h8300hms)
2194+ basic_machine=h8300-hitachi
2195+ os=-hms
2196+ ;;
2197+ h8300xray)
2198+ basic_machine=h8300-hitachi
2199+ os=-xray
2200+ ;;
2201+ h8500hms)
2202+ basic_machine=h8500-hitachi
2203+ os=-hms
2204+ ;;
2205+ harris)
2206+ basic_machine=m88k-harris
2207+ os=-sysv3
2208+ ;;
2209+ hp300-*)
2210+ basic_machine=m68k-hp
2211+ ;;
2212+ hp300bsd)
2213+ basic_machine=m68k-hp
2214+ os=-bsd
2215+ ;;
2216+ hp300hpux)
2217+ basic_machine=m68k-hp
2218+ os=-hpux
2219+ ;;
2220+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
2221+ basic_machine=hppa1.0-hp
2222+ ;;
2223+ hp9k2[0-9][0-9] | hp9k31[0-9])
2224+ basic_machine=m68000-hp
2225+ ;;
2226+ hp9k3[2-9][0-9])
2227+ basic_machine=m68k-hp
2228+ ;;
2229+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
2230+ basic_machine=hppa1.0-hp
2231+ ;;
2232+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
2233+ basic_machine=hppa1.1-hp
2234+ ;;
2235+ hp9k78[0-9] | hp78[0-9])
2236+ # FIXME: really hppa2.0-hp
2237+ basic_machine=hppa1.1-hp
2238+ ;;
2239+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
2240+ # FIXME: really hppa2.0-hp
2241+ basic_machine=hppa1.1-hp
2242+ ;;
2243+ hp9k8[0-9][13679] | hp8[0-9][13679])
2244+ basic_machine=hppa1.1-hp
2245+ ;;
2246+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
2247+ basic_machine=hppa1.0-hp
2248+ ;;
2249+ hppa-next)
2250+ os=-nextstep3
2251+ ;;
2252+ hppaosf)
2253+ basic_machine=hppa1.1-hp
2254+ os=-osf
2255+ ;;
2256+ hppro)
2257+ basic_machine=hppa1.1-hp
2258+ os=-proelf
2259+ ;;
2260+ i370-ibm* | ibm*)
2261+ basic_machine=i370-ibm
2262+ ;;
2263+ i*86v32)
2264+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2265+ os=-sysv32
2266+ ;;
2267+ i*86v4*)
2268+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2269+ os=-sysv4
2270+ ;;
2271+ i*86v)
2272+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2273+ os=-sysv
2274+ ;;
2275+ i*86sol2)
2276+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2277+ os=-solaris2
2278+ ;;
2279+ i386mach)
2280+ basic_machine=i386-mach
2281+ os=-mach
2282+ ;;
2283+ i386-vsta | vsta)
2284+ basic_machine=i386-unknown
2285+ os=-vsta
2286+ ;;
2287+ iris | iris4d)
2288+ basic_machine=mips-sgi
2289+ case $os in
2290+ -irix*)
2291+ ;;
2292+ *)
2293+ os=-irix4
2294+ ;;
2295+ esac
2296+ ;;
2297+ isi68 | isi)
2298+ basic_machine=m68k-isi
2299+ os=-sysv
2300+ ;;
2301+ m68knommu)
2302+ basic_machine=m68k-unknown
2303+ os=-linux
2304+ ;;
2305+ m68knommu-*)
2306+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
2307+ os=-linux
2308+ ;;
2309+ m88k-omron*)
2310+ basic_machine=m88k-omron
2311+ ;;
2312+ magnum | m3230)
2313+ basic_machine=mips-mips
2314+ os=-sysv
2315+ ;;
2316+ merlin)
2317+ basic_machine=ns32k-utek
2318+ os=-sysv
2319+ ;;
2320+ microblaze)
2321+ basic_machine=microblaze-xilinx
2322+ ;;
2323+ mingw32)
2324+ basic_machine=i386-pc
2325+ os=-mingw32
2326+ ;;
2327+ mingw32ce)
2328+ basic_machine=arm-unknown
2329+ os=-mingw32ce
2330+ ;;
2331+ miniframe)
2332+ basic_machine=m68000-convergent
2333+ ;;
2334+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
2335+ basic_machine=m68k-atari
2336+ os=-mint
2337+ ;;
2338+ mips3*-*)
2339+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
2340+ ;;
2341+ mips3*)
2342+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
2343+ ;;
2344+ monitor)
2345+ basic_machine=m68k-rom68k
2346+ os=-coff
2347+ ;;
2348+ morphos)
2349+ basic_machine=powerpc-unknown
2350+ os=-morphos
2351+ ;;
2352+ msdos)
2353+ basic_machine=i386-pc
2354+ os=-msdos
2355+ ;;
2356+ ms1-*)
2357+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
2358+ ;;
2359+ msys)
2360+ basic_machine=i386-pc
2361+ os=-msys
2362+ ;;
2363+ mvs)
2364+ basic_machine=i370-ibm
2365+ os=-mvs
2366+ ;;
2367+ nacl)
2368+ basic_machine=le32-unknown
2369+ os=-nacl
2370+ ;;
2371+ ncr3000)
2372+ basic_machine=i486-ncr
2373+ os=-sysv4
2374+ ;;
2375+ netbsd386)
2376+ basic_machine=i386-unknown
2377+ os=-netbsd
2378+ ;;
2379+ netwinder)
2380+ basic_machine=armv4l-rebel
2381+ os=-linux
2382+ ;;
2383+ news | news700 | news800 | news900)
2384+ basic_machine=m68k-sony
2385+ os=-newsos
2386+ ;;
2387+ news1000)
2388+ basic_machine=m68030-sony
2389+ os=-newsos
2390+ ;;
2391+ news-3600 | risc-news)
2392+ basic_machine=mips-sony
2393+ os=-newsos
2394+ ;;
2395+ necv70)
2396+ basic_machine=v70-nec
2397+ os=-sysv
2398+ ;;
2399+ next | m*-next )
2400+ basic_machine=m68k-next
2401+ case $os in
2402+ -nextstep* )
2403+ ;;
2404+ -ns2*)
2405+ os=-nextstep2
2406+ ;;
2407+ *)
2408+ os=-nextstep3
2409+ ;;
2410+ esac
2411+ ;;
2412+ nh3000)
2413+ basic_machine=m68k-harris
2414+ os=-cxux
2415+ ;;
2416+ nh[45]000)
2417+ basic_machine=m88k-harris
2418+ os=-cxux
2419+ ;;
2420+ nindy960)
2421+ basic_machine=i960-intel
2422+ os=-nindy
2423+ ;;
2424+ mon960)
2425+ basic_machine=i960-intel
2426+ os=-mon960
2427+ ;;
2428+ nonstopux)
2429+ basic_machine=mips-compaq
2430+ os=-nonstopux
2431+ ;;
2432+ np1)
2433+ basic_machine=np1-gould
2434+ ;;
2435+ neo-tandem)
2436+ basic_machine=neo-tandem
2437+ ;;
2438+ nse-tandem)
2439+ basic_machine=nse-tandem
2440+ ;;
2441+ nsr-tandem)
2442+ basic_machine=nsr-tandem
2443+ ;;
2444+ op50n-* | op60c-*)
2445+ basic_machine=hppa1.1-oki
2446+ os=-proelf
2447+ ;;
2448+ openrisc | openrisc-*)
2449+ basic_machine=or32-unknown
2450+ ;;
2451+ os400)
2452+ basic_machine=powerpc-ibm
2453+ os=-os400
2454+ ;;
2455+ OSE68000 | ose68000)
2456+ basic_machine=m68000-ericsson
2457+ os=-ose
2458+ ;;
2459+ os68k)
2460+ basic_machine=m68k-none
2461+ os=-os68k
2462+ ;;
2463+ pa-hitachi)
2464+ basic_machine=hppa1.1-hitachi
2465+ os=-hiuxwe2
2466+ ;;
2467+ paragon)
2468+ basic_machine=i860-intel
2469+ os=-osf
2470+ ;;
2471+ parisc)
2472+ basic_machine=hppa-unknown
2473+ os=-linux
2474+ ;;
2475+ parisc-*)
2476+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
2477+ os=-linux
2478+ ;;
2479+ pbd)
2480+ basic_machine=sparc-tti
2481+ ;;
2482+ pbb)
2483+ basic_machine=m68k-tti
2484+ ;;
2485+ pc532 | pc532-*)
2486+ basic_machine=ns32k-pc532
2487+ ;;
2488+ pc98)
2489+ basic_machine=i386-pc
2490+ ;;
2491+ pc98-*)
2492+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
2493+ ;;
2494+ pentium | p5 | k5 | k6 | nexgen | viac3)
2495+ basic_machine=i586-pc
2496+ ;;
2497+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
2498+ basic_machine=i686-pc
2499+ ;;
2500+ pentiumii | pentium2 | pentiumiii | pentium3)
2501+ basic_machine=i686-pc
2502+ ;;
2503+ pentium4)
2504+ basic_machine=i786-pc
2505+ ;;
2506+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
2507+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
2508+ ;;
2509+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
2510+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2511+ ;;
2512+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
2513+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2514+ ;;
2515+ pentium4-*)
2516+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
2517+ ;;
2518+ pn)
2519+ basic_machine=pn-gould
2520+ ;;
2521+ power) basic_machine=power-ibm
2522+ ;;
2523+ ppc | ppcbe) basic_machine=powerpc-unknown
2524+ ;;
2525+ ppc-* | ppcbe-*)
2526+ basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
2527+ ;;
2528+ ppcle | powerpclittle | ppc-le | powerpc-little)
2529+ basic_machine=powerpcle-unknown
2530+ ;;
2531+ ppcle-* | powerpclittle-*)
2532+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
2533+ ;;
2534+ ppc64) basic_machine=powerpc64-unknown
2535+ ;;
2536+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
2537+ ;;
2538+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
2539+ basic_machine=powerpc64le-unknown
2540+ ;;
2541+ ppc64le-* | powerpc64little-*)
2542+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
2543+ ;;
2544+ ps2)
2545+ basic_machine=i386-ibm
2546+ ;;
2547+ pw32)
2548+ basic_machine=i586-unknown
2549+ os=-pw32
2550+ ;;
2551+ rdos)
2552+ basic_machine=i386-pc
2553+ os=-rdos
2554+ ;;
2555+ rom68k)
2556+ basic_machine=m68k-rom68k
2557+ os=-coff
2558+ ;;
2559+ rm[46]00)
2560+ basic_machine=mips-siemens
2561+ ;;
2562+ rtpc | rtpc-*)
2563+ basic_machine=romp-ibm
2564+ ;;
2565+ s390 | s390-*)
2566+ basic_machine=s390-ibm
2567+ ;;
2568+ s390x | s390x-*)
2569+ basic_machine=s390x-ibm
2570+ ;;
2571+ sa29200)
2572+ basic_machine=a29k-amd
2573+ os=-udi
2574+ ;;
2575+ sb1)
2576+ basic_machine=mipsisa64sb1-unknown
2577+ ;;
2578+ sb1el)
2579+ basic_machine=mipsisa64sb1el-unknown
2580+ ;;
2581+ sde)
2582+ basic_machine=mipsisa32-sde
2583+ os=-elf
2584+ ;;
2585+ sei)
2586+ basic_machine=mips-sei
2587+ os=-seiux
2588+ ;;
2589+ sequent)
2590+ basic_machine=i386-sequent
2591+ ;;
2592+ sh)
2593+ basic_machine=sh-hitachi
2594+ os=-hms
2595+ ;;
2596+ sh5el)
2597+ basic_machine=sh5le-unknown
2598+ ;;
2599+ sh64)
2600+ basic_machine=sh64-unknown
2601+ ;;
2602+ sparclite-wrs | simso-wrs)
2603+ basic_machine=sparclite-wrs
2604+ os=-vxworks
2605+ ;;
2606+ sps7)
2607+ basic_machine=m68k-bull
2608+ os=-sysv2
2609+ ;;
2610+ spur)
2611+ basic_machine=spur-unknown
2612+ ;;
2613+ st2000)
2614+ basic_machine=m68k-tandem
2615+ ;;
2616+ stratus)
2617+ basic_machine=i860-stratus
2618+ os=-sysv4
2619+ ;;
2620+ strongarm-* | thumb-*)
2621+ basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
2622+ ;;
2623+ sun2)
2624+ basic_machine=m68000-sun
2625+ ;;
2626+ sun2os3)
2627+ basic_machine=m68000-sun
2628+ os=-sunos3
2629+ ;;
2630+ sun2os4)
2631+ basic_machine=m68000-sun
2632+ os=-sunos4
2633+ ;;
2634+ sun3os3)
2635+ basic_machine=m68k-sun
2636+ os=-sunos3
2637+ ;;
2638+ sun3os4)
2639+ basic_machine=m68k-sun
2640+ os=-sunos4
2641+ ;;
2642+ sun4os3)
2643+ basic_machine=sparc-sun
2644+ os=-sunos3
2645+ ;;
2646+ sun4os4)
2647+ basic_machine=sparc-sun
2648+ os=-sunos4
2649+ ;;
2650+ sun4sol2)
2651+ basic_machine=sparc-sun
2652+ os=-solaris2
2653+ ;;
2654+ sun3 | sun3-*)
2655+ basic_machine=m68k-sun
2656+ ;;
2657+ sun4)
2658+ basic_machine=sparc-sun
2659+ ;;
2660+ sun386 | sun386i | roadrunner)
2661+ basic_machine=i386-sun
2662+ ;;
2663+ sv1)
2664+ basic_machine=sv1-cray
2665+ os=-unicos
2666+ ;;
2667+ symmetry)
2668+ basic_machine=i386-sequent
2669+ os=-dynix
2670+ ;;
2671+ t3e)
2672+ basic_machine=alphaev5-cray
2673+ os=-unicos
2674+ ;;
2675+ t90)
2676+ basic_machine=t90-cray
2677+ os=-unicos
2678+ ;;
2679+ tile*)
2680+ basic_machine=$basic_machine-unknown
2681+ os=-linux-gnu
2682+ ;;
2683+ tx39)
2684+ basic_machine=mipstx39-unknown
2685+ ;;
2686+ tx39el)
2687+ basic_machine=mipstx39el-unknown
2688+ ;;
2689+ toad1)
2690+ basic_machine=pdp10-xkl
2691+ os=-tops20
2692+ ;;
2693+ tower | tower-32)
2694+ basic_machine=m68k-ncr
2695+ ;;
2696+ tpf)
2697+ basic_machine=s390x-ibm
2698+ os=-tpf
2699+ ;;
2700+ udi29k)
2701+ basic_machine=a29k-amd
2702+ os=-udi
2703+ ;;
2704+ ultra3)
2705+ basic_machine=a29k-nyu
2706+ os=-sym1
2707+ ;;
2708+ v810 | necv810)
2709+ basic_machine=v810-nec
2710+ os=-none
2711+ ;;
2712+ vaxv)
2713+ basic_machine=vax-dec
2714+ os=-sysv
2715+ ;;
2716+ vms)
2717+ basic_machine=vax-dec
2718+ os=-vms
2719+ ;;
2720+ vpp*|vx|vx-*)
2721+ basic_machine=f301-fujitsu
2722+ ;;
2723+ vxworks960)
2724+ basic_machine=i960-wrs
2725+ os=-vxworks
2726+ ;;
2727+ vxworks68)
2728+ basic_machine=m68k-wrs
2729+ os=-vxworks
2730+ ;;
2731+ vxworks29k)
2732+ basic_machine=a29k-wrs
2733+ os=-vxworks
2734+ ;;
2735+ w65*)
2736+ basic_machine=w65-wdc
2737+ os=-none
2738+ ;;
2739+ w89k-*)
2740+ basic_machine=hppa1.1-winbond
2741+ os=-proelf
2742+ ;;
2743+ xbox)
2744+ basic_machine=i686-pc
2745+ os=-mingw32
2746+ ;;
2747+ xps | xps100)
2748+ basic_machine=xps100-honeywell
2749+ ;;
2750+ xscale-* | xscalee[bl]-*)
2751+ basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
2752+ ;;
2753+ ymp)
2754+ basic_machine=ymp-cray
2755+ os=-unicos
2756+ ;;
2757+ z8k-*-coff)
2758+ basic_machine=z8k-unknown
2759+ os=-sim
2760+ ;;
2761+ z80-*-coff)
2762+ basic_machine=z80-unknown
2763+ os=-sim
2764+ ;;
2765+ none)
2766+ basic_machine=none-none
2767+ os=-none
2768+ ;;
2769+
2770+# Here we handle the default manufacturer of certain CPU types. It is in
2771+# some cases the only manufacturer, in others, it is the most popular.
2772+ w89k)
2773+ basic_machine=hppa1.1-winbond
2774+ ;;
2775+ op50n)
2776+ basic_machine=hppa1.1-oki
2777+ ;;
2778+ op60c)
2779+ basic_machine=hppa1.1-oki
2780+ ;;
2781+ romp)
2782+ basic_machine=romp-ibm
2783+ ;;
2784+ mmix)
2785+ basic_machine=mmix-knuth
2786+ ;;
2787+ rs6000)
2788+ basic_machine=rs6000-ibm
2789+ ;;
2790+ vax)
2791+ basic_machine=vax-dec
2792+ ;;
2793+ pdp10)
2794+ # there are many clones, so DEC is not a safe bet
2795+ basic_machine=pdp10-unknown
2796+ ;;
2797+ pdp11)
2798+ basic_machine=pdp11-dec
2799+ ;;
2800+ we32k)
2801+ basic_machine=we32k-att
2802+ ;;
2803+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
2804+ basic_machine=sh-unknown
2805+ ;;
2806+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
2807+ basic_machine=sparc-sun
2808+ ;;
2809+ cydra)
2810+ basic_machine=cydra-cydrome
2811+ ;;
2812+ orion)
2813+ basic_machine=orion-highlevel
2814+ ;;
2815+ orion105)
2816+ basic_machine=clipper-highlevel
2817+ ;;
2818+ mac | mpw | mac-mpw)
2819+ basic_machine=m68k-apple
2820+ ;;
2821+ pmac | pmac-mpw)
2822+ basic_machine=powerpc-apple
2823+ ;;
2824+ *-unknown)
2825+ # Make sure to match an already-canonicalized machine name.
2826+ ;;
2827+ *)
2828+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
2829+ exit 1
2830+ ;;
2831+esac
2832+
2833+# Here we canonicalize certain aliases for manufacturers.
2834+case $basic_machine in
2835+ *-digital*)
2836+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
2837+ ;;
2838+ *-commodore*)
2839+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
2840+ ;;
2841+ *)
2842+ ;;
2843+esac
2844+
2845+# Decode manufacturer-specific aliases for certain operating systems.
2846+
2847+if [ x"$os" != x"" ]
2848+then
2849+case $os in
2850+ # First match some system type aliases
2851+ # that might get confused with valid system types.
2852+ # -solaris* is a basic system type, with this one exception.
2853+ -auroraux)
2854+ os=-auroraux
2855+ ;;
2856+ -solaris1 | -solaris1.*)
2857+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
2858+ ;;
2859+ -solaris)
2860+ os=-solaris2
2861+ ;;
2862+ -svr4*)
2863+ os=-sysv4
2864+ ;;
2865+ -unixware*)
2866+ os=-sysv4.2uw
2867+ ;;
2868+ -gnu/linux*)
2869+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
2870+ ;;
2871+ # First accept the basic system types.
2872+ # The portable systems comes first.
2873+ # Each alternative MUST END IN A *, to match a version number.
2874+ # -sysv* is not here because it comes later, after sysvr4.
2875+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
2876+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
2877+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
2878+ | -sym* | -kopensolaris* \
2879+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
2880+ | -aos* | -aros* \
2881+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
2882+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
2883+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
2884+ | -openbsd* | -solidbsd* \
2885+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
2886+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
2887+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
2888+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
2889+ | -chorusos* | -chorusrdb* | -cegcc* \
2890+ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
2891+ | -mingw32* | -linux-gnu* | -linux-android* \
2892+ | -linux-newlib* | -linux-uclibc* \
2893+ | -uxpv* | -beos* | -mpeix* | -udk* \
2894+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
2895+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
2896+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
2897+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
2898+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
2899+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
2900+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
2901+ # Remember, each alternative MUST END IN *, to match a version number.
2902+ ;;
2903+ -qnx*)
2904+ case $basic_machine in
2905+ x86-* | i*86-*)
2906+ ;;
2907+ *)
2908+ os=-nto$os
2909+ ;;
2910+ esac
2911+ ;;
2912+ -nto-qnx*)
2913+ ;;
2914+ -nto*)
2915+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
2916+ ;;
2917+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
2918+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
2919+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
2920+ ;;
2921+ -mac*)
2922+ os=`echo $os | sed -e 's|mac|macos|'`
2923+ ;;
2924+ -linux-dietlibc)
2925+ os=-linux-dietlibc
2926+ ;;
2927+ -linux*)
2928+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
2929+ ;;
2930+ -sunos5*)
2931+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
2932+ ;;
2933+ -sunos6*)
2934+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
2935+ ;;
2936+ -opened*)
2937+ os=-openedition
2938+ ;;
2939+ -os400*)
2940+ os=-os400
2941+ ;;
2942+ -wince*)
2943+ os=-wince
2944+ ;;
2945+ -osfrose*)
2946+ os=-osfrose
2947+ ;;
2948+ -osf*)
2949+ os=-osf
2950+ ;;
2951+ -utek*)
2952+ os=-bsd
2953+ ;;
2954+ -dynix*)
2955+ os=-bsd
2956+ ;;
2957+ -acis*)
2958+ os=-aos
2959+ ;;
2960+ -atheos*)
2961+ os=-atheos
2962+ ;;
2963+ -syllable*)
2964+ os=-syllable
2965+ ;;
2966+ -386bsd)
2967+ os=-bsd
2968+ ;;
2969+ -ctix* | -uts*)
2970+ os=-sysv
2971+ ;;
2972+ -nova*)
2973+ os=-rtmk-nova
2974+ ;;
2975+ -ns2 )
2976+ os=-nextstep2
2977+ ;;
2978+ -nsk*)
2979+ os=-nsk
2980+ ;;
2981+ # Preserve the version number of sinix5.
2982+ -sinix5.*)
2983+ os=`echo $os | sed -e 's|sinix|sysv|'`
2984+ ;;
2985+ -sinix*)
2986+ os=-sysv4
2987+ ;;
2988+ -tpf*)
2989+ os=-tpf
2990+ ;;
2991+ -triton*)
2992+ os=-sysv3
2993+ ;;
2994+ -oss*)
2995+ os=-sysv3
2996+ ;;
2997+ -svr4)
2998+ os=-sysv4
2999+ ;;
3000+ -svr3)
3001+ os=-sysv3
3002+ ;;
3003+ -sysvr4)
3004+ os=-sysv4
3005+ ;;
3006+ # This must come after -sysvr4.
3007+ -sysv*)
3008+ ;;
3009+ -ose*)
3010+ os=-ose
3011+ ;;
3012+ -es1800*)
3013+ os=-ose
3014+ ;;
3015+ -xenix)
3016+ os=-xenix
3017+ ;;
3018+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
3019+ os=-mint
3020+ ;;
3021+ -aros*)
3022+ os=-aros
3023+ ;;
3024+ -kaos*)
3025+ os=-kaos
3026+ ;;
3027+ -zvmoe)
3028+ os=-zvmoe
3029+ ;;
3030+ -dicos*)
3031+ os=-dicos
3032+ ;;
3033+ -nacl*)
3034+ ;;
3035+ -none)
3036+ ;;
3037+ *)
3038+ # Get rid of the `-' at the beginning of $os.
3039+ os=`echo $os | sed 's/[^-]*-//'`
3040+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
3041+ exit 1
3042+ ;;
3043+esac
3044+else
3045+
3046+# Here we handle the default operating systems that come with various machines.
3047+# The value should be what the vendor currently ships out the door with their
3048+# machine or put another way, the most popular os provided with the machine.
3049+
3050+# Note that if you're going to try to match "-MANUFACTURER" here (say,
3051+# "-sun"), then you have to tell the case statement up towards the top
3052+# that MANUFACTURER isn't an operating system. Otherwise, code above
3053+# will signal an error saying that MANUFACTURER isn't an operating
3054+# system, and we'll never get to this point.
3055+
3056+case $basic_machine in
3057+ score-*)
3058+ os=-elf
3059+ ;;
3060+ spu-*)
3061+ os=-elf
3062+ ;;
3063+ *-acorn)
3064+ os=-riscix1.2
3065+ ;;
3066+ arm*-rebel)
3067+ os=-linux
3068+ ;;
3069+ arm*-semi)
3070+ os=-aout
3071+ ;;
3072+ c4x-* | tic4x-*)
3073+ os=-coff
3074+ ;;
3075+ tic54x-*)
3076+ os=-coff
3077+ ;;
3078+ tic55x-*)
3079+ os=-coff
3080+ ;;
3081+ tic6x-*)
3082+ os=-coff
3083+ ;;
3084+ # This must come before the *-dec entry.
3085+ pdp10-*)
3086+ os=-tops20
3087+ ;;
3088+ pdp11-*)
3089+ os=-none
3090+ ;;
3091+ *-dec | vax-*)
3092+ os=-ultrix4.2
3093+ ;;
3094+ m68*-apollo)
3095+ os=-domain
3096+ ;;
3097+ i386-sun)
3098+ os=-sunos4.0.2
3099+ ;;
3100+ m68000-sun)
3101+ os=-sunos3
3102+ ;;
3103+ m68*-cisco)
3104+ os=-aout
3105+ ;;
3106+ mep-*)
3107+ os=-elf
3108+ ;;
3109+ mips*-cisco)
3110+ os=-elf
3111+ ;;
3112+ mips*-*)
3113+ os=-elf
3114+ ;;
3115+ or32-*)
3116+ os=-coff
3117+ ;;
3118+ *-tti) # must be before sparc entry or we get the wrong os.
3119+ os=-sysv3
3120+ ;;
3121+ sparc-* | *-sun)
3122+ os=-sunos4.1.1
3123+ ;;
3124+ *-be)
3125+ os=-beos
3126+ ;;
3127+ *-haiku)
3128+ os=-haiku
3129+ ;;
3130+ *-ibm)
3131+ os=-aix
3132+ ;;
3133+ *-knuth)
3134+ os=-mmixware
3135+ ;;
3136+ *-wec)
3137+ os=-proelf
3138+ ;;
3139+ *-winbond)
3140+ os=-proelf
3141+ ;;
3142+ *-oki)
3143+ os=-proelf
3144+ ;;
3145+ *-hp)
3146+ os=-hpux
3147+ ;;
3148+ *-hitachi)
3149+ os=-hiux
3150+ ;;
3151+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
3152+ os=-sysv
3153+ ;;
3154+ *-cbm)
3155+ os=-amigaos
3156+ ;;
3157+ *-dg)
3158+ os=-dgux
3159+ ;;
3160+ *-dolphin)
3161+ os=-sysv3
3162+ ;;
3163+ m68k-ccur)
3164+ os=-rtu
3165+ ;;
3166+ m88k-omron*)
3167+ os=-luna
3168+ ;;
3169+ *-next )
3170+ os=-nextstep
3171+ ;;
3172+ *-sequent)
3173+ os=-ptx
3174+ ;;
3175+ *-crds)
3176+ os=-unos
3177+ ;;
3178+ *-ns)
3179+ os=-genix
3180+ ;;
3181+ i370-*)
3182+ os=-mvs
3183+ ;;
3184+ *-next)
3185+ os=-nextstep3
3186+ ;;
3187+ *-gould)
3188+ os=-sysv
3189+ ;;
3190+ *-highlevel)
3191+ os=-bsd
3192+ ;;
3193+ *-encore)
3194+ os=-bsd
3195+ ;;
3196+ *-sgi)
3197+ os=-irix
3198+ ;;
3199+ *-siemens)
3200+ os=-sysv4
3201+ ;;
3202+ *-masscomp)
3203+ os=-rtu
3204+ ;;
3205+ f30[01]-fujitsu | f700-fujitsu)
3206+ os=-uxpv
3207+ ;;
3208+ *-rom68k)
3209+ os=-coff
3210+ ;;
3211+ *-*bug)
3212+ os=-coff
3213+ ;;
3214+ *-apple)
3215+ os=-macos
3216+ ;;
3217+ *-atari*)
3218+ os=-mint
3219+ ;;
3220+ *)
3221+ os=-none
3222+ ;;
3223+esac
3224+fi
3225+
3226+# Here we handle the case where we know the os, and the CPU type, but not the
3227+# manufacturer. We pick the logical manufacturer.
3228+vendor=unknown
3229+case $basic_machine in
3230+ *-unknown)
3231+ case $os in
3232+ -riscix*)
3233+ vendor=acorn
3234+ ;;
3235+ -sunos*)
3236+ vendor=sun
3237+ ;;
3238+ -cnk*|-aix*)
3239+ vendor=ibm
3240+ ;;
3241+ -beos*)
3242+ vendor=be
3243+ ;;
3244+ -hpux*)
3245+ vendor=hp
3246+ ;;
3247+ -mpeix*)
3248+ vendor=hp
3249+ ;;
3250+ -hiux*)
3251+ vendor=hitachi
3252+ ;;
3253+ -unos*)
3254+ vendor=crds
3255+ ;;
3256+ -dgux*)
3257+ vendor=dg
3258+ ;;
3259+ -luna*)
3260+ vendor=omron
3261+ ;;
3262+ -genix*)
3263+ vendor=ns
3264+ ;;
3265+ -mvs* | -opened*)
3266+ vendor=ibm
3267+ ;;
3268+ -os400*)
3269+ vendor=ibm
3270+ ;;
3271+ -ptx*)
3272+ vendor=sequent
3273+ ;;
3274+ -tpf*)
3275+ vendor=ibm
3276+ ;;
3277+ -vxsim* | -vxworks* | -windiss*)
3278+ vendor=wrs
3279+ ;;
3280+ -aux*)
3281+ vendor=apple
3282+ ;;
3283+ -hms*)
3284+ vendor=hitachi
3285+ ;;
3286+ -mpw* | -macos*)
3287+ vendor=apple
3288+ ;;
3289+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
3290+ vendor=atari
3291+ ;;
3292+ -vos*)
3293+ vendor=stratus
3294+ ;;
3295+ esac
3296+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
3297+ ;;
3298+esac
3299+
3300+echo $basic_machine$os
3301+exit
3302+
3303+# Local variables:
3304+# eval: (add-hook 'write-file-hooks 'time-stamp)
3305+# time-stamp-start: "timestamp='"
3306+# time-stamp-format: "%:y-%02m-%02d"
3307+# time-stamp-end: "'"
3308+# End:
3309
3310=== modified file 'build-aux/config.guess'
3311--- build-aux/config.guess 2012-05-23 08:44:25 +0000
3312+++ build-aux/config.guess 2013-10-02 19:20:36 +0000
3313@@ -1,14 +1,12 @@
3314 #! /bin/sh
3315 # Attempt to guess a canonical system name.
3316-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3317-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
3318-# 2011, 2012 Free Software Foundation, Inc.
3319+# Copyright 1992-2013 Free Software Foundation, Inc.
3320
3321-timestamp='2012-01-01'
3322+timestamp='2013-06-10'
3323
3324 # This file is free software; you can redistribute it and/or modify it
3325 # under the terms of the GNU General Public License as published by
3326-# the Free Software Foundation; either version 2 of the License, or
3327+# the Free Software Foundation; either version 3 of the License, or
3328 # (at your option) any later version.
3329 #
3330 # This program is distributed in the hope that it will be useful, but
3331@@ -17,26 +15,22 @@
3332 # General Public License for more details.
3333 #
3334 # You should have received a copy of the GNU General Public License
3335-# along with this program; if not, write to the Free Software
3336-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
3337-# 02110-1301, USA.
3338+# along with this program; if not, see <http://www.gnu.org/licenses/>.
3339 #
3340 # As a special exception to the GNU General Public License, if you
3341 # distribute this file as part of a program that contains a
3342 # configuration script generated by Autoconf, you may include it under
3343-# the same distribution terms that you use for the rest of that program.
3344-
3345-
3346-# Originally written by Per Bothner. Please send patches (context
3347-# diff format) to <config-patches@gnu.org> and include a ChangeLog
3348-# entry.
3349+# the same distribution terms that you use for the rest of that
3350+# program. This Exception is an additional permission under section 7
3351+# of the GNU General Public License, version 3 ("GPLv3").
3352 #
3353-# This script attempts to guess a canonical system name similar to
3354-# config.sub. If it succeeds, it prints the system name on stdout, and
3355-# exits with 0. Otherwise, it exits with 1.
3356+# Originally written by Per Bothner.
3357 #
3358 # You can get the latest version of this script from:
3359 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
3360+#
3361+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
3362+
3363
3364 me=`echo "$0" | sed -e 's,.*/,,'`
3365
3366@@ -56,9 +50,7 @@
3367 GNU config.guess ($timestamp)
3368
3369 Originally written by Per Bothner.
3370-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
3371-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3372-Free Software Foundation, Inc.
3373+Copyright 1992-2013 Free Software Foundation, Inc.
3374
3375 This is free software; see the source for copying conditions. There is NO
3376 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
3377@@ -140,6 +132,27 @@
3378 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
3379 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
3380
3381+case "${UNAME_SYSTEM}" in
3382+Linux|GNU|GNU/*)
3383+ # If the system lacks a compiler, then just pick glibc.
3384+ # We could probably try harder.
3385+ LIBC=gnu
3386+
3387+ eval $set_cc_for_build
3388+ cat <<-EOF > $dummy.c
3389+ #include <features.h>
3390+ #if defined(__UCLIBC__)
3391+ LIBC=uclibc
3392+ #elif defined(__dietlibc__)
3393+ LIBC=dietlibc
3394+ #else
3395+ LIBC=gnu
3396+ #endif
3397+ EOF
3398+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
3399+ ;;
3400+esac
3401+
3402 # Note: order is significant - the case branches are not exclusive.
3403
3404 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
3405@@ -202,6 +215,10 @@
3406 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
3407 echo "${machine}-${os}${release}"
3408 exit ;;
3409+ *:Bitrig:*:*)
3410+ UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
3411+ echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
3412+ exit ;;
3413 *:OpenBSD:*:*)
3414 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
3415 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
3416@@ -304,7 +321,7 @@
3417 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
3418 echo arm-acorn-riscix${UNAME_RELEASE}
3419 exit ;;
3420- arm:riscos:*:*|arm:RISCOS:*:*)
3421+ arm*:riscos:*:*|arm*:RISCOS:*:*)
3422 echo arm-unknown-riscos
3423 exit ;;
3424 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
3425@@ -803,6 +820,9 @@
3426 i*:CYGWIN*:*)
3427 echo ${UNAME_MACHINE}-pc-cygwin
3428 exit ;;
3429+ *:MINGW64*:*)
3430+ echo ${UNAME_MACHINE}-pc-mingw64
3431+ exit ;;
3432 *:MINGW*:*)
3433 echo ${UNAME_MACHINE}-pc-mingw32
3434 exit ;;
3435@@ -854,15 +874,22 @@
3436 exit ;;
3437 *:GNU:*:*)
3438 # the GNU system
3439- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
3440+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
3441 exit ;;
3442 *:GNU/*:*:*)
3443 # other systems with GNU libc and userland
3444- echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
3445+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
3446 exit ;;
3447 i*86:Minix:*:*)
3448 echo ${UNAME_MACHINE}-pc-minix
3449 exit ;;
3450+ aarch64:Linux:*:*)
3451+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3452+ exit ;;
3453+ aarch64_be:Linux:*:*)
3454+ UNAME_MACHINE=aarch64_be
3455+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3456+ exit ;;
3457 alpha:Linux:*:*)
3458 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
3459 EV5) UNAME_MACHINE=alphaev5 ;;
3460@@ -874,59 +901,54 @@
3461 EV68*) UNAME_MACHINE=alphaev68 ;;
3462 esac
3463 objdump --private-headers /bin/sh | grep -q ld.so.1
3464- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
3465- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
3466+ if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
3467+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3468+ exit ;;
3469+ arc:Linux:*:* | arceb:Linux:*:*)
3470+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3471 exit ;;
3472 arm*:Linux:*:*)
3473 eval $set_cc_for_build
3474 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
3475 | grep -q __ARM_EABI__
3476 then
3477- echo ${UNAME_MACHINE}-unknown-linux-gnu
3478+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3479 else
3480 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
3481 | grep -q __ARM_PCS_VFP
3482 then
3483- echo ${UNAME_MACHINE}-unknown-linux-gnueabi
3484+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
3485 else
3486- echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
3487+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
3488 fi
3489 fi
3490 exit ;;
3491 avr32*:Linux:*:*)
3492- echo ${UNAME_MACHINE}-unknown-linux-gnu
3493+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3494 exit ;;
3495 cris:Linux:*:*)
3496- echo ${UNAME_MACHINE}-axis-linux-gnu
3497+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
3498 exit ;;
3499 crisv32:Linux:*:*)
3500- echo ${UNAME_MACHINE}-axis-linux-gnu
3501+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
3502 exit ;;
3503 frv:Linux:*:*)
3504- echo ${UNAME_MACHINE}-unknown-linux-gnu
3505+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3506 exit ;;
3507 hexagon:Linux:*:*)
3508- echo ${UNAME_MACHINE}-unknown-linux-gnu
3509+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3510 exit ;;
3511 i*86:Linux:*:*)
3512- LIBC=gnu
3513- eval $set_cc_for_build
3514- sed 's/^ //' << EOF >$dummy.c
3515- #ifdef __dietlibc__
3516- LIBC=dietlibc
3517- #endif
3518-EOF
3519- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
3520- echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
3521+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
3522 exit ;;
3523 ia64:Linux:*:*)
3524- echo ${UNAME_MACHINE}-unknown-linux-gnu
3525+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3526 exit ;;
3527 m32r*:Linux:*:*)
3528- echo ${UNAME_MACHINE}-unknown-linux-gnu
3529+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3530 exit ;;
3531 m68*:Linux:*:*)
3532- echo ${UNAME_MACHINE}-unknown-linux-gnu
3533+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3534 exit ;;
3535 mips:Linux:*:* | mips64:Linux:*:*)
3536 eval $set_cc_for_build
3537@@ -945,54 +967,63 @@
3538 #endif
3539 EOF
3540 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
3541- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
3542+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
3543 ;;
3544+ or1k:Linux:*:*)
3545+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3546+ exit ;;
3547 or32:Linux:*:*)
3548- echo ${UNAME_MACHINE}-unknown-linux-gnu
3549+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3550 exit ;;
3551 padre:Linux:*:*)
3552- echo sparc-unknown-linux-gnu
3553+ echo sparc-unknown-linux-${LIBC}
3554 exit ;;
3555 parisc64:Linux:*:* | hppa64:Linux:*:*)
3556- echo hppa64-unknown-linux-gnu
3557+ echo hppa64-unknown-linux-${LIBC}
3558 exit ;;
3559 parisc:Linux:*:* | hppa:Linux:*:*)
3560 # Look for CPU level
3561 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
3562- PA7*) echo hppa1.1-unknown-linux-gnu ;;
3563- PA8*) echo hppa2.0-unknown-linux-gnu ;;
3564- *) echo hppa-unknown-linux-gnu ;;
3565+ PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
3566+ PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
3567+ *) echo hppa-unknown-linux-${LIBC} ;;
3568 esac
3569 exit ;;
3570 ppc64:Linux:*:*)
3571- echo powerpc64-unknown-linux-gnu
3572+ echo powerpc64-unknown-linux-${LIBC}
3573 exit ;;
3574 ppc:Linux:*:*)
3575- echo powerpc-unknown-linux-gnu
3576+ echo powerpc-unknown-linux-${LIBC}
3577+ exit ;;
3578+ ppc64le:Linux:*:*)
3579+ echo powerpc64le-unknown-linux-${LIBC}
3580+ exit ;;
3581+ ppcle:Linux:*:*)
3582+ echo powerpcle-unknown-linux-${LIBC}
3583 exit ;;
3584 s390:Linux:*:* | s390x:Linux:*:*)
3585- echo ${UNAME_MACHINE}-ibm-linux
3586+ echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
3587 exit ;;
3588 sh64*:Linux:*:*)
3589- echo ${UNAME_MACHINE}-unknown-linux-gnu
3590+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3591 exit ;;
3592 sh*:Linux:*:*)
3593- echo ${UNAME_MACHINE}-unknown-linux-gnu
3594+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3595 exit ;;
3596 sparc:Linux:*:* | sparc64:Linux:*:*)
3597- echo ${UNAME_MACHINE}-unknown-linux-gnu
3598+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3599 exit ;;
3600 tile*:Linux:*:*)
3601- echo ${UNAME_MACHINE}-unknown-linux-gnu
3602+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3603 exit ;;
3604 vax:Linux:*:*)
3605- echo ${UNAME_MACHINE}-dec-linux-gnu
3606+ echo ${UNAME_MACHINE}-dec-linux-${LIBC}
3607 exit ;;
3608 x86_64:Linux:*:*)
3609- echo ${UNAME_MACHINE}-unknown-linux-gnu
3610+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3611 exit ;;
3612 xtensa*:Linux:*:*)
3613- echo ${UNAME_MACHINE}-unknown-linux-gnu
3614+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3615 exit ;;
3616 i*86:DYNIX/ptx:4*:*)
3617 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
3618@@ -1196,6 +1227,9 @@
3619 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
3620 echo i586-pc-haiku
3621 exit ;;
3622+ x86_64:Haiku:*:*)
3623+ echo x86_64-unknown-haiku
3624+ exit ;;
3625 SX-4:SUPER-UX:*:*)
3626 echo sx4-nec-superux${UNAME_RELEASE}
3627 exit ;;
3628@@ -1222,19 +1256,21 @@
3629 exit ;;
3630 *:Darwin:*:*)
3631 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
3632- case $UNAME_PROCESSOR in
3633- i386)
3634- eval $set_cc_for_build
3635- if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
3636- if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
3637- (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
3638- grep IS_64BIT_ARCH >/dev/null
3639- then
3640- UNAME_PROCESSOR="x86_64"
3641- fi
3642- fi ;;
3643- unknown) UNAME_PROCESSOR=powerpc ;;
3644- esac
3645+ eval $set_cc_for_build
3646+ if test "$UNAME_PROCESSOR" = unknown ; then
3647+ UNAME_PROCESSOR=powerpc
3648+ fi
3649+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
3650+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
3651+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
3652+ grep IS_64BIT_ARCH >/dev/null
3653+ then
3654+ case $UNAME_PROCESSOR in
3655+ i386) UNAME_PROCESSOR=x86_64 ;;
3656+ powerpc) UNAME_PROCESSOR=powerpc64 ;;
3657+ esac
3658+ fi
3659+ fi
3660 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
3661 exit ;;
3662 *:procnto*:*:* | *:QNX:[0123456789]*:*)
3663@@ -1251,7 +1287,7 @@
3664 NEO-?:NONSTOP_KERNEL:*:*)
3665 echo neo-tandem-nsk${UNAME_RELEASE}
3666 exit ;;
3667- NSE-?:NONSTOP_KERNEL:*:*)
3668+ NSE-*:NONSTOP_KERNEL:*:*)
3669 echo nse-tandem-nsk${UNAME_RELEASE}
3670 exit ;;
3671 NSR-?:NONSTOP_KERNEL:*:*)
3672@@ -1320,11 +1356,11 @@
3673 i*86:AROS:*:*)
3674 echo ${UNAME_MACHINE}-pc-aros
3675 exit ;;
3676+ x86_64:VMkernel:*:*)
3677+ echo ${UNAME_MACHINE}-unknown-esx
3678+ exit ;;
3679 esac
3680
3681-#echo '(No uname command or uname output not recognized.)' 1>&2
3682-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
3683-
3684 eval $set_cc_for_build
3685 cat >$dummy.c <<EOF
3686 #ifdef _SEQUENT_
3687
3688=== modified file 'build-aux/config.sub'
3689--- build-aux/config.sub 2012-05-23 08:44:25 +0000
3690+++ build-aux/config.sub 2013-10-02 19:20:36 +0000
3691@@ -1,38 +1,31 @@
3692 #! /bin/sh
3693 # Configuration validation subroutine script.
3694-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3695-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
3696-# 2011, 2012 Free Software Foundation, Inc.
3697-
3698-timestamp='2012-01-01'
3699-
3700-# This file is (in principle) common to ALL GNU software.
3701-# The presence of a machine in this file suggests that SOME GNU software
3702-# can handle that machine. It does not imply ALL GNU software can.
3703-#
3704-# This file is free software; you can redistribute it and/or modify
3705-# it under the terms of the GNU General Public License as published by
3706-# the Free Software Foundation; either version 2 of the License, or
3707+# Copyright 1992-2013 Free Software Foundation, Inc.
3708+
3709+timestamp='2013-08-10'
3710+
3711+# This file is free software; you can redistribute it and/or modify it
3712+# under the terms of the GNU General Public License as published by
3713+# the Free Software Foundation; either version 3 of the License, or
3714 # (at your option) any later version.
3715 #
3716-# This program is distributed in the hope that it will be useful,
3717-# but WITHOUT ANY WARRANTY; without even the implied warranty of
3718-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3719-# GNU General Public License for more details.
3720+# This program is distributed in the hope that it will be useful, but
3721+# WITHOUT ANY WARRANTY; without even the implied warranty of
3722+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3723+# General Public License for more details.
3724 #
3725 # You should have received a copy of the GNU General Public License
3726-# along with this program; if not, write to the Free Software
3727-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
3728-# 02110-1301, USA.
3729+# along with this program; if not, see <http://www.gnu.org/licenses/>.
3730 #
3731 # As a special exception to the GNU General Public License, if you
3732 # distribute this file as part of a program that contains a
3733 # configuration script generated by Autoconf, you may include it under
3734-# the same distribution terms that you use for the rest of that program.
3735-
3736-
3737-# Please send patches to <config-patches@gnu.org>. Submit a context
3738-# diff and a properly formatted GNU ChangeLog entry.
3739+# the same distribution terms that you use for the rest of that
3740+# program. This Exception is an additional permission under section 7
3741+# of the GNU General Public License, version 3 ("GPLv3").
3742+
3743+
3744+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
3745 #
3746 # Configuration subroutine to validate and canonicalize a configuration type.
3747 # Supply the specified configuration type as an argument.
3748@@ -75,9 +68,7 @@
3749 version="\
3750 GNU config.sub ($timestamp)
3751
3752-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
3753-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3754-Free Software Foundation, Inc.
3755+Copyright 1992-2013 Free Software Foundation, Inc.
3756
3757 This is free software; see the source for copying conditions. There is NO
3758 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
3759@@ -125,13 +116,17 @@
3760 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
3761 case $maybe_os in
3762 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
3763- linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
3764+ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
3765 knetbsd*-gnu* | netbsd*-gnu* | \
3766 kopensolaris*-gnu* | \
3767 storm-chaos* | os2-emx* | rtmk-nova*)
3768 os=-$maybe_os
3769 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
3770 ;;
3771+ android-linux)
3772+ os=-linux-android
3773+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
3774+ ;;
3775 *)
3776 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
3777 if [ $basic_machine != $1 ]
3778@@ -154,7 +149,7 @@
3779 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
3780 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
3781 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
3782- -apple | -axis | -knuth | -cray | -microblaze)
3783+ -apple | -axis | -knuth | -cray | -microblaze*)
3784 os=
3785 basic_machine=$1
3786 ;;
3787@@ -223,6 +218,12 @@
3788 -isc*)
3789 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3790 ;;
3791+ -lynx*178)
3792+ os=-lynxos178
3793+ ;;
3794+ -lynx*5)
3795+ os=-lynxos5
3796+ ;;
3797 -lynx*)
3798 os=-lynxos
3799 ;;
3800@@ -247,13 +248,16 @@
3801 # Some are omitted here because they have special meanings below.
3802 1750a | 580 \
3803 | a29k \
3804+ | aarch64 | aarch64_be \
3805 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
3806 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
3807 | am33_2.0 \
3808- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
3809- | be32 | be64 \
3810+ | arc | arceb \
3811+ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
3812+ | avr | avr32 \
3813+ | be32 | be64 \
3814 | bfin \
3815- | c4x | clipper \
3816+ | c4x | c8051 | clipper \
3817 | d10v | d30v | dlx | dsp16xx \
3818 | epiphany \
3819 | fido | fr30 | frv \
3820@@ -264,7 +268,7 @@
3821 | le32 | le64 \
3822 | lm32 \
3823 | m32c | m32r | m32rle | m68000 | m68k | m88k \
3824- | maxq | mb | microblaze | mcore | mep | metag \
3825+ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
3826 | mips | mipsbe | mipseb | mipsel | mipsle \
3827 | mips16 \
3828 | mips64 | mips64el \
3829@@ -282,16 +286,17 @@
3830 | mipsisa64r2 | mipsisa64r2el \
3831 | mipsisa64sb1 | mipsisa64sb1el \
3832 | mipsisa64sr71k | mipsisa64sr71kel \
3833+ | mipsr5900 | mipsr5900el \
3834 | mipstx39 | mipstx39el \
3835 | mn10200 | mn10300 \
3836 | moxie \
3837 | mt \
3838 | msp430 \
3839 | nds32 | nds32le | nds32be \
3840- | nios | nios2 \
3841+ | nios | nios2 | nios2eb | nios2el \
3842 | ns16k | ns32k \
3843 | open8 \
3844- | or32 \
3845+ | or1k | or32 \
3846 | pdp10 | pdp11 | pj | pjl \
3847 | powerpc | powerpc64 | powerpc64le | powerpcle \
3848 | pyramid \
3849@@ -319,7 +324,7 @@
3850 c6x)
3851 basic_machine=tic6x-unknown
3852 ;;
3853- m6811 | m68hc11 | m6812 | m68hc12 | picochip)
3854+ m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
3855 basic_machine=$basic_machine-unknown
3856 os=-none
3857 ;;
3858@@ -332,7 +337,10 @@
3859 strongarm | thumb | xscale)
3860 basic_machine=arm-unknown
3861 ;;
3862-
3863+ xgate)
3864+ basic_machine=$basic_machine-unknown
3865+ os=-none
3866+ ;;
3867 xscaleeb)
3868 basic_machine=armeb-unknown
3869 ;;
3870@@ -355,15 +363,16 @@
3871 # Recognize the basic CPU types with company name.
3872 580-* \
3873 | a29k-* \
3874+ | aarch64-* | aarch64_be-* \
3875 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
3876 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
3877- | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
3878+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
3879 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
3880 | avr-* | avr32-* \
3881 | be32-* | be64-* \
3882 | bfin-* | bs2000-* \
3883 | c[123]* | c30-* | [cjt]90-* | c4x-* \
3884- | clipper-* | craynv-* | cydra-* \
3885+ | c8051-* | clipper-* | craynv-* | cydra-* \
3886 | d10v-* | d30v-* | dlx-* \
3887 | elxsi-* \
3888 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
3889@@ -376,7 +385,8 @@
3890 | lm32-* \
3891 | m32c-* | m32r-* | m32rle-* \
3892 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
3893- | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
3894+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
3895+ | microblaze-* | microblazeel-* \
3896 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
3897 | mips16-* \
3898 | mips64-* | mips64el-* \
3899@@ -394,12 +404,13 @@
3900 | mipsisa64r2-* | mipsisa64r2el-* \
3901 | mipsisa64sb1-* | mipsisa64sb1el-* \
3902 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
3903+ | mipsr5900-* | mipsr5900el-* \
3904 | mipstx39-* | mipstx39el-* \
3905 | mmix-* \
3906 | mt-* \
3907 | msp430-* \
3908 | nds32-* | nds32le-* | nds32be-* \
3909- | nios-* | nios2-* \
3910+ | nios-* | nios2-* | nios2eb-* | nios2el-* \
3911 | none-* | np1-* | ns16k-* | ns32k-* \
3912 | open8-* \
3913 | orion-* \
3914@@ -775,11 +786,15 @@
3915 basic_machine=ns32k-utek
3916 os=-sysv
3917 ;;
3918- microblaze)
3919+ microblaze*)
3920 basic_machine=microblaze-xilinx
3921 ;;
3922+ mingw64)
3923+ basic_machine=x86_64-pc
3924+ os=-mingw64
3925+ ;;
3926 mingw32)
3927- basic_machine=i386-pc
3928+ basic_machine=i686-pc
3929 os=-mingw32
3930 ;;
3931 mingw32ce)
3932@@ -815,7 +830,7 @@
3933 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
3934 ;;
3935 msys)
3936- basic_machine=i386-pc
3937+ basic_machine=i686-pc
3938 os=-msys
3939 ;;
3940 mvs)
3941@@ -1006,7 +1021,11 @@
3942 basic_machine=i586-unknown
3943 os=-pw32
3944 ;;
3945- rdos)
3946+ rdos | rdos64)
3947+ basic_machine=x86_64-pc
3948+ os=-rdos
3949+ ;;
3950+ rdos32)
3951 basic_machine=i386-pc
3952 os=-rdos
3953 ;;
3954@@ -1333,21 +1352,21 @@
3955 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
3956 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
3957 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
3958- | -sym* | -kopensolaris* \
3959+ | -sym* | -kopensolaris* | -plan9* \
3960 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
3961 | -aos* | -aros* \
3962 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
3963 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
3964 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
3965- | -openbsd* | -solidbsd* \
3966+ | -bitrig* | -openbsd* | -solidbsd* \
3967 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
3968 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
3969 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
3970 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
3971 | -chorusos* | -chorusrdb* | -cegcc* \
3972 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
3973- | -mingw32* | -linux-gnu* | -linux-android* \
3974- | -linux-newlib* | -linux-uclibc* \
3975+ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
3976+ | -linux-newlib* | -linux-musl* | -linux-uclibc* \
3977 | -uxpv* | -beos* | -mpeix* | -udk* \
3978 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
3979 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
3980@@ -1479,9 +1498,6 @@
3981 -aros*)
3982 os=-aros
3983 ;;
3984- -kaos*)
3985- os=-kaos
3986- ;;
3987 -zvmoe)
3988 os=-zvmoe
3989 ;;
3990@@ -1530,6 +1546,12 @@
3991 c4x-* | tic4x-*)
3992 os=-coff
3993 ;;
3994+ c8051-*)
3995+ os=-elf
3996+ ;;
3997+ hexagon-*)
3998+ os=-elf
3999+ ;;
4000 tic54x-*)
4001 os=-coff
4002 ;;
4003@@ -1570,6 +1592,9 @@
4004 mips*-*)
4005 os=-elf
4006 ;;
4007+ or1k-*)
4008+ os=-elf
4009+ ;;
4010 or32-*)
4011 os=-coff
4012 ;;
4013
4014=== modified file 'debian/changelog'
4015--- debian/changelog 2013-03-25 07:38:36 +0000
4016+++ debian/changelog 2013-10-02 19:20:36 +0000
4017@@ -1,3 +1,9 @@
4018+libatasmart (0.19-2ubuntu1) UNRELEASED; urgency=low
4019+
4020+ * Update config.{sub,guess} to fix build failure on arm64 (LP: #1234343)
4021+
4022+ -- dann frazier <dann.frazier@canonical.com> Wed, 02 Oct 2013 13:01:10 -0600
4023+
4024 libatasmart (0.19-2) unstable; urgency=low
4025
4026 * debian/local/apport-hook.py: Fix syntax to be Python 3 compatible.
4027
4028=== modified file 'debian/control'
4029--- debian/control 2013-03-25 07:38:36 +0000
4030+++ debian/control 2013-10-02 19:20:36 +0000
4031@@ -1,7 +1,8 @@
4032 Source: libatasmart
4033 Section: libs
4034 Priority: optional
4035-Maintainer: Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>
4036+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
4037+XSBC-Original-Maintainer: Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>
4038 Uploaders: Michael Biebl <biebl@debian.org>, Martin Pitt <mpitt@debian.org>
4039 Build-Depends: debhelper (>= 9),
4040 autotools-dev,
4041
4042=== added file 'debian/patches/config-sub-guess-update.patch'
4043--- debian/patches/config-sub-guess-update.patch 1970-01-01 00:00:00 +0000
4044+++ debian/patches/config-sub-guess-update.patch 2013-10-02 19:20:36 +0000
4045@@ -0,0 +1,702 @@
4046+Index: libatasmart/build-aux/config.guess
4047+===================================================================
4048+--- libatasmart.orig/build-aux/config.guess 2013-10-02 12:52:26.194520640 -0600
4049++++ libatasmart/build-aux/config.guess 2013-10-02 13:03:42.721716748 -0600
4050+@@ -1,14 +1,12 @@
4051+ #! /bin/sh
4052+ # Attempt to guess a canonical system name.
4053+-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4054+-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4055+-# 2011, 2012 Free Software Foundation, Inc.
4056++# Copyright 1992-2013 Free Software Foundation, Inc.
4057+
4058+-timestamp='2012-01-01'
4059++timestamp='2013-06-10'
4060+
4061+ # This file is free software; you can redistribute it and/or modify it
4062+ # under the terms of the GNU General Public License as published by
4063+-# the Free Software Foundation; either version 2 of the License, or
4064++# the Free Software Foundation; either version 3 of the License, or
4065+ # (at your option) any later version.
4066+ #
4067+ # This program is distributed in the hope that it will be useful, but
4068+@@ -17,26 +15,22 @@
4069+ # General Public License for more details.
4070+ #
4071+ # You should have received a copy of the GNU General Public License
4072+-# along with this program; if not, write to the Free Software
4073+-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
4074+-# 02110-1301, USA.
4075++# along with this program; if not, see <http://www.gnu.org/licenses/>.
4076+ #
4077+ # As a special exception to the GNU General Public License, if you
4078+ # distribute this file as part of a program that contains a
4079+ # configuration script generated by Autoconf, you may include it under
4080+-# the same distribution terms that you use for the rest of that program.
4081+-
4082+-
4083+-# Originally written by Per Bothner. Please send patches (context
4084+-# diff format) to <config-patches@gnu.org> and include a ChangeLog
4085+-# entry.
4086++# the same distribution terms that you use for the rest of that
4087++# program. This Exception is an additional permission under section 7
4088++# of the GNU General Public License, version 3 ("GPLv3").
4089+ #
4090+-# This script attempts to guess a canonical system name similar to
4091+-# config.sub. If it succeeds, it prints the system name on stdout, and
4092+-# exits with 0. Otherwise, it exits with 1.
4093++# Originally written by Per Bothner.
4094+ #
4095+ # You can get the latest version of this script from:
4096+ # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
4097++#
4098++# Please send patches with a ChangeLog entry to config-patches@gnu.org.
4099++
4100+
4101+ me=`echo "$0" | sed -e 's,.*/,,'`
4102+
4103+@@ -56,9 +50,7 @@
4104+ GNU config.guess ($timestamp)
4105+
4106+ Originally written by Per Bothner.
4107+-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
4108+-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
4109+-Free Software Foundation, Inc.
4110++Copyright 1992-2013 Free Software Foundation, Inc.
4111+
4112+ This is free software; see the source for copying conditions. There is NO
4113+ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
4114+@@ -140,6 +132,27 @@
4115+ UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
4116+ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
4117+
4118++case "${UNAME_SYSTEM}" in
4119++Linux|GNU|GNU/*)
4120++ # If the system lacks a compiler, then just pick glibc.
4121++ # We could probably try harder.
4122++ LIBC=gnu
4123++
4124++ eval $set_cc_for_build
4125++ cat <<-EOF > $dummy.c
4126++ #include <features.h>
4127++ #if defined(__UCLIBC__)
4128++ LIBC=uclibc
4129++ #elif defined(__dietlibc__)
4130++ LIBC=dietlibc
4131++ #else
4132++ LIBC=gnu
4133++ #endif
4134++ EOF
4135++ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
4136++ ;;
4137++esac
4138++
4139+ # Note: order is significant - the case branches are not exclusive.
4140+
4141+ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4142+@@ -202,6 +215,10 @@
4143+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
4144+ echo "${machine}-${os}${release}"
4145+ exit ;;
4146++ *:Bitrig:*:*)
4147++ UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
4148++ echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
4149++ exit ;;
4150+ *:OpenBSD:*:*)
4151+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
4152+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
4153+@@ -304,7 +321,7 @@
4154+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
4155+ echo arm-acorn-riscix${UNAME_RELEASE}
4156+ exit ;;
4157+- arm:riscos:*:*|arm:RISCOS:*:*)
4158++ arm*:riscos:*:*|arm*:RISCOS:*:*)
4159+ echo arm-unknown-riscos
4160+ exit ;;
4161+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
4162+@@ -803,6 +820,9 @@
4163+ i*:CYGWIN*:*)
4164+ echo ${UNAME_MACHINE}-pc-cygwin
4165+ exit ;;
4166++ *:MINGW64*:*)
4167++ echo ${UNAME_MACHINE}-pc-mingw64
4168++ exit ;;
4169+ *:MINGW*:*)
4170+ echo ${UNAME_MACHINE}-pc-mingw32
4171+ exit ;;
4172+@@ -854,15 +874,22 @@
4173+ exit ;;
4174+ *:GNU:*:*)
4175+ # the GNU system
4176+- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
4177++ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
4178+ exit ;;
4179+ *:GNU/*:*:*)
4180+ # other systems with GNU libc and userland
4181+- echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
4182++ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
4183+ exit ;;
4184+ i*86:Minix:*:*)
4185+ echo ${UNAME_MACHINE}-pc-minix
4186+ exit ;;
4187++ aarch64:Linux:*:*)
4188++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4189++ exit ;;
4190++ aarch64_be:Linux:*:*)
4191++ UNAME_MACHINE=aarch64_be
4192++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4193++ exit ;;
4194+ alpha:Linux:*:*)
4195+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
4196+ EV5) UNAME_MACHINE=alphaev5 ;;
4197+@@ -874,59 +901,54 @@
4198+ EV68*) UNAME_MACHINE=alphaev68 ;;
4199+ esac
4200+ objdump --private-headers /bin/sh | grep -q ld.so.1
4201+- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
4202+- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
4203++ if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
4204++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4205++ exit ;;
4206++ arc:Linux:*:* | arceb:Linux:*:*)
4207++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4208+ exit ;;
4209+ arm*:Linux:*:*)
4210+ eval $set_cc_for_build
4211+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
4212+ | grep -q __ARM_EABI__
4213+ then
4214+- echo ${UNAME_MACHINE}-unknown-linux-gnu
4215++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4216+ else
4217+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
4218+ | grep -q __ARM_PCS_VFP
4219+ then
4220+- echo ${UNAME_MACHINE}-unknown-linux-gnueabi
4221++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
4222+ else
4223+- echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
4224++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
4225+ fi
4226+ fi
4227+ exit ;;
4228+ avr32*:Linux:*:*)
4229+- echo ${UNAME_MACHINE}-unknown-linux-gnu
4230++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4231+ exit ;;
4232+ cris:Linux:*:*)
4233+- echo ${UNAME_MACHINE}-axis-linux-gnu
4234++ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
4235+ exit ;;
4236+ crisv32:Linux:*:*)
4237+- echo ${UNAME_MACHINE}-axis-linux-gnu
4238++ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
4239+ exit ;;
4240+ frv:Linux:*:*)
4241+- echo ${UNAME_MACHINE}-unknown-linux-gnu
4242++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4243+ exit ;;
4244+ hexagon:Linux:*:*)
4245+- echo ${UNAME_MACHINE}-unknown-linux-gnu
4246++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4247+ exit ;;
4248+ i*86:Linux:*:*)
4249+- LIBC=gnu
4250+- eval $set_cc_for_build
4251+- sed 's/^ //' << EOF >$dummy.c
4252+- #ifdef __dietlibc__
4253+- LIBC=dietlibc
4254+- #endif
4255+-EOF
4256+- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
4257+- echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
4258++ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
4259+ exit ;;
4260+ ia64:Linux:*:*)
4261+- echo ${UNAME_MACHINE}-unknown-linux-gnu
4262++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4263+ exit ;;
4264+ m32r*:Linux:*:*)
4265+- echo ${UNAME_MACHINE}-unknown-linux-gnu
4266++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4267+ exit ;;
4268+ m68*:Linux:*:*)
4269+- echo ${UNAME_MACHINE}-unknown-linux-gnu
4270++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4271+ exit ;;
4272+ mips:Linux:*:* | mips64:Linux:*:*)
4273+ eval $set_cc_for_build
4274+@@ -945,54 +967,63 @@
4275+ #endif
4276+ EOF
4277+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
4278+- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
4279++ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
4280+ ;;
4281++ or1k:Linux:*:*)
4282++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4283++ exit ;;
4284+ or32:Linux:*:*)
4285+- echo ${UNAME_MACHINE}-unknown-linux-gnu
4286++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4287+ exit ;;
4288+ padre:Linux:*:*)
4289+- echo sparc-unknown-linux-gnu
4290++ echo sparc-unknown-linux-${LIBC}
4291+ exit ;;
4292+ parisc64:Linux:*:* | hppa64:Linux:*:*)
4293+- echo hppa64-unknown-linux-gnu
4294++ echo hppa64-unknown-linux-${LIBC}
4295+ exit ;;
4296+ parisc:Linux:*:* | hppa:Linux:*:*)
4297+ # Look for CPU level
4298+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
4299+- PA7*) echo hppa1.1-unknown-linux-gnu ;;
4300+- PA8*) echo hppa2.0-unknown-linux-gnu ;;
4301+- *) echo hppa-unknown-linux-gnu ;;
4302++ PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
4303++ PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
4304++ *) echo hppa-unknown-linux-${LIBC} ;;
4305+ esac
4306+ exit ;;
4307+ ppc64:Linux:*:*)
4308+- echo powerpc64-unknown-linux-gnu
4309++ echo powerpc64-unknown-linux-${LIBC}
4310+ exit ;;
4311+ ppc:Linux:*:*)
4312+- echo powerpc-unknown-linux-gnu
4313++ echo powerpc-unknown-linux-${LIBC}
4314++ exit ;;
4315++ ppc64le:Linux:*:*)
4316++ echo powerpc64le-unknown-linux-${LIBC}
4317++ exit ;;
4318++ ppcle:Linux:*:*)
4319++ echo powerpcle-unknown-linux-${LIBC}
4320+ exit ;;
4321+ s390:Linux:*:* | s390x:Linux:*:*)
4322+- echo ${UNAME_MACHINE}-ibm-linux
4323++ echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
4324+ exit ;;
4325+ sh64*:Linux:*:*)
4326+- echo ${UNAME_MACHINE}-unknown-linux-gnu
4327++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4328+ exit ;;
4329+ sh*:Linux:*:*)
4330+- echo ${UNAME_MACHINE}-unknown-linux-gnu
4331++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4332+ exit ;;
4333+ sparc:Linux:*:* | sparc64:Linux:*:*)
4334+- echo ${UNAME_MACHINE}-unknown-linux-gnu
4335++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4336+ exit ;;
4337+ tile*:Linux:*:*)
4338+- echo ${UNAME_MACHINE}-unknown-linux-gnu
4339++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4340+ exit ;;
4341+ vax:Linux:*:*)
4342+- echo ${UNAME_MACHINE}-dec-linux-gnu
4343++ echo ${UNAME_MACHINE}-dec-linux-${LIBC}
4344+ exit ;;
4345+ x86_64:Linux:*:*)
4346+- echo ${UNAME_MACHINE}-unknown-linux-gnu
4347++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4348+ exit ;;
4349+ xtensa*:Linux:*:*)
4350+- echo ${UNAME_MACHINE}-unknown-linux-gnu
4351++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4352+ exit ;;
4353+ i*86:DYNIX/ptx:4*:*)
4354+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
4355+@@ -1196,6 +1227,9 @@
4356+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
4357+ echo i586-pc-haiku
4358+ exit ;;
4359++ x86_64:Haiku:*:*)
4360++ echo x86_64-unknown-haiku
4361++ exit ;;
4362+ SX-4:SUPER-UX:*:*)
4363+ echo sx4-nec-superux${UNAME_RELEASE}
4364+ exit ;;
4365+@@ -1222,19 +1256,21 @@
4366+ exit ;;
4367+ *:Darwin:*:*)
4368+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
4369+- case $UNAME_PROCESSOR in
4370+- i386)
4371+- eval $set_cc_for_build
4372+- if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
4373+- if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
4374+- (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
4375+- grep IS_64BIT_ARCH >/dev/null
4376+- then
4377+- UNAME_PROCESSOR="x86_64"
4378+- fi
4379+- fi ;;
4380+- unknown) UNAME_PROCESSOR=powerpc ;;
4381+- esac
4382++ eval $set_cc_for_build
4383++ if test "$UNAME_PROCESSOR" = unknown ; then
4384++ UNAME_PROCESSOR=powerpc
4385++ fi
4386++ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
4387++ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
4388++ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
4389++ grep IS_64BIT_ARCH >/dev/null
4390++ then
4391++ case $UNAME_PROCESSOR in
4392++ i386) UNAME_PROCESSOR=x86_64 ;;
4393++ powerpc) UNAME_PROCESSOR=powerpc64 ;;
4394++ esac
4395++ fi
4396++ fi
4397+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
4398+ exit ;;
4399+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
4400+@@ -1251,7 +1287,7 @@
4401+ NEO-?:NONSTOP_KERNEL:*:*)
4402+ echo neo-tandem-nsk${UNAME_RELEASE}
4403+ exit ;;
4404+- NSE-?:NONSTOP_KERNEL:*:*)
4405++ NSE-*:NONSTOP_KERNEL:*:*)
4406+ echo nse-tandem-nsk${UNAME_RELEASE}
4407+ exit ;;
4408+ NSR-?:NONSTOP_KERNEL:*:*)
4409+@@ -1320,11 +1356,11 @@
4410+ i*86:AROS:*:*)
4411+ echo ${UNAME_MACHINE}-pc-aros
4412+ exit ;;
4413++ x86_64:VMkernel:*:*)
4414++ echo ${UNAME_MACHINE}-unknown-esx
4415++ exit ;;
4416+ esac
4417+
4418+-#echo '(No uname command or uname output not recognized.)' 1>&2
4419+-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
4420+-
4421+ eval $set_cc_for_build
4422+ cat >$dummy.c <<EOF
4423+ #ifdef _SEQUENT_
4424+Index: libatasmart/build-aux/config.sub
4425+===================================================================
4426+--- libatasmart.orig/build-aux/config.sub 2013-10-02 12:52:26.194520640 -0600
4427++++ libatasmart/build-aux/config.sub 2013-10-02 13:03:43.501725057 -0600
4428+@@ -1,38 +1,31 @@
4429+ #! /bin/sh
4430+ # Configuration validation subroutine script.
4431+-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4432+-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4433+-# 2011, 2012 Free Software Foundation, Inc.
4434+-
4435+-timestamp='2012-01-01'
4436+-
4437+-# This file is (in principle) common to ALL GNU software.
4438+-# The presence of a machine in this file suggests that SOME GNU software
4439+-# can handle that machine. It does not imply ALL GNU software can.
4440+-#
4441+-# This file is free software; you can redistribute it and/or modify
4442+-# it under the terms of the GNU General Public License as published by
4443+-# the Free Software Foundation; either version 2 of the License, or
4444++# Copyright 1992-2013 Free Software Foundation, Inc.
4445++
4446++timestamp='2013-08-10'
4447++
4448++# This file is free software; you can redistribute it and/or modify it
4449++# under the terms of the GNU General Public License as published by
4450++# the Free Software Foundation; either version 3 of the License, or
4451+ # (at your option) any later version.
4452+ #
4453+-# This program is distributed in the hope that it will be useful,
4454+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
4455+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4456+-# GNU General Public License for more details.
4457++# This program is distributed in the hope that it will be useful, but
4458++# WITHOUT ANY WARRANTY; without even the implied warranty of
4459++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4460++# General Public License for more details.
4461+ #
4462+ # You should have received a copy of the GNU General Public License
4463+-# along with this program; if not, write to the Free Software
4464+-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
4465+-# 02110-1301, USA.
4466++# along with this program; if not, see <http://www.gnu.org/licenses/>.
4467+ #
4468+ # As a special exception to the GNU General Public License, if you
4469+ # distribute this file as part of a program that contains a
4470+ # configuration script generated by Autoconf, you may include it under
4471+-# the same distribution terms that you use for the rest of that program.
4472++# the same distribution terms that you use for the rest of that
4473++# program. This Exception is an additional permission under section 7
4474++# of the GNU General Public License, version 3 ("GPLv3").
4475+
4476+
4477+-# Please send patches to <config-patches@gnu.org>. Submit a context
4478+-# diff and a properly formatted GNU ChangeLog entry.
4479++# Please send patches with a ChangeLog entry to config-patches@gnu.org.
4480+ #
4481+ # Configuration subroutine to validate and canonicalize a configuration type.
4482+ # Supply the specified configuration type as an argument.
4483+@@ -75,9 +68,7 @@
4484+ version="\
4485+ GNU config.sub ($timestamp)
4486+
4487+-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
4488+-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
4489+-Free Software Foundation, Inc.
4490++Copyright 1992-2013 Free Software Foundation, Inc.
4491+
4492+ This is free software; see the source for copying conditions. There is NO
4493+ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
4494+@@ -125,13 +116,17 @@
4495+ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
4496+ case $maybe_os in
4497+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
4498+- linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
4499++ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
4500+ knetbsd*-gnu* | netbsd*-gnu* | \
4501+ kopensolaris*-gnu* | \
4502+ storm-chaos* | os2-emx* | rtmk-nova*)
4503+ os=-$maybe_os
4504+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
4505+ ;;
4506++ android-linux)
4507++ os=-linux-android
4508++ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
4509++ ;;
4510+ *)
4511+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
4512+ if [ $basic_machine != $1 ]
4513+@@ -154,7 +149,7 @@
4514+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
4515+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
4516+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
4517+- -apple | -axis | -knuth | -cray | -microblaze)
4518++ -apple | -axis | -knuth | -cray | -microblaze*)
4519+ os=
4520+ basic_machine=$1
4521+ ;;
4522+@@ -223,6 +218,12 @@
4523+ -isc*)
4524+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
4525+ ;;
4526++ -lynx*178)
4527++ os=-lynxos178
4528++ ;;
4529++ -lynx*5)
4530++ os=-lynxos5
4531++ ;;
4532+ -lynx*)
4533+ os=-lynxos
4534+ ;;
4535+@@ -247,13 +248,16 @@
4536+ # Some are omitted here because they have special meanings below.
4537+ 1750a | 580 \
4538+ | a29k \
4539++ | aarch64 | aarch64_be \
4540+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
4541+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
4542+ | am33_2.0 \
4543+- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
4544+- | be32 | be64 \
4545++ | arc | arceb \
4546++ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
4547++ | avr | avr32 \
4548++ | be32 | be64 \
4549+ | bfin \
4550+- | c4x | clipper \
4551++ | c4x | c8051 | clipper \
4552+ | d10v | d30v | dlx | dsp16xx \
4553+ | epiphany \
4554+ | fido | fr30 | frv \
4555+@@ -264,7 +268,7 @@
4556+ | le32 | le64 \
4557+ | lm32 \
4558+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
4559+- | maxq | mb | microblaze | mcore | mep | metag \
4560++ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
4561+ | mips | mipsbe | mipseb | mipsel | mipsle \
4562+ | mips16 \
4563+ | mips64 | mips64el \
4564+@@ -282,16 +286,17 @@
4565+ | mipsisa64r2 | mipsisa64r2el \
4566+ | mipsisa64sb1 | mipsisa64sb1el \
4567+ | mipsisa64sr71k | mipsisa64sr71kel \
4568++ | mipsr5900 | mipsr5900el \
4569+ | mipstx39 | mipstx39el \
4570+ | mn10200 | mn10300 \
4571+ | moxie \
4572+ | mt \
4573+ | msp430 \
4574+ | nds32 | nds32le | nds32be \
4575+- | nios | nios2 \
4576++ | nios | nios2 | nios2eb | nios2el \
4577+ | ns16k | ns32k \
4578+ | open8 \
4579+- | or32 \
4580++ | or1k | or32 \
4581+ | pdp10 | pdp11 | pj | pjl \
4582+ | powerpc | powerpc64 | powerpc64le | powerpcle \
4583+ | pyramid \
4584+@@ -319,7 +324,7 @@
4585+ c6x)
4586+ basic_machine=tic6x-unknown
4587+ ;;
4588+- m6811 | m68hc11 | m6812 | m68hc12 | picochip)
4589++ m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
4590+ basic_machine=$basic_machine-unknown
4591+ os=-none
4592+ ;;
4593+@@ -332,7 +337,10 @@
4594+ strongarm | thumb | xscale)
4595+ basic_machine=arm-unknown
4596+ ;;
4597+-
4598++ xgate)
4599++ basic_machine=$basic_machine-unknown
4600++ os=-none
4601++ ;;
4602+ xscaleeb)
4603+ basic_machine=armeb-unknown
4604+ ;;
4605+@@ -355,15 +363,16 @@
4606+ # Recognize the basic CPU types with company name.
4607+ 580-* \
4608+ | a29k-* \
4609++ | aarch64-* | aarch64_be-* \
4610+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
4611+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
4612+- | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
4613++ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
4614+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
4615+ | avr-* | avr32-* \
4616+ | be32-* | be64-* \
4617+ | bfin-* | bs2000-* \
4618+ | c[123]* | c30-* | [cjt]90-* | c4x-* \
4619+- | clipper-* | craynv-* | cydra-* \
4620++ | c8051-* | clipper-* | craynv-* | cydra-* \
4621+ | d10v-* | d30v-* | dlx-* \
4622+ | elxsi-* \
4623+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
4624+@@ -376,7 +385,8 @@
4625+ | lm32-* \
4626+ | m32c-* | m32r-* | m32rle-* \
4627+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
4628+- | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
4629++ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
4630++ | microblaze-* | microblazeel-* \
4631+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
4632+ | mips16-* \
4633+ | mips64-* | mips64el-* \
4634+@@ -394,12 +404,13 @@
4635+ | mipsisa64r2-* | mipsisa64r2el-* \
4636+ | mipsisa64sb1-* | mipsisa64sb1el-* \
4637+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
4638++ | mipsr5900-* | mipsr5900el-* \
4639+ | mipstx39-* | mipstx39el-* \
4640+ | mmix-* \
4641+ | mt-* \
4642+ | msp430-* \
4643+ | nds32-* | nds32le-* | nds32be-* \
4644+- | nios-* | nios2-* \
4645++ | nios-* | nios2-* | nios2eb-* | nios2el-* \
4646+ | none-* | np1-* | ns16k-* | ns32k-* \
4647+ | open8-* \
4648+ | orion-* \
4649+@@ -775,11 +786,15 @@
4650+ basic_machine=ns32k-utek
4651+ os=-sysv
4652+ ;;
4653+- microblaze)
4654++ microblaze*)
4655+ basic_machine=microblaze-xilinx
4656+ ;;
4657++ mingw64)
4658++ basic_machine=x86_64-pc
4659++ os=-mingw64
4660++ ;;
4661+ mingw32)
4662+- basic_machine=i386-pc
4663++ basic_machine=i686-pc
4664+ os=-mingw32
4665+ ;;
4666+ mingw32ce)
4667+@@ -815,7 +830,7 @@
4668+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
4669+ ;;
4670+ msys)
4671+- basic_machine=i386-pc
4672++ basic_machine=i686-pc
4673+ os=-msys
4674+ ;;
4675+ mvs)
4676+@@ -1006,7 +1021,11 @@
4677+ basic_machine=i586-unknown
4678+ os=-pw32
4679+ ;;
4680+- rdos)
4681++ rdos | rdos64)
4682++ basic_machine=x86_64-pc
4683++ os=-rdos
4684++ ;;
4685++ rdos32)
4686+ basic_machine=i386-pc
4687+ os=-rdos
4688+ ;;
4689+@@ -1333,21 +1352,21 @@
4690+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
4691+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
4692+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
4693+- | -sym* | -kopensolaris* \
4694++ | -sym* | -kopensolaris* | -plan9* \
4695+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
4696+ | -aos* | -aros* \
4697+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
4698+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
4699+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
4700+- | -openbsd* | -solidbsd* \
4701++ | -bitrig* | -openbsd* | -solidbsd* \
4702+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
4703+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
4704+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
4705+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
4706+ | -chorusos* | -chorusrdb* | -cegcc* \
4707+ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
4708+- | -mingw32* | -linux-gnu* | -linux-android* \
4709+- | -linux-newlib* | -linux-uclibc* \
4710++ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
4711++ | -linux-newlib* | -linux-musl* | -linux-uclibc* \
4712+ | -uxpv* | -beos* | -mpeix* | -udk* \
4713+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
4714+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
4715+@@ -1479,9 +1498,6 @@
4716+ -aros*)
4717+ os=-aros
4718+ ;;
4719+- -kaos*)
4720+- os=-kaos
4721+- ;;
4722+ -zvmoe)
4723+ os=-zvmoe
4724+ ;;
4725+@@ -1530,6 +1546,12 @@
4726+ c4x-* | tic4x-*)
4727+ os=-coff
4728+ ;;
4729++ c8051-*)
4730++ os=-elf
4731++ ;;
4732++ hexagon-*)
4733++ os=-elf
4734++ ;;
4735+ tic54x-*)
4736+ os=-coff
4737+ ;;
4738+@@ -1570,6 +1592,9 @@
4739+ mips*-*)
4740+ os=-elf
4741+ ;;
4742++ or1k-*)
4743++ os=-elf
4744++ ;;
4745+ or32-*)
4746+ os=-coff
4747+ ;;
4748
4749=== modified file 'debian/patches/series'
4750--- debian/patches/series 2013-03-25 07:38:36 +0000
4751+++ debian/patches/series 2013-10-02 19:20:36 +0000
4752@@ -1,3 +1,4 @@
4753 # Debian patches for libatasmart
4754 0001-Dont-test-undefined-bits.patch
4755 0002-Drop-our-own-many-bad-sectors-heuristic.patch
4756+config-sub-guess-update.patch

Subscribers

People subscribed via source and target branches

to all changes: