1
Description: <short summary of the patch>
2
TODO: Put a short summary on the line above and replace this paragraph
3
with a longer explanation of this change. Complete the meta-information
4
with other relevant fields (see below for details). To make it easier, the
5
information below has been extracted from the changelog. Adjust it or drop
8
moonshot-gss-eap (0.9.2-1) unstable; urgency=medium
11
* This is ready for Debian unstable, although there are remaining issues
12
before I'd want to see it in a release. I'll hold a serious bug on
13
the package until these are resolved; see debian/TODO.
14
* Upload to Debian, Closes: #761868
15
Author: Sam Hartman <hartmans@debian.org>
16
Bug-Debian: http://bugs.debian.org/761868
19
The information above should follow the Patch Tagging Guidelines, please
20
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
21
are templates for supplementary fields that you might want to add:
23
Origin: <vendor|upstream|other>, <url of original patch>
24
Bug: <url in upstream bugtracker>
25
Bug-Debian: http://bugs.debian.org/<bugnumber>
26
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
27
Forwarded: <no|not-needed|url proving that it has been forwarded>
28
Reviewed-By: <name and email of someone who approved the patch>
29
Last-Update: <YYYY-MM-DD>
32
+++ moonshot-gss-eap-0.9.2/config.guess
35
+# Attempt to guess a canonical system name.
36
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
37
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
38
+# Free Software Foundation, Inc.
40
+timestamp='2009-12-30'
42
+# This file is free software; you can redistribute it and/or modify it
43
+# under the terms of the GNU General Public License as published by
44
+# the Free Software Foundation; either version 2 of the License, or
45
+# (at your option) any later version.
47
+# This program is distributed in the hope that it will be useful, but
48
+# WITHOUT ANY WARRANTY; without even the implied warranty of
49
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
50
+# General Public License for more details.
52
+# You should have received a copy of the GNU General Public License
53
+# along with this program; if not, write to the Free Software
54
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
57
+# As a special exception to the GNU General Public License, if you
58
+# distribute this file as part of a program that contains a
59
+# configuration script generated by Autoconf, you may include it under
60
+# the same distribution terms that you use for the rest of that program.
63
+# Originally written by Per Bothner. Please send patches (context
64
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
67
+# This script attempts to guess a canonical system name similar to
68
+# config.sub. If it succeeds, it prints the system name on stdout, and
69
+# exits with 0. Otherwise, it exits with 1.
71
+# You can get the latest version of this script from:
72
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
74
+me=`echo "$0" | sed -e 's,.*/,,'`
79
+Output the configuration name of the system \`$me' is run on.
82
+ -h, --help print this help, then exit
83
+ -t, --time-stamp print date of last modification, then exit
84
+ -v, --version print version number, then exit
86
+Report bugs and patches to <config-patches@gnu.org>."
89
+GNU config.guess ($timestamp)
91
+Originally written by Per Bothner.
92
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
93
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
94
+Software Foundation, Inc.
96
+This is free software; see the source for copying conditions. There is NO
97
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
100
+Try \`$me --help' for more information."
102
+# Parse command line
103
+while test $# -gt 0 ; do
105
+ --time-stamp | --time* | -t )
106
+ echo "$timestamp" ; exit ;;
108
+ echo "$version" ; exit ;;
109
+ --help | --h* | -h )
110
+ echo "$usage"; exit ;;
111
+ -- ) # Stop option processing
113
+ - ) # Use stdin as input.
116
+ echo "$me: invalid option $1$help" >&2
123
+if test $# != 0; then
124
+ echo "$me: too many arguments$help" >&2
128
+trap 'exit 1' 1 2 15
130
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
131
+# compiler to aid in system detection is discouraged as it requires
132
+# temporary files to be created and, as you can see below, it is a
133
+# headache to deal with in a portable fashion.
135
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
136
+# use `HOST_CC' if defined, but it is deprecated.
138
+# Portable tmp directory creation inspired by the Autoconf team.
141
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
142
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
144
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
145
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
146
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
147
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
149
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
150
+case $CC_FOR_BUILD,$HOST_CC,$CC in
151
+ ,,) echo "int x;" > $dummy.c ;
152
+ for c in cc gcc c89 c99 ; do
153
+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
154
+ CC_FOR_BUILD="$c"; break ;
157
+ if test x"$CC_FOR_BUILD" = x ; then
158
+ CC_FOR_BUILD=no_compiler_found ;
161
+ ,,*) CC_FOR_BUILD=$CC ;;
162
+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
163
+esac ; set_cc_for_build= ;'
165
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
166
+# (ghazi@noc.rutgers.edu 1994-08-24)
167
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
168
+ PATH=$PATH:/.attbin ; export PATH
171
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
172
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
173
+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
174
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
176
+# Note: order is significant - the case branches are not exclusive.
178
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
180
+ # NetBSD (nbsd) targets should (where applicable) match one or
181
+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
182
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
183
+ # switched to ELF, *-*-netbsd* would select the old
184
+ # object file format. This provides both forward
185
+ # compatibility and a consistent mechanism for selecting the
186
+ # object file format.
188
+ # Note: NetBSD doesn't particularly care about the vendor
189
+ # portion of the name. We always set it to "unknown".
190
+ sysctl="sysctl -n hw.machine_arch"
191
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
192
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
193
+ case "${UNAME_MACHINE_ARCH}" in
194
+ armeb) machine=armeb-unknown ;;
195
+ arm*) machine=arm-unknown ;;
196
+ sh3el) machine=shl-unknown ;;
197
+ sh3eb) machine=sh-unknown ;;
198
+ sh5el) machine=sh5le-unknown ;;
199
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
201
+ # The Operating System including object format, if it has switched
202
+ # to ELF recently, or will in the future.
203
+ case "${UNAME_MACHINE_ARCH}" in
204
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
205
+ eval $set_cc_for_build
206
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
209
+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
210
+ # Return netbsd for either. FIX?
221
+ # Debian GNU/NetBSD machines have a different userland, and
222
+ # thus, need a distinct triplet. However, they do not need
223
+ # kernel version information, so it can be replaced with a
224
+ # suitable tag, in the style of linux-gnu.
225
+ case "${UNAME_VERSION}" in
230
+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
233
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
234
+ # contains redundant information, the shorter form:
235
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
236
+ echo "${machine}-${os}${release}"
239
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
240
+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
243
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
246
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
249
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
252
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
255
+ case $UNAME_RELEASE in
257
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
260
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
263
+ # According to Compaq, /usr/sbin/psrinfo has been available on
264
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
265
+ # covers most systems running today. This code pipes the CPU
266
+ # types through head -n 1, so we only detect the type of CPU 0.
267
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
268
+ case "$ALPHA_CPU_TYPE" in
270
+ UNAME_MACHINE="alpha" ;;
272
+ UNAME_MACHINE="alpha" ;;
273
+ "LCA4 (21066/21068)")
274
+ UNAME_MACHINE="alpha" ;;
276
+ UNAME_MACHINE="alphaev5" ;;
278
+ UNAME_MACHINE="alphaev56" ;;
280
+ UNAME_MACHINE="alphapca56" ;;
282
+ UNAME_MACHINE="alphapca57" ;;
284
+ UNAME_MACHINE="alphaev6" ;;
286
+ UNAME_MACHINE="alphaev67" ;;
287
+ "EV6.8CB (21264C)")
288
+ UNAME_MACHINE="alphaev68" ;;
289
+ "EV6.8AL (21264B)")
290
+ UNAME_MACHINE="alphaev68" ;;
291
+ "EV6.8CX (21264D)")
292
+ UNAME_MACHINE="alphaev68" ;;
293
+ "EV6.9A (21264/EV69A)")
294
+ UNAME_MACHINE="alphaev69" ;;
296
+ UNAME_MACHINE="alphaev7" ;;
298
+ UNAME_MACHINE="alphaev79" ;;
300
+ # A Pn.n version is a patched version.
301
+ # A Vn.n version is a released version.
302
+ # A Tn.n version is a released field test version.
303
+ # A Xn.n version is an unreleased experimental baselevel.
304
+ # 1.2 uses "1.2" for uname -r.
305
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
307
+ Alpha\ *:Windows_NT*:*)
308
+ # How do we know it's Interix rather than the generic POSIX subsystem?
309
+ # Should we change UNAME_MACHINE based on the output of uname instead
310
+ # of the specific Alpha model?
311
+ echo alpha-pc-interix
313
+ 21064:Windows_NT:50:3)
314
+ echo alpha-dec-winnt3.5
316
+ Amiga*:UNIX_System_V:4.0:*)
317
+ echo m68k-unknown-sysv4
319
+ *:[Aa]miga[Oo][Ss]:*:*)
320
+ echo ${UNAME_MACHINE}-unknown-amigaos
322
+ *:[Mm]orph[Oo][Ss]:*:*)
323
+ echo ${UNAME_MACHINE}-unknown-morphos
326
+ echo i370-ibm-openedition
329
+ echo s390-ibm-zvmoe
332
+ echo powerpc-ibm-os400
334
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
335
+ echo arm-acorn-riscix${UNAME_RELEASE}
337
+ arm:riscos:*:*|arm:RISCOS:*:*)
338
+ echo arm-unknown-riscos
340
+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
341
+ echo hppa1.1-hitachi-hiuxmpp
343
+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
344
+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
345
+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
346
+ echo pyramid-pyramid-sysv3
348
+ echo pyramid-pyramid-bsd
352
+ echo pyramid-pyramid-svr4
354
+ DRS?6000:unix:4.0:6*)
357
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
358
+ case `/usr/bin/uname -p` in
359
+ sparc) echo sparc-icl-nx7; exit ;;
362
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
365
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
367
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
368
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
370
+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
371
+ echo i386-pc-auroraux${UNAME_RELEASE}
373
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
374
+ eval $set_cc_for_build
376
+ # If there is a compiler, see if it is configured for 64-bit objects.
377
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
378
+ # This test works for both compilers.
379
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
380
+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
381
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
382
+ grep IS_64BIT_ARCH >/dev/null
387
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
390
+ # According to config.sub, this is the proper way to canonicalize
391
+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
392
+ # it's likely to be more like Solaris than SunOS4.
393
+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
396
+ case "`/usr/bin/arch -k`" in
398
+ UNAME_RELEASE=`uname -v`
401
+ # Japanese Language versions have a version number like `4.1.3-JL'.
402
+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
405
+ echo m68k-sun-sunos${UNAME_RELEASE}
408
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
409
+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
410
+ case "`/bin/arch`" in
412
+ echo m68k-sun-sunos${UNAME_RELEASE}
415
+ echo sparc-sun-sunos${UNAME_RELEASE}
420
+ echo sparc-auspex-sunos${UNAME_RELEASE}
422
+ # The situation for MiNT is a little confusing. The machine name
423
+ # can be virtually everything (everything which is not
424
+ # "atarist" or "atariste" at least should have a processor
425
+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
426
+ # to the lowercase version "mint" (or "freemint"). Finally
427
+ # the system name "TOS" denotes a system which is actually not
428
+ # MiNT. But MiNT is downward compatible to TOS, so this should
430
+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
431
+ echo m68k-atari-mint${UNAME_RELEASE}
433
+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
434
+ echo m68k-atari-mint${UNAME_RELEASE}
436
+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
437
+ echo m68k-atari-mint${UNAME_RELEASE}
439
+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
440
+ echo m68k-milan-mint${UNAME_RELEASE}
442
+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
443
+ echo m68k-hades-mint${UNAME_RELEASE}
445
+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
446
+ echo m68k-unknown-mint${UNAME_RELEASE}
449
+ echo m68k-apple-machten${UNAME_RELEASE}
451
+ powerpc:machten:*:*)
452
+ echo powerpc-apple-machten${UNAME_RELEASE}
455
+ echo mips-dec-mach_bsd4.3
458
+ echo mips-dec-ultrix${UNAME_RELEASE}
461
+ echo vax-dec-ultrix${UNAME_RELEASE}
463
+ 2020:CLIX:*:* | 2430:CLIX:*:*)
464
+ echo clipper-intergraph-clix${UNAME_RELEASE}
466
+ mips:*:*:UMIPS | mips:*:*:RISCos)
467
+ eval $set_cc_for_build
468
+ sed 's/^ //' << EOF >$dummy.c
470
+#include <stdio.h> /* for printf() prototype */
471
+ int main (int argc, char *argv[]) {
473
+ int main (argc, argv) int argc; char *argv[]; {
475
+ #if defined (host_mips) && defined (MIPSEB)
476
+ #if defined (SYSTYPE_SYSV)
477
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
479
+ #if defined (SYSTYPE_SVR4)
480
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
482
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
483
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
489
+ $CC_FOR_BUILD -o $dummy $dummy.c &&
490
+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
491
+ SYSTEM_NAME=`$dummy $dummyarg` &&
492
+ { echo "$SYSTEM_NAME"; exit; }
493
+ echo mips-mips-riscos${UNAME_RELEASE}
495
+ Motorola:PowerMAX_OS:*:*)
496
+ echo powerpc-motorola-powermax
498
+ Motorola:*:4.3:PL8-*)
499
+ echo powerpc-harris-powermax
501
+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
502
+ echo powerpc-harris-powermax
504
+ Night_Hawk:Power_UNIX:*:*)
505
+ echo powerpc-harris-powerunix
508
+ echo m88k-harris-cxux7
511
+ echo m88k-motorola-sysv4
514
+ echo m88k-motorola-sysv3
517
+ # DG/UX returns AViiON for all architectures
518
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
519
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
521
+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
522
+ [ ${TARGET_BINARY_INTERFACE}x = x ]
524
+ echo m88k-dg-dgux${UNAME_RELEASE}
526
+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
529
+ echo i586-dg-dgux${UNAME_RELEASE}
532
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
533
+ echo m88k-dolphin-sysv3
536
+ # Delta 88k system running SVR3
537
+ echo m88k-motorola-sysv3
539
+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
540
+ echo m88k-tektronix-sysv3
542
+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
543
+ echo m68k-tektronix-bsd
546
+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
548
+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
549
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
550
+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
555
+ if [ -x /usr/bin/oslevel ] ; then
556
+ IBM_REV=`/usr/bin/oslevel`
558
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
560
+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
563
+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
564
+ eval $set_cc_for_build
565
+ sed 's/^ //' << EOF >$dummy.c
566
+ #include <sys/systemcfg.h>
572
+ puts("powerpc-ibm-aix3.2.5");
576
+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
578
+ echo "$SYSTEM_NAME"
580
+ echo rs6000-ibm-aix3.2.5
582
+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
583
+ echo rs6000-ibm-aix3.2.4
585
+ echo rs6000-ibm-aix3.2
589
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
590
+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
595
+ if [ -x /usr/bin/oslevel ] ; then
596
+ IBM_REV=`/usr/bin/oslevel`
598
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
600
+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
603
+ echo rs6000-ibm-aix
605
+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
606
+ echo romp-ibm-bsd4.4
608
+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
609
+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
610
+ exit ;; # report: romp-ibm BSD 4.3
612
+ echo rs6000-bull-bosx
614
+ DPX/2?00:B.O.S.:*:*)
615
+ echo m68k-bull-sysv3
617
+ 9000/[34]??:4.3bsd:1.*:*)
620
+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
621
+ echo m68k-hp-bsd4.4
623
+ 9000/[34678]??:HP-UX:*:*)
624
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
625
+ case "${UNAME_MACHINE}" in
626
+ 9000/31? ) HP_ARCH=m68000 ;;
627
+ 9000/[34]?? ) HP_ARCH=m68k ;;
628
+ 9000/[678][0-9][0-9])
629
+ if [ -x /usr/bin/getconf ]; then
630
+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
631
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
632
+ case "${sc_cpu_version}" in
633
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
634
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
635
+ 532) # CPU_PA_RISC2_0
636
+ case "${sc_kernel_bits}" in
637
+ 32) HP_ARCH="hppa2.0n" ;;
638
+ 64) HP_ARCH="hppa2.0w" ;;
639
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
643
+ if [ "${HP_ARCH}" = "" ]; then
644
+ eval $set_cc_for_build
645
+ sed 's/^ //' << EOF >$dummy.c
647
+ #define _HPUX_SOURCE
648
+ #include <stdlib.h>
649
+ #include <unistd.h>
653
+ #if defined(_SC_KERNEL_BITS)
654
+ long bits = sysconf(_SC_KERNEL_BITS);
656
+ long cpu = sysconf (_SC_CPU_VERSION);
660
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
661
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
662
+ case CPU_PA_RISC2_0:
663
+ #if defined(_SC_KERNEL_BITS)
666
+ case 64: puts ("hppa2.0w"); break;
667
+ case 32: puts ("hppa2.0n"); break;
668
+ default: puts ("hppa2.0"); break;
670
+ #else /* !defined(_SC_KERNEL_BITS) */
671
+ puts ("hppa2.0"); break;
673
+ default: puts ("hppa1.0"); break;
678
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
679
+ test -z "$HP_ARCH" && HP_ARCH=hppa
682
+ if [ ${HP_ARCH} = "hppa2.0w" ]
684
+ eval $set_cc_for_build
686
+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
687
+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
688
+ # generating 64-bit code. GNU and HP use different nomenclature:
690
+ # $ CC_FOR_BUILD=cc ./config.guess
691
+ # => hppa2.0w-hp-hpux11.23
692
+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
693
+ # => hppa64-hp-hpux11.23
695
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
703
+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
706
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
707
+ echo ia64-hp-hpux${HPUX_REV}
710
+ eval $set_cc_for_build
711
+ sed 's/^ //' << EOF >$dummy.c
712
+ #include <unistd.h>
716
+ long cpu = sysconf (_SC_CPU_VERSION);
717
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
718
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
719
+ results, however. */
720
+ if (CPU_IS_PA_RISC (cpu))
724
+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
725
+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
726
+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
727
+ default: puts ("hppa-hitachi-hiuxwe2"); break;
730
+ else if (CPU_IS_HP_MC68K (cpu))
731
+ puts ("m68k-hitachi-hiuxwe2");
732
+ else puts ("unknown-hitachi-hiuxwe2");
736
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
737
+ { echo "$SYSTEM_NAME"; exit; }
738
+ echo unknown-hitachi-hiuxwe2
740
+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
741
+ echo hppa1.1-hp-bsd
743
+ 9000/8??:4.3bsd:*:*)
744
+ echo hppa1.0-hp-bsd
746
+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
747
+ echo hppa1.0-hp-mpeix
749
+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
750
+ echo hppa1.1-hp-osf
753
+ echo hppa1.0-hp-osf
756
+ if [ -x /usr/sbin/sysversion ] ; then
757
+ echo ${UNAME_MACHINE}-unknown-osf1mk
759
+ echo ${UNAME_MACHINE}-unknown-osf1
762
+ parisc*:Lites*:*:*)
763
+ echo hppa1.1-hp-lites
765
+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
768
+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
769
+ if getsysinfo -f scalar_acc
770
+ then echo c32-convex-bsd
771
+ else echo c2-convex-bsd
774
+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
775
+ echo c34-convex-bsd
777
+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
778
+ echo c38-convex-bsd
780
+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
784
+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
786
+ CRAY*[A-Z]90:*:*:*)
787
+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
788
+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
789
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
790
+ -e 's/\.[^.]*$/.X/'
793
+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
796
+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
799
+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
802
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
804
+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
805
+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
806
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
807
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
808
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
810
+ 5000:UNIX_System_V:4.*:*)
811
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
812
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
813
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
815
+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
816
+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
819
+ echo sparc-unknown-bsdi${UNAME_RELEASE}
822
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
825
+ case ${UNAME_MACHINE} in
827
+ echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
829
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
831
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
835
+ echo ${UNAME_MACHINE}-pc-cygwin
838
+ echo ${UNAME_MACHINE}-pc-mingw32
841
+ # uname -m includes "-pc" on this system.
842
+ echo ${UNAME_MACHINE}-mingw32
845
+ echo ${UNAME_MACHINE}-pc-pw32
848
+ case ${UNAME_MACHINE} in
850
+ echo i586-pc-interix${UNAME_RELEASE}
852
+ authenticamd | genuineintel | EM64T)
853
+ echo x86_64-unknown-interix${UNAME_RELEASE}
856
+ echo ia64-unknown-interix${UNAME_RELEASE}
859
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
860
+ echo i${UNAME_MACHINE}-pc-mks
865
+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
866
+ # How do we know it's Interix rather than the generic POSIX subsystem?
867
+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
868
+ # UNAME_MACHINE based on the output of uname instead of i386?
869
+ echo i586-pc-interix
872
+ echo ${UNAME_MACHINE}-pc-uwin
874
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
875
+ echo x86_64-unknown-cygwin
878
+ echo powerpcle-unknown-cygwin
881
+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
885
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
888
+ # other systems with GNU libc and userland
889
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
892
+ echo ${UNAME_MACHINE}-pc-minix
895
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
896
+ EV5) UNAME_MACHINE=alphaev5 ;;
897
+ EV56) UNAME_MACHINE=alphaev56 ;;
898
+ PCA56) UNAME_MACHINE=alphapca56 ;;
899
+ PCA57) UNAME_MACHINE=alphapca56 ;;
900
+ EV6) UNAME_MACHINE=alphaev6 ;;
901
+ EV67) UNAME_MACHINE=alphaev67 ;;
902
+ EV68*) UNAME_MACHINE=alphaev68 ;;
904
+ objdump --private-headers /bin/sh | grep -q ld.so.1
905
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
906
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
909
+ eval $set_cc_for_build
910
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
911
+ | grep -q __ARM_EABI__
913
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
915
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
919
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
922
+ echo cris-axis-linux-gnu
925
+ echo crisv32-axis-linux-gnu
928
+ echo frv-unknown-linux-gnu
932
+ eval $set_cc_for_build
933
+ sed 's/^ //' << EOF >$dummy.c
934
+ #ifdef __dietlibc__
938
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
939
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
942
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
945
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
948
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
950
+ mips:Linux:*:* | mips64:Linux:*:*)
951
+ eval $set_cc_for_build
952
+ sed 's/^ //' << EOF >$dummy.c
954
+ #undef ${UNAME_MACHINE}
955
+ #undef ${UNAME_MACHINE}el
956
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
957
+ CPU=${UNAME_MACHINE}el
959
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
960
+ CPU=${UNAME_MACHINE}
966
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
967
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
970
+ echo or32-unknown-linux-gnu
973
+ echo sparc-unknown-linux-gnu
975
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
976
+ echo hppa64-unknown-linux-gnu
978
+ parisc:Linux:*:* | hppa:Linux:*:*)
979
+ # Look for CPU level
980
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
981
+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
982
+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
983
+ *) echo hppa-unknown-linux-gnu ;;
987
+ echo powerpc64-unknown-linux-gnu
990
+ echo powerpc-unknown-linux-gnu
992
+ s390:Linux:*:* | s390x:Linux:*:*)
993
+ echo ${UNAME_MACHINE}-ibm-linux
996
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
999
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1001
+ sparc:Linux:*:* | sparc64:Linux:*:*)
1002
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1005
+ echo ${UNAME_MACHINE}-dec-linux-gnu
1008
+ echo x86_64-unknown-linux-gnu
1010
+ xtensa*:Linux:*:*)
1011
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1013
+ i*86:DYNIX/ptx:4*:*)
1014
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1015
+ # earlier versions are messed up and put the nodename in both
1016
+ # sysname and nodename.
1017
+ echo i386-sequent-sysv4
1019
+ i*86:UNIX_SV:4.2MP:2.*)
1020
+ # Unixware is an offshoot of SVR4, but it has its own version
1021
+ # number series starting with 2...
1022
+ # I am not positive that other SVR4 systems won't match this,
1023
+ # I just have to hope. -- rms.
1024
+ # Use sysv4.2uw... so that sysv4* matches it.
1025
+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1028
+ # If we were able to find `uname', then EMX Unix compatibility
1029
+ # is probably installed.
1030
+ echo ${UNAME_MACHINE}-pc-os2-emx
1032
+ i*86:XTS-300:*:STOP)
1033
+ echo ${UNAME_MACHINE}-unknown-stop
1036
+ echo ${UNAME_MACHINE}-unknown-atheos
1038
+ i*86:syllable:*:*)
1039
+ echo ${UNAME_MACHINE}-pc-syllable
1041
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1042
+ echo i386-unknown-lynxos${UNAME_RELEASE}
1045
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
1047
+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1048
+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1049
+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1050
+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1052
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1056
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
1057
+ case `/bin/uname -X | grep "^Machine"` in
1058
+ *486*) UNAME_MACHINE=i486 ;;
1059
+ *Pentium) UNAME_MACHINE=i586 ;;
1060
+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1062
+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1065
+ if test -f /usr/options/cb.name; then
1066
+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1067
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1068
+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
1069
+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1070
+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1071
+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1072
+ && UNAME_MACHINE=i586
1073
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1074
+ && UNAME_MACHINE=i686
1075
+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1076
+ && UNAME_MACHINE=i686
1077
+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1079
+ echo ${UNAME_MACHINE}-pc-sysv32
1083
+ # Left here for compatibility:
1084
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
1085
+ # the processor, so we play safe by assuming i586.
1086
+ # Note: whatever this is, it MUST be the same as what config.sub
1087
+ # prints for the "djgpp" host, or else GDB configury will decide that
1088
+ # this is a cross-build.
1089
+ echo i586-pc-msdosdjgpp
1092
+ echo i386-pc-mach3
1095
+ echo i860-intel-osf1
1097
+ i860:*:4.*:*) # i860-SVR4
1098
+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1099
+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1100
+ else # Add other i860-SVR4 vendors below as they are discovered.
1101
+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1104
+ mini*:CTIX:SYS*5:*)
1106
+ echo m68010-convergent-sysv
1108
+ mc68k:UNIX:SYSTEM5:3.51m)
1109
+ echo m68k-convergent-sysv
1111
+ M680?0:D-NIX:5.3:*)
1112
+ echo m68k-diab-dnix
1114
+ M68*:*:R3V[5678]*:*)
1115
+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1116
+ 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)
1118
+ test -r /etc/.relid \
1119
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1120
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1121
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1122
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1123
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1124
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1125
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1126
+ && { echo i486-ncr-sysv4; exit; } ;;
1127
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1129
+ test -r /etc/.relid \
1130
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1131
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1132
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1133
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1134
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1135
+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1136
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1137
+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1138
+ echo m68k-unknown-lynxos${UNAME_RELEASE}
1140
+ mc68030:UNIX_System_V:4.*:*)
1141
+ echo m68k-atari-sysv4
1143
+ TSUNAMI:LynxOS:2.*:*)
1144
+ echo sparc-unknown-lynxos${UNAME_RELEASE}
1146
+ rs6000:LynxOS:2.*:*)
1147
+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
1149
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1150
+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
1152
+ SM[BE]S:UNIX_SV:*:*)
1153
+ echo mips-dde-sysv${UNAME_RELEASE}
1155
+ RM*:ReliantUNIX-*:*:*)
1156
+ echo mips-sni-sysv4
1159
+ echo mips-sni-sysv4
1162
+ if uname -p 2>/dev/null >/dev/null ; then
1163
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
1164
+ echo ${UNAME_MACHINE}-sni-sysv4
1166
+ echo ns32k-sni-sysv
1169
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1170
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
1171
+ echo i586-unisys-sysv4
1173
+ *:UNIX_System_V:4*:FTX*)
1174
+ # From Gerald Hewes <hewes@openmarket.com>.
1175
+ # How about differentiating between stratus architectures? -djm
1176
+ echo hppa1.1-stratus-sysv4
1179
+ # From seanf@swdc.stratus.com.
1180
+ echo i860-stratus-sysv4
1183
+ # From Paul.Green@stratus.com.
1184
+ echo ${UNAME_MACHINE}-stratus-vos
1187
+ # From Paul.Green@stratus.com.
1188
+ echo hppa1.1-stratus-vos
1191
+ echo m68k-apple-aux${UNAME_RELEASE}
1193
+ news*:NEWS-OS:6*:*)
1194
+ echo mips-sony-newsos6
1196
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1197
+ if [ -d /usr/nec ]; then
1198
+ echo mips-nec-sysv${UNAME_RELEASE}
1200
+ echo mips-unknown-sysv${UNAME_RELEASE}
1203
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1204
+ echo powerpc-be-beos
1206
+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1207
+ echo powerpc-apple-beos
1209
+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1212
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1213
+ echo i586-pc-haiku
1215
+ SX-4:SUPER-UX:*:*)
1216
+ echo sx4-nec-superux${UNAME_RELEASE}
1218
+ SX-5:SUPER-UX:*:*)
1219
+ echo sx5-nec-superux${UNAME_RELEASE}
1221
+ SX-6:SUPER-UX:*:*)
1222
+ echo sx6-nec-superux${UNAME_RELEASE}
1224
+ SX-7:SUPER-UX:*:*)
1225
+ echo sx7-nec-superux${UNAME_RELEASE}
1227
+ SX-8:SUPER-UX:*:*)
1228
+ echo sx8-nec-superux${UNAME_RELEASE}
1230
+ SX-8R:SUPER-UX:*:*)
1231
+ echo sx8r-nec-superux${UNAME_RELEASE}
1233
+ Power*:Rhapsody:*:*)
1234
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
1237
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1240
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1241
+ case $UNAME_PROCESSOR in
1243
+ eval $set_cc_for_build
1244
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1245
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1246
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1247
+ grep IS_64BIT_ARCH >/dev/null
1249
+ UNAME_PROCESSOR="x86_64"
1252
+ unknown) UNAME_PROCESSOR=powerpc ;;
1254
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1256
+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
1257
+ UNAME_PROCESSOR=`uname -p`
1258
+ if test "$UNAME_PROCESSOR" = "x86"; then
1259
+ UNAME_PROCESSOR=i386
1262
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1267
+ NSE-?:NONSTOP_KERNEL:*:*)
1268
+ echo nse-tandem-nsk${UNAME_RELEASE}
1270
+ NSR-?:NONSTOP_KERNEL:*:*)
1271
+ echo nsr-tandem-nsk${UNAME_RELEASE}
1274
+ echo mips-compaq-nonstopux
1276
+ BS2000:POSIX*:*:*)
1277
+ echo bs2000-siemens-sysv
1279
+ DS/*:UNIX_System_V:*:*)
1280
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1283
+ # "uname -m" is not consistent, so use $cputype instead. 386
1284
+ # is converted to i386 for consistency with other x86
1285
+ # operating systems.
1286
+ if test "$cputype" = "386"; then
1287
+ UNAME_MACHINE=i386
1289
+ UNAME_MACHINE="$cputype"
1291
+ echo ${UNAME_MACHINE}-unknown-plan9
1294
+ echo pdp10-unknown-tops10
1297
+ echo pdp10-unknown-tenex
1299
+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1300
+ echo pdp10-dec-tops20
1302
+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1303
+ echo pdp10-xkl-tops20
1306
+ echo pdp10-unknown-tops20
1309
+ echo pdp10-unknown-its
1312
+ echo mips-sei-seiux${UNAME_RELEASE}
1315
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1318
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
1319
+ case "${UNAME_MACHINE}" in
1320
+ A*) echo alpha-dec-vms ; exit ;;
1321
+ I*) echo ia64-dec-vms ; exit ;;
1322
+ V*) echo vax-dec-vms ; exit ;;
1325
+ echo i386-pc-xenix
1328
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1331
+ echo ${UNAME_MACHINE}-pc-rdos
1334
+ echo ${UNAME_MACHINE}-pc-aros
1338
+#echo '(No uname command or uname output not recognized.)' 1>&2
1339
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1341
+eval $set_cc_for_build
1342
+cat >$dummy.c <<EOF
1344
+# include <sys/types.h>
1345
+# include <sys/utsname.h>
1350
+#if defined (MIPSEB)
1351
+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1352
+ I don't know.... */
1353
+ printf ("mips-sony-bsd\n"); exit (0);
1355
+#include <sys/param.h>
1356
+ printf ("m68k-sony-newsos%s\n",
1366
+#if defined (__arm) && defined (__acorn) && defined (__unix)
1367
+ printf ("arm-acorn-riscix\n"); exit (0);
1370
+#if defined (hp300) && !defined (hpux)
1371
+ printf ("m68k-hp-bsd\n"); exit (0);
1375
+#if !defined (__ARCHITECTURE__)
1376
+#define __ARCHITECTURE__ "m68k"
1379
+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1381
+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1383
+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1387
+#if defined (MULTIMAX) || defined (n16)
1388
+#if defined (UMAXV)
1389
+ printf ("ns32k-encore-sysv\n"); exit (0);
1392
+ printf ("ns32k-encore-mach\n"); exit (0);
1394
+ printf ("ns32k-encore-bsd\n"); exit (0);
1399
+#if defined (__386BSD__)
1400
+ printf ("i386-pc-bsd\n"); exit (0);
1403
+#if defined (sequent)
1405
+ printf ("i386-sequent-dynix\n"); exit (0);
1407
+#if defined (ns32000)
1408
+ printf ("ns32k-sequent-dynix\n"); exit (0);
1412
+#if defined (_SEQUENT_)
1413
+ struct utsname un;
1417
+ if (strncmp(un.version, "V2", 2) == 0) {
1418
+ printf ("i386-sequent-ptx2\n"); exit (0);
1420
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1421
+ printf ("i386-sequent-ptx1\n"); exit (0);
1423
+ printf ("i386-sequent-ptx\n"); exit (0);
1428
+# if !defined (ultrix)
1429
+# include <sys/param.h>
1432
+ printf ("vax-dec-bsd4.3\n"); exit (0);
1435
+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
1437
+ printf ("vax-dec-bsd\n"); exit (0);
1441
+ printf ("vax-dec-bsd\n"); exit (0);
1444
+ printf ("vax-dec-ultrix\n"); exit (0);
1448
+#if defined (alliant) && defined (i860)
1449
+ printf ("i860-alliant-bsd\n"); exit (0);
1456
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1457
+ { echo "$SYSTEM_NAME"; exit; }
1459
+# Apollos put the system type in the environment.
1461
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1463
+# Convex versions that predate uname can use getsysinfo(1)
1465
+if [ -x /usr/convex/getsysinfo ]
1467
+ case `getsysinfo -f cpu_type` in
1469
+ echo c1-convex-bsd
1472
+ if getsysinfo -f scalar_acc
1473
+ then echo c32-convex-bsd
1474
+ else echo c2-convex-bsd
1478
+ echo c34-convex-bsd
1481
+ echo c38-convex-bsd
1484
+ echo c4-convex-bsd
1490
+$0: unable to guess system type
1492
+This script, last modified $timestamp, has failed to recognize
1493
+the operating system you are using. It is advised that you
1494
+download the most up to date version of the config scripts from
1496
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1498
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1500
+If the version you run ($0) is already up to date, please
1501
+send the following data and any information you think might be
1502
+pertinent to <config-patches@gnu.org> in order to provide the needed
1503
+information to handle your system.
1505
+config.guess timestamp = $timestamp
1507
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
1508
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
1509
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
1510
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
1512
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1513
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1515
+hostinfo = `(hostinfo) 2>/dev/null`
1516
+/bin/universe = `(/bin/universe) 2>/dev/null`
1517
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1518
+/bin/arch = `(/bin/arch) 2>/dev/null`
1519
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1520
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1522
+UNAME_MACHINE = ${UNAME_MACHINE}
1523
+UNAME_RELEASE = ${UNAME_RELEASE}
1524
+UNAME_SYSTEM = ${UNAME_SYSTEM}
1525
+UNAME_VERSION = ${UNAME_VERSION}
1531
+# eval: (add-hook 'write-file-hooks 'time-stamp)
1532
+# time-stamp-start: "timestamp='"
1533
+# time-stamp-format: "%:y-%02m-%02d"
1534
+# time-stamp-end: "'"
1537
+++ moonshot-gss-eap-0.9.2/config.sub
1540
+# Configuration validation subroutine script.
1541
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1542
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
1543
+# Free Software Foundation, Inc.
1545
+timestamp='2010-01-22'
1547
+# This file is (in principle) common to ALL GNU software.
1548
+# The presence of a machine in this file suggests that SOME GNU software
1549
+# can handle that machine. It does not imply ALL GNU software can.
1551
+# This file is free software; you can redistribute it and/or modify
1552
+# it under the terms of the GNU General Public License as published by
1553
+# the Free Software Foundation; either version 2 of the License, or
1554
+# (at your option) any later version.
1556
+# This program is distributed in the hope that it will be useful,
1557
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1558
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1559
+# GNU General Public License for more details.
1561
+# You should have received a copy of the GNU General Public License
1562
+# along with this program; if not, write to the Free Software
1563
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
1566
+# As a special exception to the GNU General Public License, if you
1567
+# distribute this file as part of a program that contains a
1568
+# configuration script generated by Autoconf, you may include it under
1569
+# the same distribution terms that you use for the rest of that program.
1572
+# Please send patches to <config-patches@gnu.org>. Submit a context
1573
+# diff and a properly formatted GNU ChangeLog entry.
1575
+# Configuration subroutine to validate and canonicalize a configuration type.
1576
+# Supply the specified configuration type as an argument.
1577
+# If it is invalid, we print an error message on stderr and exit with code 1.
1578
+# Otherwise, we print the canonical config type on stdout and succeed.
1580
+# You can get the latest version of this script from:
1581
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1583
+# This file is supposed to be the same for all GNU packages
1584
+# and recognize all the CPU types, system types and aliases
1585
+# that are meaningful with *any* GNU software.
1586
+# Each package is responsible for reporting which valid configurations
1587
+# it does not support. The user should be able to distinguish
1588
+# a failure to support a valid configuration from a meaningless
1591
+# The goal of this file is to map all the various variations of a given
1592
+# machine specification into a single specification in the form:
1593
+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
1594
+# or in some cases, the newer four-part form:
1595
+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
1596
+# It is wrong to echo any other type of specification.
1598
+me=`echo "$0" | sed -e 's,.*/,,'`
1601
+Usage: $0 [OPTION] CPU-MFR-OPSYS
1604
+Canonicalize a configuration name.
1607
+ -h, --help print this help, then exit
1608
+ -t, --time-stamp print date of last modification, then exit
1609
+ -v, --version print version number, then exit
1611
+Report bugs and patches to <config-patches@gnu.org>."
1614
+GNU config.sub ($timestamp)
1616
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
1617
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
1618
+Software Foundation, Inc.
1620
+This is free software; see the source for copying conditions. There is NO
1621
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1624
+Try \`$me --help' for more information."
1626
+# Parse command line
1627
+while test $# -gt 0 ; do
1629
+ --time-stamp | --time* | -t )
1630
+ echo "$timestamp" ; exit ;;
1632
+ echo "$version" ; exit ;;
1633
+ --help | --h* | -h )
1634
+ echo "$usage"; exit ;;
1635
+ -- ) # Stop option processing
1637
+ - ) # Use stdin as input.
1640
+ echo "$me: invalid option $1$help"
1644
+ # First pass through any local machine types.
1654
+ 0) echo "$me: missing argument$help" >&2
1657
+ *) echo "$me: too many arguments$help" >&2
1661
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
1662
+# Here we must recognize all the valid KERNEL-OS combinations.
1663
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
1665
+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
1666
+ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
1667
+ kopensolaris*-gnu* | \
1668
+ storm-chaos* | os2-emx* | rtmk-nova*)
1670
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
1673
+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
1674
+ if [ $basic_machine != $1 ]
1675
+ then os=`echo $1 | sed 's/.*-/-/'`
1680
+### Let's recognize common machines as not being operating systems so
1681
+### that things like config.sub decstation-3100 work. We also
1682
+### recognize some manufacturers as not being operating systems, so we
1683
+### can provide default operating systems below.
1686
+ # Prevent following clause from handling this invalid input.
1688
+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
1689
+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
1690
+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
1691
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
1692
+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
1693
+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
1694
+ -apple | -axis | -knuth | -cray | -microblaze)
1701
+ -sim | -cisco | -oki | -wec | -winbond)
1724
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1728
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1732
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1735
+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1736
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1739
+ # Don't forget version if it is 3.2v4 or newer.
1740
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1743
+ # Don't forget version if it is 3.2v4 or newer.
1744
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1748
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1751
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1755
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1758
+ basic_machine=clipper-intergraph
1761
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1767
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
1770
+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
1775
+ -mint | -mint[0-9]*)
1776
+ basic_machine=m68k-atari
1781
+# Decode aliases for certain CPU-COMPANY combinations.
1782
+case $basic_machine in
1783
+ # Recognize the basic CPU types without company name.
1784
+ # Some are omitted here because they have special meanings below.
1787
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
1788
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
1790
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
1793
+ | d10v | d30v | dlx | dsp16xx \
1794
+ | fido | fr30 | frv \
1795
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1796
+ | i370 | i860 | i960 | ia64 \
1799
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
1800
+ | maxq | mb | microblaze | mcore | mep | metag \
1801
+ | mips | mipsbe | mipseb | mipsel | mipsle \
1803
+ | mips64 | mips64el \
1804
+ | mips64octeon | mips64octeonel \
1805
+ | mips64orion | mips64orionel \
1806
+ | mips64r5900 | mips64r5900el \
1807
+ | mips64vr | mips64vrel \
1808
+ | mips64vr4100 | mips64vr4100el \
1809
+ | mips64vr4300 | mips64vr4300el \
1810
+ | mips64vr5000 | mips64vr5000el \
1811
+ | mips64vr5900 | mips64vr5900el \
1812
+ | mipsisa32 | mipsisa32el \
1813
+ | mipsisa32r2 | mipsisa32r2el \
1814
+ | mipsisa64 | mipsisa64el \
1815
+ | mipsisa64r2 | mipsisa64r2el \
1816
+ | mipsisa64sb1 | mipsisa64sb1el \
1817
+ | mipsisa64sr71k | mipsisa64sr71kel \
1818
+ | mipstx39 | mipstx39el \
1819
+ | mn10200 | mn10300 \
1826
+ | pdp10 | pdp11 | pj | pjl \
1827
+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
1831
+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
1833
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
1834
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
1835
+ | spu | strongarm \
1836
+ | tahoe | thumb | tic4x | tic80 | tron \
1840
+ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
1842
+ basic_machine=$basic_machine-unknown
1844
+ m6811 | m68hc11 | m6812 | m68hc12 | picochip)
1845
+ # Motorola 68HC11/12.
1846
+ basic_machine=$basic_machine-unknown
1849
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
1852
+ basic_machine=mt-unknown
1855
+ # We use `pc' rather than `unknown'
1856
+ # because (1) that's what they normally are, and
1857
+ # (2) the word "unknown" tends to confuse beginning users.
1859
+ basic_machine=$basic_machine-pc
1861
+ # Object if more than one company name word.
1863
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1866
+ # Recognize the basic CPU types with company name.
1869
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
1870
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
1871
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
1872
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
1873
+ | avr-* | avr32-* \
1874
+ | bfin-* | bs2000-* \
1875
+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
1876
+ | clipper-* | craynv-* | cydra-* \
1877
+ | d10v-* | d30v-* | dlx-* \
1879
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
1880
+ | h8300-* | h8500-* \
1881
+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
1882
+ | i*86-* | i860-* | i960-* | ia64-* \
1883
+ | ip2k-* | iq2000-* \
1885
+ | m32c-* | m32r-* | m32rle-* \
1886
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
1887
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
1888
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
1890
+ | mips64-* | mips64el-* \
1891
+ | mips64octeon-* | mips64octeonel-* \
1892
+ | mips64orion-* | mips64orionel-* \
1893
+ | mips64r5900-* | mips64r5900el-* \
1894
+ | mips64vr-* | mips64vrel-* \
1895
+ | mips64vr4100-* | mips64vr4100el-* \
1896
+ | mips64vr4300-* | mips64vr4300el-* \
1897
+ | mips64vr5000-* | mips64vr5000el-* \
1898
+ | mips64vr5900-* | mips64vr5900el-* \
1899
+ | mipsisa32-* | mipsisa32el-* \
1900
+ | mipsisa32r2-* | mipsisa32r2el-* \
1901
+ | mipsisa64-* | mipsisa64el-* \
1902
+ | mipsisa64r2-* | mipsisa64r2el-* \
1903
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
1904
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
1905
+ | mipstx39-* | mipstx39el-* \
1909
+ | nios-* | nios2-* \
1910
+ | none-* | np1-* | ns16k-* | ns32k-* \
1912
+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
1913
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
1915
+ | romp-* | rs6000-* | rx-* \
1916
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
1917
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
1918
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
1920
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
1921
+ | tahoe-* | thumb-* \
1922
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
1923
+ | tile-* | tilegx-* \
1926
+ | v850-* | v850e-* | vax-* \
1928
+ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
1929
+ | xstormy16-* | xtensa*-* \
1933
+ # Recognize the basic CPU types without company name, with glob match.
1935
+ basic_machine=$basic_machine-unknown
1937
+ # Recognize the various machine names and aliases which stand
1938
+ # for a CPU type and a company and sometimes even an OS.
1940
+ basic_machine=i386-unknown
1943
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
1944
+ basic_machine=m68000-att
1947
+ basic_machine=we32k-att
1950
+ basic_machine=a29k-amd
1954
+ basic_machine=abacus-unknown
1957
+ basic_machine=m68010-adobe
1961
+ basic_machine=fx80-alliant
1963
+ altos | altos3068)
1964
+ basic_machine=m68k-altos
1967
+ basic_machine=a29k-none
1971
+ basic_machine=x86_64-pc
1974
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
1977
+ basic_machine=580-amdahl
1981
+ basic_machine=m68k-unknown
1983
+ amigaos | amigados)
1984
+ basic_machine=m68k-unknown
1988
+ basic_machine=m68k-unknown
1992
+ basic_machine=m68k-apollo
1996
+ basic_machine=m68k-apollo
2000
+ basic_machine=i386-pc
2004
+ basic_machine=m68k-apple
2008
+ basic_machine=ns32k-sequent
2012
+ basic_machine=bfin-unknown
2016
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
2020
+ basic_machine=powerpc-ibm
2024
+ basic_machine=c90-cray
2028
+ basic_machine=arm-unknown
2032
+ basic_machine=c1-convex
2036
+ basic_machine=c2-convex
2040
+ basic_machine=c32-convex
2044
+ basic_machine=c34-convex
2048
+ basic_machine=c38-convex
2052
+ basic_machine=j90-cray
2056
+ basic_machine=craynv-cray
2060
+ basic_machine=cr16-unknown
2064
+ basic_machine=m68k-crds
2066
+ crisv32 | crisv32-* | etraxfs*)
2067
+ basic_machine=crisv32-axis
2069
+ cris | cris-* | etrax*)
2070
+ basic_machine=cris-axis
2073
+ basic_machine=crx-unknown
2077
+ basic_machine=m68k-da30
2079
+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
2080
+ basic_machine=mips-dec
2082
+ decsystem10* | dec10*)
2083
+ basic_machine=pdp10-dec
2086
+ decsystem20* | dec20*)
2087
+ basic_machine=pdp10-dec
2090
+ delta | 3300 | motorola-3300 | motorola-delta \
2091
+ | 3300-motorola | delta-motorola)
2092
+ basic_machine=m68k-motorola
2095
+ basic_machine=m88k-motorola
2099
+ basic_machine=i686-pc
2103
+ basic_machine=i586-pc
2107
+ basic_machine=rs6000-bull
2110
+ dpx2* | dpx2*-bull)
2111
+ basic_machine=m68k-bull
2115
+ basic_machine=a29k-amd
2119
+ basic_machine=elxsi-elxsi
2122
+ encore | umax | mmax)
2123
+ basic_machine=ns32k-encore
2125
+ es1800 | OSE68k | ose68k | ose | OSE)
2126
+ basic_machine=m68k-ericsson
2130
+ basic_machine=i860-alliant
2133
+ basic_machine=ns32k-ns
2136
+ basic_machine=tron-gmicro
2140
+ basic_machine=i386-pc
2144
+ basic_machine=hppa1.1-hitachi
2148
+ basic_machine=h8300-hitachi
2152
+ basic_machine=h8300-hitachi
2156
+ basic_machine=h8500-hitachi
2160
+ basic_machine=m88k-harris
2164
+ basic_machine=m68k-hp
2167
+ basic_machine=m68k-hp
2171
+ basic_machine=m68k-hp
2174
+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
2175
+ basic_machine=hppa1.0-hp
2177
+ hp9k2[0-9][0-9] | hp9k31[0-9])
2178
+ basic_machine=m68000-hp
2181
+ basic_machine=m68k-hp
2183
+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
2184
+ basic_machine=hppa1.0-hp
2186
+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
2187
+ basic_machine=hppa1.1-hp
2189
+ hp9k78[0-9] | hp78[0-9])
2190
+ # FIXME: really hppa2.0-hp
2191
+ basic_machine=hppa1.1-hp
2193
+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
2194
+ # FIXME: really hppa2.0-hp
2195
+ basic_machine=hppa1.1-hp
2197
+ hp9k8[0-9][13679] | hp8[0-9][13679])
2198
+ basic_machine=hppa1.1-hp
2200
+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
2201
+ basic_machine=hppa1.0-hp
2207
+ basic_machine=hppa1.1-hp
2211
+ basic_machine=hppa1.1-hp
2215
+ basic_machine=i370-ibm
2217
+# I'm not sure what "Sysv32" means. Should this be sysv3.2?
2219
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2223
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2227
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2231
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2235
+ basic_machine=i386-mach
2239
+ basic_machine=i386-unknown
2243
+ basic_machine=mips-sgi
2253
+ basic_machine=m68k-isi
2257
+ basic_machine=m68k-unknown
2261
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
2265
+ basic_machine=m88k-omron
2268
+ basic_machine=mips-mips
2272
+ basic_machine=ns32k-utek
2276
+ basic_machine=microblaze-xilinx
2279
+ basic_machine=i386-pc
2283
+ basic_machine=arm-unknown
2287
+ basic_machine=m68000-convergent
2289
+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
2290
+ basic_machine=m68k-atari
2294
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
2297
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
2300
+ basic_machine=m68k-rom68k
2304
+ basic_machine=powerpc-unknown
2308
+ basic_machine=i386-pc
2312
+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
2315
+ basic_machine=i370-ibm
2319
+ basic_machine=i486-ncr
2323
+ basic_machine=i386-unknown
2327
+ basic_machine=armv4l-rebel
2330
+ news | news700 | news800 | news900)
2331
+ basic_machine=m68k-sony
2335
+ basic_machine=m68030-sony
2338
+ news-3600 | risc-news)
2339
+ basic_machine=mips-sony
2343
+ basic_machine=v70-nec
2347
+ basic_machine=m68k-next
2360
+ basic_machine=m68k-harris
2364
+ basic_machine=m88k-harris
2368
+ basic_machine=i960-intel
2372
+ basic_machine=i960-intel
2376
+ basic_machine=mips-compaq
2380
+ basic_machine=np1-gould
2383
+ basic_machine=nsr-tandem
2385
+ op50n-* | op60c-*)
2386
+ basic_machine=hppa1.1-oki
2389
+ openrisc | openrisc-*)
2390
+ basic_machine=or32-unknown
2393
+ basic_machine=powerpc-ibm
2396
+ OSE68000 | ose68000)
2397
+ basic_machine=m68000-ericsson
2401
+ basic_machine=m68k-none
2405
+ basic_machine=hppa1.1-hitachi
2409
+ basic_machine=i860-intel
2413
+ basic_machine=hppa-unknown
2417
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
2421
+ basic_machine=sparc-tti
2424
+ basic_machine=m68k-tti
2427
+ basic_machine=ns32k-pc532
2430
+ basic_machine=i386-pc
2433
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
2435
+ pentium | p5 | k5 | k6 | nexgen | viac3)
2436
+ basic_machine=i586-pc
2438
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
2439
+ basic_machine=i686-pc
2441
+ pentiumii | pentium2 | pentiumiii | pentium3)
2442
+ basic_machine=i686-pc
2445
+ basic_machine=i786-pc
2447
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
2448
+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
2450
+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
2451
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2453
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
2454
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2457
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
2460
+ basic_machine=pn-gould
2462
+ power) basic_machine=power-ibm
2464
+ ppc) basic_machine=powerpc-unknown
2466
+ ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
2468
+ ppcle | powerpclittle | ppc-le | powerpc-little)
2469
+ basic_machine=powerpcle-unknown
2471
+ ppcle-* | powerpclittle-*)
2472
+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
2474
+ ppc64) basic_machine=powerpc64-unknown
2476
+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
2478
+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
2479
+ basic_machine=powerpc64le-unknown
2481
+ ppc64le-* | powerpc64little-*)
2482
+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
2485
+ basic_machine=i386-ibm
2488
+ basic_machine=i586-unknown
2492
+ basic_machine=i386-pc
2496
+ basic_machine=m68k-rom68k
2500
+ basic_machine=mips-siemens
2503
+ basic_machine=romp-ibm
2506
+ basic_machine=s390-ibm
2509
+ basic_machine=s390x-ibm
2512
+ basic_machine=a29k-amd
2516
+ basic_machine=mipsisa64sb1-unknown
2519
+ basic_machine=mipsisa64sb1el-unknown
2522
+ basic_machine=mipsisa32-sde
2526
+ basic_machine=mips-sei
2530
+ basic_machine=i386-sequent
2533
+ basic_machine=sh-hitachi
2537
+ basic_machine=sh5le-unknown
2540
+ basic_machine=sh64-unknown
2542
+ sparclite-wrs | simso-wrs)
2543
+ basic_machine=sparclite-wrs
2547
+ basic_machine=m68k-bull
2551
+ basic_machine=spur-unknown
2554
+ basic_machine=m68k-tandem
2557
+ basic_machine=i860-stratus
2561
+ basic_machine=m68000-sun
2564
+ basic_machine=m68000-sun
2568
+ basic_machine=m68000-sun
2572
+ basic_machine=m68k-sun
2576
+ basic_machine=m68k-sun
2580
+ basic_machine=sparc-sun
2584
+ basic_machine=sparc-sun
2588
+ basic_machine=sparc-sun
2592
+ basic_machine=m68k-sun
2595
+ basic_machine=sparc-sun
2597
+ sun386 | sun386i | roadrunner)
2598
+ basic_machine=i386-sun
2601
+ basic_machine=sv1-cray
2605
+ basic_machine=i386-sequent
2609
+ basic_machine=alphaev5-cray
2613
+ basic_machine=t90-cray
2617
+ basic_machine=tic54x-unknown
2621
+ basic_machine=tic55x-unknown
2625
+ basic_machine=tic6x-unknown
2628
+ # This must be matched before tile*.
2630
+ basic_machine=tilegx-unknown
2634
+ basic_machine=tile-unknown
2638
+ basic_machine=mipstx39-unknown
2641
+ basic_machine=mipstx39el-unknown
2644
+ basic_machine=pdp10-xkl
2648
+ basic_machine=m68k-ncr
2651
+ basic_machine=s390x-ibm
2655
+ basic_machine=a29k-amd
2659
+ basic_machine=a29k-nyu
2663
+ basic_machine=v810-nec
2667
+ basic_machine=vax-dec
2671
+ basic_machine=vax-dec
2675
+ basic_machine=f301-fujitsu
2678
+ basic_machine=i960-wrs
2682
+ basic_machine=m68k-wrs
2686
+ basic_machine=a29k-wrs
2690
+ basic_machine=w65-wdc
2694
+ basic_machine=hppa1.1-winbond
2698
+ basic_machine=i686-pc
2702
+ basic_machine=xps100-honeywell
2705
+ basic_machine=ymp-cray
2709
+ basic_machine=z8k-unknown
2713
+ basic_machine=z80-unknown
2717
+ basic_machine=none-none
2721
+# Here we handle the default manufacturer of certain CPU types. It is in
2722
+# some cases the only manufacturer, in others, it is the most popular.
2724
+ basic_machine=hppa1.1-winbond
2727
+ basic_machine=hppa1.1-oki
2730
+ basic_machine=hppa1.1-oki
2733
+ basic_machine=romp-ibm
2736
+ basic_machine=mmix-knuth
2739
+ basic_machine=rs6000-ibm
2742
+ basic_machine=vax-dec
2745
+ # there are many clones, so DEC is not a safe bet
2746
+ basic_machine=pdp10-unknown
2749
+ basic_machine=pdp11-dec
2752
+ basic_machine=we32k-att
2754
+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
2755
+ basic_machine=sh-unknown
2757
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
2758
+ basic_machine=sparc-sun
2761
+ basic_machine=cydra-cydrome
2764
+ basic_machine=orion-highlevel
2767
+ basic_machine=clipper-highlevel
2769
+ mac | mpw | mac-mpw)
2770
+ basic_machine=m68k-apple
2773
+ basic_machine=powerpc-apple
2776
+ # Make sure to match an already-canonicalized machine name.
2779
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
2784
+# Here we canonicalize certain aliases for manufacturers.
2785
+case $basic_machine in
2787
+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
2790
+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
2796
+# Decode manufacturer-specific aliases for certain operating systems.
2798
+if [ x"$os" != x"" ]
2801
+ # First match some system type aliases
2802
+ # that might get confused with valid system types.
2803
+ # -solaris* is a basic system type, with this one exception.
2807
+ -solaris1 | -solaris1.*)
2808
+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
2820
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
2822
+ # First accept the basic system types.
2823
+ # The portable systems comes first.
2824
+ # Each alternative MUST END IN A *, to match a version number.
2825
+ # -sysv* is not here because it comes later, after sysvr4.
2826
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
2827
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
2828
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
2829
+ | -sym* | -kopensolaris* \
2830
+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
2831
+ | -aos* | -aros* \
2832
+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
2833
+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
2834
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
2835
+ | -openbsd* | -solidbsd* \
2836
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
2837
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
2838
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
2839
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
2840
+ | -chorusos* | -chorusrdb* | -cegcc* \
2841
+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
2842
+ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
2843
+ | -uxpv* | -beos* | -mpeix* | -udk* \
2844
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
2845
+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
2846
+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
2847
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
2848
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
2849
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
2850
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
2851
+ # Remember, each alternative MUST END IN *, to match a version number.
2854
+ case $basic_machine in
2865
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
2867
+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
2868
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
2869
+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
2872
+ os=`echo $os | sed -e 's|mac|macos|'`
2875
+ os=-linux-dietlibc
2878
+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
2881
+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
2884
+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
2931
+ # Preserve the version number of sinix5.
2933
+ os=`echo $os | sed -e 's|sinix|sysv|'`
2956
+ # This must come after -sysvr4.
2968
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
2988
+ # Get rid of the `-' at the beginning of $os.
2989
+ os=`echo $os | sed 's/[^-]*-//'`
2990
+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
2996
+# Here we handle the default operating systems that come with various machines.
2997
+# The value should be what the vendor currently ships out the door with their
2998
+# machine or put another way, the most popular os provided with the machine.
3000
+# Note that if you're going to try to match "-MANUFACTURER" here (say,
3001
+# "-sun"), then you have to tell the case statement up towards the top
3002
+# that MANUFACTURER isn't an operating system. Otherwise, code above
3003
+# will signal an error saying that MANUFACTURER isn't an operating
3004
+# system, and we'll never get to this point.
3006
+case $basic_machine in
3025
+ # This must come before the *-dec entry.
3043
+ # This also exists in the configure program, but was not the
3062
+ *-tti) # must be before sparc entry or we get the wrong os.
3095
+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
3149
+ f30[01]-fujitsu | f700-fujitsu)
3170
+# Here we handle the case where we know the os, and the CPU type, but not the
3171
+# manufacturer. We pick the logical manufacturer.
3173
+case $basic_machine in
3221
+ -vxsim* | -vxworks* | -windiss*)
3233
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
3240
+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
3244
+echo $basic_machine$os
3248
+# eval: (add-hook 'write-file-hooks 'time-stamp)
3249
+# time-stamp-start: "timestamp='"
3250
+# time-stamp-format: "%:y-%02m-%02d"
3251
+# time-stamp-end: "'"
3254
+++ moonshot-gss-eap-0.9.2/install-sh
3257
+# install - install a program, script, or datafile
3259
+scriptversion=2009-04-28.21; # UTC
3261
+# This originates from X11R5 (mit/util/scripts/install.sh), which was
3262
+# later released in X11R6 (xc/config/util/install.sh) with the
3263
+# following copyright and license.
3265
+# Copyright (C) 1994 X Consortium
3267
+# Permission is hereby granted, free of charge, to any person obtaining a copy
3268
+# of this software and associated documentation files (the "Software"), to
3269
+# deal in the Software without restriction, including without limitation the
3270
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
3271
+# sell copies of the Software, and to permit persons to whom the Software is
3272
+# furnished to do so, subject to the following conditions:
3274
+# The above copyright notice and this permission notice shall be included in
3275
+# all copies or substantial portions of the Software.
3277
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3278
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3279
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3280
+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
3281
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
3282
+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3284
+# Except as contained in this notice, the name of the X Consortium shall not
3285
+# be used in advertising or otherwise to promote the sale, use or other deal-
3286
+# ings in this Software without prior written authorization from the X Consor-
3290
+# FSF changes to this file are in the public domain.
3292
+# Calling this script install-sh is preferred over install.sh, to prevent
3293
+# `make' implicit rules from creating a file called install from it
3294
+# when there is no Makefile.
3296
+# This script is compatible with the BSD install script, but was written
3303
+# set DOITPROG to echo to test this script
3305
+# Don't use :- since 4.3BSD and earlier shells don't like it.
3307
+if test -z "$doit"; then
3313
+# Put in absolute file names if you don't have them in your path;
3314
+# or use environment vars.
3316
+chgrpprog=${CHGRPPROG-chgrp}
3317
+chmodprog=${CHMODPROG-chmod}
3318
+chownprog=${CHOWNPROG-chown}
3319
+cmpprog=${CMPPROG-cmp}
3320
+cpprog=${CPPROG-cp}
3321
+mkdirprog=${MKDIRPROG-mkdir}
3322
+mvprog=${MVPROG-mv}
3323
+rmprog=${RMPROG-rm}
3324
+stripprog=${STRIPPROG-strip}
3327
+initialize_posix_glob='
3328
+ test "$posix_glob" != "?" || {
3329
+ if (set -f) 2>/dev/null; then
3339
+# Desired mode of installed file.
3343
+chmodcmd=$chmodprog
3354
+copy_on_change=false
3355
+no_target_directory=
3358
+Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
3359
+ or: $0 [OPTION]... SRCFILES... DIRECTORY
3360
+ or: $0 [OPTION]... -t DIRECTORY SRCFILES...
3361
+ or: $0 [OPTION]... -d DIRECTORIES...
3363
+In the 1st form, copy SRCFILE to DSTFILE.
3364
+In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
3365
+In the 4th, create DIRECTORIES.
3368
+ --help display this help and exit.
3369
+ --version display version info and exit.
3372
+ -C install only if different (preserve the last data modification time)
3373
+ -d create directories instead of installing files.
3374
+ -g GROUP $chgrpprog installed files to GROUP.
3375
+ -m MODE $chmodprog installed files to MODE.
3376
+ -o USER $chownprog installed files to USER.
3377
+ -s $stripprog installed files.
3378
+ -t DIRECTORY install into DIRECTORY.
3379
+ -T report an error if DSTFILE is a directory.
3381
+Environment variables override the default commands:
3382
+ CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
3386
+while test $# -ne 0; do
3390
+ -C) copy_on_change=true;;
3392
+ -d) dir_arg=true;;
3394
+ -g) chgrpcmd="$chgrpprog $2"
3397
+ --help) echo "$usage"; exit $?;;
3401
+ *' '* | *' '* | *'
3402
+'* | *'*'* | *'?'* | *'['*)
3403
+ echo "$0: invalid mode: $mode" >&2
3408
+ -o) chowncmd="$chownprog $2"
3411
+ -s) stripcmd=$stripprog;;
3416
+ -T) no_target_directory=true;;
3418
+ --version) echo "$0 $scriptversion"; exit $?;;
3423
+ -*) echo "$0: invalid option: $1" >&2
3431
+if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
3432
+ # When -d is used, all remaining arguments are directories to create.
3433
+ # When -t is used, the destination is already specified.
3434
+ # Otherwise, the last argument is the destination. Remove it from $@.
3437
+ if test -n "$dst_arg"; then
3438
+ # $@ is not empty: it contains at least $arg.
3439
+ set fnord "$@" "$dst_arg"
3447
+if test $# -eq 0; then
3448
+ if test -z "$dir_arg"; then
3449
+ echo "$0: no input file specified." >&2
3452
+ # It's OK to call `install-sh -d' without argument.
3453
+ # This can happen when creating conditional directories.
3457
+if test -z "$dir_arg"; then
3458
+ trap '(exit $?); exit' 1 2 13 15
3460
+ # Set umask so as not to create temps with too-generous modes.
3461
+ # However, 'strip' requires both read and write access to temps.
3463
+ # Optimize common cases.
3464
+ *644) cp_umask=133;;
3465
+ *755) cp_umask=22;;
3468
+ if test -z "$stripcmd"; then
3473
+ cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
3475
+ if test -z "$stripcmd"; then
3480
+ cp_umask=$mode$u_plus_rw;;
3486
+ # Protect names starting with `-'.
3491
+ if test -n "$dir_arg"; then
3498
+ # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
3499
+ # might cause directories to be created, which would be especially bad
3500
+ # if $src (and thus $dsttmp) contains '*'.
3501
+ if test ! -f "$src" && test ! -d "$src"; then
3502
+ echo "$0: $src does not exist." >&2
3506
+ if test -z "$dst_arg"; then
3507
+ echo "$0: no destination specified." >&2
3512
+ # Protect names starting with `-'.
3517
+ # If destination is a directory, append the input filename; won't work
3518
+ # if double slashes aren't ignored.
3519
+ if test -d "$dst"; then
3520
+ if test -n "$no_target_directory"; then
3521
+ echo "$0: $dst_arg: Is a directory" >&2
3525
+ dst=$dstdir/`basename "$src"`
3528
+ # Prefer dirname, but fall back on a substitute if dirname fails.
3530
+ (dirname "$dst") 2>/dev/null ||
3531
+ expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3532
+ X"$dst" : 'X\(//\)[^/]' \| \
3533
+ X"$dst" : 'X\(//\)$' \| \
3534
+ X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
3536
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3540
+ /^X\(\/\/\)[^/].*/{
3560
+ obsolete_mkdir_used=false
3562
+ if test $dstdir_status != 0; then
3563
+ case $posix_mkdir in
3565
+ # Create intermediate dirs using mode 755 as modified by the umask.
3566
+ # This is like FreeBSD 'install' as of 1997-10-28.
3568
+ case $stripcmd.$umask in
3569
+ # Optimize common cases.
3570
+ *[2367][2367]) mkdir_umask=$umask;;
3571
+ .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
3574
+ mkdir_umask=`expr $umask + 22 \
3575
+ - $umask % 100 % 40 + $umask % 20 \
3576
+ - $umask % 10 % 4 + $umask % 2
3578
+ *) mkdir_umask=$umask,go-w;;
3581
+ # With -d, create the new directory with the user-specified mode.
3582
+ # Otherwise, rely on $mkdir_umask.
3583
+ if test -n "$dir_arg"; then
3584
+ mkdir_mode=-m$mode
3591
+ *[123567][0-7][0-7])
3592
+ # POSIX mkdir -p sets u+wx bits regardless of umask, which
3593
+ # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
3596
+ tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
3597
+ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
3599
+ if (umask $mkdir_umask &&
3600
+ exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
3602
+ if test -z "$dir_arg" || {
3603
+ # Check for POSIX incompatibilities with -m.
3604
+ # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
3605
+ # other-writeable bit of parent directory when it shouldn't.
3606
+ # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
3607
+ ls_ld_tmpdir=`ls -ld "$tmpdir"`
3608
+ case $ls_ld_tmpdir in
3609
+ d????-?r-*) different_mode=700;;
3610
+ d????-?--*) different_mode=755;;
3613
+ $mkdirprog -m$different_mode -p -- "$tmpdir" && {
3614
+ ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
3615
+ test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
3618
+ then posix_mkdir=:
3620
+ rmdir "$tmpdir/d" "$tmpdir"
3622
+ # Remove any dirs left behind by ancient mkdir implementations.
3623
+ rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
3631
+ umask $mkdir_umask &&
3632
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
3637
+ # The umask is ridiculous, or mkdir does not conform to POSIX,
3638
+ # or it failed possibly due to a race condition. Create the
3639
+ # directory the slow way, step by step, checking for races as we go.
3647
+ eval "$initialize_posix_glob"
3651
+ $posix_glob set -f
3654
+ $posix_glob set +f
3661
+ test -z "$d" && continue
3664
+ if test -d "$prefix"; then
3667
+ if $posix_mkdir; then
3668
+ (umask=$mkdir_umask &&
3669
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
3670
+ # Don't fail if two instances are running concurrently.
3671
+ test -d "$prefix" || exit 1
3674
+ *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
3675
+ *) qprefix=$prefix;;
3677
+ prefixes="$prefixes '$qprefix'"
3683
+ if test -n "$prefixes"; then
3684
+ # Don't fail if two instances are running concurrently.
3685
+ (umask $mkdir_umask &&
3686
+ eval "\$doit_exec \$mkdirprog $prefixes") ||
3687
+ test -d "$dstdir" || exit 1
3688
+ obsolete_mkdir_used=true
3693
+ if test -n "$dir_arg"; then
3694
+ { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
3695
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
3696
+ { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
3697
+ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
3700
+ # Make a couple of temp file names in the proper directory.
3701
+ dsttmp=$dstdir/_inst.$$_
3702
+ rmtmp=$dstdir/_rm.$$_
3704
+ # Trap to clean up those temp files at exit.
3705
+ trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
3707
+ # Copy the file name to the temp name.
3708
+ (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
3710
+ # and set any options; do chmod last to preserve setuid bits.
3712
+ # If any of these fail, we abort the whole thing. If we want to
3713
+ # ignore errors from any of these, just make sure not to ignore
3714
+ # errors from the above "$doit $cpprog $src $dsttmp" command.
3716
+ { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
3717
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
3718
+ { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
3719
+ { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
3721
+ # If -C, don't bother to copy if it wouldn't change the file.
3722
+ if $copy_on_change &&
3723
+ old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
3724
+ new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
3726
+ eval "$initialize_posix_glob" &&
3727
+ $posix_glob set -f &&
3728
+ set X $old && old=:$2:$4:$5:$6 &&
3729
+ set X $new && new=:$2:$4:$5:$6 &&
3730
+ $posix_glob set +f &&
3732
+ test "$old" = "$new" &&
3733
+ $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
3737
+ # Rename the file to the real destination.
3738
+ $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
3740
+ # The rename failed, perhaps because mv can't rename something else
3741
+ # to itself, or perhaps because mv is so ancient that it does not
3744
+ # Now remove or move aside any old file at destination location.
3745
+ # We try this two ways since rm can't unlink itself on some
3746
+ # systems and the destination file might be busy for other
3747
+ # reasons. In this case, the final cleanup might fail but the new
3748
+ # file should still install successfully.
3750
+ test ! -f "$dst" ||
3751
+ $doit $rmcmd -f "$dst" 2>/dev/null ||
3752
+ { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
3753
+ { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
3755
+ { echo "$0: cannot unlink or rename $dst" >&2
3760
+ # Now rename the file to the real destination.
3761
+ $doit $mvcmd "$dsttmp" "$dst"
3770
+# eval: (add-hook 'write-file-hooks 'time-stamp)
3771
+# time-stamp-start: "scriptversion="
3772
+# time-stamp-format: "%:y-%02m-%02d.%02H"
3773
+# time-stamp-time-zone: "UTC"
3774
+# time-stamp-end: "; # UTC"
3776
--- moonshot-gss-eap-0.9.2.orig/mech_eap/display_status.c
3777
+++ moonshot-gss-eap-0.9.2/mech_eap/display_status.c
3778
@@ -140,6 +140,8 @@ gssEapSaveStatusInfo(OM_uint32 minor, co
3786
saveStatusInfoNoCopy(minor, s);
3787
--- moonshot-gss-eap-0.9.2.orig/mech_eap/init_sec_context.c
3788
+++ moonshot-gss-eap-0.9.2/mech_eap/init_sec_context.c
3789
@@ -915,7 +915,7 @@ eapGssSmInitAuthenticate(OM_uint32 *mino
3791
major = GSS_S_CONTINUE_NEEDED;
3793
- eap_peer_sm_step(ctx->initiatorCtx.eap);
3794
+ (void) eap_peer_sm_step(ctx->initiatorCtx.eap);
3795
if (ctx->flags & CTX_FLAG_EAP_RESP) {
3796
ctx->flags &= ~(CTX_FLAG_EAP_RESP);