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