ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/config.guess
(Generate patch)

Comparing ircd-hybrid/trunk/config.guess (file contents):
Revision 2227 by michael, Thu May 16 09:56:02 2013 UTC vs.
Revision 2228 by michael, Thu Jun 13 19:46:30 2013 UTC

# Line 2 | Line 2
2   # Attempt to guess a canonical system name.
3   #   Copyright 1992-2013 Free Software Foundation, Inc.
4  
5 < timestamp='2013-04-24'
5 > timestamp='2013-05-16'
6  
7   # This file is free software; you can redistribute it and/or modify it
8   # under the terms of the GNU General Public License as published by
# Line 132 | Line 132 | UNAME_RELEASE=`(uname -r) 2>/dev/null` |
132   UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
133   UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
134  
135 + case "${UNAME_SYSTEM}" in
136 + Linux|GNU|GNU/*)
137 +        # If the system lacks a compiler, then just pick glibc.
138 +        # We could probably try harder.
139 +        LIBC=gnu
140 +
141 +        eval $set_cc_for_build
142 +        cat <<-EOF > $dummy.c
143 +        #include <features.h>
144 +        #if defined(__UCLIBC__)
145 +        LIBC=uclibc
146 +        #elif defined(__dietlibc__)
147 +        LIBC=dietlibc
148 +        #else
149 +        LIBC=gnu
150 +        #endif
151 +        EOF
152 +        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
153 +        ;;
154 + esac
155 +
156   # Note: order is significant - the case branches are not exclusive.
157  
158   case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# Line 853 | Line 874 | EOF
874          exit ;;
875      *:GNU:*:*)
876          # the GNU system
877 <        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
877 >        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
878          exit ;;
879      *:GNU/*:*:*)
880          # other systems with GNU libc and userland
881 <        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
881 >        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
882          exit ;;
883      i*86:Minix:*:*)
884          echo ${UNAME_MACHINE}-pc-minix
885          exit ;;
886      aarch64:Linux:*:*)
887 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
887 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
888          exit ;;
889      aarch64_be:Linux:*:*)
890          UNAME_MACHINE=aarch64_be
891 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
891 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
892          exit ;;
893      alpha:Linux:*:*)
894          case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
# Line 880 | Line 901 | EOF
901            EV68*) UNAME_MACHINE=alphaev68 ;;
902          esac
903          objdump --private-headers /bin/sh | grep -q ld.so.1
904 <        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
905 <        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
904 >        if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
905 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
906          exit ;;
907      arc:Linux:*:* | arceb:Linux:*:*)
908 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
908 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
909          exit ;;
910      arm*:Linux:*:*)
911          eval $set_cc_for_build
912          if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
913              | grep -q __ARM_EABI__
914          then
915 <            echo ${UNAME_MACHINE}-unknown-linux-gnu
915 >            echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
916          else
917              if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
918                  | grep -q __ARM_PCS_VFP
919              then
920 <                echo ${UNAME_MACHINE}-unknown-linux-gnueabi
920 >                echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
921              else
922 <                echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
922 >                echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
923              fi
924          fi
925          exit ;;
926      avr32*:Linux:*:*)
927 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
927 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
928          exit ;;
929      cris:Linux:*:*)
930 <        echo ${UNAME_MACHINE}-axis-linux-gnu
930 >        echo ${UNAME_MACHINE}-axis-linux-${LIBC}
931          exit ;;
932      crisv32:Linux:*:*)
933 <        echo ${UNAME_MACHINE}-axis-linux-gnu
933 >        echo ${UNAME_MACHINE}-axis-linux-${LIBC}
934          exit ;;
935      frv:Linux:*:*)
936 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
936 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
937          exit ;;
938      hexagon:Linux:*:*)
939 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
939 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
940          exit ;;
941      i*86:Linux:*:*)
942 <        LIBC=gnu
922 <        eval $set_cc_for_build
923 <        sed 's/^        //' << EOF >$dummy.c
924 <        #ifdef __dietlibc__
925 <        LIBC=dietlibc
926 <        #endif
927 <        #else
928 <        #include <features.h>
929 <        #ifdef __UCLIBC__
930 <        LIBC=uclibc
931 <        #endif
932 < EOF
933 <        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
934 <        echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
942 >        echo ${UNAME_MACHINE}-pc-linux-${LIBC}
943          exit ;;
944      ia64:Linux:*:*)
945 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
945 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
946          exit ;;
947      m32r*:Linux:*:*)
948 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
948 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
949          exit ;;
950      m68*:Linux:*:*)
951 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
951 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
952          exit ;;
953      mips:Linux:*:* | mips64:Linux:*:*)
954          eval $set_cc_for_build
# Line 959 | Line 967 | EOF
967          #endif
968   EOF
969          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
970 <        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
970 >        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
971          ;;
972      or1k:Linux:*:*)
973 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
973 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
974          exit ;;
975      or32:Linux:*:*)
976 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
976 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
977          exit ;;
978      padre:Linux:*:*)
979 <        echo sparc-unknown-linux-gnu
979 >        echo sparc-unknown-linux-${LIBC}
980          exit ;;
981      parisc64:Linux:*:* | hppa64:Linux:*:*)
982 <        echo hppa64-unknown-linux-gnu
982 >        echo hppa64-unknown-linux-${LIBC}
983          exit ;;
984      parisc:Linux:*:* | hppa:Linux:*:*)
985          # Look for CPU level
986          case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
987 <          PA7*) echo hppa1.1-unknown-linux-gnu ;;
988 <          PA8*) echo hppa2.0-unknown-linux-gnu ;;
989 <          *)    echo hppa-unknown-linux-gnu ;;
987 >          PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
988 >          PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
989 >          *)    echo hppa-unknown-linux-${LIBC} ;;
990          esac
991          exit ;;
992      ppc64:Linux:*:*)
993 <        echo powerpc64-unknown-linux-gnu
993 >        echo powerpc64-unknown-linux-${LIBC}
994          exit ;;
995      ppc:Linux:*:*)
996 <        echo powerpc-unknown-linux-gnu
996 >        echo powerpc-unknown-linux-${LIBC}
997          exit ;;
998      s390:Linux:*:* | s390x:Linux:*:*)
999 <        echo ${UNAME_MACHINE}-ibm-linux
999 >        echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1000          exit ;;
1001      sh64*:Linux:*:*)
1002 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
1002 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1003          exit ;;
1004      sh*:Linux:*:*)
1005 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
1005 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1006          exit ;;
1007      sparc:Linux:*:* | sparc64:Linux:*:*)
1008 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
1008 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1009          exit ;;
1010      tile*:Linux:*:*)
1011 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
1011 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1012          exit ;;
1013      vax:Linux:*:*)
1014 <        echo ${UNAME_MACHINE}-dec-linux-gnu
1014 >        echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1015          exit ;;
1016      x86_64:Linux:*:*)
1009        LIBC=gnu
1010        test -r /lib/libc.so && od -An -S13 /lib/libc.so | grep -q __uClibc_main && LIBC=uclibc
1017          echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1018          exit ;;
1019      xtensa*:Linux:*:*)
1020 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
1020 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1021          exit ;;
1022      i*86:DYNIX/ptx:4*:*)
1023          # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
# Line 1244 | Line 1250 | EOF
1250          exit ;;
1251      *:Darwin:*:*)
1252          UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1253 <        case $UNAME_PROCESSOR in
1254 <            i386)
1255 <                eval $set_cc_for_build
1256 <                if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1257 <                  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1258 <                      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1259 <                      grep IS_64BIT_ARCH >/dev/null
1260 <                  then
1261 <                      UNAME_PROCESSOR="x86_64"
1262 <                  fi
1263 <                fi ;;
1264 <            unknown) UNAME_PROCESSOR=powerpc ;;
1265 <        esac
1253 >        eval $set_cc_for_build
1254 >        if test "$UNAME_PROCESSOR" = unknown ; then
1255 >            UNAME_PROCESSOR=powerpc
1256 >        fi
1257 >        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1258 >            if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1259 >                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1260 >                grep IS_64BIT_ARCH >/dev/null
1261 >            then
1262 >                case $UNAME_PROCESSOR in
1263 >                    i386) UNAME_PROCESSOR=x86_64 ;;
1264 >                    powerpc) UNAME_PROCESSOR=powerpc64 ;;
1265 >                esac
1266 >            fi
1267 >        fi
1268          echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1269          exit ;;
1270      *:procnto*:*:* | *:QNX:[0123456789]*:*)

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)