~ubuntu-branches/ubuntu/vivid/brasero/vivid

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-03-27 10:34:57 UTC
  • mfrom: (1.1.53)
  • Revision ID: package-import@ubuntu.com-20120327103457-86qt4pti869xqdzz
Tags: 3.4.0-0ubuntu1
* New upstream release:
  - Translations updates

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, 2010,
5
 
#   2011 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
 
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2011-06-03'
 
7
timestamp='2009-11-20'
8
8
 
9
9
# This file is free software; you can redistribute it and/or modify it
10
10
# under the terms of the GNU General Public License as published by
56
56
GNU config.guess ($timestamp)
57
57
 
58
58
Originally written by Per Bothner.
59
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
60
 
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
61
 
Software Foundation, Inc.
 
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.
62
61
 
63
62
This is free software; see the source for copying conditions.  There is NO
64
63
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
140
139
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
141
140
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
142
141
 
143
 
case "${UNAME_SYSTEM}" in
144
 
Linux|GNU/*)
145
 
        eval $set_cc_for_build
146
 
        cat <<-EOF > $dummy.c
147
 
        #include <features.h>
148
 
        #ifdef __UCLIBC__
149
 
        # ifdef __UCLIBC_CONFIG_VERSION__
150
 
        LIBC=uclibc __UCLIBC_CONFIG_VERSION__
151
 
        # else
152
 
        LIBC=uclibc
153
 
        # endif
154
 
        #else
155
 
        # ifdef __dietlibc__
156
 
        LIBC=dietlibc
157
 
        # else
158
 
        LIBC=gnu
159
 
        # endif
160
 
        #endif
161
 
        EOF
162
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
163
 
        ;;
164
 
esac
165
 
 
166
142
# Note: order is significant - the case branches are not exclusive.
167
143
 
168
144
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
204
180
                fi
205
181
                ;;
206
182
            *)
207
 
                os=netbsd
 
183
                os=netbsd
208
184
                ;;
209
185
        esac
210
186
        # The OS release
247
223
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
248
224
                ;;
249
225
        *5.*)
250
 
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
 
226
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
251
227
                ;;
252
228
        esac
253
229
        # According to Compaq, /usr/sbin/psrinfo has been available on
293
269
        # A Xn.n version is an unreleased experimental baselevel.
294
270
        # 1.2 uses "1.2" for uname -r.
295
271
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
296
 
        # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
297
 
        exitcode=$?
298
 
        trap '' 0
299
 
        exit $exitcode ;;
 
272
        exit ;;
300
273
    Alpha\ *:Windows_NT*:*)
301
274
        # How do we know it's Interix rather than the generic POSIX subsystem?
302
275
        # Should we change UNAME_MACHINE based on the output of uname instead
322
295
        echo s390-ibm-zvmoe
323
296
        exit ;;
324
297
    *:OS400:*:*)
325
 
        echo powerpc-ibm-os400
 
298
        echo powerpc-ibm-os400
326
299
        exit ;;
327
300
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
328
301
        echo arm-acorn-riscix${UNAME_RELEASE}
421
394
    # MiNT.  But MiNT is downward compatible to TOS, so this should
422
395
    # be no problem.
423
396
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
424
 
        echo m68k-atari-mint${UNAME_RELEASE}
 
397
        echo m68k-atari-mint${UNAME_RELEASE}
425
398
        exit ;;
426
399
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
427
400
        echo m68k-atari-mint${UNAME_RELEASE}
428
 
        exit ;;
 
401
        exit ;;
429
402
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
430
 
        echo m68k-atari-mint${UNAME_RELEASE}
 
403
        echo m68k-atari-mint${UNAME_RELEASE}
431
404
        exit ;;
432
405
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
433
 
        echo m68k-milan-mint${UNAME_RELEASE}
434
 
        exit ;;
 
406
        echo m68k-milan-mint${UNAME_RELEASE}
 
407
        exit ;;
435
408
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
436
 
        echo m68k-hades-mint${UNAME_RELEASE}
437
 
        exit ;;
 
409
        echo m68k-hades-mint${UNAME_RELEASE}
 
410
        exit ;;
438
411
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
439
 
        echo m68k-unknown-mint${UNAME_RELEASE}
440
 
        exit ;;
 
412
        echo m68k-unknown-mint${UNAME_RELEASE}
 
413
        exit ;;
441
414
    m68k:machten:*:*)
442
415
        echo m68k-apple-machten${UNAME_RELEASE}
443
416
        exit ;;
507
480
        echo m88k-motorola-sysv3
508
481
        exit ;;
509
482
    AViiON:dgux:*:*)
510
 
        # DG/UX returns AViiON for all architectures
511
 
        UNAME_PROCESSOR=`/usr/bin/uname -p`
 
483
        # DG/UX returns AViiON for all architectures
 
484
        UNAME_PROCESSOR=`/usr/bin/uname -p`
512
485
        if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
513
486
        then
514
487
            if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
521
494
        else
522
495
            echo i586-dg-dgux${UNAME_RELEASE}
523
496
        fi
524
 
        exit ;;
 
497
        exit ;;
525
498
    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
526
499
        echo m88k-dolphin-sysv3
527
500
        exit ;;
578
551
                echo rs6000-ibm-aix3.2
579
552
        fi
580
553
        exit ;;
581
 
    *:AIX:*:[4567])
 
554
    *:AIX:*:[456])
582
555
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
583
556
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
584
557
                IBM_ARCH=rs6000
621
594
            9000/[678][0-9][0-9])
622
595
                if [ -x /usr/bin/getconf ]; then
623
596
                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
624
 
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
625
 
                    case "${sc_cpu_version}" in
626
 
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
627
 
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
628
 
                      532)                      # CPU_PA_RISC2_0
629
 
                        case "${sc_kernel_bits}" in
630
 
                          32) HP_ARCH="hppa2.0n" ;;
631
 
                          64) HP_ARCH="hppa2.0w" ;;
 
597
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
 
598
                    case "${sc_cpu_version}" in
 
599
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
 
600
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
 
601
                      532)                      # CPU_PA_RISC2_0
 
602
                        case "${sc_kernel_bits}" in
 
603
                          32) HP_ARCH="hppa2.0n" ;;
 
604
                          64) HP_ARCH="hppa2.0w" ;;
632
605
                          '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
633
 
                        esac ;;
634
 
                    esac
 
606
                        esac ;;
 
607
                    esac
635
608
                fi
636
609
                if [ "${HP_ARCH}" = "" ]; then
637
610
                    eval $set_cc_for_build
638
 
                    sed 's/^            //' << EOF >$dummy.c
639
 
 
640
 
                #define _HPUX_SOURCE
641
 
                #include <stdlib.h>
642
 
                #include <unistd.h>
643
 
 
644
 
                int main ()
645
 
                {
646
 
                #if defined(_SC_KERNEL_BITS)
647
 
                    long bits = sysconf(_SC_KERNEL_BITS);
648
 
                #endif
649
 
                    long cpu  = sysconf (_SC_CPU_VERSION);
650
 
 
651
 
                    switch (cpu)
652
 
                        {
653
 
                        case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
654
 
                        case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
655
 
                        case CPU_PA_RISC2_0:
656
 
                #if defined(_SC_KERNEL_BITS)
657
 
                            switch (bits)
658
 
                                {
659
 
                                case 64: puts ("hppa2.0w"); break;
660
 
                                case 32: puts ("hppa2.0n"); break;
661
 
                                default: puts ("hppa2.0"); break;
662
 
                                } break;
663
 
                #else  /* !defined(_SC_KERNEL_BITS) */
664
 
                            puts ("hppa2.0"); break;
665
 
                #endif
666
 
                        default: puts ("hppa1.0"); break;
667
 
                        }
668
 
                    exit (0);
669
 
                }
 
611
                    sed 's/^              //' << EOF >$dummy.c
 
612
 
 
613
              #define _HPUX_SOURCE
 
614
              #include <stdlib.h>
 
615
              #include <unistd.h>
 
616
 
 
617
              int main ()
 
618
              {
 
619
              #if defined(_SC_KERNEL_BITS)
 
620
                  long bits = sysconf(_SC_KERNEL_BITS);
 
621
              #endif
 
622
                  long cpu  = sysconf (_SC_CPU_VERSION);
 
623
 
 
624
                  switch (cpu)
 
625
                {
 
626
                case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
 
627
                case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
 
628
                case CPU_PA_RISC2_0:
 
629
              #if defined(_SC_KERNEL_BITS)
 
630
                    switch (bits)
 
631
                        {
 
632
                        case 64: puts ("hppa2.0w"); break;
 
633
                        case 32: puts ("hppa2.0n"); break;
 
634
                        default: puts ("hppa2.0"); break;
 
635
                        } break;
 
636
              #else  /* !defined(_SC_KERNEL_BITS) */
 
637
                    puts ("hppa2.0"); break;
 
638
              #endif
 
639
                default: puts ("hppa1.0"); break;
 
640
                }
 
641
                  exit (0);
 
642
              }
670
643
EOF
671
644
                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
672
645
                    test -z "$HP_ARCH" && HP_ARCH=hppa
757
730
        exit ;;
758
731
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
759
732
        echo c1-convex-bsd
760
 
        exit ;;
 
733
        exit ;;
761
734
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
762
735
        if getsysinfo -f scalar_acc
763
736
        then echo c32-convex-bsd
764
737
        else echo c2-convex-bsd
765
738
        fi
766
 
        exit ;;
 
739
        exit ;;
767
740
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
768
741
        echo c34-convex-bsd
769
 
        exit ;;
 
742
        exit ;;
770
743
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
771
744
        echo c38-convex-bsd
772
 
        exit ;;
 
745
        exit ;;
773
746
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
774
747
        echo c4-convex-bsd
775
 
        exit ;;
 
748
        exit ;;
776
749
    CRAY*Y-MP:*:*:*)
777
750
        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
778
751
        exit ;;
796
769
        exit ;;
797
770
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
798
771
        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
799
 
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
800
 
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
801
 
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
802
 
        exit ;;
 
772
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
773
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
 
774
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 
775
        exit ;;
803
776
    5000:UNIX_System_V:4.*:*)
804
 
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
805
 
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
806
 
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 
777
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
778
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
 
779
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
807
780
        exit ;;
808
781
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
809
782
        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
831
804
        echo ${UNAME_MACHINE}-pc-mingw32
832
805
        exit ;;
833
806
    i*:windows32*:*)
834
 
        # uname -m includes "-pc" on this system.
835
 
        echo ${UNAME_MACHINE}-mingw32
 
807
        # uname -m includes "-pc" on this system.
 
808
        echo ${UNAME_MACHINE}-mingw32
836
809
        exit ;;
837
810
    i*:PW*:*)
838
811
        echo ${UNAME_MACHINE}-pc-pw32
839
812
        exit ;;
840
813
    *:Interix*:*)
841
 
        case ${UNAME_MACHINE} in
 
814
        case ${UNAME_MACHINE} in
842
815
            x86)
843
816
                echo i586-pc-interix${UNAME_RELEASE}
844
817
                exit ;;
875
848
        exit ;;
876
849
    *:GNU:*:*)
877
850
        # the GNU system
878
 
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
 
851
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
879
852
        exit ;;
880
853
    *:GNU/*:*:*)
881
854
        # other systems with GNU libc and userland
882
 
        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
 
855
        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
883
856
        exit ;;
884
857
    i*86:Minix:*:*)
885
858
        echo ${UNAME_MACHINE}-pc-minix
893
866
          EV6)   UNAME_MACHINE=alphaev6 ;;
894
867
          EV67)  UNAME_MACHINE=alphaev67 ;;
895
868
          EV68*) UNAME_MACHINE=alphaev68 ;;
896
 
        esac
 
869
        esac
897
870
        objdump --private-headers /bin/sh | grep -q ld.so.1
898
 
        if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
899
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
871
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
 
872
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
900
873
        exit ;;
901
874
    arm*:Linux:*:*)
902
875
        eval $set_cc_for_build
903
876
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
904
877
            | grep -q __ARM_EABI__
905
878
        then
906
 
            echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
879
            echo ${UNAME_MACHINE}-unknown-linux-gnu
907
880
        else
908
 
            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
909
 
                | grep -q __ARM_PCS_VFP
910
 
            then
911
 
                echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
912
 
            else
913
 
                echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
914
 
            fi
 
881
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
915
882
        fi
916
883
        exit ;;
917
884
    avr32*:Linux:*:*)
918
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
885
        echo ${UNAME_MACHINE}-unknown-linux-gnu
919
886
        exit ;;
920
887
    cris:Linux:*:*)
921
 
        echo cris-axis-linux-${LIBC}
 
888
        echo cris-axis-linux-gnu
922
889
        exit ;;
923
890
    crisv32:Linux:*:*)
924
 
        echo crisv32-axis-linux-${LIBC}
 
891
        echo crisv32-axis-linux-gnu
925
892
        exit ;;
926
893
    frv:Linux:*:*)
927
 
        echo frv-unknown-linux-${LIBC}
 
894
        echo frv-unknown-linux-gnu
928
895
        exit ;;
929
896
    i*86:Linux:*:*)
930
 
        echo ${UNAME_MACHINE}-pc-linux-${LIBC}
 
897
        LIBC=gnu
 
898
        eval $set_cc_for_build
 
899
        sed 's/^        //' << EOF >$dummy.c
 
900
        #ifdef __dietlibc__
 
901
        LIBC=dietlibc
 
902
        #endif
 
903
EOF
 
904
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
 
905
        echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
931
906
        exit ;;
932
907
    ia64:Linux:*:*)
933
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
908
        echo ${UNAME_MACHINE}-unknown-linux-gnu
934
909
        exit ;;
935
910
    m32r*:Linux:*:*)
936
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
911
        echo ${UNAME_MACHINE}-unknown-linux-gnu
937
912
        exit ;;
938
913
    m68*:Linux:*:*)
939
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
914
        echo ${UNAME_MACHINE}-unknown-linux-gnu
940
915
        exit ;;
941
916
    mips:Linux:*:* | mips64:Linux:*:*)
942
917
        eval $set_cc_for_build
955
930
        #endif
956
931
EOF
957
932
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
958
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
 
933
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
959
934
        ;;
960
935
    or32:Linux:*:*)
961
 
        echo or32-unknown-linux-${LIBC}
 
936
        echo or32-unknown-linux-gnu
962
937
        exit ;;
963
938
    padre:Linux:*:*)
964
 
        echo sparc-unknown-linux-${LIBC}
 
939
        echo sparc-unknown-linux-gnu
965
940
        exit ;;
966
941
    parisc64:Linux:*:* | hppa64:Linux:*:*)
967
 
        echo hppa64-unknown-linux-${LIBC}
 
942
        echo hppa64-unknown-linux-gnu
968
943
        exit ;;
969
944
    parisc:Linux:*:* | hppa:Linux:*:*)
970
945
        # Look for CPU level
971
946
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
972
 
          PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
973
 
          PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
974
 
          *)    echo hppa-unknown-linux-${LIBC} ;;
 
947
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
 
948
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
 
949
          *)    echo hppa-unknown-linux-gnu ;;
975
950
        esac
976
951
        exit ;;
977
952
    ppc64:Linux:*:*)
978
 
        echo powerpc64-unknown-linux-${LIBC}
 
953
        echo powerpc64-unknown-linux-gnu
979
954
        exit ;;
980
955
    ppc:Linux:*:*)
981
 
        echo powerpc-unknown-linux-${LIBC}
 
956
        echo powerpc-unknown-linux-gnu
982
957
        exit ;;
983
958
    s390:Linux:*:* | s390x:Linux:*:*)
984
959
        echo ${UNAME_MACHINE}-ibm-linux
985
960
        exit ;;
986
961
    sh64*:Linux:*:*)
987
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
962
        echo ${UNAME_MACHINE}-unknown-linux-gnu
988
963
        exit ;;
989
964
    sh*:Linux:*:*)
990
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
965
        echo ${UNAME_MACHINE}-unknown-linux-gnu
991
966
        exit ;;
992
967
    sparc:Linux:*:* | sparc64:Linux:*:*)
993
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
994
 
        exit ;;
995
 
    tile*:Linux:*:*)
996
968
        echo ${UNAME_MACHINE}-unknown-linux-gnu
997
969
        exit ;;
998
970
    vax:Linux:*:*)
999
 
        echo ${UNAME_MACHINE}-dec-linux-${LIBC}
 
971
        echo ${UNAME_MACHINE}-dec-linux-gnu
1000
972
        exit ;;
1001
973
    x86_64:Linux:*:*)
1002
 
        echo x86_64-unknown-linux-${LIBC}
 
974
        echo x86_64-unknown-linux-gnu
1003
975
        exit ;;
1004
976
    xtensa*:Linux:*:*)
1005
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
977
        echo ${UNAME_MACHINE}-unknown-linux-gnu
1006
978
        exit ;;
1007
979
    i*86:DYNIX/ptx:4*:*)
1008
980
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1011
983
        echo i386-sequent-sysv4
1012
984
        exit ;;
1013
985
    i*86:UNIX_SV:4.2MP:2.*)
1014
 
        # Unixware is an offshoot of SVR4, but it has its own version
1015
 
        # number series starting with 2...
1016
 
        # I am not positive that other SVR4 systems won't match this,
 
986
        # Unixware is an offshoot of SVR4, but it has its own version
 
987
        # number series starting with 2...
 
988
        # I am not positive that other SVR4 systems won't match this,
1017
989
        # I just have to hope.  -- rms.
1018
 
        # Use sysv4.2uw... so that sysv4* matches it.
 
990
        # Use sysv4.2uw... so that sysv4* matches it.
1019
991
        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1020
992
        exit ;;
1021
993
    i*86:OS/2:*:*)
1047
1019
        fi
1048
1020
        exit ;;
1049
1021
    i*86:*:5:[678]*)
1050
 
        # UnixWare 7.x, OpenUNIX and OpenServer 6.
 
1022
        # UnixWare 7.x, OpenUNIX and OpenServer 6.
1051
1023
        case `/bin/uname -X | grep "^Machine"` in
1052
1024
            *486*)           UNAME_MACHINE=i486 ;;
1053
1025
            *Pentium)        UNAME_MACHINE=i586 ;;
1075
1047
        exit ;;
1076
1048
    pc:*:*:*)
1077
1049
        # Left here for compatibility:
1078
 
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1079
 
        # the processor, so we play safe by assuming i586.
 
1050
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
 
1051
        # the processor, so we play safe by assuming i586.
1080
1052
        # Note: whatever this is, it MUST be the same as what config.sub
1081
1053
        # prints for the "djgpp" host, or else GDB configury will decide that
1082
1054
        # this is a cross-build.
1083
1055
        echo i586-pc-msdosdjgpp
1084
 
        exit ;;
 
1056
        exit ;;
1085
1057
    Intel:Mach:3*:*)
1086
1058
        echo i386-pc-mach3
1087
1059
        exit ;;
1116
1088
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1117
1089
          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1118
1090
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1119
 
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1120
 
          && { echo i486-ncr-sysv4; exit; } ;;
 
1091
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1092
          && { echo i486-ncr-sysv4; exit; } ;;
1121
1093
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1122
1094
        OS_REL='.3'
1123
1095
        test -r /etc/.relid \
1160
1132
                echo ns32k-sni-sysv
1161
1133
        fi
1162
1134
        exit ;;
1163
 
    PENTIUM:*:4.0*:*)   # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1164
 
                        # says <Richard.M.Bartel@ccMail.Census.GOV>
1165
 
        echo i586-unisys-sysv4
1166
 
        exit ;;
 
1135
    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
 
1136
                      # says <Richard.M.Bartel@ccMail.Census.GOV>
 
1137
        echo i586-unisys-sysv4
 
1138
        exit ;;
1167
1139
    *:UNIX_System_V:4*:FTX*)
1168
1140
        # From Gerald Hewes <hewes@openmarket.com>.
1169
1141
        # How about differentiating between stratus architectures? -djm
1189
1161
        exit ;;
1190
1162
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1191
1163
        if [ -d /usr/nec ]; then
1192
 
                echo mips-nec-sysv${UNAME_RELEASE}
 
1164
                echo mips-nec-sysv${UNAME_RELEASE}
1193
1165
        else
1194
 
                echo mips-unknown-sysv${UNAME_RELEASE}
 
1166
                echo mips-unknown-sysv${UNAME_RELEASE}
1195
1167
        fi
1196
 
        exit ;;
 
1168
        exit ;;
1197
1169
    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
1198
1170
        echo powerpc-be-beos
1199
1171
        exit ;;
1258
1230
    *:QNX:*:4*)
1259
1231
        echo i386-pc-qnx
1260
1232
        exit ;;
1261
 
    NEO-?:NONSTOP_KERNEL:*:*)
1262
 
        echo neo-tandem-nsk${UNAME_RELEASE}
1263
 
        exit ;;
1264
1233
    NSE-?:NONSTOP_KERNEL:*:*)
1265
1234
        echo nse-tandem-nsk${UNAME_RELEASE}
1266
1235
        exit ;;
1306
1275
        echo pdp10-unknown-its
1307
1276
        exit ;;
1308
1277
    SEI:*:*:SEIUX)
1309
 
        echo mips-sei-seiux${UNAME_RELEASE}
 
1278
        echo mips-sei-seiux${UNAME_RELEASE}
1310
1279
        exit ;;
1311
1280
    *:DragonFly:*:*)
1312
1281
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1313
1282
        exit ;;
1314
1283
    *:*VMS:*:*)
1315
 
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
 
1284
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
1316
1285
        case "${UNAME_MACHINE}" in
1317
1286
            A*) echo alpha-dec-vms ; exit ;;
1318
1287
            I*) echo ia64-dec-vms ; exit ;;
1352
1321
#include <sys/param.h>
1353
1322
  printf ("m68k-sony-newsos%s\n",
1354
1323
#ifdef NEWSOS4
1355
 
        "4"
 
1324
          "4"
1356
1325
#else
1357
 
        ""
 
1326
          ""
1358
1327
#endif
1359
 
        ); exit (0);
 
1328
         ); exit (0);
1360
1329
#endif
1361
1330
#endif
1362
1331