Ticket #43120: patch-bigdft-config.diff

File patch-bigdft-config.diff, 88.2 KB (added by cram5431@…, 10 years ago)
  • fallbacks/Makefile.am

    stamps/bigdft-config-stamp: stamps/bigdf 
    564564
    565565stamps/bigdft-patch-stamp: stamps/bigdft-unfold-stamp
    566566        $(PATCH) -d sources/$(bigdft_pkg_name) -p1 <$(top_srcdir)/patches/bigdft-abi-1.0.4-0001.patch
     567        $(PATCH) -d sources/$(bigdft_pkg_name) -p1 <$(top_srcdir)/patches/bigdft-abi-1.0.4-0002.patch
    567568        @touch stamps/bigdft-patch-stamp
    568569
    569570stamps/bigdft-unfold-stamp:
    EXTRA_DIST = \ 
    617618        patches/bigdft-1.2.0.5-0001.patch \
    618619        patches/wannier90-1.2-0003.patch \
    619620        patches/bigdft-abi-1.0.4-0001.patch \
     621        patches/bigdft-abi-1.0.4-0002.patch \
    620622        patches/bigdft-1.2.0.2-0005.patch \
    621623        patches/libxc-2.0.1-0002.patch \
    622624        patches/bigdft-1.2.0.2-0003.patch \
  • fallbacks/Makefile.in

    EXTRA_DIST = \ 
    327327        patches/bigdft-1.2.0.5-0001.patch \
    328328        patches/wannier90-1.2-0003.patch \
    329329        patches/bigdft-abi-1.0.4-0001.patch \
     330        patches/bigdft-abi-1.0.4-0002.patch \
    330331        patches/bigdft-1.2.0.2-0005.patch \
    331332        patches/libxc-2.0.1-0002.patch \
    332333        patches/bigdft-1.2.0.2-0003.patch \
    clean_wannier90: 
    11381139
    11391140@DO_BUILD_BIGDFT_TRUE@stamps/bigdft-patch-stamp: stamps/bigdft-unfold-stamp
    11401141@DO_BUILD_BIGDFT_TRUE@  $(PATCH) -d sources/$(bigdft_pkg_name) -p1 <$(top_srcdir)/patches/bigdft-abi-1.0.4-0001.patch
     1142@DO_BUILD_BIGDFT_TRUE@  $(PATCH) -d sources/$(bigdft_pkg_name) -p1 <$(top_srcdir)/patches/bigdft-abi-1.0.4-0002.patch
    11411143@DO_BUILD_BIGDFT_TRUE@  @touch stamps/bigdft-patch-stamp
    11421144
    11431145@DO_BUILD_BIGDFT_TRUE@stamps/bigdft-unfold-stamp:
  • fallbacks/patches/bigdft-abi-1.0.4-0002.patch

     
     1--- bigdft-abi-1.0.4/config/config.guess        1970-01-01 01:00:00.000000000 +0100
     2+++ bigdft-abi-1.0.4/config/config.guess        2014-03-15 23:56:48.000000000 +0100
     3@@ -0,0 +1,1568 @@
     4+#! /bin/sh
     5+# Attempt to guess a canonical system name.
     6+#   Copyright 1992-2013 Free Software Foundation, Inc.
     7+
     8+timestamp='2013-11-29'
     9+
     10+# This file is free software; you can redistribute it and/or modify it
     11+# under the terms of the GNU General Public License as published by
     12+# the Free Software Foundation; either version 3 of the License, or
     13+# (at your option) any later version.
     14+#
     15+# This program is distributed in the hope that it will be useful, but
     16+# WITHOUT ANY WARRANTY; without even the implied warranty of
     17+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     18+# General Public License for more details.
     19+#
     20+# You should have received a copy of the GNU General Public License
     21+# along with this program; if not, see <http://www.gnu.org/licenses/>.
     22+#
     23+# As a special exception to the GNU General Public License, if you
     24+# distribute this file as part of a program that contains a
     25+# configuration script generated by Autoconf, you may include it under
     26+# the same distribution terms that you use for the rest of that
     27+# program.  This Exception is an additional permission under section 7
     28+# of the GNU General Public License, version 3 ("GPLv3").
     29+#
     30+# Originally written by Per Bothner.
     31+#
     32+# You can get the latest version of this script from:
     33+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
     34+#
     35+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
     36+
     37+
     38+me=`echo "$0" | sed -e 's,.*/,,'`
     39+
     40+usage="\
     41+Usage: $0 [OPTION]
     42+
     43+Output the configuration name of the system \`$me' is run on.
     44+
     45+Operation modes:
     46+  -h, --help         print this help, then exit
     47+  -t, --time-stamp   print date of last modification, then exit
     48+  -v, --version      print version number, then exit
     49+
     50+Report bugs and patches to <config-patches@gnu.org>."
     51+
     52+version="\
     53+GNU config.guess ($timestamp)
     54+
     55+Originally written by Per Bothner.
     56+Copyright 1992-2013 Free Software Foundation, Inc.
     57+
     58+This is free software; see the source for copying conditions.  There is NO
     59+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
     60+
     61+help="
     62+Try \`$me --help' for more information."
     63+
     64+# Parse command line
     65+while test $# -gt 0 ; do
     66+  case $1 in
     67+    --time-stamp | --time* | -t )
     68+       echo "$timestamp" ; exit ;;
     69+    --version | -v )
     70+       echo "$version" ; exit ;;
     71+    --help | --h* | -h )
     72+       echo "$usage"; exit ;;
     73+    -- )     # Stop option processing
     74+       shift; break ;;
     75+    - )        # Use stdin as input.
     76+       break ;;
     77+    -* )
     78+       echo "$me: invalid option $1$help" >&2
     79+       exit 1 ;;
     80+    * )
     81+       break ;;
     82+  esac
     83+done
     84+
     85+if test $# != 0; then
     86+  echo "$me: too many arguments$help" >&2
     87+  exit 1
     88+fi
     89+
     90+trap 'exit 1' 1 2 15
     91+
     92+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
     93+# compiler to aid in system detection is discouraged as it requires
     94+# temporary files to be created and, as you can see below, it is a
     95+# headache to deal with in a portable fashion.
     96+
     97+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
     98+# use `HOST_CC' if defined, but it is deprecated.
     99+
     100+# Portable tmp directory creation inspired by the Autoconf team.
     101+
     102+set_cc_for_build='
     103+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
     104+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
     105+: ${TMPDIR=/tmp} ;
     106+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
     107+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
     108+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
     109+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
     110+dummy=$tmp/dummy ;
     111+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
     112+case $CC_FOR_BUILD,$HOST_CC,$CC in
     113+ ,,)    echo "int x;" > $dummy.c ;
     114+       for c in cc gcc c89 c99 ; do
     115+         if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
     116+            CC_FOR_BUILD="$c"; break ;
     117+         fi ;
     118+       done ;
     119+       if test x"$CC_FOR_BUILD" = x ; then
     120+         CC_FOR_BUILD=no_compiler_found ;
     121+       fi
     122+       ;;
     123+ ,,*)   CC_FOR_BUILD=$CC ;;
     124+ ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
     125+esac ; set_cc_for_build= ;'
     126+
     127+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
     128+# (ghazi@noc.rutgers.edu 1994-08-24)
     129+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
     130+       PATH=$PATH:/.attbin ; export PATH
     131+fi
     132+
     133+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
     134+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
     135+UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
     136+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
     137+
     138+case "${UNAME_SYSTEM}" in
     139+Linux|GNU|GNU/*)
     140+       # If the system lacks a compiler, then just pick glibc.
     141+       # We could probably try harder.
     142+       LIBC=gnu
     143+
     144+       eval $set_cc_for_build
     145+       cat <<-EOF > $dummy.c
     146+       #include <features.h>
     147+       #if defined(__UCLIBC__)
     148+       LIBC=uclibc
     149+       #elif defined(__dietlibc__)
     150+       LIBC=dietlibc
     151+       #else
     152+       LIBC=gnu
     153+       #endif
     154+       EOF
     155+       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
     156+       ;;
     157+esac
     158+
     159+# Note: order is significant - the case branches are not exclusive.
     160+
     161+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
     162+    *:NetBSD:*:*)
     163+       # NetBSD (nbsd) targets should (where applicable) match one or
     164+       # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
     165+       # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
     166+       # switched to ELF, *-*-netbsd* would select the old
     167+       # object file format.  This provides both forward
     168+       # compatibility and a consistent mechanism for selecting the
     169+       # object file format.
     170+       #
     171+       # Note: NetBSD doesn't particularly care about the vendor
     172+       # portion of the name.  We always set it to "unknown".
     173+       sysctl="sysctl -n hw.machine_arch"
     174+       UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
     175+           /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
     176+       case "${UNAME_MACHINE_ARCH}" in
     177+           armeb) machine=armeb-unknown ;;
     178+           arm*) machine=arm-unknown ;;
     179+           sh3el) machine=shl-unknown ;;
     180+           sh3eb) machine=sh-unknown ;;
     181+           sh5el) machine=sh5le-unknown ;;
     182+           *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
     183+       esac
     184+       # The Operating System including object format, if it has switched
     185+       # to ELF recently, or will in the future.
     186+       case "${UNAME_MACHINE_ARCH}" in
     187+           arm*|i386|m68k|ns32k|sh3*|sparc|vax)
     188+               eval $set_cc_for_build
     189+               if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
     190+                       | grep -q __ELF__
     191+               then
     192+                   # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
     193+                   # Return netbsd for either.  FIX?
     194+                   os=netbsd
     195+               else
     196+                   os=netbsdelf
     197+               fi
     198+               ;;
     199+           *)
     200+               os=netbsd
     201+               ;;
     202+       esac
     203+       # The OS release
     204+       # Debian GNU/NetBSD machines have a different userland, and
     205+       # thus, need a distinct triplet. However, they do not need
     206+       # kernel version information, so it can be replaced with a
     207+       # suitable tag, in the style of linux-gnu.
     208+       case "${UNAME_VERSION}" in
     209+           Debian*)
     210+               release='-gnu'
     211+               ;;
     212+           *)
     213+               release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
     214+               ;;
     215+       esac
     216+       # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
     217+       # contains redundant information, the shorter form:
     218+       # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
     219+       echo "${machine}-${os}${release}"
     220+       exit ;;
     221+    *:Bitrig:*:*)
     222+       UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
     223+       echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
     224+       exit ;;
     225+    *:OpenBSD:*:*)
     226+       UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
     227+       echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
     228+       exit ;;
     229+    *:ekkoBSD:*:*)
     230+       echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
     231+       exit ;;
     232+    *:SolidBSD:*:*)
     233+       echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
     234+       exit ;;
     235+    macppc:MirBSD:*:*)
     236+       echo powerpc-unknown-mirbsd${UNAME_RELEASE}
     237+       exit ;;
     238+    *:MirBSD:*:*)
     239+       echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
     240+       exit ;;
     241+    alpha:OSF1:*:*)
     242+       case $UNAME_RELEASE in
     243+       *4.0)
     244+               UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
     245+               ;;
     246+       *5.*)
     247+               UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
     248+               ;;
     249+       esac
     250+       # According to Compaq, /usr/sbin/psrinfo has been available on
     251+       # OSF/1 and Tru64 systems produced since 1995.  I hope that
     252+       # covers most systems running today.  This code pipes the CPU
     253+       # types through head -n 1, so we only detect the type of CPU 0.
     254+       ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
     255+       case "$ALPHA_CPU_TYPE" in
     256+           "EV4 (21064)")
     257+               UNAME_MACHINE="alpha" ;;
     258+           "EV4.5 (21064)")
     259+               UNAME_MACHINE="alpha" ;;
     260+           "LCA4 (21066/21068)")
     261+               UNAME_MACHINE="alpha" ;;
     262+           "EV5 (21164)")
     263+               UNAME_MACHINE="alphaev5" ;;
     264+           "EV5.6 (21164A)")
     265+               UNAME_MACHINE="alphaev56" ;;
     266+           "EV5.6 (21164PC)")
     267+               UNAME_MACHINE="alphapca56" ;;
     268+           "EV5.7 (21164PC)")
     269+               UNAME_MACHINE="alphapca57" ;;
     270+           "EV6 (21264)")
     271+               UNAME_MACHINE="alphaev6" ;;
     272+           "EV6.7 (21264A)")
     273+               UNAME_MACHINE="alphaev67" ;;
     274+           "EV6.8CB (21264C)")
     275+               UNAME_MACHINE="alphaev68" ;;
     276+           "EV6.8AL (21264B)")
     277+               UNAME_MACHINE="alphaev68" ;;
     278+           "EV6.8CX (21264D)")
     279+               UNAME_MACHINE="alphaev68" ;;
     280+           "EV6.9A (21264/EV69A)")
     281+               UNAME_MACHINE="alphaev69" ;;
     282+           "EV7 (21364)")
     283+               UNAME_MACHINE="alphaev7" ;;
     284+           "EV7.9 (21364A)")
     285+               UNAME_MACHINE="alphaev79" ;;
     286+       esac
     287+       # A Pn.n version is a patched version.
     288+       # A Vn.n version is a released version.
     289+       # A Tn.n version is a released field test version.
     290+       # A Xn.n version is an unreleased experimental baselevel.
     291+       # 1.2 uses "1.2" for uname -r.
     292+       echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     293+       # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
     294+       exitcode=$?
     295+       trap '' 0
     296+       exit $exitcode ;;
     297+    Alpha\ *:Windows_NT*:*)
     298+       # How do we know it's Interix rather than the generic POSIX subsystem?
     299+       # Should we change UNAME_MACHINE based on the output of uname instead
     300+       # of the specific Alpha model?
     301+       echo alpha-pc-interix
     302+       exit ;;
     303+    21064:Windows_NT:50:3)
     304+       echo alpha-dec-winnt3.5
     305+       exit ;;
     306+    Amiga*:UNIX_System_V:4.0:*)
     307+       echo m68k-unknown-sysv4
     308+       exit ;;
     309+    *:[Aa]miga[Oo][Ss]:*:*)
     310+       echo ${UNAME_MACHINE}-unknown-amigaos
     311+       exit ;;
     312+    *:[Mm]orph[Oo][Ss]:*:*)
     313+       echo ${UNAME_MACHINE}-unknown-morphos
     314+       exit ;;
     315+    *:OS/390:*:*)
     316+       echo i370-ibm-openedition
     317+       exit ;;
     318+    *:z/VM:*:*)
     319+       echo s390-ibm-zvmoe
     320+       exit ;;
     321+    *:OS400:*:*)
     322+       echo powerpc-ibm-os400
     323+       exit ;;
     324+    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
     325+       echo arm-acorn-riscix${UNAME_RELEASE}
     326+       exit ;;
     327+    arm*:riscos:*:*|arm*:RISCOS:*:*)
     328+       echo arm-unknown-riscos
     329+       exit ;;
     330+    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
     331+       echo hppa1.1-hitachi-hiuxmpp
     332+       exit ;;
     333+    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
     334+       # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
     335+       if test "`(/bin/universe) 2>/dev/null`" = att ; then
     336+               echo pyramid-pyramid-sysv3
     337+       else
     338+               echo pyramid-pyramid-bsd
     339+       fi
     340+       exit ;;
     341+    NILE*:*:*:dcosx)
     342+       echo pyramid-pyramid-svr4
     343+       exit ;;
     344+    DRS?6000:unix:4.0:6*)
     345+       echo sparc-icl-nx6
     346+       exit ;;
     347+    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
     348+       case `/usr/bin/uname -p` in
     349+           sparc) echo sparc-icl-nx7; exit ;;
     350+       esac ;;
     351+    s390x:SunOS:*:*)
     352+       echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     353+       exit ;;
     354+    sun4H:SunOS:5.*:*)
     355+       echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     356+       exit ;;
     357+    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
     358+       echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     359+       exit ;;
     360+    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
     361+       echo i386-pc-auroraux${UNAME_RELEASE}
     362+       exit ;;
     363+    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
     364+       eval $set_cc_for_build
     365+       SUN_ARCH="i386"
     366+       # If there is a compiler, see if it is configured for 64-bit objects.
     367+       # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
     368+       # This test works for both compilers.
     369+       if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
     370+           if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
     371+               (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
     372+               grep IS_64BIT_ARCH >/dev/null
     373+           then
     374+               SUN_ARCH="x86_64"
     375+           fi
     376+       fi
     377+       echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     378+       exit ;;
     379+    sun4*:SunOS:6*:*)
     380+       # According to config.sub, this is the proper way to canonicalize
     381+       # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
     382+       # it's likely to be more like Solaris than SunOS4.
     383+       echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     384+       exit ;;
     385+    sun4*:SunOS:*:*)
     386+       case "`/usr/bin/arch -k`" in
     387+           Series*|S4*)
     388+               UNAME_RELEASE=`uname -v`
     389+               ;;
     390+       esac
     391+       # Japanese Language versions have a version number like `4.1.3-JL'.
     392+       echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
     393+       exit ;;
     394+    sun3*:SunOS:*:*)
     395+       echo m68k-sun-sunos${UNAME_RELEASE}
     396+       exit ;;
     397+    sun*:*:4.2BSD:*)
     398+       UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
     399+       test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
     400+       case "`/bin/arch`" in
     401+           sun3)
     402+               echo m68k-sun-sunos${UNAME_RELEASE}
     403+               ;;
     404+           sun4)
     405+               echo sparc-sun-sunos${UNAME_RELEASE}
     406+               ;;
     407+       esac
     408+       exit ;;
     409+    aushp:SunOS:*:*)
     410+       echo sparc-auspex-sunos${UNAME_RELEASE}
     411+       exit ;;
     412+    # The situation for MiNT is a little confusing.  The machine name
     413+    # can be virtually everything (everything which is not
     414+    # "atarist" or "atariste" at least should have a processor
     415+    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
     416+    # to the lowercase version "mint" (or "freemint").  Finally
     417+    # the system name "TOS" denotes a system which is actually not
     418+    # MiNT.  But MiNT is downward compatible to TOS, so this should
     419+    # be no problem.
     420+    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
     421+       echo m68k-atari-mint${UNAME_RELEASE}
     422+       exit ;;
     423+    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
     424+       echo m68k-atari-mint${UNAME_RELEASE}
     425+       exit ;;
     426+    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
     427+       echo m68k-atari-mint${UNAME_RELEASE}
     428+       exit ;;
     429+    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
     430+       echo m68k-milan-mint${UNAME_RELEASE}
     431+       exit ;;
     432+    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
     433+       echo m68k-hades-mint${UNAME_RELEASE}
     434+       exit ;;
     435+    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
     436+       echo m68k-unknown-mint${UNAME_RELEASE}
     437+       exit ;;
     438+    m68k:machten:*:*)
     439+       echo m68k-apple-machten${UNAME_RELEASE}
     440+       exit ;;
     441+    powerpc:machten:*:*)
     442+       echo powerpc-apple-machten${UNAME_RELEASE}
     443+       exit ;;
     444+    RISC*:Mach:*:*)
     445+       echo mips-dec-mach_bsd4.3
     446+       exit ;;
     447+    RISC*:ULTRIX:*:*)
     448+       echo mips-dec-ultrix${UNAME_RELEASE}
     449+       exit ;;
     450+    VAX*:ULTRIX*:*:*)
     451+       echo vax-dec-ultrix${UNAME_RELEASE}
     452+       exit ;;
     453+    2020:CLIX:*:* | 2430:CLIX:*:*)
     454+       echo clipper-intergraph-clix${UNAME_RELEASE}
     455+       exit ;;
     456+    mips:*:*:UMIPS | mips:*:*:RISCos)
     457+       eval $set_cc_for_build
     458+       sed 's/^        //' << EOF >$dummy.c
     459+#ifdef __cplusplus
     460+#include <stdio.h>  /* for printf() prototype */
     461+       int main (int argc, char *argv[]) {
     462+#else
     463+       int main (argc, argv) int argc; char *argv[]; {
     464+#endif
     465+       #if defined (host_mips) && defined (MIPSEB)
     466+       #if defined (SYSTYPE_SYSV)
     467+         printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
     468+       #endif
     469+       #if defined (SYSTYPE_SVR4)
     470+         printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
     471+       #endif
     472+       #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
     473+         printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
     474+       #endif
     475+       #endif
     476+         exit (-1);
     477+       }
     478+EOF
     479+       $CC_FOR_BUILD -o $dummy $dummy.c &&
     480+         dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
     481+         SYSTEM_NAME=`$dummy $dummyarg` &&
     482+           { echo "$SYSTEM_NAME"; exit; }
     483+       echo mips-mips-riscos${UNAME_RELEASE}
     484+       exit ;;
     485+    Motorola:PowerMAX_OS:*:*)
     486+       echo powerpc-motorola-powermax
     487+       exit ;;
     488+    Motorola:*:4.3:PL8-*)
     489+       echo powerpc-harris-powermax
     490+       exit ;;
     491+    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
     492+       echo powerpc-harris-powermax
     493+       exit ;;
     494+    Night_Hawk:Power_UNIX:*:*)
     495+       echo powerpc-harris-powerunix
     496+       exit ;;
     497+    m88k:CX/UX:7*:*)
     498+       echo m88k-harris-cxux7
     499+       exit ;;
     500+    m88k:*:4*:R4*)
     501+       echo m88k-motorola-sysv4
     502+       exit ;;
     503+    m88k:*:3*:R3*)
     504+       echo m88k-motorola-sysv3
     505+       exit ;;
     506+    AViiON:dgux:*:*)
     507+       # DG/UX returns AViiON for all architectures
     508+       UNAME_PROCESSOR=`/usr/bin/uname -p`
     509+       if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
     510+       then
     511+           if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
     512+              [ ${TARGET_BINARY_INTERFACE}x = x ]
     513+           then
     514+               echo m88k-dg-dgux${UNAME_RELEASE}
     515+           else
     516+               echo m88k-dg-dguxbcs${UNAME_RELEASE}
     517+           fi
     518+       else
     519+           echo i586-dg-dgux${UNAME_RELEASE}
     520+       fi
     521+       exit ;;
     522+    M88*:DolphinOS:*:*)        # DolphinOS (SVR3)
     523+       echo m88k-dolphin-sysv3
     524+       exit ;;
     525+    M88*:*:R3*:*)
     526+       # Delta 88k system running SVR3
     527+       echo m88k-motorola-sysv3
     528+       exit ;;
     529+    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
     530+       echo m88k-tektronix-sysv3
     531+       exit ;;
     532+    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
     533+       echo m68k-tektronix-bsd
     534+       exit ;;
     535+    *:IRIX*:*:*)
     536+       echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
     537+       exit ;;
     538+    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
     539+       echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
     540+       exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
     541+    i*86:AIX:*:*)
     542+       echo i386-ibm-aix
     543+       exit ;;
     544+    ia64:AIX:*:*)
     545+       if [ -x /usr/bin/oslevel ] ; then
     546+               IBM_REV=`/usr/bin/oslevel`
     547+       else
     548+               IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
     549+       fi
     550+       echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
     551+       exit ;;
     552+    *:AIX:2:3)
     553+       if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
     554+               eval $set_cc_for_build
     555+               sed 's/^                //' << EOF >$dummy.c
     556+               #include <sys/systemcfg.h>
     557+
     558+               main()
     559+                       {
     560+                       if (!__power_pc())
     561+                               exit(1);
     562+                       puts("powerpc-ibm-aix3.2.5");
     563+                       exit(0);
     564+                       }
     565+EOF
     566+               if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
     567+               then
     568+                       echo "$SYSTEM_NAME"
     569+               else
     570+                       echo rs6000-ibm-aix3.2.5
     571+               fi
     572+       elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
     573+               echo rs6000-ibm-aix3.2.4
     574+       else
     575+               echo rs6000-ibm-aix3.2
     576+       fi
     577+       exit ;;
     578+    *:AIX:*:[4567])
     579+       IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
     580+       if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
     581+               IBM_ARCH=rs6000
     582+       else
     583+               IBM_ARCH=powerpc
     584+       fi
     585+       if [ -x /usr/bin/oslevel ] ; then
     586+               IBM_REV=`/usr/bin/oslevel`
     587+       else
     588+               IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
     589+       fi
     590+       echo ${IBM_ARCH}-ibm-aix${IBM_REV}
     591+       exit ;;
     592+    *:AIX:*:*)
     593+       echo rs6000-ibm-aix
     594+       exit ;;
     595+    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
     596+       echo romp-ibm-bsd4.4
     597+       exit ;;
     598+    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
     599+       echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
     600+       exit ;;                             # report: romp-ibm BSD 4.3
     601+    *:BOSX:*:*)
     602+       echo rs6000-bull-bosx
     603+       exit ;;
     604+    DPX/2?00:B.O.S.:*:*)
     605+       echo m68k-bull-sysv3
     606+       exit ;;
     607+    9000/[34]??:4.3bsd:1.*:*)
     608+       echo m68k-hp-bsd
     609+       exit ;;
     610+    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
     611+       echo m68k-hp-bsd4.4
     612+       exit ;;
     613+    9000/[34678]??:HP-UX:*:*)
     614+       HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
     615+       case "${UNAME_MACHINE}" in
     616+           9000/31? )            HP_ARCH=m68000 ;;
     617+           9000/[34]?? )         HP_ARCH=m68k ;;
     618+           9000/[678][0-9][0-9])
     619+               if [ -x /usr/bin/getconf ]; then
     620+                   sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
     621+                   sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
     622+                   case "${sc_cpu_version}" in
     623+                     523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
     624+                     528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
     625+                     532)                      # CPU_PA_RISC2_0
     626+                       case "${sc_kernel_bits}" in
     627+                         32) HP_ARCH="hppa2.0n" ;;
     628+                         64) HP_ARCH="hppa2.0w" ;;
     629+                         '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
     630+                       esac ;;
     631+                   esac
     632+               fi
     633+               if [ "${HP_ARCH}" = "" ]; then
     634+                   eval $set_cc_for_build
     635+                   sed 's/^            //' << EOF >$dummy.c
     636+
     637+               #define _HPUX_SOURCE
     638+               #include <stdlib.h>
     639+               #include <unistd.h>
     640+
     641+               int main ()
     642+               {
     643+               #if defined(_SC_KERNEL_BITS)
     644+                   long bits = sysconf(_SC_KERNEL_BITS);
     645+               #endif
     646+                   long cpu  = sysconf (_SC_CPU_VERSION);
     647+
     648+                   switch (cpu)
     649+                       {
     650+                       case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
     651+                       case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
     652+                       case CPU_PA_RISC2_0:
     653+               #if defined(_SC_KERNEL_BITS)
     654+                           switch (bits)
     655+                               {
     656+                               case 64: puts ("hppa2.0w"); break;
     657+                               case 32: puts ("hppa2.0n"); break;
     658+                               default: puts ("hppa2.0"); break;
     659+                               } break;
     660+               #else  /* !defined(_SC_KERNEL_BITS) */
     661+                           puts ("hppa2.0"); break;
     662+               #endif
     663+                       default: puts ("hppa1.0"); break;
     664+                       }
     665+                   exit (0);
     666+               }
     667+EOF
     668+                   (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
     669+                   test -z "$HP_ARCH" && HP_ARCH=hppa
     670+               fi ;;
     671+       esac
     672+       if [ ${HP_ARCH} = "hppa2.0w" ]
     673+       then
     674+           eval $set_cc_for_build
     675+
     676+           # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
     677+           # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
     678+           # generating 64-bit code.  GNU and HP use different nomenclature:
     679+           #
     680+           # $ CC_FOR_BUILD=cc ./config.guess
     681+           # => hppa2.0w-hp-hpux11.23
     682+           # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
     683+           # => hppa64-hp-hpux11.23
     684+
     685+           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
     686+               grep -q __LP64__
     687+           then
     688+               HP_ARCH="hppa2.0w"
     689+           else
     690+               HP_ARCH="hppa64"
     691+           fi
     692+       fi
     693+       echo ${HP_ARCH}-hp-hpux${HPUX_REV}
     694+       exit ;;
     695+    ia64:HP-UX:*:*)
     696+       HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
     697+       echo ia64-hp-hpux${HPUX_REV}
     698+       exit ;;
     699+    3050*:HI-UX:*:*)
     700+       eval $set_cc_for_build
     701+       sed 's/^        //' << EOF >$dummy.c
     702+       #include <unistd.h>
     703+       int
     704+       main ()
     705+       {
     706+         long cpu = sysconf (_SC_CPU_VERSION);
     707+         /* The order matters, because CPU_IS_HP_MC68K erroneously returns
     708+            true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
     709+            results, however.  */
     710+         if (CPU_IS_PA_RISC (cpu))
     711+           {
     712+             switch (cpu)
     713+               {
     714+                 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
     715+                 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
     716+                 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
     717+                 default: puts ("hppa-hitachi-hiuxwe2"); break;
     718+               }
     719+           }
     720+         else if (CPU_IS_HP_MC68K (cpu))
     721+           puts ("m68k-hitachi-hiuxwe2");
     722+         else puts ("unknown-hitachi-hiuxwe2");
     723+         exit (0);
     724+       }
     725+EOF
     726+       $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
     727+               { echo "$SYSTEM_NAME"; exit; }
     728+       echo unknown-hitachi-hiuxwe2
     729+       exit ;;
     730+    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
     731+       echo hppa1.1-hp-bsd
     732+       exit ;;
     733+    9000/8??:4.3bsd:*:*)
     734+       echo hppa1.0-hp-bsd
     735+       exit ;;
     736+    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
     737+       echo hppa1.0-hp-mpeix
     738+       exit ;;
     739+    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
     740+       echo hppa1.1-hp-osf
     741+       exit ;;
     742+    hp8??:OSF1:*:*)
     743+       echo hppa1.0-hp-osf
     744+       exit ;;
     745+    i*86:OSF1:*:*)
     746+       if [ -x /usr/sbin/sysversion ] ; then
     747+           echo ${UNAME_MACHINE}-unknown-osf1mk
     748+       else
     749+           echo ${UNAME_MACHINE}-unknown-osf1
     750+       fi
     751+       exit ;;
     752+    parisc*:Lites*:*:*)
     753+       echo hppa1.1-hp-lites
     754+       exit ;;
     755+    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
     756+       echo c1-convex-bsd
     757+       exit ;;
     758+    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
     759+       if getsysinfo -f scalar_acc
     760+       then echo c32-convex-bsd
     761+       else echo c2-convex-bsd
     762+       fi
     763+       exit ;;
     764+    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
     765+       echo c34-convex-bsd
     766+       exit ;;
     767+    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
     768+       echo c38-convex-bsd
     769+       exit ;;
     770+    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
     771+       echo c4-convex-bsd
     772+       exit ;;
     773+    CRAY*Y-MP:*:*:*)
     774+       echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     775+       exit ;;
     776+    CRAY*[A-Z]90:*:*:*)
     777+       echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
     778+       | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
     779+             -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
     780+             -e 's/\.[^.]*$/.X/'
     781+       exit ;;
     782+    CRAY*TS:*:*:*)
     783+       echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     784+       exit ;;
     785+    CRAY*T3E:*:*:*)
     786+       echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     787+       exit ;;
     788+    CRAY*SV1:*:*:*)
     789+       echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     790+       exit ;;
     791+    *:UNICOS/mp:*:*)
     792+       echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     793+       exit ;;
     794+    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
     795+       FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     796+       FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
     797+       FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
     798+       echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     799+       exit ;;
     800+    5000:UNIX_System_V:4.*:*)
     801+       FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
     802+       FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
     803+       echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     804+       exit ;;
     805+    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
     806+       echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
     807+       exit ;;
     808+    sparc*:BSD/OS:*:*)
     809+       echo sparc-unknown-bsdi${UNAME_RELEASE}
     810+       exit ;;
     811+    *:BSD/OS:*:*)
     812+       echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
     813+       exit ;;
     814+    *:FreeBSD:*:*)
     815+       UNAME_PROCESSOR=`/usr/bin/uname -p`
     816+       case ${UNAME_PROCESSOR} in
     817+           amd64)
     818+               echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     819+           *)
     820+               echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     821+       esac
     822+       exit ;;
     823+    i*:CYGWIN*:*)
     824+       echo ${UNAME_MACHINE}-pc-cygwin
     825+       exit ;;
     826+    *:MINGW64*:*)
     827+       echo ${UNAME_MACHINE}-pc-mingw64
     828+       exit ;;
     829+    *:MINGW*:*)
     830+       echo ${UNAME_MACHINE}-pc-mingw32
     831+       exit ;;
     832+    i*:MSYS*:*)
     833+       echo ${UNAME_MACHINE}-pc-msys
     834+       exit ;;
     835+    i*:windows32*:*)
     836+       # uname -m includes "-pc" on this system.
     837+       echo ${UNAME_MACHINE}-mingw32
     838+       exit ;;
     839+    i*:PW*:*)
     840+       echo ${UNAME_MACHINE}-pc-pw32
     841+       exit ;;
     842+    *:Interix*:*)
     843+       case ${UNAME_MACHINE} in
     844+           x86)
     845+               echo i586-pc-interix${UNAME_RELEASE}
     846+               exit ;;
     847+           authenticamd | genuineintel | EM64T)
     848+               echo x86_64-unknown-interix${UNAME_RELEASE}
     849+               exit ;;
     850+           IA64)
     851+               echo ia64-unknown-interix${UNAME_RELEASE}
     852+               exit ;;
     853+       esac ;;
     854+    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
     855+       echo i${UNAME_MACHINE}-pc-mks
     856+       exit ;;
     857+    8664:Windows_NT:*)
     858+       echo x86_64-pc-mks
     859+       exit ;;
     860+    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
     861+       # How do we know it's Interix rather than the generic POSIX subsystem?
     862+       # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
     863+       # UNAME_MACHINE based on the output of uname instead of i386?
     864+       echo i586-pc-interix
     865+       exit ;;
     866+    i*:UWIN*:*)
     867+       echo ${UNAME_MACHINE}-pc-uwin
     868+       exit ;;
     869+    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
     870+       echo x86_64-unknown-cygwin
     871+       exit ;;
     872+    p*:CYGWIN*:*)
     873+       echo powerpcle-unknown-cygwin
     874+       exit ;;
     875+    prep*:SunOS:5.*:*)
     876+       echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     877+       exit ;;
     878+    *:GNU:*:*)
     879+       # the GNU system
     880+       echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
     881+       exit ;;
     882+    *:GNU/*:*:*)
     883+       # other systems with GNU libc and userland
     884+       echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
     885+       exit ;;
     886+    i*86:Minix:*:*)
     887+       echo ${UNAME_MACHINE}-pc-minix
     888+       exit ;;
     889+    aarch64:Linux:*:*)
     890+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     891+       exit ;;
     892+    aarch64_be:Linux:*:*)
     893+       UNAME_MACHINE=aarch64_be
     894+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     895+       exit ;;
     896+    alpha:Linux:*:*)
     897+       case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
     898+         EV5)   UNAME_MACHINE=alphaev5 ;;
     899+         EV56)  UNAME_MACHINE=alphaev56 ;;
     900+         PCA56) UNAME_MACHINE=alphapca56 ;;
     901+         PCA57) UNAME_MACHINE=alphapca56 ;;
     902+         EV6)   UNAME_MACHINE=alphaev6 ;;
     903+         EV67)  UNAME_MACHINE=alphaev67 ;;
     904+         EV68*) UNAME_MACHINE=alphaev68 ;;
     905+       esac
     906+       objdump --private-headers /bin/sh | grep -q ld.so.1
     907+       if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
     908+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     909+       exit ;;
     910+    arc:Linux:*:* | arceb:Linux:*:*)
     911+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     912+       exit ;;
     913+    arm*:Linux:*:*)
     914+       eval $set_cc_for_build
     915+       if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
     916+           | grep -q __ARM_EABI__
     917+       then
     918+           echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     919+       else
     920+           if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
     921+               | grep -q __ARM_PCS_VFP
     922+           then
     923+               echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
     924+           else
     925+               echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
     926+           fi
     927+       fi
     928+       exit ;;
     929+    avr32*:Linux:*:*)
     930+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     931+       exit ;;
     932+    cris:Linux:*:*)
     933+       echo ${UNAME_MACHINE}-axis-linux-${LIBC}
     934+       exit ;;
     935+    crisv32:Linux:*:*)
     936+       echo ${UNAME_MACHINE}-axis-linux-${LIBC}
     937+       exit ;;
     938+    frv:Linux:*:*)
     939+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     940+       exit ;;
     941+    hexagon:Linux:*:*)
     942+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     943+       exit ;;
     944+    i*86:Linux:*:*)
     945+       echo ${UNAME_MACHINE}-pc-linux-${LIBC}
     946+       exit ;;
     947+    ia64:Linux:*:*)
     948+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     949+       exit ;;
     950+    m32r*:Linux:*:*)
     951+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     952+       exit ;;
     953+    m68*:Linux:*:*)
     954+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     955+       exit ;;
     956+    mips:Linux:*:* | mips64:Linux:*:*)
     957+       eval $set_cc_for_build
     958+       sed 's/^        //' << EOF >$dummy.c
     959+       #undef CPU
     960+       #undef ${UNAME_MACHINE}
     961+       #undef ${UNAME_MACHINE}el
     962+       #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
     963+       CPU=${UNAME_MACHINE}el
     964+       #else
     965+       #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
     966+       CPU=${UNAME_MACHINE}
     967+       #else
     968+       CPU=
     969+       #endif
     970+       #endif
     971+EOF
     972+       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
     973+       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
     974+       ;;
     975+    or1k:Linux:*:*)
     976+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     977+       exit ;;
     978+    or32:Linux:*:*)
     979+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     980+       exit ;;
     981+    padre:Linux:*:*)
     982+       echo sparc-unknown-linux-${LIBC}
     983+       exit ;;
     984+    parisc64:Linux:*:* | hppa64:Linux:*:*)
     985+       echo hppa64-unknown-linux-${LIBC}
     986+       exit ;;
     987+    parisc:Linux:*:* | hppa:Linux:*:*)
     988+       # Look for CPU level
     989+       case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
     990+         PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
     991+         PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
     992+         *)    echo hppa-unknown-linux-${LIBC} ;;
     993+       esac
     994+       exit ;;
     995+    ppc64:Linux:*:*)
     996+       echo powerpc64-unknown-linux-${LIBC}
     997+       exit ;;
     998+    ppc:Linux:*:*)
     999+       echo powerpc-unknown-linux-${LIBC}
     1000+       exit ;;
     1001+    ppc64le:Linux:*:*)
     1002+       echo powerpc64le-unknown-linux-${LIBC}
     1003+       exit ;;
     1004+    ppcle:Linux:*:*)
     1005+       echo powerpcle-unknown-linux-${LIBC}
     1006+       exit ;;
     1007+    s390:Linux:*:* | s390x:Linux:*:*)
     1008+       echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
     1009+       exit ;;
     1010+    sh64*:Linux:*:*)
     1011+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1012+       exit ;;
     1013+    sh*:Linux:*:*)
     1014+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1015+       exit ;;
     1016+    sparc:Linux:*:* | sparc64:Linux:*:*)
     1017+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1018+       exit ;;
     1019+    tile*:Linux:*:*)
     1020+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1021+       exit ;;
     1022+    vax:Linux:*:*)
     1023+       echo ${UNAME_MACHINE}-dec-linux-${LIBC}
     1024+       exit ;;
     1025+    x86_64:Linux:*:*)
     1026+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1027+       exit ;;
     1028+    xtensa*:Linux:*:*)
     1029+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1030+       exit ;;
     1031+    i*86:DYNIX/ptx:4*:*)
     1032+       # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
     1033+       # earlier versions are messed up and put the nodename in both
     1034+       # sysname and nodename.
     1035+       echo i386-sequent-sysv4
     1036+       exit ;;
     1037+    i*86:UNIX_SV:4.2MP:2.*)
     1038+       # Unixware is an offshoot of SVR4, but it has its own version
     1039+       # number series starting with 2...
     1040+       # I am not positive that other SVR4 systems won't match this,
     1041+       # I just have to hope.  -- rms.
     1042+       # Use sysv4.2uw... so that sysv4* matches it.
     1043+       echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
     1044+       exit ;;
     1045+    i*86:OS/2:*:*)
     1046+       # If we were able to find `uname', then EMX Unix compatibility
     1047+       # is probably installed.
     1048+       echo ${UNAME_MACHINE}-pc-os2-emx
     1049+       exit ;;
     1050+    i*86:XTS-300:*:STOP)
     1051+       echo ${UNAME_MACHINE}-unknown-stop
     1052+       exit ;;
     1053+    i*86:atheos:*:*)
     1054+       echo ${UNAME_MACHINE}-unknown-atheos
     1055+       exit ;;
     1056+    i*86:syllable:*:*)
     1057+       echo ${UNAME_MACHINE}-pc-syllable
     1058+       exit ;;
     1059+    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
     1060+       echo i386-unknown-lynxos${UNAME_RELEASE}
     1061+       exit ;;
     1062+    i*86:*DOS:*:*)
     1063+       echo ${UNAME_MACHINE}-pc-msdosdjgpp
     1064+       exit ;;
     1065+    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
     1066+       UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
     1067+       if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
     1068+               echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
     1069+       else
     1070+               echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
     1071+       fi
     1072+       exit ;;
     1073+    i*86:*:5:[678]*)
     1074+       # UnixWare 7.x, OpenUNIX and OpenServer 6.
     1075+       case `/bin/uname -X | grep "^Machine"` in
     1076+           *486*)           UNAME_MACHINE=i486 ;;
     1077+           *Pentium)        UNAME_MACHINE=i586 ;;
     1078+           *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
     1079+       esac
     1080+       echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
     1081+       exit ;;
     1082+    i*86:*:3.2:*)
     1083+       if test -f /usr/options/cb.name; then
     1084+               UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
     1085+               echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
     1086+       elif /bin/uname -X 2>/dev/null >/dev/null ; then
     1087+               UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
     1088+               (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
     1089+               (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
     1090+                       && UNAME_MACHINE=i586
     1091+               (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
     1092+                       && UNAME_MACHINE=i686
     1093+               (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
     1094+                       && UNAME_MACHINE=i686
     1095+               echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
     1096+       else
     1097+               echo ${UNAME_MACHINE}-pc-sysv32
     1098+       fi
     1099+       exit ;;
     1100+    pc:*:*:*)
     1101+       # Left here for compatibility:
     1102+       # uname -m prints for DJGPP always 'pc', but it prints nothing about
     1103+       # the processor, so we play safe by assuming i586.
     1104+       # Note: whatever this is, it MUST be the same as what config.sub
     1105+       # prints for the "djgpp" host, or else GDB configury will decide that
     1106+       # this is a cross-build.
     1107+       echo i586-pc-msdosdjgpp
     1108+       exit ;;
     1109+    Intel:Mach:3*:*)
     1110+       echo i386-pc-mach3
     1111+       exit ;;
     1112+    paragon:*:*:*)
     1113+       echo i860-intel-osf1
     1114+       exit ;;
     1115+    i860:*:4.*:*) # i860-SVR4
     1116+       if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
     1117+         echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
     1118+       else # Add other i860-SVR4 vendors below as they are discovered.
     1119+         echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
     1120+       fi
     1121+       exit ;;
     1122+    mini*:CTIX:SYS*5:*)
     1123+       # "miniframe"
     1124+       echo m68010-convergent-sysv
     1125+       exit ;;
     1126+    mc68k:UNIX:SYSTEM5:3.51m)
     1127+       echo m68k-convergent-sysv
     1128+       exit ;;
     1129+    M680?0:D-NIX:5.3:*)
     1130+       echo m68k-diab-dnix
     1131+       exit ;;
     1132+    M68*:*:R3V[5678]*:*)
     1133+       test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
     1134+    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)
     1135+       OS_REL=''
     1136+       test -r /etc/.relid \
     1137+       && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
     1138+       /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
     1139+         && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
     1140+       /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
     1141+         && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
     1142+    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
     1143+       /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
     1144+         && { echo i486-ncr-sysv4; exit; } ;;
     1145+    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
     1146+       OS_REL='.3'
     1147+       test -r /etc/.relid \
     1148+           && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
     1149+       /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
     1150+           && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
     1151+       /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
     1152+           && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
     1153+       /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
     1154+           && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
     1155+    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
     1156+       echo m68k-unknown-lynxos${UNAME_RELEASE}
     1157+       exit ;;
     1158+    mc68030:UNIX_System_V:4.*:*)
     1159+       echo m68k-atari-sysv4
     1160+       exit ;;
     1161+    TSUNAMI:LynxOS:2.*:*)
     1162+       echo sparc-unknown-lynxos${UNAME_RELEASE}
     1163+       exit ;;
     1164+    rs6000:LynxOS:2.*:*)
     1165+       echo rs6000-unknown-lynxos${UNAME_RELEASE}
     1166+       exit ;;
     1167+    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
     1168+       echo powerpc-unknown-lynxos${UNAME_RELEASE}
     1169+       exit ;;
     1170+    SM[BE]S:UNIX_SV:*:*)
     1171+       echo mips-dde-sysv${UNAME_RELEASE}
     1172+       exit ;;
     1173+    RM*:ReliantUNIX-*:*:*)
     1174+       echo mips-sni-sysv4
     1175+       exit ;;
     1176+    RM*:SINIX-*:*:*)
     1177+       echo mips-sni-sysv4
     1178+       exit ;;
     1179+    *:SINIX-*:*:*)
     1180+       if uname -p 2>/dev/null >/dev/null ; then
     1181+               UNAME_MACHINE=`(uname -p) 2>/dev/null`
     1182+               echo ${UNAME_MACHINE}-sni-sysv4
     1183+       else
     1184+               echo ns32k-sni-sysv
     1185+       fi
     1186+       exit ;;
     1187+    PENTIUM:*:4.0*:*)  # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
     1188+                       # says <Richard.M.Bartel@ccMail.Census.GOV>
     1189+       echo i586-unisys-sysv4
     1190+       exit ;;
     1191+    *:UNIX_System_V:4*:FTX*)
     1192+       # From Gerald Hewes <hewes@openmarket.com>.
     1193+       # How about differentiating between stratus architectures? -djm
     1194+       echo hppa1.1-stratus-sysv4
     1195+       exit ;;
     1196+    *:*:*:FTX*)
     1197+       # From seanf@swdc.stratus.com.
     1198+       echo i860-stratus-sysv4
     1199+       exit ;;
     1200+    i*86:VOS:*:*)
     1201+       # From Paul.Green@stratus.com.
     1202+       echo ${UNAME_MACHINE}-stratus-vos
     1203+       exit ;;
     1204+    *:VOS:*:*)
     1205+       # From Paul.Green@stratus.com.
     1206+       echo hppa1.1-stratus-vos
     1207+       exit ;;
     1208+    mc68*:A/UX:*:*)
     1209+       echo m68k-apple-aux${UNAME_RELEASE}
     1210+       exit ;;
     1211+    news*:NEWS-OS:6*:*)
     1212+       echo mips-sony-newsos6
     1213+       exit ;;
     1214+    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
     1215+       if [ -d /usr/nec ]; then
     1216+               echo mips-nec-sysv${UNAME_RELEASE}
     1217+       else
     1218+               echo mips-unknown-sysv${UNAME_RELEASE}
     1219+       fi
     1220+       exit ;;
     1221+    BeBox:BeOS:*:*)    # BeOS running on hardware made by Be, PPC only.
     1222+       echo powerpc-be-beos
     1223+       exit ;;
     1224+    BeMac:BeOS:*:*)    # BeOS running on Mac or Mac clone, PPC only.
     1225+       echo powerpc-apple-beos
     1226+       exit ;;
     1227+    BePC:BeOS:*:*)     # BeOS running on Intel PC compatible.
     1228+       echo i586-pc-beos
     1229+       exit ;;
     1230+    BePC:Haiku:*:*)    # Haiku running on Intel PC compatible.
     1231+       echo i586-pc-haiku
     1232+       exit ;;
     1233+    x86_64:Haiku:*:*)
     1234+       echo x86_64-unknown-haiku
     1235+       exit ;;
     1236+    SX-4:SUPER-UX:*:*)
     1237+       echo sx4-nec-superux${UNAME_RELEASE}
     1238+       exit ;;
     1239+    SX-5:SUPER-UX:*:*)
     1240+       echo sx5-nec-superux${UNAME_RELEASE}
     1241+       exit ;;
     1242+    SX-6:SUPER-UX:*:*)
     1243+       echo sx6-nec-superux${UNAME_RELEASE}
     1244+       exit ;;
     1245+    SX-7:SUPER-UX:*:*)
     1246+       echo sx7-nec-superux${UNAME_RELEASE}
     1247+       exit ;;
     1248+    SX-8:SUPER-UX:*:*)
     1249+       echo sx8-nec-superux${UNAME_RELEASE}
     1250+       exit ;;
     1251+    SX-8R:SUPER-UX:*:*)
     1252+       echo sx8r-nec-superux${UNAME_RELEASE}
     1253+       exit ;;
     1254+    Power*:Rhapsody:*:*)
     1255+       echo powerpc-apple-rhapsody${UNAME_RELEASE}
     1256+       exit ;;
     1257+    *:Rhapsody:*:*)
     1258+       echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
     1259+       exit ;;
     1260+    *:Darwin:*:*)
     1261+       UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
     1262+       eval $set_cc_for_build
     1263+       if test "$UNAME_PROCESSOR" = unknown ; then
     1264+           UNAME_PROCESSOR=powerpc
     1265+       fi
     1266+       if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
     1267+           if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
     1268+               if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
     1269+                   (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
     1270+                   grep IS_64BIT_ARCH >/dev/null
     1271+               then
     1272+                   case $UNAME_PROCESSOR in
     1273+                       i386) UNAME_PROCESSOR=x86_64 ;;
     1274+                       powerpc) UNAME_PROCESSOR=powerpc64 ;;
     1275+                   esac
     1276+               fi
     1277+           fi
     1278+       elif test "$UNAME_PROCESSOR" = i386 ; then
     1279+           # Avoid executing cc on OS X 10.9, as it ships with a stub
     1280+           # that puts up a graphical alert prompting to install
     1281+           # developer tools.  Any system running Mac OS X 10.7 or
     1282+           # later (Darwin 11 and later) is required to have a 64-bit
     1283+           # processor. This is not true of the ARM version of Darwin
     1284+           # that Apple uses in portable devices.
     1285+           UNAME_PROCESSOR=x86_64
     1286+       fi
     1287+       echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
     1288+       exit ;;
     1289+    *:procnto*:*:* | *:QNX:[0123456789]*:*)
     1290+       UNAME_PROCESSOR=`uname -p`
     1291+       if test "$UNAME_PROCESSOR" = "x86"; then
     1292+               UNAME_PROCESSOR=i386
     1293+               UNAME_MACHINE=pc
     1294+       fi
     1295+       echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
     1296+       exit ;;
     1297+    *:QNX:*:4*)
     1298+       echo i386-pc-qnx
     1299+       exit ;;
     1300+    NEO-?:NONSTOP_KERNEL:*:*)
     1301+       echo neo-tandem-nsk${UNAME_RELEASE}
     1302+       exit ;;
     1303+    NSE-*:NONSTOP_KERNEL:*:*)
     1304+       echo nse-tandem-nsk${UNAME_RELEASE}
     1305+       exit ;;
     1306+    NSR-?:NONSTOP_KERNEL:*:*)
     1307+       echo nsr-tandem-nsk${UNAME_RELEASE}
     1308+       exit ;;
     1309+    *:NonStop-UX:*:*)
     1310+       echo mips-compaq-nonstopux
     1311+       exit ;;
     1312+    BS2000:POSIX*:*:*)
     1313+       echo bs2000-siemens-sysv
     1314+       exit ;;
     1315+    DS/*:UNIX_System_V:*:*)
     1316+       echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
     1317+       exit ;;
     1318+    *:Plan9:*:*)
     1319+       # "uname -m" is not consistent, so use $cputype instead. 386
     1320+       # is converted to i386 for consistency with other x86
     1321+       # operating systems.
     1322+       if test "$cputype" = "386"; then
     1323+           UNAME_MACHINE=i386
     1324+       else
     1325+           UNAME_MACHINE="$cputype"
     1326+       fi
     1327+       echo ${UNAME_MACHINE}-unknown-plan9
     1328+       exit ;;
     1329+    *:TOPS-10:*:*)
     1330+       echo pdp10-unknown-tops10
     1331+       exit ;;
     1332+    *:TENEX:*:*)
     1333+       echo pdp10-unknown-tenex
     1334+       exit ;;
     1335+    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
     1336+       echo pdp10-dec-tops20
     1337+       exit ;;
     1338+    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
     1339+       echo pdp10-xkl-tops20
     1340+       exit ;;
     1341+    *:TOPS-20:*:*)
     1342+       echo pdp10-unknown-tops20
     1343+       exit ;;
     1344+    *:ITS:*:*)
     1345+       echo pdp10-unknown-its
     1346+       exit ;;
     1347+    SEI:*:*:SEIUX)
     1348+       echo mips-sei-seiux${UNAME_RELEASE}
     1349+       exit ;;
     1350+    *:DragonFly:*:*)
     1351+       echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
     1352+       exit ;;
     1353+    *:*VMS:*:*)
     1354+       UNAME_MACHINE=`(uname -p) 2>/dev/null`
     1355+       case "${UNAME_MACHINE}" in
     1356+           A*) echo alpha-dec-vms ; exit ;;
     1357+           I*) echo ia64-dec-vms ; exit ;;
     1358+           V*) echo vax-dec-vms ; exit ;;
     1359+       esac ;;
     1360+    *:XENIX:*:SysV)
     1361+       echo i386-pc-xenix
     1362+       exit ;;
     1363+    i*86:skyos:*:*)
     1364+       echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
     1365+       exit ;;
     1366+    i*86:rdos:*:*)
     1367+       echo ${UNAME_MACHINE}-pc-rdos
     1368+       exit ;;
     1369+    i*86:AROS:*:*)
     1370+       echo ${UNAME_MACHINE}-pc-aros
     1371+       exit ;;
     1372+    x86_64:VMkernel:*:*)
     1373+       echo ${UNAME_MACHINE}-unknown-esx
     1374+       exit ;;
     1375+esac
     1376+
     1377+eval $set_cc_for_build
     1378+cat >$dummy.c <<EOF
     1379+#ifdef _SEQUENT_
     1380+# include <sys/types.h>
     1381+# include <sys/utsname.h>
     1382+#endif
     1383+main ()
     1384+{
     1385+#if defined (sony)
     1386+#if defined (MIPSEB)
     1387+  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
     1388+     I don't know....  */
     1389+  printf ("mips-sony-bsd\n"); exit (0);
     1390+#else
     1391+#include <sys/param.h>
     1392+  printf ("m68k-sony-newsos%s\n",
     1393+#ifdef NEWSOS4
     1394+       "4"
     1395+#else
     1396+       ""
     1397+#endif
     1398+       ); exit (0);
     1399+#endif
     1400+#endif
     1401+
     1402+#if defined (__arm) && defined (__acorn) && defined (__unix)
     1403+  printf ("arm-acorn-riscix\n"); exit (0);
     1404+#endif
     1405+
     1406+#if defined (hp300) && !defined (hpux)
     1407+  printf ("m68k-hp-bsd\n"); exit (0);
     1408+#endif
     1409+
     1410+#if defined (NeXT)
     1411+#if !defined (__ARCHITECTURE__)
     1412+#define __ARCHITECTURE__ "m68k"
     1413+#endif
     1414+  int version;
     1415+  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
     1416+  if (version < 4)
     1417+    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
     1418+  else
     1419+    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
     1420+  exit (0);
     1421+#endif
     1422+
     1423+#if defined (MULTIMAX) || defined (n16)
     1424+#if defined (UMAXV)
     1425+  printf ("ns32k-encore-sysv\n"); exit (0);
     1426+#else
     1427+#if defined (CMU)
     1428+  printf ("ns32k-encore-mach\n"); exit (0);
     1429+#else
     1430+  printf ("ns32k-encore-bsd\n"); exit (0);
     1431+#endif
     1432+#endif
     1433+#endif
     1434+
     1435+#if defined (__386BSD__)
     1436+  printf ("i386-pc-bsd\n"); exit (0);
     1437+#endif
     1438+
     1439+#if defined (sequent)
     1440+#if defined (i386)
     1441+  printf ("i386-sequent-dynix\n"); exit (0);
     1442+#endif
     1443+#if defined (ns32000)
     1444+  printf ("ns32k-sequent-dynix\n"); exit (0);
     1445+#endif
     1446+#endif
     1447+
     1448+#if defined (_SEQUENT_)
     1449+    struct utsname un;
     1450+
     1451+    uname(&un);
     1452+
     1453+    if (strncmp(un.version, "V2", 2) == 0) {
     1454+       printf ("i386-sequent-ptx2\n"); exit (0);
     1455+    }
     1456+    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
     1457+       printf ("i386-sequent-ptx1\n"); exit (0);
     1458+    }
     1459+    printf ("i386-sequent-ptx\n"); exit (0);
     1460+
     1461+#endif
     1462+
     1463+#if defined (vax)
     1464+# if !defined (ultrix)
     1465+#  include <sys/param.h>
     1466+#  if defined (BSD)
     1467+#   if BSD == 43
     1468+      printf ("vax-dec-bsd4.3\n"); exit (0);
     1469+#   else
     1470+#    if BSD == 199006
     1471+      printf ("vax-dec-bsd4.3reno\n"); exit (0);
     1472+#    else
     1473+      printf ("vax-dec-bsd\n"); exit (0);
     1474+#    endif
     1475+#   endif
     1476+#  else
     1477+    printf ("vax-dec-bsd\n"); exit (0);
     1478+#  endif
     1479+# else
     1480+    printf ("vax-dec-ultrix\n"); exit (0);
     1481+# endif
     1482+#endif
     1483+
     1484+#if defined (alliant) && defined (i860)
     1485+  printf ("i860-alliant-bsd\n"); exit (0);
     1486+#endif
     1487+
     1488+  exit (1);
     1489+}
     1490+EOF
     1491+
     1492+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
     1493+       { echo "$SYSTEM_NAME"; exit; }
     1494+
     1495+# Apollos put the system type in the environment.
     1496+
     1497+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
     1498+
     1499+# Convex versions that predate uname can use getsysinfo(1)
     1500+
     1501+if [ -x /usr/convex/getsysinfo ]
     1502+then
     1503+    case `getsysinfo -f cpu_type` in
     1504+    c1*)
     1505+       echo c1-convex-bsd
     1506+       exit ;;
     1507+    c2*)
     1508+       if getsysinfo -f scalar_acc
     1509+       then echo c32-convex-bsd
     1510+       else echo c2-convex-bsd
     1511+       fi
     1512+       exit ;;
     1513+    c34*)
     1514+       echo c34-convex-bsd
     1515+       exit ;;
     1516+    c38*)
     1517+       echo c38-convex-bsd
     1518+       exit ;;
     1519+    c4*)
     1520+       echo c4-convex-bsd
     1521+       exit ;;
     1522+    esac
     1523+fi
     1524+
     1525+cat >&2 <<EOF
     1526+$0: unable to guess system type
     1527+
     1528+This script, last modified $timestamp, has failed to recognize
     1529+the operating system you are using. It is advised that you
     1530+download the most up to date version of the config scripts from
     1531+
     1532+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
     1533+and
     1534+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
     1535+
     1536+If the version you run ($0) is already up to date, please
     1537+send the following data and any information you think might be
     1538+pertinent to <config-patches@gnu.org> in order to provide the needed
     1539+information to handle your system.
     1540+
     1541+config.guess timestamp = $timestamp
     1542+
     1543+uname -m = `(uname -m) 2>/dev/null || echo unknown`
     1544+uname -r = `(uname -r) 2>/dev/null || echo unknown`
     1545+uname -s = `(uname -s) 2>/dev/null || echo unknown`
     1546+uname -v = `(uname -v) 2>/dev/null || echo unknown`
     1547+
     1548+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
     1549+/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
     1550+
     1551+hostinfo               = `(hostinfo) 2>/dev/null`
     1552+/bin/universe          = `(/bin/universe) 2>/dev/null`
     1553+/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
     1554+/bin/arch              = `(/bin/arch) 2>/dev/null`
     1555+/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
     1556+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
     1557+
     1558+UNAME_MACHINE = ${UNAME_MACHINE}
     1559+UNAME_RELEASE = ${UNAME_RELEASE}
     1560+UNAME_SYSTEM  = ${UNAME_SYSTEM}
     1561+UNAME_VERSION = ${UNAME_VERSION}
     1562+EOF
     1563+
     1564+exit 1
     1565+
     1566+# Local variables:
     1567+# eval: (add-hook 'write-file-hooks 'time-stamp)
     1568+# time-stamp-start: "timestamp='"
     1569+# time-stamp-format: "%:y-%02m-%02d"
     1570+# time-stamp-end: "'"
     1571+# End:
     1572--- bigdft-abi-1.0.4/config/config.sub  1970-01-01 01:00:00.000000000 +0100
     1573+++ bigdft-abi-1.0.4/config/config.sub  2014-03-15 23:56:48.000000000 +0100
     1574@@ -0,0 +1,1793 @@
     1575+#! /bin/sh
     1576+# Configuration validation subroutine script.
     1577+#   Copyright 1992-2013 Free Software Foundation, Inc.
     1578+
     1579+timestamp='2013-10-01'
     1580+
     1581+# This file is free software; you can redistribute it and/or modify it
     1582+# under the terms of the GNU General Public License as published by
     1583+# the Free Software Foundation; either version 3 of the License, or
     1584+# (at your option) any later version.
     1585+#
     1586+# This program is distributed in the hope that it will be useful, but
     1587+# WITHOUT ANY WARRANTY; without even the implied warranty of
     1588+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     1589+# General Public License for more details.
     1590+#
     1591+# You should have received a copy of the GNU General Public License
     1592+# along with this program; if not, see <http://www.gnu.org/licenses/>.
     1593+#
     1594+# As a special exception to the GNU General Public License, if you
     1595+# distribute this file as part of a program that contains a
     1596+# configuration script generated by Autoconf, you may include it under
     1597+# the same distribution terms that you use for the rest of that
     1598+# program.  This Exception is an additional permission under section 7
     1599+# of the GNU General Public License, version 3 ("GPLv3").
     1600+
     1601+
     1602+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
     1603+#
     1604+# Configuration subroutine to validate and canonicalize a configuration type.
     1605+# Supply the specified configuration type as an argument.
     1606+# If it is invalid, we print an error message on stderr and exit with code 1.
     1607+# Otherwise, we print the canonical config type on stdout and succeed.
     1608+
     1609+# You can get the latest version of this script from:
     1610+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
     1611+
     1612+# This file is supposed to be the same for all GNU packages
     1613+# and recognize all the CPU types, system types and aliases
     1614+# that are meaningful with *any* GNU software.
     1615+# Each package is responsible for reporting which valid configurations
     1616+# it does not support.  The user should be able to distinguish
     1617+# a failure to support a valid configuration from a meaningless
     1618+# configuration.
     1619+
     1620+# The goal of this file is to map all the various variations of a given
     1621+# machine specification into a single specification in the form:
     1622+#      CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
     1623+# or in some cases, the newer four-part form:
     1624+#      CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
     1625+# It is wrong to echo any other type of specification.
     1626+
     1627+me=`echo "$0" | sed -e 's,.*/,,'`
     1628+
     1629+usage="\
     1630+Usage: $0 [OPTION] CPU-MFR-OPSYS
     1631+       $0 [OPTION] ALIAS
     1632+
     1633+Canonicalize a configuration name.
     1634+
     1635+Operation modes:
     1636+  -h, --help         print this help, then exit
     1637+  -t, --time-stamp   print date of last modification, then exit
     1638+  -v, --version      print version number, then exit
     1639+
     1640+Report bugs and patches to <config-patches@gnu.org>."
     1641+
     1642+version="\
     1643+GNU config.sub ($timestamp)
     1644+
     1645+Copyright 1992-2013 Free Software Foundation, Inc.
     1646+
     1647+This is free software; see the source for copying conditions.  There is NO
     1648+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
     1649+
     1650+help="
     1651+Try \`$me --help' for more information."
     1652+
     1653+# Parse command line
     1654+while test $# -gt 0 ; do
     1655+  case $1 in
     1656+    --time-stamp | --time* | -t )
     1657+       echo "$timestamp" ; exit ;;
     1658+    --version | -v )
     1659+       echo "$version" ; exit ;;
     1660+    --help | --h* | -h )
     1661+       echo "$usage"; exit ;;
     1662+    -- )     # Stop option processing
     1663+       shift; break ;;
     1664+    - )        # Use stdin as input.
     1665+       break ;;
     1666+    -* )
     1667+       echo "$me: invalid option $1$help"
     1668+       exit 1 ;;
     1669+
     1670+    *local*)
     1671+       # First pass through any local machine types.
     1672+       echo $1
     1673+       exit ;;
     1674+
     1675+    * )
     1676+       break ;;
     1677+  esac
     1678+done
     1679+
     1680+case $# in
     1681+ 0) echo "$me: missing argument$help" >&2
     1682+    exit 1;;
     1683+ 1) ;;
     1684+ *) echo "$me: too many arguments$help" >&2
     1685+    exit 1;;
     1686+esac
     1687+
     1688+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
     1689+# Here we must recognize all the valid KERNEL-OS combinations.
     1690+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
     1691+case $maybe_os in
     1692+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
     1693+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
     1694+  knetbsd*-gnu* | netbsd*-gnu* | \
     1695+  kopensolaris*-gnu* | \
     1696+  storm-chaos* | os2-emx* | rtmk-nova*)
     1697+    os=-$maybe_os
     1698+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
     1699+    ;;
     1700+  android-linux)
     1701+    os=-linux-android
     1702+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
     1703+    ;;
     1704+  *)
     1705+    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
     1706+    if [ $basic_machine != $1 ]
     1707+    then os=`echo $1 | sed 's/.*-/-/'`
     1708+    else os=; fi
     1709+    ;;
     1710+esac
     1711+
     1712+### Let's recognize common machines as not being operating systems so
     1713+### that things like config.sub decstation-3100 work.  We also
     1714+### recognize some manufacturers as not being operating systems, so we
     1715+### can provide default operating systems below.
     1716+case $os in
     1717+       -sun*os*)
     1718+               # Prevent following clause from handling this invalid input.
     1719+               ;;
     1720+       -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
     1721+       -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
     1722+       -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
     1723+       -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
     1724+       -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
     1725+       -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
     1726+       -apple | -axis | -knuth | -cray | -microblaze*)
     1727+               os=
     1728+               basic_machine=$1
     1729+               ;;
     1730+       -bluegene*)
     1731+               os=-cnk
     1732+               ;;
     1733+       -sim | -cisco | -oki | -wec | -winbond)
     1734+               os=
     1735+               basic_machine=$1
     1736+               ;;
     1737+       -scout)
     1738+               ;;
     1739+       -wrs)
     1740+               os=-vxworks
     1741+               basic_machine=$1
     1742+               ;;
     1743+       -chorusos*)
     1744+               os=-chorusos
     1745+               basic_machine=$1
     1746+               ;;
     1747+       -chorusrdb)
     1748+               os=-chorusrdb
     1749+               basic_machine=$1
     1750+               ;;
     1751+       -hiux*)
     1752+               os=-hiuxwe2
     1753+               ;;
     1754+       -sco6)
     1755+               os=-sco5v6
     1756+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     1757+               ;;
     1758+       -sco5)
     1759+               os=-sco3.2v5
     1760+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     1761+               ;;
     1762+       -sco4)
     1763+               os=-sco3.2v4
     1764+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     1765+               ;;
     1766+       -sco3.2.[4-9]*)
     1767+               os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
     1768+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     1769+               ;;
     1770+       -sco3.2v[4-9]*)
     1771+               # Don't forget version if it is 3.2v4 or newer.
     1772+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     1773+               ;;
     1774+       -sco5v6*)
     1775+               # Don't forget version if it is 3.2v4 or newer.
     1776+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     1777+               ;;
     1778+       -sco*)
     1779+               os=-sco3.2v2
     1780+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     1781+               ;;
     1782+       -udk*)
     1783+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     1784+               ;;
     1785+       -isc)
     1786+               os=-isc2.2
     1787+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     1788+               ;;
     1789+       -clix*)
     1790+               basic_machine=clipper-intergraph
     1791+               ;;
     1792+       -isc*)
     1793+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     1794+               ;;
     1795+       -lynx*178)
     1796+               os=-lynxos178
     1797+               ;;
     1798+       -lynx*5)
     1799+               os=-lynxos5
     1800+               ;;
     1801+       -lynx*)
     1802+               os=-lynxos
     1803+               ;;
     1804+       -ptx*)
     1805+               basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
     1806+               ;;
     1807+       -windowsnt*)
     1808+               os=`echo $os | sed -e 's/windowsnt/winnt/'`
     1809+               ;;
     1810+       -psos*)
     1811+               os=-psos
     1812+               ;;
     1813+       -mint | -mint[0-9]*)
     1814+               basic_machine=m68k-atari
     1815+               os=-mint
     1816+               ;;
     1817+esac
     1818+
     1819+# Decode aliases for certain CPU-COMPANY combinations.
     1820+case $basic_machine in
     1821+       # Recognize the basic CPU types without company name.
     1822+       # Some are omitted here because they have special meanings below.
     1823+       1750a | 580 \
     1824+       | a29k \
     1825+       | aarch64 | aarch64_be \
     1826+       | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
     1827+       | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
     1828+       | am33_2.0 \
     1829+       | arc | arceb \
     1830+       | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
     1831+       | avr | avr32 \
     1832+       | be32 | be64 \
     1833+       | bfin \
     1834+       | c4x | c8051 | clipper \
     1835+       | d10v | d30v | dlx | dsp16xx \
     1836+       | epiphany \
     1837+       | fido | fr30 | frv \
     1838+       | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
     1839+       | hexagon \
     1840+       | i370 | i860 | i960 | ia64 \
     1841+       | ip2k | iq2000 \
     1842+       | k1om \
     1843+       | le32 | le64 \
     1844+       | lm32 \
     1845+       | m32c | m32r | m32rle | m68000 | m68k | m88k \
     1846+       | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
     1847+       | mips | mipsbe | mipseb | mipsel | mipsle \
     1848+       | mips16 \
     1849+       | mips64 | mips64el \
     1850+       | mips64octeon | mips64octeonel \
     1851+       | mips64orion | mips64orionel \
     1852+       | mips64r5900 | mips64r5900el \
     1853+       | mips64vr | mips64vrel \
     1854+       | mips64vr4100 | mips64vr4100el \
     1855+       | mips64vr4300 | mips64vr4300el \
     1856+       | mips64vr5000 | mips64vr5000el \
     1857+       | mips64vr5900 | mips64vr5900el \
     1858+       | mipsisa32 | mipsisa32el \
     1859+       | mipsisa32r2 | mipsisa32r2el \
     1860+       | mipsisa64 | mipsisa64el \
     1861+       | mipsisa64r2 | mipsisa64r2el \
     1862+       | mipsisa64sb1 | mipsisa64sb1el \
     1863+       | mipsisa64sr71k | mipsisa64sr71kel \
     1864+       | mipsr5900 | mipsr5900el \
     1865+       | mipstx39 | mipstx39el \
     1866+       | mn10200 | mn10300 \
     1867+       | moxie \
     1868+       | mt \
     1869+       | msp430 \
     1870+       | nds32 | nds32le | nds32be \
     1871+       | nios | nios2 | nios2eb | nios2el \
     1872+       | ns16k | ns32k \
     1873+       | open8 \
     1874+       | or1k | or32 \
     1875+       | pdp10 | pdp11 | pj | pjl \
     1876+       | powerpc | powerpc64 | powerpc64le | powerpcle \
     1877+       | pyramid \
     1878+       | rl78 | rx \
     1879+       | score \
     1880+       | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
     1881+       | sh64 | sh64le \
     1882+       | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
     1883+       | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
     1884+       | spu \
     1885+       | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
     1886+       | ubicom32 \
     1887+       | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
     1888+       | we32k \
     1889+       | x86 | xc16x | xstormy16 | xtensa \
     1890+       | z8k | z80)
     1891+               basic_machine=$basic_machine-unknown
     1892+               ;;
     1893+       c54x)
     1894+               basic_machine=tic54x-unknown
     1895+               ;;
     1896+       c55x)
     1897+               basic_machine=tic55x-unknown
     1898+               ;;
     1899+       c6x)
     1900+               basic_machine=tic6x-unknown
     1901+               ;;
     1902+       m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
     1903+               basic_machine=$basic_machine-unknown
     1904+               os=-none
     1905+               ;;
     1906+       m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
     1907+               ;;
     1908+       ms1)
     1909+               basic_machine=mt-unknown
     1910+               ;;
     1911+
     1912+       strongarm | thumb | xscale)
     1913+               basic_machine=arm-unknown
     1914+               ;;
     1915+       xgate)
     1916+               basic_machine=$basic_machine-unknown
     1917+               os=-none
     1918+               ;;
     1919+       xscaleeb)
     1920+               basic_machine=armeb-unknown
     1921+               ;;
     1922+
     1923+       xscaleel)
     1924+               basic_machine=armel-unknown
     1925+               ;;
     1926+
     1927+       # We use `pc' rather than `unknown'
     1928+       # because (1) that's what they normally are, and
     1929+       # (2) the word "unknown" tends to confuse beginning users.
     1930+       i*86 | x86_64)
     1931+         basic_machine=$basic_machine-pc
     1932+         ;;
     1933+       # Object if more than one company name word.
     1934+       *-*-*)
     1935+               echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
     1936+               exit 1
     1937+               ;;
     1938+       # Recognize the basic CPU types with company name.
     1939+       580-* \
     1940+       | a29k-* \
     1941+       | aarch64-* | aarch64_be-* \
     1942+       | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
     1943+       | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
     1944+       | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
     1945+       | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
     1946+       | avr-* | avr32-* \
     1947+       | be32-* | be64-* \
     1948+       | bfin-* | bs2000-* \
     1949+       | c[123]* | c30-* | [cjt]90-* | c4x-* \
     1950+       | c8051-* | clipper-* | craynv-* | cydra-* \
     1951+       | d10v-* | d30v-* | dlx-* \
     1952+       | elxsi-* \
     1953+       | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
     1954+       | h8300-* | h8500-* \
     1955+       | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
     1956+       | hexagon-* \
     1957+       | i*86-* | i860-* | i960-* | ia64-* \
     1958+       | ip2k-* | iq2000-* \
     1959+       | k1om-* \
     1960+       | le32-* | le64-* \
     1961+       | lm32-* \
     1962+       | m32c-* | m32r-* | m32rle-* \
     1963+       | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
     1964+       | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
     1965+       | microblaze-* | microblazeel-* \
     1966+       | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
     1967+       | mips16-* \
     1968+       | mips64-* | mips64el-* \
     1969+       | mips64octeon-* | mips64octeonel-* \
     1970+       | mips64orion-* | mips64orionel-* \
     1971+       | mips64r5900-* | mips64r5900el-* \
     1972+       | mips64vr-* | mips64vrel-* \
     1973+       | mips64vr4100-* | mips64vr4100el-* \
     1974+       | mips64vr4300-* | mips64vr4300el-* \
     1975+       | mips64vr5000-* | mips64vr5000el-* \
     1976+       | mips64vr5900-* | mips64vr5900el-* \
     1977+       | mipsisa32-* | mipsisa32el-* \
     1978+       | mipsisa32r2-* | mipsisa32r2el-* \
     1979+       | mipsisa64-* | mipsisa64el-* \
     1980+       | mipsisa64r2-* | mipsisa64r2el-* \
     1981+       | mipsisa64sb1-* | mipsisa64sb1el-* \
     1982+       | mipsisa64sr71k-* | mipsisa64sr71kel-* \
     1983+       | mipsr5900-* | mipsr5900el-* \
     1984+       | mipstx39-* | mipstx39el-* \
     1985+       | mmix-* \
     1986+       | mt-* \
     1987+       | msp430-* \
     1988+       | nds32-* | nds32le-* | nds32be-* \
     1989+       | nios-* | nios2-* | nios2eb-* | nios2el-* \
     1990+       | none-* | np1-* | ns16k-* | ns32k-* \
     1991+       | open8-* \
     1992+       | orion-* \
     1993+       | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
     1994+       | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
     1995+       | pyramid-* \
     1996+       | rl78-* | romp-* | rs6000-* | rx-* \
     1997+       | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
     1998+       | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
     1999+       | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
     2000+       | sparclite-* \
     2001+       | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
     2002+       | tahoe-* \
     2003+       | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
     2004+       | tile*-* \
     2005+       | tron-* \
     2006+       | ubicom32-* \
     2007+       | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
     2008+       | vax-* \
     2009+       | we32k-* \
     2010+       | x86-* | x86_64-* | xc16x-* | xps100-* \
     2011+       | xstormy16-* | xtensa*-* \
     2012+       | ymp-* \
     2013+       | z8k-* | z80-*)
     2014+               ;;
     2015+       # Recognize the basic CPU types without company name, with glob match.
     2016+       xtensa*)
     2017+               basic_machine=$basic_machine-unknown
     2018+               ;;
     2019+       # Recognize the various machine names and aliases which stand
     2020+       # for a CPU type and a company and sometimes even an OS.
     2021+       386bsd)
     2022+               basic_machine=i386-unknown
     2023+               os=-bsd
     2024+               ;;
     2025+       3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
     2026+               basic_machine=m68000-att
     2027+               ;;
     2028+       3b*)
     2029+               basic_machine=we32k-att
     2030+               ;;
     2031+       a29khif)
     2032+               basic_machine=a29k-amd
     2033+               os=-udi
     2034+               ;;
     2035+       abacus)
     2036+               basic_machine=abacus-unknown
     2037+               ;;
     2038+       adobe68k)
     2039+               basic_machine=m68010-adobe
     2040+               os=-scout
     2041+               ;;
     2042+       alliant | fx80)
     2043+               basic_machine=fx80-alliant
     2044+               ;;
     2045+       altos | altos3068)
     2046+               basic_machine=m68k-altos
     2047+               ;;
     2048+       am29k)
     2049+               basic_machine=a29k-none
     2050+               os=-bsd
     2051+               ;;
     2052+       amd64)
     2053+               basic_machine=x86_64-pc
     2054+               ;;
     2055+       amd64-*)
     2056+               basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
     2057+               ;;
     2058+       amdahl)
     2059+               basic_machine=580-amdahl
     2060+               os=-sysv
     2061+               ;;
     2062+       amiga | amiga-*)
     2063+               basic_machine=m68k-unknown
     2064+               ;;
     2065+       amigaos | amigados)
     2066+               basic_machine=m68k-unknown
     2067+               os=-amigaos
     2068+               ;;
     2069+       amigaunix | amix)
     2070+               basic_machine=m68k-unknown
     2071+               os=-sysv4
     2072+               ;;
     2073+       apollo68)
     2074+               basic_machine=m68k-apollo
     2075+               os=-sysv
     2076+               ;;
     2077+       apollo68bsd)
     2078+               basic_machine=m68k-apollo
     2079+               os=-bsd
     2080+               ;;
     2081+       aros)
     2082+               basic_machine=i386-pc
     2083+               os=-aros
     2084+               ;;
     2085+       aux)
     2086+               basic_machine=m68k-apple
     2087+               os=-aux
     2088+               ;;
     2089+       balance)
     2090+               basic_machine=ns32k-sequent
     2091+               os=-dynix
     2092+               ;;
     2093+       blackfin)
     2094+               basic_machine=bfin-unknown
     2095+               os=-linux
     2096+               ;;
     2097+       blackfin-*)
     2098+               basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
     2099+               os=-linux
     2100+               ;;
     2101+       bluegene*)
     2102+               basic_machine=powerpc-ibm
     2103+               os=-cnk
     2104+               ;;
     2105+       c54x-*)
     2106+               basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
     2107+               ;;
     2108+       c55x-*)
     2109+               basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
     2110+               ;;
     2111+       c6x-*)
     2112+               basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
     2113+               ;;
     2114+       c90)
     2115+               basic_machine=c90-cray
     2116+               os=-unicos
     2117+               ;;
     2118+       cegcc)
     2119+               basic_machine=arm-unknown
     2120+               os=-cegcc
     2121+               ;;
     2122+       convex-c1)
     2123+               basic_machine=c1-convex
     2124+               os=-bsd
     2125+               ;;
     2126+       convex-c2)
     2127+               basic_machine=c2-convex
     2128+               os=-bsd
     2129+               ;;
     2130+       convex-c32)
     2131+               basic_machine=c32-convex
     2132+               os=-bsd
     2133+               ;;
     2134+       convex-c34)
     2135+               basic_machine=c34-convex
     2136+               os=-bsd
     2137+               ;;
     2138+       convex-c38)
     2139+               basic_machine=c38-convex
     2140+               os=-bsd
     2141+               ;;
     2142+       cray | j90)
     2143+               basic_machine=j90-cray
     2144+               os=-unicos
     2145+               ;;
     2146+       craynv)
     2147+               basic_machine=craynv-cray
     2148+               os=-unicosmp
     2149+               ;;
     2150+       cr16 | cr16-*)
     2151+               basic_machine=cr16-unknown
     2152+               os=-elf
     2153+               ;;
     2154+       crds | unos)
     2155+               basic_machine=m68k-crds
     2156+               ;;
     2157+       crisv32 | crisv32-* | etraxfs*)
     2158+               basic_machine=crisv32-axis
     2159+               ;;
     2160+       cris | cris-* | etrax*)
     2161+               basic_machine=cris-axis
     2162+               ;;
     2163+       crx)
     2164+               basic_machine=crx-unknown
     2165+               os=-elf
     2166+               ;;
     2167+       da30 | da30-*)
     2168+               basic_machine=m68k-da30
     2169+               ;;
     2170+       decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
     2171+               basic_machine=mips-dec
     2172+               ;;
     2173+       decsystem10* | dec10*)
     2174+               basic_machine=pdp10-dec
     2175+               os=-tops10
     2176+               ;;
     2177+       decsystem20* | dec20*)
     2178+               basic_machine=pdp10-dec
     2179+               os=-tops20
     2180+               ;;
     2181+       delta | 3300 | motorola-3300 | motorola-delta \
     2182+             | 3300-motorola | delta-motorola)
     2183+               basic_machine=m68k-motorola
     2184+               ;;
     2185+       delta88)
     2186+               basic_machine=m88k-motorola
     2187+               os=-sysv3
     2188+               ;;
     2189+       dicos)
     2190+               basic_machine=i686-pc
     2191+               os=-dicos
     2192+               ;;
     2193+       djgpp)
     2194+               basic_machine=i586-pc
     2195+               os=-msdosdjgpp
     2196+               ;;
     2197+       dpx20 | dpx20-*)
     2198+               basic_machine=rs6000-bull
     2199+               os=-bosx
     2200+               ;;
     2201+       dpx2* | dpx2*-bull)
     2202+               basic_machine=m68k-bull
     2203+               os=-sysv3
     2204+               ;;
     2205+       ebmon29k)
     2206+               basic_machine=a29k-amd
     2207+               os=-ebmon
     2208+               ;;
     2209+       elxsi)
     2210+               basic_machine=elxsi-elxsi
     2211+               os=-bsd
     2212+               ;;
     2213+       encore | umax | mmax)
     2214+               basic_machine=ns32k-encore
     2215+               ;;
     2216+       es1800 | OSE68k | ose68k | ose | OSE)
     2217+               basic_machine=m68k-ericsson
     2218+               os=-ose
     2219+               ;;
     2220+       fx2800)
     2221+               basic_machine=i860-alliant
     2222+               ;;
     2223+       genix)
     2224+               basic_machine=ns32k-ns
     2225+               ;;
     2226+       gmicro)
     2227+               basic_machine=tron-gmicro
     2228+               os=-sysv
     2229+               ;;
     2230+       go32)
     2231+               basic_machine=i386-pc
     2232+               os=-go32
     2233+               ;;
     2234+       h3050r* | hiux*)
     2235+               basic_machine=hppa1.1-hitachi
     2236+               os=-hiuxwe2
     2237+               ;;
     2238+       h8300hms)
     2239+               basic_machine=h8300-hitachi
     2240+               os=-hms
     2241+               ;;
     2242+       h8300xray)
     2243+               basic_machine=h8300-hitachi
     2244+               os=-xray
     2245+               ;;
     2246+       h8500hms)
     2247+               basic_machine=h8500-hitachi
     2248+               os=-hms
     2249+               ;;
     2250+       harris)
     2251+               basic_machine=m88k-harris
     2252+               os=-sysv3
     2253+               ;;
     2254+       hp300-*)
     2255+               basic_machine=m68k-hp
     2256+               ;;
     2257+       hp300bsd)
     2258+               basic_machine=m68k-hp
     2259+               os=-bsd
     2260+               ;;
     2261+       hp300hpux)
     2262+               basic_machine=m68k-hp
     2263+               os=-hpux
     2264+               ;;
     2265+       hp3k9[0-9][0-9] | hp9[0-9][0-9])
     2266+               basic_machine=hppa1.0-hp
     2267+               ;;
     2268+       hp9k2[0-9][0-9] | hp9k31[0-9])
     2269+               basic_machine=m68000-hp
     2270+               ;;
     2271+       hp9k3[2-9][0-9])
     2272+               basic_machine=m68k-hp
     2273+               ;;
     2274+       hp9k6[0-9][0-9] | hp6[0-9][0-9])
     2275+               basic_machine=hppa1.0-hp
     2276+               ;;
     2277+       hp9k7[0-79][0-9] | hp7[0-79][0-9])
     2278+               basic_machine=hppa1.1-hp
     2279+               ;;
     2280+       hp9k78[0-9] | hp78[0-9])
     2281+               # FIXME: really hppa2.0-hp
     2282+               basic_machine=hppa1.1-hp
     2283+               ;;
     2284+       hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
     2285+               # FIXME: really hppa2.0-hp
     2286+               basic_machine=hppa1.1-hp
     2287+               ;;
     2288+       hp9k8[0-9][13679] | hp8[0-9][13679])
     2289+               basic_machine=hppa1.1-hp
     2290+               ;;
     2291+       hp9k8[0-9][0-9] | hp8[0-9][0-9])
     2292+               basic_machine=hppa1.0-hp
     2293+               ;;
     2294+       hppa-next)
     2295+               os=-nextstep3
     2296+               ;;
     2297+       hppaosf)
     2298+               basic_machine=hppa1.1-hp
     2299+               os=-osf
     2300+               ;;
     2301+       hppro)
     2302+               basic_machine=hppa1.1-hp
     2303+               os=-proelf
     2304+               ;;
     2305+       i370-ibm* | ibm*)
     2306+               basic_machine=i370-ibm
     2307+               ;;
     2308+       i*86v32)
     2309+               basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
     2310+               os=-sysv32
     2311+               ;;
     2312+       i*86v4*)
     2313+               basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
     2314+               os=-sysv4
     2315+               ;;
     2316+       i*86v)
     2317+               basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
     2318+               os=-sysv
     2319+               ;;
     2320+       i*86sol2)
     2321+               basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
     2322+               os=-solaris2
     2323+               ;;
     2324+       i386mach)
     2325+               basic_machine=i386-mach
     2326+               os=-mach
     2327+               ;;
     2328+       i386-vsta | vsta)
     2329+               basic_machine=i386-unknown
     2330+               os=-vsta
     2331+               ;;
     2332+       iris | iris4d)
     2333+               basic_machine=mips-sgi
     2334+               case $os in
     2335+                   -irix*)
     2336+                       ;;
     2337+                   *)
     2338+                       os=-irix4
     2339+                       ;;
     2340+               esac
     2341+               ;;
     2342+       isi68 | isi)
     2343+               basic_machine=m68k-isi
     2344+               os=-sysv
     2345+               ;;
     2346+       m68knommu)
     2347+               basic_machine=m68k-unknown
     2348+               os=-linux
     2349+               ;;
     2350+       m68knommu-*)
     2351+               basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
     2352+               os=-linux
     2353+               ;;
     2354+       m88k-omron*)
     2355+               basic_machine=m88k-omron
     2356+               ;;
     2357+       magnum | m3230)
     2358+               basic_machine=mips-mips
     2359+               os=-sysv
     2360+               ;;
     2361+       merlin)
     2362+               basic_machine=ns32k-utek
     2363+               os=-sysv
     2364+               ;;
     2365+       microblaze*)
     2366+               basic_machine=microblaze-xilinx
     2367+               ;;
     2368+       mingw64)
     2369+               basic_machine=x86_64-pc
     2370+               os=-mingw64
     2371+               ;;
     2372+       mingw32)
     2373+               basic_machine=i686-pc
     2374+               os=-mingw32
     2375+               ;;
     2376+       mingw32ce)
     2377+               basic_machine=arm-unknown
     2378+               os=-mingw32ce
     2379+               ;;
     2380+       miniframe)
     2381+               basic_machine=m68000-convergent
     2382+               ;;
     2383+       *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
     2384+               basic_machine=m68k-atari
     2385+               os=-mint
     2386+               ;;
     2387+       mips3*-*)
     2388+               basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
     2389+               ;;
     2390+       mips3*)
     2391+               basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
     2392+               ;;
     2393+       monitor)
     2394+               basic_machine=m68k-rom68k
     2395+               os=-coff
     2396+               ;;
     2397+       morphos)
     2398+               basic_machine=powerpc-unknown
     2399+               os=-morphos
     2400+               ;;
     2401+       msdos)
     2402+               basic_machine=i386-pc
     2403+               os=-msdos
     2404+               ;;
     2405+       ms1-*)
     2406+               basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
     2407+               ;;
     2408+       msys)
     2409+               basic_machine=i686-pc
     2410+               os=-msys
     2411+               ;;
     2412+       mvs)
     2413+               basic_machine=i370-ibm
     2414+               os=-mvs
     2415+               ;;
     2416+       nacl)
     2417+               basic_machine=le32-unknown
     2418+               os=-nacl
     2419+               ;;
     2420+       ncr3000)
     2421+               basic_machine=i486-ncr
     2422+               os=-sysv4
     2423+               ;;
     2424+       netbsd386)
     2425+               basic_machine=i386-unknown
     2426+               os=-netbsd
     2427+               ;;
     2428+       netwinder)
     2429+               basic_machine=armv4l-rebel
     2430+               os=-linux
     2431+               ;;
     2432+       news | news700 | news800 | news900)
     2433+               basic_machine=m68k-sony
     2434+               os=-newsos
     2435+               ;;
     2436+       news1000)
     2437+               basic_machine=m68030-sony
     2438+               os=-newsos
     2439+               ;;
     2440+       news-3600 | risc-news)
     2441+               basic_machine=mips-sony
     2442+               os=-newsos
     2443+               ;;
     2444+       necv70)
     2445+               basic_machine=v70-nec
     2446+               os=-sysv
     2447+               ;;
     2448+       next | m*-next )
     2449+               basic_machine=m68k-next
     2450+               case $os in
     2451+                   -nextstep* )
     2452+                       ;;
     2453+                   -ns2*)
     2454+                     os=-nextstep2
     2455+                       ;;
     2456+                   *)
     2457+                     os=-nextstep3
     2458+                       ;;
     2459+               esac
     2460+               ;;
     2461+       nh3000)
     2462+               basic_machine=m68k-harris
     2463+               os=-cxux
     2464+               ;;
     2465+       nh[45]000)
     2466+               basic_machine=m88k-harris
     2467+               os=-cxux
     2468+               ;;
     2469+       nindy960)
     2470+               basic_machine=i960-intel
     2471+               os=-nindy
     2472+               ;;
     2473+       mon960)
     2474+               basic_machine=i960-intel
     2475+               os=-mon960
     2476+               ;;
     2477+       nonstopux)
     2478+               basic_machine=mips-compaq
     2479+               os=-nonstopux
     2480+               ;;
     2481+       np1)
     2482+               basic_machine=np1-gould
     2483+               ;;
     2484+       neo-tandem)
     2485+               basic_machine=neo-tandem
     2486+               ;;
     2487+       nse-tandem)
     2488+               basic_machine=nse-tandem
     2489+               ;;
     2490+       nsr-tandem)
     2491+               basic_machine=nsr-tandem
     2492+               ;;
     2493+       op50n-* | op60c-*)
     2494+               basic_machine=hppa1.1-oki
     2495+               os=-proelf
     2496+               ;;
     2497+       openrisc | openrisc-*)
     2498+               basic_machine=or32-unknown
     2499+               ;;
     2500+       os400)
     2501+               basic_machine=powerpc-ibm
     2502+               os=-os400
     2503+               ;;
     2504+       OSE68000 | ose68000)
     2505+               basic_machine=m68000-ericsson
     2506+               os=-ose
     2507+               ;;
     2508+       os68k)
     2509+               basic_machine=m68k-none
     2510+               os=-os68k
     2511+               ;;
     2512+       pa-hitachi)
     2513+               basic_machine=hppa1.1-hitachi
     2514+               os=-hiuxwe2
     2515+               ;;
     2516+       paragon)
     2517+               basic_machine=i860-intel
     2518+               os=-osf
     2519+               ;;
     2520+       parisc)
     2521+               basic_machine=hppa-unknown
     2522+               os=-linux
     2523+               ;;
     2524+       parisc-*)
     2525+               basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
     2526+               os=-linux
     2527+               ;;
     2528+       pbd)
     2529+               basic_machine=sparc-tti
     2530+               ;;
     2531+       pbb)
     2532+               basic_machine=m68k-tti
     2533+               ;;
     2534+       pc532 | pc532-*)
     2535+               basic_machine=ns32k-pc532
     2536+               ;;
     2537+       pc98)
     2538+               basic_machine=i386-pc
     2539+               ;;
     2540+       pc98-*)
     2541+               basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
     2542+               ;;
     2543+       pentium | p5 | k5 | k6 | nexgen | viac3)
     2544+               basic_machine=i586-pc
     2545+               ;;
     2546+       pentiumpro | p6 | 6x86 | athlon | athlon_*)
     2547+               basic_machine=i686-pc
     2548+               ;;
     2549+       pentiumii | pentium2 | pentiumiii | pentium3)
     2550+               basic_machine=i686-pc
     2551+               ;;
     2552+       pentium4)
     2553+               basic_machine=i786-pc
     2554+               ;;
     2555+       pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
     2556+               basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
     2557+               ;;
     2558+       pentiumpro-* | p6-* | 6x86-* | athlon-*)
     2559+               basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
     2560+               ;;
     2561+       pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
     2562+               basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
     2563+               ;;
     2564+       pentium4-*)
     2565+               basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
     2566+               ;;
     2567+       pn)
     2568+               basic_machine=pn-gould
     2569+               ;;
     2570+       power)  basic_machine=power-ibm
     2571+               ;;
     2572+       ppc | ppcbe)    basic_machine=powerpc-unknown
     2573+               ;;
     2574+       ppc-* | ppcbe-*)
     2575+               basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
     2576+               ;;
     2577+       ppcle | powerpclittle | ppc-le | powerpc-little)
     2578+               basic_machine=powerpcle-unknown
     2579+               ;;
     2580+       ppcle-* | powerpclittle-*)
     2581+               basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
     2582+               ;;
     2583+       ppc64)  basic_machine=powerpc64-unknown
     2584+               ;;
     2585+       ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
     2586+               ;;
     2587+       ppc64le | powerpc64little | ppc64-le | powerpc64-little)
     2588+               basic_machine=powerpc64le-unknown
     2589+               ;;
     2590+       ppc64le-* | powerpc64little-*)
     2591+               basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
     2592+               ;;
     2593+       ps2)
     2594+               basic_machine=i386-ibm
     2595+               ;;
     2596+       pw32)
     2597+               basic_machine=i586-unknown
     2598+               os=-pw32
     2599+               ;;
     2600+       rdos | rdos64)
     2601+               basic_machine=x86_64-pc
     2602+               os=-rdos
     2603+               ;;
     2604+       rdos32)
     2605+               basic_machine=i386-pc
     2606+               os=-rdos
     2607+               ;;
     2608+       rom68k)
     2609+               basic_machine=m68k-rom68k
     2610+               os=-coff
     2611+               ;;
     2612+       rm[46]00)
     2613+               basic_machine=mips-siemens
     2614+               ;;
     2615+       rtpc | rtpc-*)
     2616+               basic_machine=romp-ibm
     2617+               ;;
     2618+       s390 | s390-*)
     2619+               basic_machine=s390-ibm
     2620+               ;;
     2621+       s390x | s390x-*)
     2622+               basic_machine=s390x-ibm
     2623+               ;;
     2624+       sa29200)
     2625+               basic_machine=a29k-amd
     2626+               os=-udi
     2627+               ;;
     2628+       sb1)
     2629+               basic_machine=mipsisa64sb1-unknown
     2630+               ;;
     2631+       sb1el)
     2632+               basic_machine=mipsisa64sb1el-unknown
     2633+               ;;
     2634+       sde)
     2635+               basic_machine=mipsisa32-sde
     2636+               os=-elf
     2637+               ;;
     2638+       sei)
     2639+               basic_machine=mips-sei
     2640+               os=-seiux
     2641+               ;;
     2642+       sequent)
     2643+               basic_machine=i386-sequent
     2644+               ;;
     2645+       sh)
     2646+               basic_machine=sh-hitachi
     2647+               os=-hms
     2648+               ;;
     2649+       sh5el)
     2650+               basic_machine=sh5le-unknown
     2651+               ;;
     2652+       sh64)
     2653+               basic_machine=sh64-unknown
     2654+               ;;
     2655+       sparclite-wrs | simso-wrs)
     2656+               basic_machine=sparclite-wrs
     2657+               os=-vxworks
     2658+               ;;
     2659+       sps7)
     2660+               basic_machine=m68k-bull
     2661+               os=-sysv2
     2662+               ;;
     2663+       spur)
     2664+               basic_machine=spur-unknown
     2665+               ;;
     2666+       st2000)
     2667+               basic_machine=m68k-tandem
     2668+               ;;
     2669+       stratus)
     2670+               basic_machine=i860-stratus
     2671+               os=-sysv4
     2672+               ;;
     2673+       strongarm-* | thumb-*)
     2674+               basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
     2675+               ;;
     2676+       sun2)
     2677+               basic_machine=m68000-sun
     2678+               ;;
     2679+       sun2os3)
     2680+               basic_machine=m68000-sun
     2681+               os=-sunos3
     2682+               ;;
     2683+       sun2os4)
     2684+               basic_machine=m68000-sun
     2685+               os=-sunos4
     2686+               ;;
     2687+       sun3os3)
     2688+               basic_machine=m68k-sun
     2689+               os=-sunos3
     2690+               ;;
     2691+       sun3os4)
     2692+               basic_machine=m68k-sun
     2693+               os=-sunos4
     2694+               ;;
     2695+       sun4os3)
     2696+               basic_machine=sparc-sun
     2697+               os=-sunos3
     2698+               ;;
     2699+       sun4os4)
     2700+               basic_machine=sparc-sun
     2701+               os=-sunos4
     2702+               ;;
     2703+       sun4sol2)
     2704+               basic_machine=sparc-sun
     2705+               os=-solaris2
     2706+               ;;
     2707+       sun3 | sun3-*)
     2708+               basic_machine=m68k-sun
     2709+               ;;
     2710+       sun4)
     2711+               basic_machine=sparc-sun
     2712+               ;;
     2713+       sun386 | sun386i | roadrunner)
     2714+               basic_machine=i386-sun
     2715+               ;;
     2716+       sv1)
     2717+               basic_machine=sv1-cray
     2718+               os=-unicos
     2719+               ;;
     2720+       symmetry)
     2721+               basic_machine=i386-sequent
     2722+               os=-dynix
     2723+               ;;
     2724+       t3e)
     2725+               basic_machine=alphaev5-cray
     2726+               os=-unicos
     2727+               ;;
     2728+       t90)
     2729+               basic_machine=t90-cray
     2730+               os=-unicos
     2731+               ;;
     2732+       tile*)
     2733+               basic_machine=$basic_machine-unknown
     2734+               os=-linux-gnu
     2735+               ;;
     2736+       tx39)
     2737+               basic_machine=mipstx39-unknown
     2738+               ;;
     2739+       tx39el)
     2740+               basic_machine=mipstx39el-unknown
     2741+               ;;
     2742+       toad1)
     2743+               basic_machine=pdp10-xkl
     2744+               os=-tops20
     2745+               ;;
     2746+       tower | tower-32)
     2747+               basic_machine=m68k-ncr
     2748+               ;;
     2749+       tpf)
     2750+               basic_machine=s390x-ibm
     2751+               os=-tpf
     2752+               ;;
     2753+       udi29k)
     2754+               basic_machine=a29k-amd
     2755+               os=-udi
     2756+               ;;
     2757+       ultra3)
     2758+               basic_machine=a29k-nyu
     2759+               os=-sym1
     2760+               ;;
     2761+       v810 | necv810)
     2762+               basic_machine=v810-nec
     2763+               os=-none
     2764+               ;;
     2765+       vaxv)
     2766+               basic_machine=vax-dec
     2767+               os=-sysv
     2768+               ;;
     2769+       vms)
     2770+               basic_machine=vax-dec
     2771+               os=-vms
     2772+               ;;
     2773+       vpp*|vx|vx-*)
     2774+               basic_machine=f301-fujitsu
     2775+               ;;
     2776+       vxworks960)
     2777+               basic_machine=i960-wrs
     2778+               os=-vxworks
     2779+               ;;
     2780+       vxworks68)
     2781+               basic_machine=m68k-wrs
     2782+               os=-vxworks
     2783+               ;;
     2784+       vxworks29k)
     2785+               basic_machine=a29k-wrs
     2786+               os=-vxworks
     2787+               ;;
     2788+       w65*)
     2789+               basic_machine=w65-wdc
     2790+               os=-none
     2791+               ;;
     2792+       w89k-*)
     2793+               basic_machine=hppa1.1-winbond
     2794+               os=-proelf
     2795+               ;;
     2796+       xbox)
     2797+               basic_machine=i686-pc
     2798+               os=-mingw32
     2799+               ;;
     2800+       xps | xps100)
     2801+               basic_machine=xps100-honeywell
     2802+               ;;
     2803+       xscale-* | xscalee[bl]-*)
     2804+               basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
     2805+               ;;
     2806+       ymp)
     2807+               basic_machine=ymp-cray
     2808+               os=-unicos
     2809+               ;;
     2810+       z8k-*-coff)
     2811+               basic_machine=z8k-unknown
     2812+               os=-sim
     2813+               ;;
     2814+       z80-*-coff)
     2815+               basic_machine=z80-unknown
     2816+               os=-sim
     2817+               ;;
     2818+       none)
     2819+               basic_machine=none-none
     2820+               os=-none
     2821+               ;;
     2822+
     2823+# Here we handle the default manufacturer of certain CPU types.  It is in
     2824+# some cases the only manufacturer, in others, it is the most popular.
     2825+       w89k)
     2826+               basic_machine=hppa1.1-winbond
     2827+               ;;
     2828+       op50n)
     2829+               basic_machine=hppa1.1-oki
     2830+               ;;
     2831+       op60c)
     2832+               basic_machine=hppa1.1-oki
     2833+               ;;
     2834+       romp)
     2835+               basic_machine=romp-ibm
     2836+               ;;
     2837+       mmix)
     2838+               basic_machine=mmix-knuth
     2839+               ;;
     2840+       rs6000)
     2841+               basic_machine=rs6000-ibm
     2842+               ;;
     2843+       vax)
     2844+               basic_machine=vax-dec
     2845+               ;;
     2846+       pdp10)
     2847+               # there are many clones, so DEC is not a safe bet
     2848+               basic_machine=pdp10-unknown
     2849+               ;;
     2850+       pdp11)
     2851+               basic_machine=pdp11-dec
     2852+               ;;
     2853+       we32k)
     2854+               basic_machine=we32k-att
     2855+               ;;
     2856+       sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
     2857+               basic_machine=sh-unknown
     2858+               ;;
     2859+       sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
     2860+               basic_machine=sparc-sun
     2861+               ;;
     2862+       cydra)
     2863+               basic_machine=cydra-cydrome
     2864+               ;;
     2865+       orion)
     2866+               basic_machine=orion-highlevel
     2867+               ;;
     2868+       orion105)
     2869+               basic_machine=clipper-highlevel
     2870+               ;;
     2871+       mac | mpw | mac-mpw)
     2872+               basic_machine=m68k-apple
     2873+               ;;
     2874+       pmac | pmac-mpw)
     2875+               basic_machine=powerpc-apple
     2876+               ;;
     2877+       *-unknown)
     2878+               # Make sure to match an already-canonicalized machine name.
     2879+               ;;
     2880+       *)
     2881+               echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
     2882+               exit 1
     2883+               ;;
     2884+esac
     2885+
     2886+# Here we canonicalize certain aliases for manufacturers.
     2887+case $basic_machine in
     2888+       *-digital*)
     2889+               basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
     2890+               ;;
     2891+       *-commodore*)
     2892+               basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
     2893+               ;;
     2894+       *)
     2895+               ;;
     2896+esac
     2897+
     2898+# Decode manufacturer-specific aliases for certain operating systems.
     2899+
     2900+if [ x"$os" != x"" ]
     2901+then
     2902+case $os in
     2903+       # First match some system type aliases
     2904+       # that might get confused with valid system types.
     2905+       # -solaris* is a basic system type, with this one exception.
     2906+       -auroraux)
     2907+               os=-auroraux
     2908+               ;;
     2909+       -solaris1 | -solaris1.*)
     2910+               os=`echo $os | sed -e 's|solaris1|sunos4|'`
     2911+               ;;
     2912+       -solaris)
     2913+               os=-solaris2
     2914+               ;;
     2915+       -svr4*)
     2916+               os=-sysv4
     2917+               ;;
     2918+       -unixware*)
     2919+               os=-sysv4.2uw
     2920+               ;;
     2921+       -gnu/linux*)
     2922+               os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
     2923+               ;;
     2924+       # First accept the basic system types.
     2925+       # The portable systems comes first.
     2926+       # Each alternative MUST END IN A *, to match a version number.
     2927+       # -sysv* is not here because it comes later, after sysvr4.
     2928+       -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
     2929+             | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
     2930+             | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
     2931+             | -sym* | -kopensolaris* | -plan9* \
     2932+             | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
     2933+             | -aos* | -aros* \
     2934+             | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
     2935+             | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
     2936+             | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
     2937+             | -bitrig* | -openbsd* | -solidbsd* \
     2938+             | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
     2939+             | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
     2940+             | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
     2941+             | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
     2942+             | -chorusos* | -chorusrdb* | -cegcc* \
     2943+             | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
     2944+             | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
     2945+             | -linux-newlib* | -linux-musl* | -linux-uclibc* \
     2946+             | -uxpv* | -beos* | -mpeix* | -udk* \
     2947+             | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
     2948+             | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
     2949+             | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
     2950+             | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
     2951+             | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
     2952+             | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
     2953+             | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
     2954+       # Remember, each alternative MUST END IN *, to match a version number.
     2955+               ;;
     2956+       -qnx*)
     2957+               case $basic_machine in
     2958+                   x86-* | i*86-*)
     2959+                       ;;
     2960+                   *)
     2961+                       os=-nto$os
     2962+                       ;;
     2963+               esac
     2964+               ;;
     2965+       -nto-qnx*)
     2966+               ;;
     2967+       -nto*)
     2968+               os=`echo $os | sed -e 's|nto|nto-qnx|'`
     2969+               ;;
     2970+       -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
     2971+             | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
     2972+             | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
     2973+               ;;
     2974+       -mac*)
     2975+               os=`echo $os | sed -e 's|mac|macos|'`
     2976+               ;;
     2977+       -linux-dietlibc)
     2978+               os=-linux-dietlibc
     2979+               ;;
     2980+       -linux*)
     2981+               os=`echo $os | sed -e 's|linux|linux-gnu|'`
     2982+               ;;
     2983+       -sunos5*)
     2984+               os=`echo $os | sed -e 's|sunos5|solaris2|'`
     2985+               ;;
     2986+       -sunos6*)
     2987+               os=`echo $os | sed -e 's|sunos6|solaris3|'`
     2988+               ;;
     2989+       -opened*)
     2990+               os=-openedition
     2991+               ;;
     2992+       -os400*)
     2993+               os=-os400
     2994+               ;;
     2995+       -wince*)
     2996+               os=-wince
     2997+               ;;
     2998+       -osfrose*)
     2999+               os=-osfrose
     3000+               ;;
     3001+       -osf*)
     3002+               os=-osf
     3003+               ;;
     3004+       -utek*)
     3005+               os=-bsd
     3006+               ;;
     3007+       -dynix*)
     3008+               os=-bsd
     3009+               ;;
     3010+       -acis*)
     3011+               os=-aos
     3012+               ;;
     3013+       -atheos*)
     3014+               os=-atheos
     3015+               ;;
     3016+       -syllable*)
     3017+               os=-syllable
     3018+               ;;
     3019+       -386bsd)
     3020+               os=-bsd
     3021+               ;;
     3022+       -ctix* | -uts*)
     3023+               os=-sysv
     3024+               ;;
     3025+       -nova*)
     3026+               os=-rtmk-nova
     3027+               ;;
     3028+       -ns2 )
     3029+               os=-nextstep2
     3030+               ;;
     3031+       -nsk*)
     3032+               os=-nsk
     3033+               ;;
     3034+       # Preserve the version number of sinix5.
     3035+       -sinix5.*)
     3036+               os=`echo $os | sed -e 's|sinix|sysv|'`
     3037+               ;;
     3038+       -sinix*)
     3039+               os=-sysv4
     3040+               ;;
     3041+       -tpf*)
     3042+               os=-tpf
     3043+               ;;
     3044+       -triton*)
     3045+               os=-sysv3
     3046+               ;;
     3047+       -oss*)
     3048+               os=-sysv3
     3049+               ;;
     3050+       -svr4)
     3051+               os=-sysv4
     3052+               ;;
     3053+       -svr3)
     3054+               os=-sysv3
     3055+               ;;
     3056+       -sysvr4)
     3057+               os=-sysv4
     3058+               ;;
     3059+       # This must come after -sysvr4.
     3060+       -sysv*)
     3061+               ;;
     3062+       -ose*)
     3063+               os=-ose
     3064+               ;;
     3065+       -es1800*)
     3066+               os=-ose
     3067+               ;;
     3068+       -xenix)
     3069+               os=-xenix
     3070+               ;;
     3071+       -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
     3072+               os=-mint
     3073+               ;;
     3074+       -aros*)
     3075+               os=-aros
     3076+               ;;
     3077+       -zvmoe)
     3078+               os=-zvmoe
     3079+               ;;
     3080+       -dicos*)
     3081+               os=-dicos
     3082+               ;;
     3083+       -nacl*)
     3084+               ;;
     3085+       -none)
     3086+               ;;
     3087+       *)
     3088+               # Get rid of the `-' at the beginning of $os.
     3089+               os=`echo $os | sed 's/[^-]*-//'`
     3090+               echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
     3091+               exit 1
     3092+               ;;
     3093+esac
     3094+else
     3095+
     3096+# Here we handle the default operating systems that come with various machines.
     3097+# The value should be what the vendor currently ships out the door with their
     3098+# machine or put another way, the most popular os provided with the machine.
     3099+
     3100+# Note that if you're going to try to match "-MANUFACTURER" here (say,
     3101+# "-sun"), then you have to tell the case statement up towards the top
     3102+# that MANUFACTURER isn't an operating system.  Otherwise, code above
     3103+# will signal an error saying that MANUFACTURER isn't an operating
     3104+# system, and we'll never get to this point.
     3105+
     3106+case $basic_machine in
     3107+       score-*)
     3108+               os=-elf
     3109+               ;;
     3110+       spu-*)
     3111+               os=-elf
     3112+               ;;
     3113+       *-acorn)
     3114+               os=-riscix1.2
     3115+               ;;
     3116+       arm*-rebel)
     3117+               os=-linux
     3118+               ;;
     3119+       arm*-semi)
     3120+               os=-aout
     3121+               ;;
     3122+       c4x-* | tic4x-*)
     3123+               os=-coff
     3124+               ;;
     3125+       c8051-*)
     3126+               os=-elf
     3127+               ;;
     3128+       hexagon-*)
     3129+               os=-elf
     3130+               ;;
     3131+       tic54x-*)
     3132+               os=-coff
     3133+               ;;
     3134+       tic55x-*)
     3135+               os=-coff
     3136+               ;;
     3137+       tic6x-*)
     3138+               os=-coff
     3139+               ;;
     3140+       # This must come before the *-dec entry.
     3141+       pdp10-*)
     3142+               os=-tops20
     3143+               ;;
     3144+       pdp11-*)
     3145+               os=-none
     3146+               ;;
     3147+       *-dec | vax-*)
     3148+               os=-ultrix4.2
     3149+               ;;
     3150+       m68*-apollo)
     3151+               os=-domain
     3152+               ;;
     3153+       i386-sun)
     3154+               os=-sunos4.0.2
     3155+               ;;
     3156+       m68000-sun)
     3157+               os=-sunos3
     3158+               ;;
     3159+       m68*-cisco)
     3160+               os=-aout
     3161+               ;;
     3162+       mep-*)
     3163+               os=-elf
     3164+               ;;
     3165+       mips*-cisco)
     3166+               os=-elf
     3167+               ;;
     3168+       mips*-*)
     3169+               os=-elf
     3170+               ;;
     3171+       or1k-*)
     3172+               os=-elf
     3173+               ;;
     3174+       or32-*)
     3175+               os=-coff
     3176+               ;;
     3177+       *-tti)  # must be before sparc entry or we get the wrong os.
     3178+               os=-sysv3
     3179+               ;;
     3180+       sparc-* | *-sun)
     3181+               os=-sunos4.1.1
     3182+               ;;
     3183+       *-be)
     3184+               os=-beos
     3185+               ;;
     3186+       *-haiku)
     3187+               os=-haiku
     3188+               ;;
     3189+       *-ibm)
     3190+               os=-aix
     3191+               ;;
     3192+       *-knuth)
     3193+               os=-mmixware
     3194+               ;;
     3195+       *-wec)
     3196+               os=-proelf
     3197+               ;;
     3198+       *-winbond)
     3199+               os=-proelf
     3200+               ;;
     3201+       *-oki)
     3202+               os=-proelf
     3203+               ;;
     3204+       *-hp)
     3205+               os=-hpux
     3206+               ;;
     3207+       *-hitachi)
     3208+               os=-hiux
     3209+               ;;
     3210+       i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
     3211+               os=-sysv
     3212+               ;;
     3213+       *-cbm)
     3214+               os=-amigaos
     3215+               ;;
     3216+       *-dg)
     3217+               os=-dgux
     3218+               ;;
     3219+       *-dolphin)
     3220+               os=-sysv3
     3221+               ;;
     3222+       m68k-ccur)
     3223+               os=-rtu
     3224+               ;;
     3225+       m88k-omron*)
     3226+               os=-luna
     3227+               ;;
     3228+       *-next )
     3229+               os=-nextstep
     3230+               ;;
     3231+       *-sequent)
     3232+               os=-ptx
     3233+               ;;
     3234+       *-crds)
     3235+               os=-unos
     3236+               ;;
     3237+       *-ns)
     3238+               os=-genix
     3239+               ;;
     3240+       i370-*)
     3241+               os=-mvs
     3242+               ;;
     3243+       *-next)
     3244+               os=-nextstep3
     3245+               ;;
     3246+       *-gould)
     3247+               os=-sysv
     3248+               ;;
     3249+       *-highlevel)
     3250+               os=-bsd
     3251+               ;;
     3252+       *-encore)
     3253+               os=-bsd
     3254+               ;;
     3255+       *-sgi)
     3256+               os=-irix
     3257+               ;;
     3258+       *-siemens)
     3259+               os=-sysv4
     3260+               ;;
     3261+       *-masscomp)
     3262+               os=-rtu
     3263+               ;;
     3264+       f30[01]-fujitsu | f700-fujitsu)
     3265+               os=-uxpv
     3266+               ;;
     3267+       *-rom68k)
     3268+               os=-coff
     3269+               ;;
     3270+       *-*bug)
     3271+               os=-coff
     3272+               ;;
     3273+       *-apple)
     3274+               os=-macos
     3275+               ;;
     3276+       *-atari*)
     3277+               os=-mint
     3278+               ;;
     3279+       *)
     3280+               os=-none
     3281+               ;;
     3282+esac
     3283+fi
     3284+
     3285+# Here we handle the case where we know the os, and the CPU type, but not the
     3286+# manufacturer.  We pick the logical manufacturer.
     3287+vendor=unknown
     3288+case $basic_machine in
     3289+       *-unknown)
     3290+               case $os in
     3291+                       -riscix*)
     3292+                               vendor=acorn
     3293+                               ;;
     3294+                       -sunos*)
     3295+                               vendor=sun
     3296+                               ;;
     3297+                       -cnk*|-aix*)
     3298+                               vendor=ibm
     3299+                               ;;
     3300+                       -beos*)
     3301+                               vendor=be
     3302+                               ;;
     3303+                       -hpux*)
     3304+                               vendor=hp
     3305+                               ;;
     3306+                       -mpeix*)
     3307+                               vendor=hp
     3308+                               ;;
     3309+                       -hiux*)
     3310+                               vendor=hitachi
     3311+                               ;;
     3312+                       -unos*)
     3313+                               vendor=crds
     3314+                               ;;
     3315+                       -dgux*)
     3316+                               vendor=dg
     3317+                               ;;
     3318+                       -luna*)
     3319+                               vendor=omron
     3320+                               ;;
     3321+                       -genix*)
     3322+                               vendor=ns
     3323+                               ;;
     3324+                       -mvs* | -opened*)
     3325+                               vendor=ibm
     3326+                               ;;
     3327+                       -os400*)
     3328+                               vendor=ibm
     3329+                               ;;
     3330+                       -ptx*)
     3331+                               vendor=sequent
     3332+                               ;;
     3333+                       -tpf*)
     3334+                               vendor=ibm
     3335+                               ;;
     3336+                       -vxsim* | -vxworks* | -windiss*)
     3337+                               vendor=wrs
     3338+                               ;;
     3339+                       -aux*)
     3340+                               vendor=apple
     3341+                               ;;
     3342+                       -hms*)
     3343+                               vendor=hitachi
     3344+                               ;;
     3345+                       -mpw* | -macos*)
     3346+                               vendor=apple
     3347+                               ;;
     3348+                       -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
     3349+                               vendor=atari
     3350+                               ;;
     3351+                       -vos*)
     3352+                               vendor=stratus
     3353+                               ;;
     3354+               esac
     3355+               basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
     3356+               ;;
     3357+esac
     3358+
     3359+echo $basic_machine$os
     3360+exit
     3361+
     3362+# Local variables:
     3363+# eval: (add-hook 'write-file-hooks 'time-stamp)
     3364+# time-stamp-start: "timestamp='"
     3365+# time-stamp-format: "%:y-%02m-%02d"
     3366+# time-stamp-end: "'"
     3367+# End: