/[pcre]/code/trunk/config.guess
ViewVC logotype

Diff of /code/trunk/config.guess

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 75 by nigel, Sat Feb 24 21:40:37 2007 UTC revision 83 by nigel, Sat Feb 24 21:41:06 2007 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  # Attempt to guess a canonical system name.  # Attempt to guess a canonical system name.
3  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4  #   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.  #   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5    
6  timestamp='2004-07-19'  timestamp='2005-03-24'
7    
8  # This file is free software; you can redistribute it and/or modify it  # This file is free software; you can redistribute it and/or modify it
9  # under the terms of the GNU General Public License as published by  # under the terms of the GNU General Public License as published by
# Line 53  version="\ Line 53  version="\
53  GNU config.guess ($timestamp)  GNU config.guess ($timestamp)
54    
55  Originally written by Per Bothner.  Originally written by Per Bothner.
56  Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004  Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
57  Free Software Foundation, Inc.  Free Software Foundation, Inc.
58    
59  This is free software; see the source for copying conditions.  There is NO  This is free software; see the source for copying conditions.  There is NO
# Line 136  UNAME_RELEASE=`(uname -r) 2>/dev/null` | Line 136  UNAME_RELEASE=`(uname -r) 2>/dev/null` |
136  UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown  UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
137  UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown  UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
138    
139    if [ "${UNAME_SYSTEM}" = "Linux" ] ; then
140            eval $set_cc_for_build
141            cat << EOF > $dummy.c
142            #include <features.h>
143            #ifdef __UCLIBC__
144            # ifdef __UCLIBC_CONFIG_VERSION__
145            LIBC=uclibc __UCLIBC_CONFIG_VERSION__
146            # else
147            LIBC=uclibc
148            # endif
149            #else
150            LIBC=gnu
151            #endif
152    EOF
153            eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'`
154    fi
155    
156  # Note: order is significant - the case branches are not exclusive.  # Note: order is significant - the case branches are not exclusive.
157    
158  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# Line 203  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 220  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
220      amiga:OpenBSD:*:*)      amiga:OpenBSD:*:*)
221          echo m68k-unknown-openbsd${UNAME_RELEASE}          echo m68k-unknown-openbsd${UNAME_RELEASE}
222          exit 0 ;;          exit 0 ;;
     arc:OpenBSD:*:*)  
         echo mipsel-unknown-openbsd${UNAME_RELEASE}  
         exit 0 ;;  
223      cats:OpenBSD:*:*)      cats:OpenBSD:*:*)
224          echo arm-unknown-openbsd${UNAME_RELEASE}          echo arm-unknown-openbsd${UNAME_RELEASE}
225          exit 0 ;;          exit 0 ;;
# Line 230  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 244  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
244      mvmeppc:OpenBSD:*:*)      mvmeppc:OpenBSD:*:*)
245          echo powerpc-unknown-openbsd${UNAME_RELEASE}          echo powerpc-unknown-openbsd${UNAME_RELEASE}
246          exit 0 ;;          exit 0 ;;
     pmax:OpenBSD:*:*)  
         echo mipsel-unknown-openbsd${UNAME_RELEASE}  
         exit 0 ;;  
247      sgi:OpenBSD:*:*)      sgi:OpenBSD:*:*)
248          echo mipseb-unknown-openbsd${UNAME_RELEASE}          echo mips64-unknown-openbsd${UNAME_RELEASE}
249          exit 0 ;;          exit 0 ;;
250      sun3:OpenBSD:*:*)      sun3:OpenBSD:*:*)
251          echo m68k-unknown-openbsd${UNAME_RELEASE}          echo m68k-unknown-openbsd${UNAME_RELEASE}
252          exit 0 ;;          exit 0 ;;
     wgrisc:OpenBSD:*:*)  
         echo mipsel-unknown-openbsd${UNAME_RELEASE}  
         exit 0 ;;  
253      *:OpenBSD:*:*)      *:OpenBSD:*:*)
254          echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}          echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
255          exit 0 ;;          exit 0 ;;
# Line 328  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 336  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
336      *:OS/390:*:*)      *:OS/390:*:*)
337          echo i370-ibm-openedition          echo i370-ibm-openedition
338          exit 0 ;;          exit 0 ;;
339        *:z/VM:*:*)
340            echo s390-ibm-zvmoe
341            exit 0 ;;
342      *:OS400:*:*)      *:OS400:*:*)
343          echo powerpc-ibm-os400          echo powerpc-ibm-os400
344          exit 0 ;;          exit 0 ;;
# Line 351  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 362  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
362      DRS?6000:unix:4.0:6*)      DRS?6000:unix:4.0:6*)
363          echo sparc-icl-nx6          echo sparc-icl-nx6
364          exit 0 ;;          exit 0 ;;
365      DRS?6000:UNIX_SV:4.2*:7*)      DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
366          case `/usr/bin/uname -p` in          case `/usr/bin/uname -p` in
367              sparc) echo sparc-icl-nx7 && exit 0 ;;              sparc) echo sparc-icl-nx7 && exit 0 ;;
368          esac ;;          esac ;;
# Line 810  EOF Line 821  EOF
821      i*:UWIN*:*)      i*:UWIN*:*)
822          echo ${UNAME_MACHINE}-pc-uwin          echo ${UNAME_MACHINE}-pc-uwin
823          exit 0 ;;          exit 0 ;;
824        amd64:CYGWIN*:*:*)
825            echo x86_64-unknown-cygwin
826            exit 0 ;;
827      p*:CYGWIN*:*)      p*:CYGWIN*:*)
828          echo powerpcle-unknown-cygwin          echo powerpcle-unknown-cygwin
829          exit 0 ;;          exit 0 ;;
# Line 828  EOF Line 842  EOF
842          echo ${UNAME_MACHINE}-pc-minix          echo ${UNAME_MACHINE}-pc-minix
843          exit 0 ;;          exit 0 ;;
844      arm*:Linux:*:*)      arm*:Linux:*:*)
845          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
846          exit 0 ;;          exit 0 ;;
847      cris:Linux:*:*)      cris:Linux:*:*)
848          echo cris-axis-linux-gnu          echo cris-axis-linux-${LIBC}
849            exit 0 ;;
850        crisv32:Linux:*:*)
851            echo crisv32-axis-linux-${LIBC}
852            exit 0 ;;
853        frv:Linux:*:*)
854            echo frv-unknown-linux-${LIBC}
855          exit 0 ;;          exit 0 ;;
856      ia64:Linux:*:*)      ia64:Linux:*:*)
857          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
858          exit 0 ;;          exit 0 ;;
859      m32r*:Linux:*:*)      m32r*:Linux:*:*)
860          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
861          exit 0 ;;          exit 0 ;;
862      m68*:Linux:*:*)      m68*:Linux:*:*)
863          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
864          exit 0 ;;          exit 0 ;;
865      mips:Linux:*:*)      mips:Linux:*:*)
866          eval $set_cc_for_build          eval $set_cc_for_build
# Line 859  EOF Line 879  EOF
879          #endif          #endif
880  EOF  EOF
881          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
882          test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0          test x"${CPU}" != x && echo "${CPU}-unknown-linux-${LIBC}" && exit 0
883          ;;          ;;
884      mips64:Linux:*:*)      mips64:Linux:*:*)
885          eval $set_cc_for_build          eval $set_cc_for_build
# Line 878  EOF Line 898  EOF
898          #endif          #endif
899  EOF  EOF
900          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
901          test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0          test x"${CPU}" != x && echo "${CPU}-unknown-linux-${LIBC}" && exit 0
902          ;;          ;;
903      ppc:Linux:*:*)      ppc:Linux:*:*)
904          echo powerpc-unknown-linux-gnu          echo powerpc-unknown-linux-${LIBC}
905          exit 0 ;;          exit 0 ;;
906      ppc64:Linux:*:*)      ppc64:Linux:*:*)
907          echo powerpc64-unknown-linux-gnu          echo powerpc64-unknown-linux-${LIBC}
908          exit 0 ;;          exit 0 ;;
909      alpha:Linux:*:*)      alpha:Linux:*:*)
910          case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in          case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
# Line 897  EOF Line 917  EOF
917            EV68*) UNAME_MACHINE=alphaev68 ;;            EV68*) UNAME_MACHINE=alphaev68 ;;
918          esac          esac
919          objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null          objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
920          if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi          if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
921          echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}          echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
922          exit 0 ;;          exit 0 ;;
923      parisc:Linux:*:* | hppa:Linux:*:*)      parisc:Linux:*:* | hppa:Linux:*:*)
924          # Look for CPU level          # Look for CPU level
925          case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in          case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
926            PA7*) echo hppa1.1-unknown-linux-gnu ;;            PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
927            PA8*) echo hppa2.0-unknown-linux-gnu ;;            PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
928            *)    echo hppa-unknown-linux-gnu ;;            *)    echo hppa-unknown-linux-${LIBC} ;;
929          esac          esac
930          exit 0 ;;          exit 0 ;;
931      parisc64:Linux:*:* | hppa64:Linux:*:*)      parisc64:Linux:*:* | hppa64:Linux:*:*)
932          echo hppa64-unknown-linux-gnu          echo hppa64-unknown-linux-${LIBC}
933          exit 0 ;;          exit 0 ;;
934      s390:Linux:*:* | s390x:Linux:*:*)      s390:Linux:*:* | s390x:Linux:*:*)
935          echo ${UNAME_MACHINE}-ibm-linux          echo ${UNAME_MACHINE}-ibm-linux
936          exit 0 ;;          exit 0 ;;
937      sh64*:Linux:*:*)      sh64*:Linux:*:*)
938          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
939          exit 0 ;;          exit 0 ;;
940      sh*:Linux:*:*)      sh*:Linux:*:*)
941          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
942          exit 0 ;;          exit 0 ;;
943      sparc:Linux:*:* | sparc64:Linux:*:*)      sparc:Linux:*:* | sparc64:Linux:*:*)
944          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
945          exit 0 ;;          exit 0 ;;
946      x86_64:Linux:*:*)      x86_64:Linux:*:*)
947          echo x86_64-unknown-linux-gnu          echo x86_64-unknown-linux-${LIBC}
948          exit 0 ;;          exit 0 ;;
949      i*86:Linux:*:*)      i*86:Linux:*:*)
950          # The BFD linker knows what the default object file format is, so          # The BFD linker knows what the default object file format is, so
# Line 939  EOF Line 959  EOF
959                                      p'`                                      p'`
960          case "$ld_supported_targets" in          case "$ld_supported_targets" in
961            elf32-i386)            elf32-i386)
962                  TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"                  TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}"
963                  ;;                  ;;
964            a.out-i386-linux)            a.out-i386-linux)
965                  echo "${UNAME_MACHINE}-pc-linux-gnuaout"                  echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout"
966                  exit 0 ;;                  exit 0 ;;
967            coff-i386)            coff-i386)
968                  echo "${UNAME_MACHINE}-pc-linux-gnucoff"                  echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff"
969                  exit 0 ;;                  exit 0 ;;
970            "")            "")
971                  # Either a pre-BFD a.out linker (linux-gnuoldld) or                  # Either a pre-BFD a.out linker (linux-gnuoldld) or
972                  # one that does not give us useful --help.                  # one that does not give us useful --help.
973                  echo "${UNAME_MACHINE}-pc-linux-gnuoldld"                  echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld"
974                  exit 0 ;;                  exit 0 ;;
975          esac          esac
976            if [ "`echo $LIBC | sed -e 's:uclibc::'`" != "$LIBC" ] ; then echo "$TENTATIVE" && exit 0 ; fi
977          # Determine whether the default compiler is a.out or elf          # Determine whether the default compiler is a.out or elf
978          eval $set_cc_for_build          eval $set_cc_for_build
979          sed 's/^        //' << EOF >$dummy.c          sed 's/^        //' << EOF >$dummy.c
# Line 1179  EOF Line 1200  EOF
1200          echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}          echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1201          exit 0 ;;          exit 0 ;;
1202      *:Darwin:*:*)      *:Darwin:*:*)
1203          case `uname -p` in          UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1204            case $UNAME_PROCESSOR in
1205              *86) UNAME_PROCESSOR=i686 ;;              *86) UNAME_PROCESSOR=i686 ;;
1206              powerpc) UNAME_PROCESSOR=powerpc ;;              unknown) UNAME_PROCESSOR=powerpc ;;
1207          esac          esac
1208          echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}          echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1209          exit 0 ;;          exit 0 ;;
# Line 1196  EOF Line 1218  EOF
1218      *:QNX:*:4*)      *:QNX:*:4*)
1219          echo i386-pc-qnx          echo i386-pc-qnx
1220          exit 0 ;;          exit 0 ;;
1221        NSE-?:NONSTOP_KERNEL:*:*)
1222            echo nse-tandem-nsk${UNAME_RELEASE}
1223            exit 0 ;;
1224      NSR-?:NONSTOP_KERNEL:*:*)      NSR-?:NONSTOP_KERNEL:*:*)
1225          echo nsr-tandem-nsk${UNAME_RELEASE}          echo nsr-tandem-nsk${UNAME_RELEASE}
1226          exit 0 ;;          exit 0 ;;
# Line 1249  EOF Line 1274  EOF
1274              A*) echo alpha-dec-vms && exit 0 ;;              A*) echo alpha-dec-vms && exit 0 ;;
1275              I*) echo ia64-dec-vms && exit 0 ;;              I*) echo ia64-dec-vms && exit 0 ;;
1276              V*) echo vax-dec-vms && exit 0 ;;              V*) echo vax-dec-vms && exit 0 ;;
1277          esac          esac ;;
1278        *:XENIX:*:SysV)
1279            echo i386-pc-xenix
1280            exit 0 ;;
1281  esac  esac
1282    
1283  #echo '(No uname command or uname output not recognized.)' 1>&2  #echo '(No uname command or uname output not recognized.)' 1>&2
# Line 1409  This script, last modified $timestamp, h Line 1437  This script, last modified $timestamp, h
1437  the operating system you are using. It is advised that you  the operating system you are using. It is advised that you
1438  download the most up to date version of the config scripts from  download the most up to date version of the config scripts from
1439    
1440      ftp://ftp.gnu.org/pub/gnu/config/    http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1441    and
1442      http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1443    
1444  If the version you run ($0) is already up to date, please  If the version you run ($0) is already up to date, please
1445  send the following data and any information you think might be  send the following data and any information you think might be

Legend:
Removed from v.75  
changed lines
  Added in v.83

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12