~ubuntu-branches/ubuntu/trusty/sidplay-libs/trusty

« back to all changes in this revision

Viewing changes to resid/config.guess

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2012-02-06 23:39:26 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20120206233926-m05wzpz6kpqgm9dq
Tags: 2.1.1-12
* Use '3.0 (quilt)' source format, separate previous fixes to individual
  patches.
* Re-create autotools files (closes: #535938).
* Remove *.la files (closes: #657796).

Show diffs side-by-side

added added

removed removed

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