~ubuntu-branches/debian/stretch/sensors-applet/stretch

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2011-11-05 14:53:12 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20111105145312-pce58z1ov0rc9moq
Tags: 3.0.0-0.1
* Non-maintainer upload.
* New upstream release, with support for GNOME3 Panel (closes: #638099).
* Drop link-to-libdl and libnotify_0.7_api_change patches, applied
  upstream.
* Drop dh_autoreconf and all bootstrap friends from Build-Depends and
  Build-Conflicts, not needed anymore.
* Update Build-Depends for the GTK+3 port, as per configure.ac.
* Drop .a and .la files (closes: #633257).
* Build-Depend on libsensors4 for kfreebsd again, as the package is now
* available on that architecture.
* Avoid hardcoding architecture names for libatamart-dev, and drop it
  entirely for libsensors4, as all architectures should be supported,
  even if the Hurd isn't available yet (closes: #634515).
* As libsensors-applet-plugin hasn't bumped its sonames but has at least
  got an ABI break (due to the switch to GTK+3), and given there are no
  external rdepends, avoid a library rename by bumping its shlibs and
  adding Breaks: sensor-applets (<< 3.0.0).
* Change install path for the applet binary, and remove obsolete dirs.
* Tighten sensors-applet dependency on libsensors-applet-plugin to
  (= ${binary:Version}), just in case.

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, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
 
5
#   2011 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2009-06-10'
 
7
timestamp='2011-05-11'
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
27
27
# the same distribution terms that you use for the rest of that program.
28
28
 
29
29
 
30
 
# Originally written by Per Bothner <per@bothner.com>.
31
 
# Please send patches to <config-patches@gnu.org>.  Submit a context
32
 
# diff and a properly formatted ChangeLog entry.
 
30
# Originally written by Per Bothner.  Please send patches (context
 
31
# diff format) to <config-patches@gnu.org> and include a ChangeLog
 
32
# entry.
33
33
#
34
34
# This script attempts to guess a canonical system name similar to
35
35
# config.sub.  If it succeeds, it prints the system name on stdout, and
36
36
# exits with 0.  Otherwise, it exits with 1.
37
37
#
38
 
# The plan is that this can be called by configure scripts if you
39
 
# don't specify an explicit build system type.
 
38
# You can get the latest version of this script from:
 
39
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
40
40
 
41
41
me=`echo "$0" | sed -e 's,.*/,,'`
42
42
 
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, 2001,
60
 
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
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.
61
62
 
62
63
This is free software; see the source for copying conditions.  There is NO
63
64
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
180
181
                fi
181
182
                ;;
182
183
            *)
183
 
                os=netbsd
 
184
                os=netbsd
184
185
                ;;
185
186
        esac
186
187
        # The OS release
223
224
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
224
225
                ;;
225
226
        *5.*)
226
 
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
 
227
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
227
228
                ;;
228
229
        esac
229
230
        # According to Compaq, /usr/sbin/psrinfo has been available on
269
270
        # A Xn.n version is an unreleased experimental baselevel.
270
271
        # 1.2 uses "1.2" for uname -r.
271
272
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
272
 
        exit ;;
 
273
        # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
 
274
        exitcode=$?
 
275
        trap '' 0
 
276
        exit $exitcode ;;
273
277
    Alpha\ *:Windows_NT*:*)
274
278
        # How do we know it's Interix rather than the generic POSIX subsystem?
275
279
        # Should we change UNAME_MACHINE based on the output of uname instead
295
299
        echo s390-ibm-zvmoe
296
300
        exit ;;
297
301
    *:OS400:*:*)
298
 
        echo powerpc-ibm-os400
 
302
        echo powerpc-ibm-os400
299
303
        exit ;;
300
304
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
301
305
        echo arm-acorn-riscix${UNAME_RELEASE}
333
337
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
334
338
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335
339
        exit ;;
 
340
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
 
341
        echo i386-pc-auroraux${UNAME_RELEASE}
 
342
        exit ;;
336
343
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
337
344
        eval $set_cc_for_build
338
345
        SUN_ARCH="i386"
391
398
    # MiNT.  But MiNT is downward compatible to TOS, so this should
392
399
    # be no problem.
393
400
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
394
 
        echo m68k-atari-mint${UNAME_RELEASE}
 
401
        echo m68k-atari-mint${UNAME_RELEASE}
395
402
        exit ;;
396
403
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
397
404
        echo m68k-atari-mint${UNAME_RELEASE}
398
 
        exit ;;
 
405
        exit ;;
399
406
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
400
 
        echo m68k-atari-mint${UNAME_RELEASE}
 
407
        echo m68k-atari-mint${UNAME_RELEASE}
401
408
        exit ;;
402
409
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
403
 
        echo m68k-milan-mint${UNAME_RELEASE}
404
 
        exit ;;
 
410
        echo m68k-milan-mint${UNAME_RELEASE}
 
411
        exit ;;
405
412
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
406
 
        echo m68k-hades-mint${UNAME_RELEASE}
407
 
        exit ;;
 
413
        echo m68k-hades-mint${UNAME_RELEASE}
 
414
        exit ;;
408
415
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
409
 
        echo m68k-unknown-mint${UNAME_RELEASE}
410
 
        exit ;;
 
416
        echo m68k-unknown-mint${UNAME_RELEASE}
 
417
        exit ;;
411
418
    m68k:machten:*:*)
412
419
        echo m68k-apple-machten${UNAME_RELEASE}
413
420
        exit ;;
477
484
        echo m88k-motorola-sysv3
478
485
        exit ;;
479
486
    AViiON:dgux:*:*)
480
 
        # DG/UX returns AViiON for all architectures
481
 
        UNAME_PROCESSOR=`/usr/bin/uname -p`
 
487
        # DG/UX returns AViiON for all architectures
 
488
        UNAME_PROCESSOR=`/usr/bin/uname -p`
482
489
        if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
483
490
        then
484
491
            if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
491
498
        else
492
499
            echo i586-dg-dgux${UNAME_RELEASE}
493
500
        fi
494
 
        exit ;;
 
501
        exit ;;
495
502
    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
496
503
        echo m88k-dolphin-sysv3
497
504
        exit ;;
548
555
                echo rs6000-ibm-aix3.2
549
556
        fi
550
557
        exit ;;
551
 
    *:AIX:*:[456])
 
558
    *:AIX:*:[4567])
552
559
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
553
560
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
554
561
                IBM_ARCH=rs6000
591
598
            9000/[678][0-9][0-9])
592
599
                if [ -x /usr/bin/getconf ]; then
593
600
                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
594
 
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
595
 
                    case "${sc_cpu_version}" in
596
 
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
597
 
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
598
 
                      532)                      # CPU_PA_RISC2_0
599
 
                        case "${sc_kernel_bits}" in
600
 
                          32) HP_ARCH="hppa2.0n" ;;
601
 
                          64) HP_ARCH="hppa2.0w" ;;
 
601
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
 
602
                    case "${sc_cpu_version}" in
 
603
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
 
604
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
 
605
                      532)                      # CPU_PA_RISC2_0
 
606
                        case "${sc_kernel_bits}" in
 
607
                          32) HP_ARCH="hppa2.0n" ;;
 
608
                          64) HP_ARCH="hppa2.0w" ;;
602
609
                          '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
603
 
                        esac ;;
604
 
                    esac
 
610
                        esac ;;
 
611
                    esac
605
612
                fi
606
613
                if [ "${HP_ARCH}" = "" ]; then
607
614
                    eval $set_cc_for_build
608
 
                    sed 's/^              //' << EOF >$dummy.c
609
 
 
610
 
              #define _HPUX_SOURCE
611
 
              #include <stdlib.h>
612
 
              #include <unistd.h>
613
 
 
614
 
              int main ()
615
 
              {
616
 
              #if defined(_SC_KERNEL_BITS)
617
 
                  long bits = sysconf(_SC_KERNEL_BITS);
618
 
              #endif
619
 
                  long cpu  = sysconf (_SC_CPU_VERSION);
620
 
 
621
 
                  switch (cpu)
622
 
                {
623
 
                case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
624
 
                case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
625
 
                case CPU_PA_RISC2_0:
626
 
              #if defined(_SC_KERNEL_BITS)
627
 
                    switch (bits)
628
 
                        {
629
 
                        case 64: puts ("hppa2.0w"); break;
630
 
                        case 32: puts ("hppa2.0n"); break;
631
 
                        default: puts ("hppa2.0"); break;
632
 
                        } break;
633
 
              #else  /* !defined(_SC_KERNEL_BITS) */
634
 
                    puts ("hppa2.0"); break;
635
 
              #endif
636
 
                default: puts ("hppa1.0"); break;
637
 
                }
638
 
                  exit (0);
639
 
              }
 
615
                    sed 's/^            //' << EOF >$dummy.c
 
616
 
 
617
                #define _HPUX_SOURCE
 
618
                #include <stdlib.h>
 
619
                #include <unistd.h>
 
620
 
 
621
                int main ()
 
622
                {
 
623
                #if defined(_SC_KERNEL_BITS)
 
624
                    long bits = sysconf(_SC_KERNEL_BITS);
 
625
                #endif
 
626
                    long cpu  = sysconf (_SC_CPU_VERSION);
 
627
 
 
628
                    switch (cpu)
 
629
                        {
 
630
                        case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
 
631
                        case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
 
632
                        case CPU_PA_RISC2_0:
 
633
                #if defined(_SC_KERNEL_BITS)
 
634
                            switch (bits)
 
635
                                {
 
636
                                case 64: puts ("hppa2.0w"); break;
 
637
                                case 32: puts ("hppa2.0n"); break;
 
638
                                default: puts ("hppa2.0"); break;
 
639
                                } break;
 
640
                #else  /* !defined(_SC_KERNEL_BITS) */
 
641
                            puts ("hppa2.0"); break;
 
642
                #endif
 
643
                        default: puts ("hppa1.0"); break;
 
644
                        }
 
645
                    exit (0);
 
646
                }
640
647
EOF
641
648
                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
642
649
                    test -z "$HP_ARCH" && HP_ARCH=hppa
727
734
        exit ;;
728
735
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
729
736
        echo c1-convex-bsd
730
 
        exit ;;
 
737
        exit ;;
731
738
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
732
739
        if getsysinfo -f scalar_acc
733
740
        then echo c32-convex-bsd
734
741
        else echo c2-convex-bsd
735
742
        fi
736
 
        exit ;;
 
743
        exit ;;
737
744
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
738
745
        echo c34-convex-bsd
739
 
        exit ;;
 
746
        exit ;;
740
747
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
741
748
        echo c38-convex-bsd
742
 
        exit ;;
 
749
        exit ;;
743
750
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
744
751
        echo c4-convex-bsd
745
 
        exit ;;
 
752
        exit ;;
746
753
    CRAY*Y-MP:*:*:*)
747
754
        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
748
755
        exit ;;
766
773
        exit ;;
767
774
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
768
775
        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
769
 
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
770
 
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
771
 
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
772
 
        exit ;;
 
776
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
777
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
 
778
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 
779
        exit ;;
773
780
    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}"
 
781
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
782
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
 
783
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
777
784
        exit ;;
778
785
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
779
786
        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
801
808
        echo ${UNAME_MACHINE}-pc-mingw32
802
809
        exit ;;
803
810
    i*:windows32*:*)
804
 
        # uname -m includes "-pc" on this system.
805
 
        echo ${UNAME_MACHINE}-mingw32
 
811
        # uname -m includes "-pc" on this system.
 
812
        echo ${UNAME_MACHINE}-mingw32
806
813
        exit ;;
807
814
    i*:PW*:*)
808
815
        echo ${UNAME_MACHINE}-pc-pw32
809
816
        exit ;;
810
 
    *:Interix*:[3456]*)
811
 
        case ${UNAME_MACHINE} in
 
817
    *:Interix*:*)
 
818
        case ${UNAME_MACHINE} in
812
819
            x86)
813
820
                echo i586-pc-interix${UNAME_RELEASE}
814
821
                exit ;;
815
 
            EM64T | authenticamd | genuineintel)
 
822
            authenticamd | genuineintel | EM64T)
816
823
                echo x86_64-unknown-interix${UNAME_RELEASE}
817
824
                exit ;;
818
825
            IA64)
854
861
    i*86:Minix:*:*)
855
862
        echo ${UNAME_MACHINE}-pc-minix
856
863
        exit ;;
 
864
    alpha:Linux:*:*)
 
865
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
 
866
          EV5)   UNAME_MACHINE=alphaev5 ;;
 
867
          EV56)  UNAME_MACHINE=alphaev56 ;;
 
868
          PCA56) UNAME_MACHINE=alphapca56 ;;
 
869
          PCA57) UNAME_MACHINE=alphapca56 ;;
 
870
          EV6)   UNAME_MACHINE=alphaev6 ;;
 
871
          EV67)  UNAME_MACHINE=alphaev67 ;;
 
872
          EV68*) UNAME_MACHINE=alphaev68 ;;
 
873
        esac
 
874
        objdump --private-headers /bin/sh | grep -q ld.so.1
 
875
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
 
876
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
 
877
        exit ;;
857
878
    arm*:Linux:*:*)
858
879
        eval $set_cc_for_build
859
880
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
861
882
        then
862
883
            echo ${UNAME_MACHINE}-unknown-linux-gnu
863
884
        else
864
 
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
885
            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
 
886
                | grep -q __ARM_PCS_VFP
 
887
            then
 
888
                echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
889
            else
 
890
                echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
 
891
            fi
865
892
        fi
866
893
        exit ;;
867
894
    avr32*:Linux:*:*)
874
901
        echo crisv32-axis-linux-gnu
875
902
        exit ;;
876
903
    frv:Linux:*:*)
877
 
        echo frv-unknown-linux-gnu
 
904
        echo frv-unknown-linux-gnu
 
905
        exit ;;
 
906
    i*86:Linux:*:*)
 
907
        LIBC=gnu
 
908
        eval $set_cc_for_build
 
909
        sed 's/^        //' << EOF >$dummy.c
 
910
        #ifdef __dietlibc__
 
911
        LIBC=dietlibc
 
912
        #endif
 
913
EOF
 
914
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
 
915
        echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
878
916
        exit ;;
879
917
    ia64:Linux:*:*)
880
918
        echo ${UNAME_MACHINE}-unknown-linux-gnu
901
939
        #endif
902
940
        #endif
903
941
EOF
904
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
905
 
            /^CPU/{
906
 
                s: ::g
907
 
                p
908
 
            }'`"
 
942
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
909
943
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
910
944
        ;;
911
945
    or32:Linux:*:*)
912
946
        echo or32-unknown-linux-gnu
913
947
        exit ;;
914
 
    ppc:Linux:*:*)
915
 
        echo powerpc-unknown-linux-gnu
916
 
        exit ;;
917
 
    ppc64:Linux:*:*)
918
 
        echo powerpc64-unknown-linux-gnu
919
 
        exit ;;
920
 
    alpha:Linux:*:*)
921
 
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
922
 
          EV5)   UNAME_MACHINE=alphaev5 ;;
923
 
          EV56)  UNAME_MACHINE=alphaev56 ;;
924
 
          PCA56) UNAME_MACHINE=alphapca56 ;;
925
 
          PCA57) UNAME_MACHINE=alphapca56 ;;
926
 
          EV6)   UNAME_MACHINE=alphaev6 ;;
927
 
          EV67)  UNAME_MACHINE=alphaev67 ;;
928
 
          EV68*) UNAME_MACHINE=alphaev68 ;;
929
 
        esac
930
 
        objdump --private-headers /bin/sh | grep -q ld.so.1
931
 
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
932
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
933
 
        exit ;;
934
948
    padre:Linux:*:*)
935
949
        echo sparc-unknown-linux-gnu
936
950
        exit ;;
 
951
    parisc64:Linux:*:* | hppa64:Linux:*:*)
 
952
        echo hppa64-unknown-linux-gnu
 
953
        exit ;;
937
954
    parisc:Linux:*:* | hppa:Linux:*:*)
938
955
        # Look for CPU level
939
956
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
942
959
          *)    echo hppa-unknown-linux-gnu ;;
943
960
        esac
944
961
        exit ;;
945
 
    parisc64:Linux:*:* | hppa64:Linux:*:*)
946
 
        echo hppa64-unknown-linux-gnu
 
962
    ppc64:Linux:*:*)
 
963
        echo powerpc64-unknown-linux-gnu
 
964
        exit ;;
 
965
    ppc:Linux:*:*)
 
966
        echo powerpc-unknown-linux-gnu
947
967
        exit ;;
948
968
    s390:Linux:*:* | s390x:Linux:*:*)
949
969
        echo ${UNAME_MACHINE}-ibm-linux
950
970
        exit ;;
951
971
    sh64*:Linux:*:*)
952
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
972
        echo ${UNAME_MACHINE}-unknown-linux-gnu
953
973
        exit ;;
954
974
    sh*:Linux:*:*)
955
975
        echo ${UNAME_MACHINE}-unknown-linux-gnu
957
977
    sparc:Linux:*:* | sparc64:Linux:*:*)
958
978
        echo ${UNAME_MACHINE}-unknown-linux-gnu
959
979
        exit ;;
 
980
    tile*:Linux:*:*)
 
981
        echo ${UNAME_MACHINE}-tilera-linux-gnu
 
982
        exit ;;
960
983
    vax:Linux:*:*)
961
984
        echo ${UNAME_MACHINE}-dec-linux-gnu
962
985
        exit ;;
964
987
        echo x86_64-unknown-linux-gnu
965
988
        exit ;;
966
989
    xtensa*:Linux:*:*)
967
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
990
        echo ${UNAME_MACHINE}-unknown-linux-gnu
968
991
        exit ;;
969
 
    i*86:Linux:*:*)
970
 
        # The BFD linker knows what the default object file format is, so
971
 
        # first see if it will tell us. cd to the root directory to prevent
972
 
        # problems with other programs or directories called `ld' in the path.
973
 
        # Set LC_ALL=C to ensure ld outputs messages in English.
974
 
        ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
975
 
                         | sed -ne '/supported targets:/!d
976
 
                                    s/[         ][      ]*/ /g
977
 
                                    s/.*supported targets: *//
978
 
                                    s/ .*//
979
 
                                    p'`
980
 
        case "$ld_supported_targets" in
981
 
          elf32-i386)
982
 
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
983
 
                ;;
984
 
        esac
985
 
        # Determine whether the default compiler is a.out or elf
986
 
        eval $set_cc_for_build
987
 
        sed 's/^        //' << EOF >$dummy.c
988
 
        #include <features.h>
989
 
        #ifdef __ELF__
990
 
        # ifdef __GLIBC__
991
 
        #  if __GLIBC__ >= 2
992
 
        LIBC=gnu
993
 
        #  else
994
 
        LIBC=gnulibc1
995
 
        #  endif
996
 
        # else
997
 
        LIBC=gnulibc1
998
 
        # endif
999
 
        #else
1000
 
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1001
 
        LIBC=gnu
1002
 
        #else
1003
 
        LIBC=gnuaout
1004
 
        #endif
1005
 
        #endif
1006
 
        #ifdef __dietlibc__
1007
 
        LIBC=dietlibc
1008
 
        #endif
1009
 
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; }
1020
 
        ;;
1021
992
    i*86:DYNIX/ptx:4*:*)
1022
993
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1023
994
        # earlier versions are messed up and put the nodename in both
1025
996
        echo i386-sequent-sysv4
1026
997
        exit ;;
1027
998
    i*86:UNIX_SV:4.2MP:2.*)
1028
 
        # Unixware is an offshoot of SVR4, but it has its own version
1029
 
        # number series starting with 2...
1030
 
        # I am not positive that other SVR4 systems won't match this,
 
999
        # Unixware is an offshoot of SVR4, but it has its own version
 
1000
        # number series starting with 2...
 
1001
        # I am not positive that other SVR4 systems won't match this,
1031
1002
        # I just have to hope.  -- rms.
1032
 
        # Use sysv4.2uw... so that sysv4* matches it.
 
1003
        # Use sysv4.2uw... so that sysv4* matches it.
1033
1004
        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1034
1005
        exit ;;
1035
1006
    i*86:OS/2:*:*)
1061
1032
        fi
1062
1033
        exit ;;
1063
1034
    i*86:*:5:[678]*)
1064
 
        # UnixWare 7.x, OpenUNIX and OpenServer 6.
 
1035
        # UnixWare 7.x, OpenUNIX and OpenServer 6.
1065
1036
        case `/bin/uname -X | grep "^Machine"` in
1066
1037
            *486*)           UNAME_MACHINE=i486 ;;
1067
1038
            *Pentium)        UNAME_MACHINE=i586 ;;
1089
1060
        exit ;;
1090
1061
    pc:*:*:*)
1091
1062
        # Left here for compatibility:
1092
 
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1093
 
        # the processor, so we play safe by assuming i586.
 
1063
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
 
1064
        # the processor, so we play safe by assuming i586.
1094
1065
        # Note: whatever this is, it MUST be the same as what config.sub
1095
1066
        # prints for the "djgpp" host, or else GDB configury will decide that
1096
1067
        # this is a cross-build.
1097
1068
        echo i586-pc-msdosdjgpp
1098
 
        exit ;;
 
1069
        exit ;;
1099
1070
    Intel:Mach:3*:*)
1100
1071
        echo i386-pc-mach3
1101
1072
        exit ;;
1130
1101
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1131
1102
          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1132
1103
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1133
 
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1134
 
          && { echo i486-ncr-sysv4; exit; } ;;
 
1104
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1105
          && { echo i486-ncr-sysv4; exit; } ;;
1135
1106
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1136
1107
        OS_REL='.3'
1137
1108
        test -r /etc/.relid \
1174
1145
                echo ns32k-sni-sysv
1175
1146
        fi
1176
1147
        exit ;;
1177
 
    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1178
 
                      # says <Richard.M.Bartel@ccMail.Census.GOV>
1179
 
        echo i586-unisys-sysv4
1180
 
        exit ;;
 
1148
    PENTIUM:*:4.0*:*)   # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
 
1149
                        # says <Richard.M.Bartel@ccMail.Census.GOV>
 
1150
        echo i586-unisys-sysv4
 
1151
        exit ;;
1181
1152
    *:UNIX_System_V:4*:FTX*)
1182
1153
        # From Gerald Hewes <hewes@openmarket.com>.
1183
1154
        # How about differentiating between stratus architectures? -djm
1203
1174
        exit ;;
1204
1175
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1205
1176
        if [ -d /usr/nec ]; then
1206
 
                echo mips-nec-sysv${UNAME_RELEASE}
 
1177
                echo mips-nec-sysv${UNAME_RELEASE}
1207
1178
        else
1208
 
                echo mips-unknown-sysv${UNAME_RELEASE}
 
1179
                echo mips-unknown-sysv${UNAME_RELEASE}
1209
1180
        fi
1210
 
        exit ;;
 
1181
        exit ;;
1211
1182
    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
1212
1183
        echo powerpc-be-beos
1213
1184
        exit ;;
1247
1218
    *:Darwin:*:*)
1248
1219
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1249
1220
        case $UNAME_PROCESSOR in
 
1221
            i386)
 
1222
                eval $set_cc_for_build
 
1223
                if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
1224
                  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
 
1225
                      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
1226
                      grep IS_64BIT_ARCH >/dev/null
 
1227
                  then
 
1228
                      UNAME_PROCESSOR="x86_64"
 
1229
                  fi
 
1230
                fi ;;
1250
1231
            unknown) UNAME_PROCESSOR=powerpc ;;
1251
1232
        esac
1252
1233
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1262
1243
    *:QNX:*:4*)
1263
1244
        echo i386-pc-qnx
1264
1245
        exit ;;
 
1246
    NEO-?:NONSTOP_KERNEL:*:*)
 
1247
        echo neo-tandem-nsk${UNAME_RELEASE}
 
1248
        exit ;;
1265
1249
    NSE-?:NONSTOP_KERNEL:*:*)
1266
1250
        echo nse-tandem-nsk${UNAME_RELEASE}
1267
1251
        exit ;;
1307
1291
        echo pdp10-unknown-its
1308
1292
        exit ;;
1309
1293
    SEI:*:*:SEIUX)
1310
 
        echo mips-sei-seiux${UNAME_RELEASE}
 
1294
        echo mips-sei-seiux${UNAME_RELEASE}
1311
1295
        exit ;;
1312
1296
    *:DragonFly:*:*)
1313
1297
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1314
1298
        exit ;;
1315
1299
    *:*VMS:*:*)
1316
 
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
 
1300
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
1317
1301
        case "${UNAME_MACHINE}" in
1318
1302
            A*) echo alpha-dec-vms ; exit ;;
1319
1303
            I*) echo ia64-dec-vms ; exit ;;
1353
1337
#include <sys/param.h>
1354
1338
  printf ("m68k-sony-newsos%s\n",
1355
1339
#ifdef NEWSOS4
1356
 
          "4"
 
1340
        "4"
1357
1341
#else
1358
 
          ""
 
1342
        ""
1359
1343
#endif
1360
 
         ); exit (0);
 
1344
        ); exit (0);
1361
1345
#endif
1362
1346
#endif
1363
1347