~ubuntu-branches/ubuntu/gutsy/xdm/gutsy

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): David Nusinow, Eugene Konev
  • Date: 2006-06-30 00:42:11 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060630004211-m2ntbay7eepml8pb
Tags: 1:1.0.5-1
[ Eugene Konev ]
* New upstream release. Fixes security bug on linux-2.6 kernels.
* Don't build-depend on libselinux1-dev on non-linux arches, thanks
  Michael Banck and Christian Perrier (closes: #369519)
* Fix init script reload target, thanks Alexandr Kazda (closes: #365548)
* Fix authDir reference in xdm(1), thanks Kevin Ryde (closes: #373138)
* Update README.Debian, thanks Kevin Ryde (closes: #373870)
* Pass APP_MAN_SUFFIX=1 to configure explicitely.

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