0 | 0 |
#! /bin/sh
|
1 | |
#
|
2 | |
# $NetBSD: config.guess,v 1.8 2004/08/14 19:13:55 schmonz Exp $
|
3 | |
#
|
4 | 1 |
# Attempt to guess a canonical system name.
|
5 | 2 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
6 | |
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
7 | |
|
8 | |
timestamp='2004-06-11'
|
|
3 |
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
|
|
4 |
# Free Software Foundation, Inc.
|
|
5 |
|
|
6 |
timestamp='2009-04-27'
|
9 | 7 |
|
10 | 8 |
# This file is free software; you can redistribute it and/or modify it
|
11 | 9 |
# under the terms of the GNU General Public License as published by
|
|
19 | 17 |
#
|
20 | 18 |
# You should have received a copy of the GNU General Public License
|
21 | 19 |
# along with this program; if not, write to the Free Software
|
22 | |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
20 |
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
|
21 |
# 02110-1301, USA.
|
23 | 22 |
#
|
24 | 23 |
# As a special exception to the GNU General Public License, if you
|
25 | 24 |
# distribute this file as part of a program that contains a
|
26 | 25 |
# configuration script generated by Autoconf, you may include it under
|
27 | 26 |
# the same distribution terms that you use for the rest of that program.
|
|
27 |
|
28 | 28 |
|
29 | 29 |
# Originally written by Per Bothner <per@bothner.com>.
|
30 | 30 |
# Please send patches to <config-patches@gnu.org>. Submit a context
|
|
55 | 55 |
GNU config.guess ($timestamp)
|
56 | 56 |
|
57 | 57 |
Originally written by Per Bothner.
|
58 | |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
59 | |
Free Software Foundation, Inc.
|
|
58 |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
|
|
59 |
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
60 | 60 |
|
61 | 61 |
This is free software; see the source for copying conditions. There is NO
|
62 | 62 |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
|
68 | 68 |
while test $# -gt 0 ; do
|
69 | 69 |
case $1 in
|
70 | 70 |
--time-stamp | --time* | -t )
|
71 | |
echo "$timestamp" ; exit 0 ;;
|
|
71 |
echo "$timestamp" ; exit ;;
|
72 | 72 |
--version | -v )
|
73 | |
echo "$version" ; exit 0 ;;
|
|
73 |
echo "$version" ; exit ;;
|
74 | 74 |
--help | --h* | -h )
|
75 | |
echo "$usage"; exit 0 ;;
|
|
75 |
echo "$usage"; exit ;;
|
76 | 76 |
-- ) # Stop option processing
|
77 | 77 |
shift; break ;;
|
78 | 78 |
- ) # Use stdin as input.
|
|
106 | 106 |
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
|
107 | 107 |
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
|
108 | 108 |
: ${TMPDIR=/tmp} ;
|
109 | |
{ tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
|
|
109 |
{ tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
|
110 | 110 |
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
|
111 | 111 |
{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
|
112 | 112 |
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
|
|
125 | 125 |
;;
|
126 | 126 |
,,*) CC_FOR_BUILD=$CC ;;
|
127 | 127 |
,*,*) CC_FOR_BUILD=$HOST_CC ;;
|
128 | |
esac ;'
|
|
128 |
esac ; set_cc_for_build= ;'
|
129 | 129 |
|
130 | 130 |
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
|
131 | 131 |
# (ghazi@noc.rutgers.edu 1994-08-24)
|
|
199 | 199 |
# contains redundant information, the shorter form:
|
200 | 200 |
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
201 | 201 |
echo "${machine}-${os}${release}"
|
202 | |
exit 0 ;;
|
203 | |
amd64:OpenBSD:*:*)
|
204 | |
echo x86_64-unknown-openbsd${UNAME_RELEASE}
|
205 | |
exit 0 ;;
|
206 | |
amiga:OpenBSD:*:*)
|
207 | |
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
208 | |
exit 0 ;;
|
209 | |
arc:OpenBSD:*:*)
|
210 | |
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
211 | |
exit 0 ;;
|
212 | |
cats:OpenBSD:*:*)
|
213 | |
echo arm-unknown-openbsd${UNAME_RELEASE}
|
214 | |
exit 0 ;;
|
215 | |
hp300:OpenBSD:*:*)
|
216 | |
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
217 | |
exit 0 ;;
|
218 | |
luna88k:OpenBSD:*:*)
|
219 | |
echo m88k-unknown-openbsd${UNAME_RELEASE}
|
220 | |
exit 0 ;;
|
221 | |
mac68k:OpenBSD:*:*)
|
222 | |
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
223 | |
exit 0 ;;
|
224 | |
macppc:OpenBSD:*:*)
|
225 | |
echo powerpc-unknown-openbsd${UNAME_RELEASE}
|
226 | |
exit 0 ;;
|
227 | |
mvme68k:OpenBSD:*:*)
|
228 | |
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
229 | |
exit 0 ;;
|
230 | |
mvme88k:OpenBSD:*:*)
|
231 | |
echo m88k-unknown-openbsd${UNAME_RELEASE}
|
232 | |
exit 0 ;;
|
233 | |
mvmeppc:OpenBSD:*:*)
|
234 | |
echo powerpc-unknown-openbsd${UNAME_RELEASE}
|
235 | |
exit 0 ;;
|
236 | |
pmax:OpenBSD:*:*)
|
237 | |
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
238 | |
exit 0 ;;
|
239 | |
sgi:OpenBSD:*:*)
|
240 | |
echo mipseb-unknown-openbsd${UNAME_RELEASE}
|
241 | |
exit 0 ;;
|
242 | |
sun3:OpenBSD:*:*)
|
243 | |
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
244 | |
exit 0 ;;
|
245 | |
wgrisc:OpenBSD:*:*)
|
246 | |
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
247 | |
exit 0 ;;
|
|
202 |
exit ;;
|
248 | 203 |
*:OpenBSD:*:*)
|
249 | |
echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
|
250 | |
exit 0 ;;
|
|
204 |
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
|
|
205 |
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
|
|
206 |
exit ;;
|
251 | 207 |
*:ekkoBSD:*:*)
|
252 | 208 |
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
|
253 | |
exit 0 ;;
|
|
209 |
exit ;;
|
|
210 |
*:SolidBSD:*:*)
|
|
211 |
echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
|
|
212 |
exit ;;
|
254 | 213 |
macppc:MirBSD:*:*)
|
255 | |
echo powerppc-unknown-mirbsd${UNAME_RELEASE}
|
256 | |
exit 0 ;;
|
|
214 |
echo powerpc-unknown-mirbsd${UNAME_RELEASE}
|
|
215 |
exit ;;
|
257 | 216 |
*:MirBSD:*:*)
|
258 | 217 |
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
|
259 | |
exit 0 ;;
|
|
218 |
exit ;;
|
260 | 219 |
alpha:OSF1:*:*)
|
261 | 220 |
case $UNAME_RELEASE in
|
262 | 221 |
*4.0)
|
|
309 | 268 |
# A Xn.n version is an unreleased experimental baselevel.
|
310 | 269 |
# 1.2 uses "1.2" for uname -r.
|
311 | 270 |
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
312 | |
exit 0 ;;
|
313 | |
Alpha*:OpenVMS:*:*)
|
314 | |
echo alpha-hp-vms
|
315 | |
exit 0 ;;
|
|
271 |
exit ;;
|
316 | 272 |
Alpha\ *:Windows_NT*:*)
|
317 | 273 |
# How do we know it's Interix rather than the generic POSIX subsystem?
|
318 | 274 |
# Should we change UNAME_MACHINE based on the output of uname instead
|
319 | 275 |
# of the specific Alpha model?
|
320 | 276 |
echo alpha-pc-interix
|
321 | |
exit 0 ;;
|
|
277 |
exit ;;
|
322 | 278 |
21064:Windows_NT:50:3)
|
323 | 279 |
echo alpha-dec-winnt3.5
|
324 | |
exit 0 ;;
|
|
280 |
exit ;;
|
325 | 281 |
Amiga*:UNIX_System_V:4.0:*)
|
326 | 282 |
echo m68k-unknown-sysv4
|
327 | |
exit 0;;
|
|
283 |
exit ;;
|
328 | 284 |
*:[Aa]miga[Oo][Ss]:*:*)
|
329 | 285 |
echo ${UNAME_MACHINE}-unknown-amigaos
|
330 | |
exit 0 ;;
|
|
286 |
exit ;;
|
331 | 287 |
*:[Mm]orph[Oo][Ss]:*:*)
|
332 | 288 |
echo ${UNAME_MACHINE}-unknown-morphos
|
333 | |
exit 0 ;;
|
|
289 |
exit ;;
|
334 | 290 |
*:OS/390:*:*)
|
335 | 291 |
echo i370-ibm-openedition
|
336 | |
exit 0 ;;
|
|
292 |
exit ;;
|
|
293 |
*:z/VM:*:*)
|
|
294 |
echo s390-ibm-zvmoe
|
|
295 |
exit ;;
|
337 | 296 |
*:OS400:*:*)
|
338 | 297 |
echo powerpc-ibm-os400
|
339 | |
exit 0 ;;
|
|
298 |
exit ;;
|
340 | 299 |
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
341 | 300 |
echo arm-acorn-riscix${UNAME_RELEASE}
|
342 | |
exit 0;;
|
|
301 |
exit ;;
|
|
302 |
arm:riscos:*:*|arm:RISCOS:*:*)
|
|
303 |
echo arm-unknown-riscos
|
|
304 |
exit ;;
|
343 | 305 |
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
|
344 | 306 |
echo hppa1.1-hitachi-hiuxmpp
|
345 | |
exit 0;;
|
|
307 |
exit ;;
|
346 | 308 |
Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
|
347 | 309 |
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
|
348 | 310 |
if test "`(/bin/universe) 2>/dev/null`" = att ; then
|
|
350 | 312 |
else
|
351 | 313 |
echo pyramid-pyramid-bsd
|
352 | 314 |
fi
|
353 | |
exit 0 ;;
|
|
315 |
exit ;;
|
354 | 316 |
NILE*:*:*:dcosx)
|
355 | 317 |
echo pyramid-pyramid-svr4
|
356 | |
exit 0 ;;
|
|
318 |
exit ;;
|
357 | 319 |
DRS?6000:unix:4.0:6*)
|
358 | 320 |
echo sparc-icl-nx6
|
359 | |
exit 0 ;;
|
360 | |
DRS?6000:UNIX_SV:4.2*:7*)
|
|
321 |
exit ;;
|
|
322 |
DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
|
361 | 323 |
case `/usr/bin/uname -p` in
|
362 | |
sparc) echo sparc-icl-nx7 && exit 0 ;;
|
|
324 |
sparc) echo sparc-icl-nx7; exit ;;
|
363 | 325 |
esac ;;
|
|
326 |
s390x:SunOS:*:*)
|
|
327 |
echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
328 |
exit ;;
|
364 | 329 |
sun4H:SunOS:5.*:*)
|
365 | 330 |
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
366 | |
exit 0 ;;
|
|
331 |
exit ;;
|
367 | 332 |
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
368 | 333 |
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
369 | |
exit 0 ;;
|
370 | |
i86pc:SunOS:5.*:*)
|
371 | |
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
372 | |
exit 0 ;;
|
|
334 |
exit ;;
|
|
335 |
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
|
336 |
eval $set_cc_for_build
|
|
337 |
SUN_ARCH="i386"
|
|
338 |
# If there is a compiler, see if it is configured for 64-bit objects.
|
|
339 |
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
|
|
340 |
# This test works for both compilers.
|
|
341 |
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
|
342 |
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
|
|
343 |
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
|
344 |
grep IS_64BIT_ARCH >/dev/null
|
|
345 |
then
|
|
346 |
SUN_ARCH="x86_64"
|
|
347 |
fi
|
|
348 |
fi
|
|
349 |
echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
350 |
exit ;;
|
373 | 351 |
sun4*:SunOS:6*:*)
|
374 | 352 |
# According to config.sub, this is the proper way to canonicalize
|
375 | 353 |
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
|
376 | 354 |
# it's likely to be more like Solaris than SunOS4.
|
377 | 355 |
echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
378 | |
exit 0 ;;
|
|
356 |
exit ;;
|
379 | 357 |
sun4*:SunOS:*:*)
|
380 | 358 |
case "`/usr/bin/arch -k`" in
|
381 | 359 |
Series*|S4*)
|
|
384 | 362 |
esac
|
385 | 363 |
# Japanese Language versions have a version number like `4.1.3-JL'.
|
386 | 364 |
echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
|
387 | |
exit 0 ;;
|
|
365 |
exit ;;
|
388 | 366 |
sun3*:SunOS:*:*)
|
389 | 367 |
echo m68k-sun-sunos${UNAME_RELEASE}
|
390 | |
exit 0 ;;
|
|
368 |
exit ;;
|
391 | 369 |
sun*:*:4.2BSD:*)
|
392 | 370 |
UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
|
393 | 371 |
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
|
|
399 | 377 |
echo sparc-sun-sunos${UNAME_RELEASE}
|
400 | 378 |
;;
|
401 | 379 |
esac
|
402 | |
exit 0 ;;
|
|
380 |
exit ;;
|
403 | 381 |
aushp:SunOS:*:*)
|
404 | 382 |
echo sparc-auspex-sunos${UNAME_RELEASE}
|
405 | |
exit 0 ;;
|
|
383 |
exit ;;
|
406 | 384 |
# The situation for MiNT is a little confusing. The machine name
|
407 | 385 |
# can be virtually everything (everything which is not
|
408 | 386 |
# "atarist" or "atariste" at least should have a processor
|
|
413 | 391 |
# be no problem.
|
414 | 392 |
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
415 | 393 |
echo m68k-atari-mint${UNAME_RELEASE}
|
416 | |
exit 0 ;;
|
|
394 |
exit ;;
|
417 | 395 |
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
418 | 396 |
echo m68k-atari-mint${UNAME_RELEASE}
|
419 | |
exit 0 ;;
|
|
397 |
exit ;;
|
420 | 398 |
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
421 | 399 |
echo m68k-atari-mint${UNAME_RELEASE}
|
422 | |
exit 0 ;;
|
|
400 |
exit ;;
|
423 | 401 |
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
424 | 402 |
echo m68k-milan-mint${UNAME_RELEASE}
|
425 | |
exit 0 ;;
|
|
403 |
exit ;;
|
426 | 404 |
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
427 | 405 |
echo m68k-hades-mint${UNAME_RELEASE}
|
428 | |
exit 0 ;;
|
|
406 |
exit ;;
|
429 | 407 |
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
430 | 408 |
echo m68k-unknown-mint${UNAME_RELEASE}
|
431 | |
exit 0 ;;
|
|
409 |
exit ;;
|
432 | 410 |
m68k:machten:*:*)
|
433 | 411 |
echo m68k-apple-machten${UNAME_RELEASE}
|
434 | |
exit 0 ;;
|
|
412 |
exit ;;
|
435 | 413 |
powerpc:machten:*:*)
|
436 | 414 |
echo powerpc-apple-machten${UNAME_RELEASE}
|
437 | |
exit 0 ;;
|
|
415 |
exit ;;
|
438 | 416 |
RISC*:Mach:*:*)
|
439 | 417 |
echo mips-dec-mach_bsd4.3
|
440 | |
exit 0 ;;
|
|
418 |
exit ;;
|
441 | 419 |
RISC*:ULTRIX:*:*)
|
442 | 420 |
echo mips-dec-ultrix${UNAME_RELEASE}
|
443 | |
exit 0 ;;
|
|
421 |
exit ;;
|
444 | 422 |
VAX*:ULTRIX*:*:*)
|
445 | 423 |
echo vax-dec-ultrix${UNAME_RELEASE}
|
446 | |
exit 0 ;;
|
|
424 |
exit ;;
|
447 | 425 |
2020:CLIX:*:* | 2430:CLIX:*:*)
|
448 | 426 |
echo clipper-intergraph-clix${UNAME_RELEASE}
|
449 | |
exit 0 ;;
|
|
427 |
exit ;;
|
450 | 428 |
mips:*:*:UMIPS | mips:*:*:RISCos)
|
451 | 429 |
eval $set_cc_for_build
|
452 | 430 |
sed 's/^ //' << EOF >$dummy.c
|
|
470 | 448 |
exit (-1);
|
471 | 449 |
}
|
472 | 450 |
EOF
|
473 | |
$CC_FOR_BUILD -o $dummy $dummy.c \
|
474 | |
&& $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
|
475 | |
&& exit 0
|
|
451 |
$CC_FOR_BUILD -o $dummy $dummy.c &&
|
|
452 |
dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
|
|
453 |
SYSTEM_NAME=`$dummy $dummyarg` &&
|
|
454 |
{ echo "$SYSTEM_NAME"; exit; }
|
476 | 455 |
echo mips-mips-riscos${UNAME_RELEASE}
|
477 | |
exit 0 ;;
|
|
456 |
exit ;;
|
478 | 457 |
Motorola:PowerMAX_OS:*:*)
|
479 | 458 |
echo powerpc-motorola-powermax
|
480 | |
exit 0 ;;
|
|
459 |
exit ;;
|
481 | 460 |
Motorola:*:4.3:PL8-*)
|
482 | 461 |
echo powerpc-harris-powermax
|
483 | |
exit 0 ;;
|
|
462 |
exit ;;
|
484 | 463 |
Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
|
485 | 464 |
echo powerpc-harris-powermax
|
486 | |
exit 0 ;;
|
|
465 |
exit ;;
|
487 | 466 |
Night_Hawk:Power_UNIX:*:*)
|
488 | 467 |
echo powerpc-harris-powerunix
|
489 | |
exit 0 ;;
|
|
468 |
exit ;;
|
490 | 469 |
m88k:CX/UX:7*:*)
|
491 | 470 |
echo m88k-harris-cxux7
|
492 | |
exit 0 ;;
|
|
471 |
exit ;;
|
493 | 472 |
m88k:*:4*:R4*)
|
494 | 473 |
echo m88k-motorola-sysv4
|
495 | |
exit 0 ;;
|
|
474 |
exit ;;
|
496 | 475 |
m88k:*:3*:R3*)
|
497 | 476 |
echo m88k-motorola-sysv3
|
498 | |
exit 0 ;;
|
|
477 |
exit ;;
|
499 | 478 |
AViiON:dgux:*:*)
|
500 | 479 |
# DG/UX returns AViiON for all architectures
|
501 | 480 |
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
|
511 | 490 |
else
|
512 | 491 |
echo i586-dg-dgux${UNAME_RELEASE}
|
513 | 492 |
fi
|
514 | |
exit 0 ;;
|
|
493 |
exit ;;
|
515 | 494 |
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
516 | 495 |
echo m88k-dolphin-sysv3
|
517 | |
exit 0 ;;
|
|
496 |
exit ;;
|
518 | 497 |
M88*:*:R3*:*)
|
519 | 498 |
# Delta 88k system running SVR3
|
520 | 499 |
echo m88k-motorola-sysv3
|
521 | |
exit 0 ;;
|
|
500 |
exit ;;
|
522 | 501 |
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
|
523 | 502 |
echo m88k-tektronix-sysv3
|
524 | |
exit 0 ;;
|
|
503 |
exit ;;
|
525 | 504 |
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
|
526 | 505 |
echo m68k-tektronix-bsd
|
527 | |
exit 0 ;;
|
|
506 |
exit ;;
|
528 | 507 |
*:IRIX*:*:*)
|
529 | 508 |
echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
|
530 | |
exit 0 ;;
|
|
509 |
exit ;;
|
531 | 510 |
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
|
532 | |
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
|
533 | |
exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
|
|
511 |
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
|
|
512 |
exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
|
534 | 513 |
i*86:AIX:*:*)
|
535 | 514 |
echo i386-ibm-aix
|
536 | |
exit 0 ;;
|
|
515 |
exit ;;
|
537 | 516 |
ia64:AIX:*:*)
|
538 | 517 |
if [ -x /usr/bin/oslevel ] ; then
|
539 | 518 |
IBM_REV=`/usr/bin/oslevel`
|
|
541 | 520 |
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
542 | 521 |
fi
|
543 | 522 |
echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
|
544 | |
exit 0 ;;
|
|
523 |
exit ;;
|
545 | 524 |
*:AIX:2:3)
|
546 | 525 |
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
|
547 | 526 |
eval $set_cc_for_build
|
|
556 | 535 |
exit(0);
|
557 | 536 |
}
|
558 | 537 |
EOF
|
559 | |
$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
|
560 | |
echo rs6000-ibm-aix3.2.5
|
|
538 |
if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
|
|
539 |
then
|
|
540 |
echo "$SYSTEM_NAME"
|
|
541 |
else
|
|
542 |
echo rs6000-ibm-aix3.2.5
|
|
543 |
fi
|
561 | 544 |
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
|
562 | 545 |
echo rs6000-ibm-aix3.2.4
|
563 | 546 |
else
|
564 | 547 |
echo rs6000-ibm-aix3.2
|
565 | 548 |
fi
|
566 | |
exit 0 ;;
|
567 | |
*:AIX:*:[45])
|
|
549 |
exit ;;
|
|
550 |
*:AIX:*:[456])
|
568 | 551 |
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
569 | 552 |
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
570 | 553 |
IBM_ARCH=rs6000
|
|
577 | 560 |
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
578 | 561 |
fi
|
579 | 562 |
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
|
580 | |
exit 0 ;;
|
|
563 |
exit ;;
|
581 | 564 |
*:AIX:*:*)
|
582 | 565 |
echo rs6000-ibm-aix
|
583 | |
exit 0 ;;
|
|
566 |
exit ;;
|
584 | 567 |
ibmrt:4.4BSD:*|romp-ibm:BSD:*)
|
585 | 568 |
echo romp-ibm-bsd4.4
|
586 | |
exit 0 ;;
|
|
569 |
exit ;;
|
587 | 570 |
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
|
588 | 571 |
echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
|
589 | |
exit 0 ;; # report: romp-ibm BSD 4.3
|
|
572 |
exit ;; # report: romp-ibm BSD 4.3
|
590 | 573 |
*:BOSX:*:*)
|
591 | 574 |
echo rs6000-bull-bosx
|
592 | |
exit 0 ;;
|
|
575 |
exit ;;
|
593 | 576 |
DPX/2?00:B.O.S.:*:*)
|
594 | 577 |
echo m68k-bull-sysv3
|
595 | |
exit 0 ;;
|
|
578 |
exit ;;
|
596 | 579 |
9000/[34]??:4.3bsd:1.*:*)
|
597 | 580 |
echo m68k-hp-bsd
|
598 | |
exit 0 ;;
|
|
581 |
exit ;;
|
599 | 582 |
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
|
600 | 583 |
echo m68k-hp-bsd4.4
|
601 | |
exit 0 ;;
|
|
584 |
exit ;;
|
602 | 585 |
9000/[34678]??:HP-UX:*:*)
|
603 | 586 |
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
604 | 587 |
case "${UNAME_MACHINE}" in
|
|
660 | 643 |
esac
|
661 | 644 |
if [ ${HP_ARCH} = "hppa2.0w" ]
|
662 | 645 |
then
|
663 | |
# avoid double evaluation of $set_cc_for_build
|
664 | |
test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
|
665 | |
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
|
|
646 |
eval $set_cc_for_build
|
|
647 |
|
|
648 |
# hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
|
|
649 |
# 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
|
|
650 |
# generating 64-bit code. GNU and HP use different nomenclature:
|
|
651 |
#
|
|
652 |
# $ CC_FOR_BUILD=cc ./config.guess
|
|
653 |
# => hppa2.0w-hp-hpux11.23
|
|
654 |
# $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
|
|
655 |
# => hppa64-hp-hpux11.23
|
|
656 |
|
|
657 |
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
|
|
658 |
grep __LP64__ >/dev/null
|
666 | 659 |
then
|
667 | 660 |
HP_ARCH="hppa2.0w"
|
668 | 661 |
else
|
|
670 | 663 |
fi
|
671 | 664 |
fi
|
672 | 665 |
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
|
673 | |
exit 0 ;;
|
|
666 |
exit ;;
|
674 | 667 |
ia64:HP-UX:*:*)
|
675 | 668 |
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
676 | 669 |
echo ia64-hp-hpux${HPUX_REV}
|
677 | |
exit 0 ;;
|
|
670 |
exit ;;
|
678 | 671 |
3050*:HI-UX:*:*)
|
679 | 672 |
eval $set_cc_for_build
|
680 | 673 |
sed 's/^ //' << EOF >$dummy.c
|
|
702 | 695 |
exit (0);
|
703 | 696 |
}
|
704 | 697 |
EOF
|
705 | |
$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
|
|
698 |
$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
|
|
699 |
{ echo "$SYSTEM_NAME"; exit; }
|
706 | 700 |
echo unknown-hitachi-hiuxwe2
|
707 | |
exit 0 ;;
|
|
701 |
exit ;;
|
708 | 702 |
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
|
709 | 703 |
echo hppa1.1-hp-bsd
|
710 | |
exit 0 ;;
|
|
704 |
exit ;;
|
711 | 705 |
9000/8??:4.3bsd:*:*)
|
712 | 706 |
echo hppa1.0-hp-bsd
|
713 | |
exit 0 ;;
|
|
707 |
exit ;;
|
714 | 708 |
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
|
715 | 709 |
echo hppa1.0-hp-mpeix
|
716 | |
exit 0 ;;
|
|
710 |
exit ;;
|
717 | 711 |
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
|
718 | 712 |
echo hppa1.1-hp-osf
|
719 | |
exit 0 ;;
|
|
713 |
exit ;;
|
720 | 714 |
hp8??:OSF1:*:*)
|
721 | 715 |
echo hppa1.0-hp-osf
|
722 | |
exit 0 ;;
|
|
716 |
exit ;;
|
723 | 717 |
i*86:OSF1:*:*)
|
724 | 718 |
if [ -x /usr/sbin/sysversion ] ; then
|
725 | 719 |
echo ${UNAME_MACHINE}-unknown-osf1mk
|
726 | 720 |
else
|
727 | 721 |
echo ${UNAME_MACHINE}-unknown-osf1
|
728 | 722 |
fi
|
729 | |
exit 0 ;;
|
|
723 |
exit ;;
|
730 | 724 |
parisc*:Lites*:*:*)
|
731 | 725 |
echo hppa1.1-hp-lites
|
732 | |
exit 0 ;;
|
|
726 |
exit ;;
|
733 | 727 |
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
734 | 728 |
echo c1-convex-bsd
|
735 | |
exit 0 ;;
|
|
729 |
exit ;;
|
736 | 730 |
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
737 | 731 |
if getsysinfo -f scalar_acc
|
738 | 732 |
then echo c32-convex-bsd
|
739 | 733 |
else echo c2-convex-bsd
|
740 | 734 |
fi
|
741 | |
exit 0 ;;
|
|
735 |
exit ;;
|
742 | 736 |
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
743 | 737 |
echo c34-convex-bsd
|
744 | |
exit 0 ;;
|
|
738 |
exit ;;
|
745 | 739 |
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
746 | 740 |
echo c38-convex-bsd
|
747 | |
exit 0 ;;
|
|
741 |
exit ;;
|
748 | 742 |
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
749 | 743 |
echo c4-convex-bsd
|
750 | |
exit 0 ;;
|
|
744 |
exit ;;
|
751 | 745 |
CRAY*Y-MP:*:*:*)
|
752 | 746 |
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
753 | |
exit 0 ;;
|
|
747 |
exit ;;
|
754 | 748 |
CRAY*[A-Z]90:*:*:*)
|
755 | 749 |
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
|
756 | 750 |
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
|
757 | 751 |
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
|
758 | 752 |
-e 's/\.[^.]*$/.X/'
|
759 | |
exit 0 ;;
|
|
753 |
exit ;;
|
760 | 754 |
CRAY*TS:*:*:*)
|
761 | 755 |
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
762 | |
exit 0 ;;
|
|
756 |
exit ;;
|
763 | 757 |
CRAY*T3E:*:*:*)
|
764 | 758 |
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
765 | |
exit 0 ;;
|
|
759 |
exit ;;
|
766 | 760 |
CRAY*SV1:*:*:*)
|
767 | 761 |
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
768 | |
exit 0 ;;
|
|
762 |
exit ;;
|
769 | 763 |
*:UNICOS/mp:*:*)
|
770 | |
echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
771 | |
exit 0 ;;
|
|
764 |
echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|
765 |
exit ;;
|
772 | 766 |
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
773 | 767 |
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
774 | 768 |
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
775 | 769 |
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
776 | 770 |
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
777 | |
exit 0 ;;
|
|
771 |
exit ;;
|
778 | 772 |
5000:UNIX_System_V:4.*:*)
|
779 | 773 |
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
780 | 774 |
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
781 | 775 |
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
782 | |
exit 0 ;;
|
|
776 |
exit ;;
|
783 | 777 |
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
784 | 778 |
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
785 | |
exit 0 ;;
|
|
779 |
exit ;;
|
786 | 780 |
sparc*:BSD/OS:*:*)
|
787 | 781 |
echo sparc-unknown-bsdi${UNAME_RELEASE}
|
788 | |
exit 0 ;;
|
|
782 |
exit ;;
|
789 | 783 |
*:BSD/OS:*:*)
|
790 | 784 |
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
791 | |
exit 0 ;;
|
|
785 |
exit ;;
|
792 | 786 |
*:FreeBSD:*:*)
|
793 | |
# Determine whether the default compiler uses glibc.
|
794 | |
eval $set_cc_for_build
|
795 | |
sed 's/^ //' << EOF >$dummy.c
|
796 | |
#include <features.h>
|
797 | |
#if __GLIBC__ >= 2
|
798 | |
LIBC=gnu
|
799 | |
#else
|
800 | |
LIBC=
|
801 | |
#endif
|
802 | |
EOF
|
803 | |
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
|
804 | |
# GNU/KFreeBSD systems have a "k" prefix to indicate we are using
|
805 | |
# FreeBSD's kernel, but not the complete OS.
|
806 | |
case ${LIBC} in gnu) kernel_only='k' ;; esac
|
807 | |
echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
|
808 | |
exit 0 ;;
|
|
787 |
case ${UNAME_MACHINE} in
|
|
788 |
pc98)
|
|
789 |
echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
|
790 |
amd64)
|
|
791 |
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
|
792 |
*)
|
|
793 |
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
|
794 |
esac
|
|
795 |
exit ;;
|
809 | 796 |
i*:CYGWIN*:*)
|
810 | 797 |
echo ${UNAME_MACHINE}-pc-cygwin
|
811 | |
exit 0 ;;
|
812 | |
i*:MINGW*:*)
|
|
798 |
exit ;;
|
|
799 |
*:MINGW*:*)
|
813 | 800 |
echo ${UNAME_MACHINE}-pc-mingw32
|
814 | |
exit 0 ;;
|
|
801 |
exit ;;
|
|
802 |
i*:windows32*:*)
|
|
803 |
# uname -m includes "-pc" on this system.
|
|
804 |
echo ${UNAME_MACHINE}-mingw32
|
|
805 |
exit ;;
|
815 | 806 |
i*:PW*:*)
|
816 | 807 |
echo ${UNAME_MACHINE}-pc-pw32
|
817 | |
exit 0 ;;
|
818 | |
x86:Interix*:[34]*)
|
819 | |
echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
|
820 | |
exit 0 ;;
|
|
808 |
exit ;;
|
|
809 |
*:Interix*:[3456]*)
|
|
810 |
case ${UNAME_MACHINE} in
|
|
811 |
x86)
|
|
812 |
echo i586-pc-interix${UNAME_RELEASE}
|
|
813 |
exit ;;
|
|
814 |
EM64T | authenticamd | genuineintel)
|
|
815 |
echo x86_64-unknown-interix${UNAME_RELEASE}
|
|
816 |
exit ;;
|
|
817 |
IA64)
|
|
818 |
echo ia64-unknown-interix${UNAME_RELEASE}
|
|
819 |
exit ;;
|
|
820 |
esac ;;
|
821 | 821 |
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
822 | 822 |
echo i${UNAME_MACHINE}-pc-mks
|
823 | |
exit 0 ;;
|
|
823 |
exit ;;
|
824 | 824 |
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
825 | 825 |
# How do we know it's Interix rather than the generic POSIX subsystem?
|
826 | 826 |
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
827 | 827 |
# UNAME_MACHINE based on the output of uname instead of i386?
|
828 | 828 |
echo i586-pc-interix
|
829 | |
exit 0 ;;
|
|
829 |
exit ;;
|
830 | 830 |
i*:UWIN*:*)
|
831 | 831 |
echo ${UNAME_MACHINE}-pc-uwin
|
832 | |
exit 0 ;;
|
|
832 |
exit ;;
|
|
833 |
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
|
|
834 |
echo x86_64-unknown-cygwin
|
|
835 |
exit ;;
|
833 | 836 |
p*:CYGWIN*:*)
|
834 | 837 |
echo powerpcle-unknown-cygwin
|
835 | |
exit 0 ;;
|
|
838 |
exit ;;
|
836 | 839 |
prep*:SunOS:5.*:*)
|
837 | 840 |
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
838 | |
exit 0 ;;
|
|
841 |
exit ;;
|
839 | 842 |
*:GNU:*:*)
|
840 | 843 |
# the GNU system
|
841 | 844 |
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
842 | |
exit 0 ;;
|
|
845 |
exit ;;
|
843 | 846 |
*:GNU/*:*:*)
|
844 | 847 |
# other systems with GNU libc and userland
|
845 | 848 |
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
|
846 | |
exit 0 ;;
|
|
849 |
exit ;;
|
847 | 850 |
i*86:Minix:*:*)
|
848 | 851 |
echo ${UNAME_MACHINE}-pc-minix
|
849 | |
exit 0 ;;
|
|
852 |
exit ;;
|
850 | 853 |
arm*:Linux:*:*)
|
|
854 |
eval $set_cc_for_build
|
|
855 |
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
|
856 |
| grep -q __ARM_EABI__
|
|
857 |
then
|
|
858 |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
859 |
else
|
|
860 |
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
|
|
861 |
fi
|
|
862 |
exit ;;
|
|
863 |
avr32*:Linux:*:*)
|
851 | 864 |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
852 | |
exit 0 ;;
|
|
865 |
exit ;;
|
853 | 866 |
cris:Linux:*:*)
|
854 | 867 |
echo cris-axis-linux-gnu
|
855 | |
exit 0 ;;
|
|
868 |
exit ;;
|
|
869 |
crisv32:Linux:*:*)
|
|
870 |
echo crisv32-axis-linux-gnu
|
|
871 |
exit ;;
|
|
872 |
frv:Linux:*:*)
|
|
873 |
echo frv-unknown-linux-gnu
|
|
874 |
exit ;;
|
856 | 875 |
ia64:Linux:*:*)
|
857 | 876 |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
858 | |
exit 0 ;;
|
|
877 |
exit ;;
|
859 | 878 |
m32r*:Linux:*:*)
|
860 | 879 |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
861 | |
exit 0 ;;
|
|
880 |
exit ;;
|
862 | 881 |
m68*:Linux:*:*)
|
863 | 882 |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
864 | |
exit 0 ;;
|
|
883 |
exit ;;
|
865 | 884 |
mips:Linux:*:*)
|
866 | 885 |
eval $set_cc_for_build
|
867 | 886 |
sed 's/^ //' << EOF >$dummy.c
|
|
878 | 897 |
#endif
|
879 | 898 |
#endif
|
880 | 899 |
EOF
|
881 | |
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
|
882 | |
test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
|
|
900 |
eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
|
901 |
/^CPU/{
|
|
902 |
s: ::g
|
|
903 |
p
|
|
904 |
}'`"
|
|
905 |
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
883 | 906 |
;;
|
884 | 907 |
mips64:Linux:*:*)
|
885 | 908 |
eval $set_cc_for_build
|
|
897 | 920 |
#endif
|
898 | 921 |
#endif
|
899 | 922 |
EOF
|
900 | |
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
|
901 | |
test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
|
|
923 |
eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
|
924 |
/^CPU/{
|
|
925 |
s: ::g
|
|
926 |
p
|
|
927 |
}'`"
|
|
928 |
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
902 | 929 |
;;
|
|
930 |
or32:Linux:*:*)
|
|
931 |
echo or32-unknown-linux-gnu
|
|
932 |
exit ;;
|
903 | 933 |
ppc:Linux:*:*)
|
904 | 934 |
echo powerpc-unknown-linux-gnu
|
905 | |
exit 0 ;;
|
|
935 |
exit ;;
|
906 | 936 |
ppc64:Linux:*:*)
|
907 | 937 |
echo powerpc64-unknown-linux-gnu
|
908 | |
exit 0 ;;
|
|
938 |
exit ;;
|
909 | 939 |
alpha:Linux:*:*)
|
910 | 940 |
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
911 | 941 |
EV5) UNAME_MACHINE=alphaev5 ;;
|
|
919 | 949 |
objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
|
920 | 950 |
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
921 | 951 |
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
922 | |
exit 0 ;;
|
|
952 |
exit ;;
|
|
953 |
padre:Linux:*:*)
|
|
954 |
echo sparc-unknown-linux-gnu
|
|
955 |
exit ;;
|
923 | 956 |
parisc:Linux:*:* | hppa:Linux:*:*)
|
924 | 957 |
# Look for CPU level
|
925 | 958 |
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
|
927 | 960 |
PA8*) echo hppa2.0-unknown-linux-gnu ;;
|
928 | 961 |
*) echo hppa-unknown-linux-gnu ;;
|
929 | 962 |
esac
|
930 | |
exit 0 ;;
|
|
963 |
exit ;;
|
931 | 964 |
parisc64:Linux:*:* | hppa64:Linux:*:*)
|
932 | 965 |
echo hppa64-unknown-linux-gnu
|
933 | |
exit 0 ;;
|
|
966 |
exit ;;
|
934 | 967 |
s390:Linux:*:* | s390x:Linux:*:*)
|
935 | 968 |
echo ${UNAME_MACHINE}-ibm-linux
|
936 | |
exit 0 ;;
|
|
969 |
exit ;;
|
937 | 970 |
sh64*:Linux:*:*)
|
938 | 971 |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
939 | |
exit 0 ;;
|
|
972 |
exit ;;
|
940 | 973 |
sh*:Linux:*:*)
|
941 | 974 |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
942 | |
exit 0 ;;
|
|
975 |
exit ;;
|
943 | 976 |
sparc:Linux:*:* | sparc64:Linux:*:*)
|
944 | 977 |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
945 | |
exit 0 ;;
|
|
978 |
exit ;;
|
|
979 |
vax:Linux:*:*)
|
|
980 |
echo ${UNAME_MACHINE}-dec-linux-gnu
|
|
981 |
exit ;;
|
946 | 982 |
x86_64:Linux:*:*)
|
947 | 983 |
echo x86_64-unknown-linux-gnu
|
948 | |
exit 0 ;;
|
|
984 |
exit ;;
|
|
985 |
xtensa*:Linux:*:*)
|
|
986 |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
987 |
exit ;;
|
949 | 988 |
i*86:Linux:*:*)
|
950 | 989 |
# The BFD linker knows what the default object file format is, so
|
951 | 990 |
# first see if it will tell us. cd to the root directory to prevent
|
|
963 | 1002 |
;;
|
964 | 1003 |
a.out-i386-linux)
|
965 | 1004 |
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
966 | |
exit 0 ;;
|
967 | |
coff-i386)
|
968 | |
echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
969 | |
exit 0 ;;
|
|
1005 |
exit ;;
|
970 | 1006 |
"")
|
971 | 1007 |
# Either a pre-BFD a.out linker (linux-gnuoldld) or
|
972 | 1008 |
# one that does not give us useful --help.
|
973 | 1009 |
echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
|
974 | |
exit 0 ;;
|
|
1010 |
exit ;;
|
975 | 1011 |
esac
|
976 | 1012 |
# Determine whether the default compiler is a.out or elf
|
977 | 1013 |
eval $set_cc_for_build
|
|
988 | 1024 |
LIBC=gnulibc1
|
989 | 1025 |
# endif
|
990 | 1026 |
#else
|
991 | |
#ifdef __INTEL_COMPILER
|
|
1027 |
#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
|
992 | 1028 |
LIBC=gnu
|
993 | 1029 |
#else
|
994 | 1030 |
LIBC=gnuaout
|
|
998 | 1034 |
LIBC=dietlibc
|
999 | 1035 |
#endif
|
1000 | 1036 |
EOF
|
1001 | |
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
|
1002 | |
test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
|
1003 | |
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
|
|
1037 |
eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
|
1038 |
/^LIBC/{
|
|
1039 |
s: ::g
|
|
1040 |
p
|
|
1041 |
}'`"
|
|
1042 |
test x"${LIBC}" != x && {
|
|
1043 |
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
|
|
1044 |
exit
|
|
1045 |
}
|
|
1046 |
test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
|
1004 | 1047 |
;;
|
1005 | 1048 |
i*86:DYNIX/ptx:4*:*)
|
1006 | 1049 |
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
1007 | 1050 |
# earlier versions are messed up and put the nodename in both
|
1008 | 1051 |
# sysname and nodename.
|
1009 | 1052 |
echo i386-sequent-sysv4
|
1010 | |
exit 0 ;;
|
|
1053 |
exit ;;
|
1011 | 1054 |
i*86:UNIX_SV:4.2MP:2.*)
|
1012 | 1055 |
# Unixware is an offshoot of SVR4, but it has its own version
|
1013 | 1056 |
# number series starting with 2...
|
|
1015 | 1058 |
# I just have to hope. -- rms.
|
1016 | 1059 |
# Use sysv4.2uw... so that sysv4* matches it.
|
1017 | 1060 |
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
1018 | |
exit 0 ;;
|
|
1061 |
exit ;;
|
1019 | 1062 |
i*86:OS/2:*:*)
|
1020 | 1063 |
# If we were able to find `uname', then EMX Unix compatibility
|
1021 | 1064 |
# is probably installed.
|
1022 | 1065 |
echo ${UNAME_MACHINE}-pc-os2-emx
|
1023 | |
exit 0 ;;
|
|
1066 |
exit ;;
|
1024 | 1067 |
i*86:XTS-300:*:STOP)
|
1025 | 1068 |
echo ${UNAME_MACHINE}-unknown-stop
|
1026 | |
exit 0 ;;
|
|
1069 |
exit ;;
|
1027 | 1070 |
i*86:atheos:*:*)
|
1028 | 1071 |
echo ${UNAME_MACHINE}-unknown-atheos
|
1029 | |
exit 0 ;;
|
1030 | |
i*86:syllable:*:*)
|
|
1072 |
exit ;;
|
|
1073 |
i*86:syllable:*:*)
|
1031 | 1074 |
echo ${UNAME_MACHINE}-pc-syllable
|
1032 | |
exit 0 ;;
|
|
1075 |
exit ;;
|
1033 | 1076 |
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
|
1034 | 1077 |
echo i386-unknown-lynxos${UNAME_RELEASE}
|
1035 | |
exit 0 ;;
|
|
1078 |
exit ;;
|
1036 | 1079 |
i*86:*DOS:*:*)
|
1037 | 1080 |
echo ${UNAME_MACHINE}-pc-msdosdjgpp
|
1038 | |
exit 0 ;;
|
|
1081 |
exit ;;
|
1039 | 1082 |
i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
|
1040 | 1083 |
UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
|
1041 | 1084 |
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
|
|
1043 | 1086 |
else
|
1044 | 1087 |
echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
|
1045 | 1088 |
fi
|
1046 | |
exit 0 ;;
|
1047 | |
i*86:*:5:[78]*)
|
|
1089 |
exit ;;
|
|
1090 |
i*86:*:5:[678]*)
|
|
1091 |
# UnixWare 7.x, OpenUNIX and OpenServer 6.
|
1048 | 1092 |
case `/bin/uname -X | grep "^Machine"` in
|
1049 | 1093 |
*486*) UNAME_MACHINE=i486 ;;
|
1050 | 1094 |
*Pentium) UNAME_MACHINE=i586 ;;
|
1051 | 1095 |
*Pent*|*Celeron) UNAME_MACHINE=i686 ;;
|
1052 | 1096 |
esac
|
1053 | 1097 |
echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
|
1054 | |
exit 0 ;;
|
|
1098 |
exit ;;
|
1055 | 1099 |
i*86:*:3.2:*)
|
1056 | 1100 |
if test -f /usr/options/cb.name; then
|
1057 | 1101 |
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
|
|
1069 | 1113 |
else
|
1070 | 1114 |
echo ${UNAME_MACHINE}-pc-sysv32
|
1071 | 1115 |
fi
|
1072 | |
exit 0 ;;
|
|
1116 |
exit ;;
|
1073 | 1117 |
pc:*:*:*)
|
1074 | 1118 |
# Left here for compatibility:
|
1075 | 1119 |
# uname -m prints for DJGPP always 'pc', but it prints nothing about
|
1076 | |
# the processor, so we play safe by assuming i386.
|
1077 | |
echo i386-pc-msdosdjgpp
|
1078 | |
exit 0 ;;
|
|
1120 |
# the processor, so we play safe by assuming i586.
|
|
1121 |
# Note: whatever this is, it MUST be the same as what config.sub
|
|
1122 |
# prints for the "djgpp" host, or else GDB configury will decide that
|
|
1123 |
# this is a cross-build.
|
|
1124 |
echo i586-pc-msdosdjgpp
|
|
1125 |
exit ;;
|
1079 | 1126 |
Intel:Mach:3*:*)
|
1080 | 1127 |
echo i386-pc-mach3
|
1081 | |
exit 0 ;;
|
|
1128 |
exit ;;
|
1082 | 1129 |
paragon:*:*:*)
|
1083 | 1130 |
echo i860-intel-osf1
|
1084 | |
exit 0 ;;
|
|
1131 |
exit ;;
|
1085 | 1132 |
i860:*:4.*:*) # i860-SVR4
|
1086 | 1133 |
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
|
1087 | 1134 |
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
|
1088 | 1135 |
else # Add other i860-SVR4 vendors below as they are discovered.
|
1089 | 1136 |
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
|
1090 | 1137 |
fi
|
1091 | |
exit 0 ;;
|
|
1138 |
exit ;;
|
1092 | 1139 |
mini*:CTIX:SYS*5:*)
|
1093 | 1140 |
# "miniframe"
|
1094 | 1141 |
echo m68010-convergent-sysv
|
1095 | |
exit 0 ;;
|
|
1142 |
exit ;;
|
1096 | 1143 |
mc68k:UNIX:SYSTEM5:3.51m)
|
1097 | 1144 |
echo m68k-convergent-sysv
|
1098 | |
exit 0 ;;
|
|
1145 |
exit ;;
|
1099 | 1146 |
M680?0:D-NIX:5.3:*)
|
1100 | 1147 |
echo m68k-diab-dnix
|
1101 | |
exit 0 ;;
|
|
1148 |
exit ;;
|
1102 | 1149 |
M68*:*:R3V[5678]*:*)
|
1103 | |
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
|
1104 | |
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)
|
|
1150 |
test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
|
|
1151 |
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)
|
1105 | 1152 |
OS_REL=''
|
1106 | 1153 |
test -r /etc/.relid \
|
1107 | 1154 |
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
1108 | 1155 |
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
1109 | |
&& echo i486-ncr-sysv4.3${OS_REL} && exit 0
|
|
1156 |
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; }
|
1110 | 1157 |
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
1111 | |
&& echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
|
|
1158 |
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
1112 | 1159 |
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
1113 | 1160 |
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
1114 | |
&& echo i486-ncr-sysv4 && exit 0 ;;
|
|
1161 |
&& { echo i486-ncr-sysv4; exit; } ;;
|
|
1162 |
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
|
|
1163 |
OS_REL='.3'
|
|
1164 |
test -r /etc/.relid \
|
|
1165 |
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
|
1166 |
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
|
1167 |
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; }
|
|
1168 |
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
|
1169 |
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; }
|
|
1170 |
/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
|
|
1171 |
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
1115 | 1172 |
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
1116 | 1173 |
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
1117 | |
exit 0 ;;
|
|
1174 |
exit ;;
|
1118 | 1175 |
mc68030:UNIX_System_V:4.*:*)
|
1119 | 1176 |
echo m68k-atari-sysv4
|
1120 | |
exit 0 ;;
|
|
1177 |
exit ;;
|
1121 | 1178 |
TSUNAMI:LynxOS:2.*:*)
|
1122 | 1179 |
echo sparc-unknown-lynxos${UNAME_RELEASE}
|
1123 | |
exit 0 ;;
|
|
1180 |
exit ;;
|
1124 | 1181 |
rs6000:LynxOS:2.*:*)
|
1125 | 1182 |
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
1126 | |
exit 0 ;;
|
|
1183 |
exit ;;
|
1127 | 1184 |
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
|
1128 | 1185 |
echo powerpc-unknown-lynxos${UNAME_RELEASE}
|
1129 | |
exit 0 ;;
|
|
1186 |
exit ;;
|
1130 | 1187 |
SM[BE]S:UNIX_SV:*:*)
|
1131 | 1188 |
echo mips-dde-sysv${UNAME_RELEASE}
|
1132 | |
exit 0 ;;
|
|
1189 |
exit ;;
|
1133 | 1190 |
RM*:ReliantUNIX-*:*:*)
|
1134 | 1191 |
echo mips-sni-sysv4
|
1135 | |
exit 0 ;;
|
|
1192 |
exit ;;
|
1136 | 1193 |
RM*:SINIX-*:*:*)
|
1137 | 1194 |
echo mips-sni-sysv4
|
1138 | |
exit 0 ;;
|
|
1195 |
exit ;;
|
1139 | 1196 |
*:SINIX-*:*:*)
|
1140 | 1197 |
if uname -p 2>/dev/null >/dev/null ; then
|
1141 | 1198 |
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
|
1143 | 1200 |
else
|
1144 | 1201 |
echo ns32k-sni-sysv
|
1145 | 1202 |
fi
|
1146 | |
exit 0 ;;
|
|
1203 |
exit ;;
|
1147 | 1204 |
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
1148 | 1205 |
# says <Richard.M.Bartel@ccMail.Census.GOV>
|
1149 | 1206 |
echo i586-unisys-sysv4
|
1150 | |
exit 0 ;;
|
|
1207 |
exit ;;
|
1151 | 1208 |
*:UNIX_System_V:4*:FTX*)
|
1152 | 1209 |
# From Gerald Hewes <hewes@openmarket.com>.
|
1153 | 1210 |
# How about differentiating between stratus architectures? -djm
|
1154 | 1211 |
echo hppa1.1-stratus-sysv4
|
1155 | |
exit 0 ;;
|
|
1212 |
exit ;;
|
1156 | 1213 |
*:*:*:FTX*)
|
1157 | 1214 |
# From seanf@swdc.stratus.com.
|
1158 | 1215 |
echo i860-stratus-sysv4
|
1159 | |
exit 0 ;;
|
|
1216 |
exit ;;
|
|
1217 |
i*86:VOS:*:*)
|
|
1218 |
# From Paul.Green@stratus.com.
|
|
1219 |
echo ${UNAME_MACHINE}-stratus-vos
|
|
1220 |
exit ;;
|
1160 | 1221 |
*:VOS:*:*)
|
1161 | 1222 |
# From Paul.Green@stratus.com.
|
1162 | 1223 |
echo hppa1.1-stratus-vos
|
1163 | |
exit 0 ;;
|
|
1224 |
exit ;;
|
1164 | 1225 |
mc68*:A/UX:*:*)
|
1165 | 1226 |
echo m68k-apple-aux${UNAME_RELEASE}
|
1166 | |
exit 0 ;;
|
|
1227 |
exit ;;
|
1167 | 1228 |
news*:NEWS-OS:6*:*)
|
1168 | 1229 |
echo mips-sony-newsos6
|
1169 | |
exit 0 ;;
|
|
1230 |
exit ;;
|
1170 | 1231 |
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
1171 | 1232 |
if [ -d /usr/nec ]; then
|
1172 | 1233 |
echo mips-nec-sysv${UNAME_RELEASE}
|
1173 | 1234 |
else
|
1174 | 1235 |
echo mips-unknown-sysv${UNAME_RELEASE}
|
1175 | 1236 |
fi
|
1176 | |
exit 0 ;;
|
|
1237 |
exit ;;
|
1177 | 1238 |
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
|
1178 | 1239 |
echo powerpc-be-beos
|
1179 | |
exit 0 ;;
|
|
1240 |
exit ;;
|
1180 | 1241 |
BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
|
1181 | 1242 |
echo powerpc-apple-beos
|
1182 | |
exit 0 ;;
|
|
1243 |
exit ;;
|
1183 | 1244 |
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
1184 | 1245 |
echo i586-pc-beos
|
1185 | |
exit 0 ;;
|
|
1246 |
exit ;;
|
|
1247 |
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
|
|
1248 |
echo i586-pc-haiku
|
|
1249 |
exit ;;
|
1186 | 1250 |
SX-4:SUPER-UX:*:*)
|
1187 | 1251 |
echo sx4-nec-superux${UNAME_RELEASE}
|
1188 | |
exit 0 ;;
|
|
1252 |
exit ;;
|
1189 | 1253 |
SX-5:SUPER-UX:*:*)
|
1190 | 1254 |
echo sx5-nec-superux${UNAME_RELEASE}
|
1191 | |
exit 0 ;;
|
|
1255 |
exit ;;
|
1192 | 1256 |
SX-6:SUPER-UX:*:*)
|
1193 | 1257 |
echo sx6-nec-superux${UNAME_RELEASE}
|
1194 | |
exit 0 ;;
|
|
1258 |
exit ;;
|
|
1259 |
SX-7:SUPER-UX:*:*)
|
|
1260 |
echo sx7-nec-superux${UNAME_RELEASE}
|
|
1261 |
exit ;;
|
|
1262 |
SX-8:SUPER-UX:*:*)
|
|
1263 |
echo sx8-nec-superux${UNAME_RELEASE}
|
|
1264 |
exit ;;
|
|
1265 |
SX-8R:SUPER-UX:*:*)
|
|
1266 |
echo sx8r-nec-superux${UNAME_RELEASE}
|
|
1267 |
exit ;;
|
1195 | 1268 |
Power*:Rhapsody:*:*)
|
1196 | 1269 |
echo powerpc-apple-rhapsody${UNAME_RELEASE}
|
1197 | |
exit 0 ;;
|
|
1270 |
exit ;;
|
1198 | 1271 |
*:Rhapsody:*:*)
|
1199 | 1272 |
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
|
1200 | |
exit 0 ;;
|
|
1273 |
exit ;;
|
1201 | 1274 |
*:Darwin:*:*)
|
1202 | |
case `uname -p` in
|
1203 | |
*86) UNAME_PROCESSOR=i686 ;;
|
1204 | |
powerpc) UNAME_PROCESSOR=powerpc ;;
|
|
1275 |
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
|
|
1276 |
case $UNAME_PROCESSOR in
|
|
1277 |
unknown) UNAME_PROCESSOR=powerpc ;;
|
1205 | 1278 |
esac
|
1206 | 1279 |
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
|
1207 | |
exit 0 ;;
|
|
1280 |
exit ;;
|
1208 | 1281 |
*:procnto*:*:* | *:QNX:[0123456789]*:*)
|
1209 | 1282 |
UNAME_PROCESSOR=`uname -p`
|
1210 | 1283 |
if test "$UNAME_PROCESSOR" = "x86"; then
|
|
1212 | 1285 |
UNAME_MACHINE=pc
|
1213 | 1286 |
fi
|
1214 | 1287 |
echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
|
1215 | |
exit 0 ;;
|
|
1288 |
exit ;;
|
1216 | 1289 |
*:QNX:*:4*)
|
1217 | 1290 |
echo i386-pc-qnx
|
1218 | |
exit 0 ;;
|
|
1291 |
exit ;;
|
|
1292 |
NSE-?:NONSTOP_KERNEL:*:*)
|
|
1293 |
echo nse-tandem-nsk${UNAME_RELEASE}
|
|
1294 |
exit ;;
|
1219 | 1295 |
NSR-?:NONSTOP_KERNEL:*:*)
|
1220 | 1296 |
echo nsr-tandem-nsk${UNAME_RELEASE}
|
1221 | |
exit 0 ;;
|
|
1297 |
exit ;;
|
1222 | 1298 |
*:NonStop-UX:*:*)
|
1223 | 1299 |
echo mips-compaq-nonstopux
|
1224 | |
exit 0 ;;
|
|
1300 |
exit ;;
|
1225 | 1301 |
BS2000:POSIX*:*:*)
|
1226 | 1302 |
echo bs2000-siemens-sysv
|
1227 | |
exit 0 ;;
|
|
1303 |
exit ;;
|
1228 | 1304 |
DS/*:UNIX_System_V:*:*)
|
1229 | 1305 |
echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
|
1230 | |
exit 0 ;;
|
|
1306 |
exit ;;
|
1231 | 1307 |
*:Plan9:*:*)
|
1232 | 1308 |
# "uname -m" is not consistent, so use $cputype instead. 386
|
1233 | 1309 |
# is converted to i386 for consistency with other x86
|
|
1238 | 1314 |
UNAME_MACHINE="$cputype"
|
1239 | 1315 |
fi
|
1240 | 1316 |
echo ${UNAME_MACHINE}-unknown-plan9
|
1241 | |
exit 0 ;;
|
|
1317 |
exit ;;
|
1242 | 1318 |
*:TOPS-10:*:*)
|
1243 | 1319 |
echo pdp10-unknown-tops10
|
1244 | |
exit 0 ;;
|
|
1320 |
exit ;;
|
1245 | 1321 |
*:TENEX:*:*)
|
1246 | 1322 |
echo pdp10-unknown-tenex
|
1247 | |
exit 0 ;;
|
|
1323 |
exit ;;
|
1248 | 1324 |
KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
|
1249 | 1325 |
echo pdp10-dec-tops20
|
1250 | |
exit 0 ;;
|
|
1326 |
exit ;;
|
1251 | 1327 |
XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
|
1252 | 1328 |
echo pdp10-xkl-tops20
|
1253 | |
exit 0 ;;
|
|
1329 |
exit ;;
|
1254 | 1330 |
*:TOPS-20:*:*)
|
1255 | 1331 |
echo pdp10-unknown-tops20
|
1256 | |
exit 0 ;;
|
|
1332 |
exit ;;
|
1257 | 1333 |
*:ITS:*:*)
|
1258 | 1334 |
echo pdp10-unknown-its
|
1259 | |
exit 0 ;;
|
|
1335 |
exit ;;
|
1260 | 1336 |
SEI:*:*:SEIUX)
|
1261 | 1337 |
echo mips-sei-seiux${UNAME_RELEASE}
|
1262 | |
exit 0 ;;
|
|
1338 |
exit ;;
|
1263 | 1339 |
*:DragonFly:*:*)
|
1264 | 1340 |
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
1265 | |
exit 0 ;;
|
|
1341 |
exit ;;
|
|
1342 |
*:*VMS:*:*)
|
|
1343 |
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
|
1344 |
case "${UNAME_MACHINE}" in
|
|
1345 |
A*) echo alpha-dec-vms ; exit ;;
|
|
1346 |
I*) echo ia64-dec-vms ; exit ;;
|
|
1347 |
V*) echo vax-dec-vms ; exit ;;
|
|
1348 |
esac ;;
|
|
1349 |
*:XENIX:*:SysV)
|
|
1350 |
echo i386-pc-xenix
|
|
1351 |
exit ;;
|
|
1352 |
i*86:skyos:*:*)
|
|
1353 |
echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
|
|
1354 |
exit ;;
|
|
1355 |
i*86:rdos:*:*)
|
|
1356 |
echo ${UNAME_MACHINE}-pc-rdos
|
|
1357 |
exit ;;
|
|
1358 |
i*86:AROS:*:*)
|
|
1359 |
echo ${UNAME_MACHINE}-pc-aros
|
|
1360 |
exit ;;
|
1266 | 1361 |
esac
|
1267 | 1362 |
|
1268 | 1363 |
#echo '(No uname command or uname output not recognized.)' 1>&2
|
|
1294 | 1389 |
#endif
|
1295 | 1390 |
|
1296 | 1391 |
#if defined (__arm) && defined (__acorn) && defined (__unix)
|
1297 | |
printf ("arm-acorn-riscix"); exit (0);
|
|
1392 |
printf ("arm-acorn-riscix\n"); exit (0);
|
1298 | 1393 |
#endif
|
1299 | 1394 |
|
1300 | 1395 |
#if defined (hp300) && !defined (hpux)
|
|
1383 | 1478 |
}
|
1384 | 1479 |
EOF
|
1385 | 1480 |
|
1386 | |
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
|
|
1481 |
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
|
|
1482 |
{ echo "$SYSTEM_NAME"; exit; }
|
1387 | 1483 |
|
1388 | 1484 |
# Apollos put the system type in the environment.
|
1389 | 1485 |
|
1390 | |
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
|
|
1486 |
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
|
1391 | 1487 |
|
1392 | 1488 |
# Convex versions that predate uname can use getsysinfo(1)
|
1393 | 1489 |
|
|
1396 | 1492 |
case `getsysinfo -f cpu_type` in
|
1397 | 1493 |
c1*)
|
1398 | 1494 |
echo c1-convex-bsd
|
1399 | |
exit 0 ;;
|
|
1495 |
exit ;;
|
1400 | 1496 |
c2*)
|
1401 | 1497 |
if getsysinfo -f scalar_acc
|
1402 | 1498 |
then echo c32-convex-bsd
|
1403 | 1499 |
else echo c2-convex-bsd
|
1404 | 1500 |
fi
|
1405 | |
exit 0 ;;
|
|
1501 |
exit ;;
|
1406 | 1502 |
c34*)
|
1407 | 1503 |
echo c34-convex-bsd
|
1408 | |
exit 0 ;;
|
|
1504 |
exit ;;
|
1409 | 1505 |
c38*)
|
1410 | 1506 |
echo c38-convex-bsd
|
1411 | |
exit 0 ;;
|
|
1507 |
exit ;;
|
1412 | 1508 |
c4*)
|
1413 | 1509 |
echo c4-convex-bsd
|
1414 | |
exit 0 ;;
|
|
1510 |
exit ;;
|
1415 | 1511 |
esac
|
1416 | 1512 |
fi
|
1417 | 1513 |
|
|
1422 | 1518 |
the operating system you are using. It is advised that you
|
1423 | 1519 |
download the most up to date version of the config scripts from
|
1424 | 1520 |
|
1425 | |
ftp://ftp.gnu.org/pub/gnu/config/
|
|
1521 |
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
|
1522 |
and
|
|
1523 |
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
|
1426 | 1524 |
|
1427 | 1525 |
If the version you run ($0) is already up to date, please
|
1428 | 1526 |
send the following data and any information you think might be
|