~ubuntu-branches/ubuntu/oneiric/gnupg2/oneiric-proposed

« back to all changes in this revision

Viewing changes to debian/patches/debian-changes-2.0.14-2

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2011-05-25 14:27:35 UTC
  • mfrom: (1.1.15 upstream) (7.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110525142735-jccyw0fopnyv728q
Tags: 2.0.17-2ubuntu1
* Merge from debian unstable. Remaining changes:
  - Add udev rules to give gpg access to some smartcard readers;
    Debian #543217.
    . debian/gnupg2.dev: udev rules to set ACLs on SCM smartcard readers.
    . debian/rules: Call dh_installudev.
  - debian/control: Rename Vcs-* to XS-Debian-Vcs-*.

Show diffs side-by-side

added added

removed removed

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