2
2
# Attempt to guess a canonical system name.
3
# Copyright 1992-2013 Free Software Foundation, Inc.
3
# Copyright 1992-2014 Free Software Foundation, Inc.
7
7
# This file is free software; you can redistribute it and/or modify it
8
8
# under the terms of the GNU General Public License as published by
50
50
GNU config.guess ($timestamp)
52
52
Originally written by Per Bothner.
53
Copyright 1992-2013 Free Software Foundation, Inc.
53
Copyright 1992-2014 Free Software Foundation, Inc.
55
55
This is free software; see the source for copying conditions. There is NO
56
56
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
969
969
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
970
970
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
973
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
973
echo or1k-unknown-linux-${LIBC}
975
or32:Linux:*:* | or1k*:Linux:*:*)
976
976
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1374
eval $set_cc_for_build
1377
# include <sys/types.h>
1378
# include <sys/utsname.h>
1383
#if defined (MIPSEB)
1384
/* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1386
printf ("mips-sony-bsd\n"); exit (0);
1388
#include <sys/param.h>
1389
printf ("m68k-sony-newsos%s\n",
1399
#if defined (__arm) && defined (__acorn) && defined (__unix)
1400
printf ("arm-acorn-riscix\n"); exit (0);
1403
#if defined (hp300) && !defined (hpux)
1404
printf ("m68k-hp-bsd\n"); exit (0);
1408
#if !defined (__ARCHITECTURE__)
1409
#define __ARCHITECTURE__ "m68k"
1412
version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1414
printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1416
printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1420
#if defined (MULTIMAX) || defined (n16)
1422
printf ("ns32k-encore-sysv\n"); exit (0);
1425
printf ("ns32k-encore-mach\n"); exit (0);
1427
printf ("ns32k-encore-bsd\n"); exit (0);
1432
#if defined (__386BSD__)
1433
printf ("i386-pc-bsd\n"); exit (0);
1436
#if defined (sequent)
1438
printf ("i386-sequent-dynix\n"); exit (0);
1440
#if defined (ns32000)
1441
printf ("ns32k-sequent-dynix\n"); exit (0);
1445
#if defined (_SEQUENT_)
1450
if (strncmp(un.version, "V2", 2) == 0) {
1451
printf ("i386-sequent-ptx2\n"); exit (0);
1453
if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1454
printf ("i386-sequent-ptx1\n"); exit (0);
1456
printf ("i386-sequent-ptx\n"); exit (0);
1461
# if !defined (ultrix)
1462
# include <sys/param.h>
1465
printf ("vax-dec-bsd4.3\n"); exit (0);
1468
printf ("vax-dec-bsd4.3reno\n"); exit (0);
1470
printf ("vax-dec-bsd\n"); exit (0);
1474
printf ("vax-dec-bsd\n"); exit (0);
1477
printf ("vax-dec-ultrix\n"); exit (0);
1481
#if defined (alliant) && defined (i860)
1482
printf ("i860-alliant-bsd\n"); exit (0);
1489
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1490
{ echo "$SYSTEM_NAME"; exit; }
1492
# Apollos put the system type in the environment.
1494
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1496
# Convex versions that predate uname can use getsysinfo(1)
1498
if [ -x /usr/convex/getsysinfo ]
1500
case `getsysinfo -f cpu_type` in
1505
if getsysinfo -f scalar_acc
1506
then echo c32-convex-bsd
1507
else echo c2-convex-bsd
1523
1375
$0: unable to guess system type