1
Description: Upstream changes introduced in version 2.1.8-1
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:
6
slurm-llnl (2.1.8-1) unstable; urgency=low
9
* Removed logrotate filename wildcards to avoid conflicts between the
10
slurm-llnl and the slurm-llnl-slurmdbd packages (Closes: #580010)
11
* Switch to dpkg-source 3.0 (quilt) format
13
The person named in the Author field signed this changelog entry.
14
Author: Gennaro Oliva <oliva.g@na.icar.cnr.it>
15
Bug-Debian: http://bugs.debian.org/580010
18
The information above should follow the Patch Tagging Guidelines, please
19
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
20
are templates for supplementary fields that you might want to add:
22
Origin: <vendor|upstream|other>, <url of original patch>
23
Bug: <url in upstream bugtracker>
24
Bug-Debian: http://bugs.debian.org/<bugnumber>
25
Forwarded: <no|not-needed|url proving that it has been forwarded>
26
Reviewed-By: <name and email of someone who approved the patch>
27
Last-Update: <YYYY-MM-DD>
30
+++ slurm-llnl-2.1.8/config.guess
33
+# Attempt to guess a canonical system name.
34
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
35
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
36
+# Free Software Foundation, Inc.
38
+timestamp='2009-12-30'
40
+# This file is free software; you can redistribute it and/or modify it
41
+# under the terms of the GNU General Public License as published by
42
+# the Free Software Foundation; either version 2 of the License, or
43
+# (at your option) any later version.
45
+# This program is distributed in the hope that it will be useful, but
46
+# WITHOUT ANY WARRANTY; without even the implied warranty of
47
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
48
+# General Public License for more details.
50
+# You should have received a copy of the GNU General Public License
51
+# along with this program; if not, write to the Free Software
52
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
55
+# As a special exception to the GNU General Public License, if you
56
+# distribute this file as part of a program that contains a
57
+# configuration script generated by Autoconf, you may include it under
58
+# the same distribution terms that you use for the rest of that program.
61
+# Originally written by Per Bothner. Please send patches (context
62
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
65
+# This script attempts to guess a canonical system name similar to
66
+# config.sub. If it succeeds, it prints the system name on stdout, and
67
+# exits with 0. Otherwise, it exits with 1.
69
+# You can get the latest version of this script from:
70
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
72
+me=`echo "$0" | sed -e 's,.*/,,'`
77
+Output the configuration name of the system \`$me' is run on.
80
+ -h, --help print this help, then exit
81
+ -t, --time-stamp print date of last modification, then exit
82
+ -v, --version print version number, then exit
84
+Report bugs and patches to <config-patches@gnu.org>."
87
+GNU config.guess ($timestamp)
89
+Originally written by Per Bothner.
90
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
91
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
92
+Software Foundation, Inc.
94
+This is free software; see the source for copying conditions. There is NO
95
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
98
+Try \`$me --help' for more information."
100
+# Parse command line
101
+while test $# -gt 0 ; do
103
+ --time-stamp | --time* | -t )
104
+ echo "$timestamp" ; exit ;;
106
+ echo "$version" ; exit ;;
107
+ --help | --h* | -h )
108
+ echo "$usage"; exit ;;
109
+ -- ) # Stop option processing
111
+ - ) # Use stdin as input.
114
+ echo "$me: invalid option $1$help" >&2
121
+if test $# != 0; then
122
+ echo "$me: too many arguments$help" >&2
126
+trap 'exit 1' 1 2 15
128
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
129
+# compiler to aid in system detection is discouraged as it requires
130
+# temporary files to be created and, as you can see below, it is a
131
+# headache to deal with in a portable fashion.
133
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
134
+# use `HOST_CC' if defined, but it is deprecated.
136
+# Portable tmp directory creation inspired by the Autoconf team.
139
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
140
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
142
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
143
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
144
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
145
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
147
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
148
+case $CC_FOR_BUILD,$HOST_CC,$CC in
149
+ ,,) echo "int x;" > $dummy.c ;
150
+ for c in cc gcc c89 c99 ; do
151
+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
152
+ CC_FOR_BUILD="$c"; break ;
155
+ if test x"$CC_FOR_BUILD" = x ; then
156
+ CC_FOR_BUILD=no_compiler_found ;
159
+ ,,*) CC_FOR_BUILD=$CC ;;
160
+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
161
+esac ; set_cc_for_build= ;'
163
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
164
+# (ghazi@noc.rutgers.edu 1994-08-24)
165
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
166
+ PATH=$PATH:/.attbin ; export PATH
169
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
170
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
171
+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
172
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
174
+# Note: order is significant - the case branches are not exclusive.
176
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
178
+ # NetBSD (nbsd) targets should (where applicable) match one or
179
+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
180
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
181
+ # switched to ELF, *-*-netbsd* would select the old
182
+ # object file format. This provides both forward
183
+ # compatibility and a consistent mechanism for selecting the
184
+ # object file format.
186
+ # Note: NetBSD doesn't particularly care about the vendor
187
+ # portion of the name. We always set it to "unknown".
188
+ sysctl="sysctl -n hw.machine_arch"
189
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
190
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
191
+ case "${UNAME_MACHINE_ARCH}" in
192
+ armeb) machine=armeb-unknown ;;
193
+ arm*) machine=arm-unknown ;;
194
+ sh3el) machine=shl-unknown ;;
195
+ sh3eb) machine=sh-unknown ;;
196
+ sh5el) machine=sh5le-unknown ;;
197
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
199
+ # The Operating System including object format, if it has switched
200
+ # to ELF recently, or will in the future.
201
+ case "${UNAME_MACHINE_ARCH}" in
202
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
203
+ eval $set_cc_for_build
204
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
207
+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
208
+ # Return netbsd for either. FIX?
219
+ # Debian GNU/NetBSD machines have a different userland, and
220
+ # thus, need a distinct triplet. However, they do not need
221
+ # kernel version information, so it can be replaced with a
222
+ # suitable tag, in the style of linux-gnu.
223
+ case "${UNAME_VERSION}" in
228
+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
231
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
232
+ # contains redundant information, the shorter form:
233
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
234
+ echo "${machine}-${os}${release}"
237
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
238
+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
241
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
244
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
247
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
250
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
253
+ case $UNAME_RELEASE in
255
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
258
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
261
+ # According to Compaq, /usr/sbin/psrinfo has been available on
262
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
263
+ # covers most systems running today. This code pipes the CPU
264
+ # types through head -n 1, so we only detect the type of CPU 0.
265
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
266
+ case "$ALPHA_CPU_TYPE" in
268
+ UNAME_MACHINE="alpha" ;;
270
+ UNAME_MACHINE="alpha" ;;
271
+ "LCA4 (21066/21068)")
272
+ UNAME_MACHINE="alpha" ;;
274
+ UNAME_MACHINE="alphaev5" ;;
276
+ UNAME_MACHINE="alphaev56" ;;
278
+ UNAME_MACHINE="alphapca56" ;;
280
+ UNAME_MACHINE="alphapca57" ;;
282
+ UNAME_MACHINE="alphaev6" ;;
284
+ UNAME_MACHINE="alphaev67" ;;
285
+ "EV6.8CB (21264C)")
286
+ UNAME_MACHINE="alphaev68" ;;
287
+ "EV6.8AL (21264B)")
288
+ UNAME_MACHINE="alphaev68" ;;
289
+ "EV6.8CX (21264D)")
290
+ UNAME_MACHINE="alphaev68" ;;
291
+ "EV6.9A (21264/EV69A)")
292
+ UNAME_MACHINE="alphaev69" ;;
294
+ UNAME_MACHINE="alphaev7" ;;
296
+ UNAME_MACHINE="alphaev79" ;;
298
+ # A Pn.n version is a patched version.
299
+ # A Vn.n version is a released version.
300
+ # A Tn.n version is a released field test version.
301
+ # A Xn.n version is an unreleased experimental baselevel.
302
+ # 1.2 uses "1.2" for uname -r.
303
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
305
+ Alpha\ *:Windows_NT*:*)
306
+ # How do we know it's Interix rather than the generic POSIX subsystem?
307
+ # Should we change UNAME_MACHINE based on the output of uname instead
308
+ # of the specific Alpha model?
309
+ echo alpha-pc-interix
311
+ 21064:Windows_NT:50:3)
312
+ echo alpha-dec-winnt3.5
314
+ Amiga*:UNIX_System_V:4.0:*)
315
+ echo m68k-unknown-sysv4
317
+ *:[Aa]miga[Oo][Ss]:*:*)
318
+ echo ${UNAME_MACHINE}-unknown-amigaos
320
+ *:[Mm]orph[Oo][Ss]:*:*)
321
+ echo ${UNAME_MACHINE}-unknown-morphos
324
+ echo i370-ibm-openedition
327
+ echo s390-ibm-zvmoe
330
+ echo powerpc-ibm-os400
332
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
333
+ echo arm-acorn-riscix${UNAME_RELEASE}
335
+ arm:riscos:*:*|arm:RISCOS:*:*)
336
+ echo arm-unknown-riscos
338
+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
339
+ echo hppa1.1-hitachi-hiuxmpp
341
+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
342
+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
343
+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
344
+ echo pyramid-pyramid-sysv3
346
+ echo pyramid-pyramid-bsd
350
+ echo pyramid-pyramid-svr4
352
+ DRS?6000:unix:4.0:6*)
355
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
356
+ case `/usr/bin/uname -p` in
357
+ sparc) echo sparc-icl-nx7; exit ;;
360
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
363
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
365
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
366
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
368
+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
369
+ echo i386-pc-auroraux${UNAME_RELEASE}
371
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
372
+ eval $set_cc_for_build
374
+ # If there is a compiler, see if it is configured for 64-bit objects.
375
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
376
+ # This test works for both compilers.
377
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
378
+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
379
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
380
+ grep IS_64BIT_ARCH >/dev/null
385
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
388
+ # According to config.sub, this is the proper way to canonicalize
389
+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
390
+ # it's likely to be more like Solaris than SunOS4.
391
+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
394
+ case "`/usr/bin/arch -k`" in
396
+ UNAME_RELEASE=`uname -v`
399
+ # Japanese Language versions have a version number like `4.1.3-JL'.
400
+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
403
+ echo m68k-sun-sunos${UNAME_RELEASE}
406
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
407
+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
408
+ case "`/bin/arch`" in
410
+ echo m68k-sun-sunos${UNAME_RELEASE}
413
+ echo sparc-sun-sunos${UNAME_RELEASE}
418
+ echo sparc-auspex-sunos${UNAME_RELEASE}
420
+ # The situation for MiNT is a little confusing. The machine name
421
+ # can be virtually everything (everything which is not
422
+ # "atarist" or "atariste" at least should have a processor
423
+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
424
+ # to the lowercase version "mint" (or "freemint"). Finally
425
+ # the system name "TOS" denotes a system which is actually not
426
+ # MiNT. But MiNT is downward compatible to TOS, so this should
428
+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
429
+ echo m68k-atari-mint${UNAME_RELEASE}
431
+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
432
+ echo m68k-atari-mint${UNAME_RELEASE}
434
+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
435
+ echo m68k-atari-mint${UNAME_RELEASE}
437
+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
438
+ echo m68k-milan-mint${UNAME_RELEASE}
440
+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
441
+ echo m68k-hades-mint${UNAME_RELEASE}
443
+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
444
+ echo m68k-unknown-mint${UNAME_RELEASE}
447
+ echo m68k-apple-machten${UNAME_RELEASE}
449
+ powerpc:machten:*:*)
450
+ echo powerpc-apple-machten${UNAME_RELEASE}
453
+ echo mips-dec-mach_bsd4.3
456
+ echo mips-dec-ultrix${UNAME_RELEASE}
459
+ echo vax-dec-ultrix${UNAME_RELEASE}
461
+ 2020:CLIX:*:* | 2430:CLIX:*:*)
462
+ echo clipper-intergraph-clix${UNAME_RELEASE}
464
+ mips:*:*:UMIPS | mips:*:*:RISCos)
465
+ eval $set_cc_for_build
466
+ sed 's/^ //' << EOF >$dummy.c
468
+#include <stdio.h> /* for printf() prototype */
469
+ int main (int argc, char *argv[]) {
471
+ int main (argc, argv) int argc; char *argv[]; {
473
+ #if defined (host_mips) && defined (MIPSEB)
474
+ #if defined (SYSTYPE_SYSV)
475
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
477
+ #if defined (SYSTYPE_SVR4)
478
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
480
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
481
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
487
+ $CC_FOR_BUILD -o $dummy $dummy.c &&
488
+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
489
+ SYSTEM_NAME=`$dummy $dummyarg` &&
490
+ { echo "$SYSTEM_NAME"; exit; }
491
+ echo mips-mips-riscos${UNAME_RELEASE}
493
+ Motorola:PowerMAX_OS:*:*)
494
+ echo powerpc-motorola-powermax
496
+ Motorola:*:4.3:PL8-*)
497
+ echo powerpc-harris-powermax
499
+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
500
+ echo powerpc-harris-powermax
502
+ Night_Hawk:Power_UNIX:*:*)
503
+ echo powerpc-harris-powerunix
506
+ echo m88k-harris-cxux7
509
+ echo m88k-motorola-sysv4
512
+ echo m88k-motorola-sysv3
515
+ # DG/UX returns AViiON for all architectures
516
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
517
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
519
+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
520
+ [ ${TARGET_BINARY_INTERFACE}x = x ]
522
+ echo m88k-dg-dgux${UNAME_RELEASE}
524
+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
527
+ echo i586-dg-dgux${UNAME_RELEASE}
530
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
531
+ echo m88k-dolphin-sysv3
534
+ # Delta 88k system running SVR3
535
+ echo m88k-motorola-sysv3
537
+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
538
+ echo m88k-tektronix-sysv3
540
+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
541
+ echo m68k-tektronix-bsd
544
+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
546
+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
547
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
548
+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
553
+ if [ -x /usr/bin/oslevel ] ; then
554
+ IBM_REV=`/usr/bin/oslevel`
556
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
558
+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
561
+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
562
+ eval $set_cc_for_build
563
+ sed 's/^ //' << EOF >$dummy.c
564
+ #include <sys/systemcfg.h>
570
+ puts("powerpc-ibm-aix3.2.5");
574
+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
576
+ echo "$SYSTEM_NAME"
578
+ echo rs6000-ibm-aix3.2.5
580
+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
581
+ echo rs6000-ibm-aix3.2.4
583
+ echo rs6000-ibm-aix3.2
587
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
588
+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
593
+ if [ -x /usr/bin/oslevel ] ; then
594
+ IBM_REV=`/usr/bin/oslevel`
596
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
598
+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
601
+ echo rs6000-ibm-aix
603
+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
604
+ echo romp-ibm-bsd4.4
606
+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
607
+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
608
+ exit ;; # report: romp-ibm BSD 4.3
610
+ echo rs6000-bull-bosx
612
+ DPX/2?00:B.O.S.:*:*)
613
+ echo m68k-bull-sysv3
615
+ 9000/[34]??:4.3bsd:1.*:*)
618
+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
619
+ echo m68k-hp-bsd4.4
621
+ 9000/[34678]??:HP-UX:*:*)
622
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
623
+ case "${UNAME_MACHINE}" in
624
+ 9000/31? ) HP_ARCH=m68000 ;;
625
+ 9000/[34]?? ) HP_ARCH=m68k ;;
626
+ 9000/[678][0-9][0-9])
627
+ if [ -x /usr/bin/getconf ]; then
628
+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
629
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
630
+ case "${sc_cpu_version}" in
631
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
632
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
633
+ 532) # CPU_PA_RISC2_0
634
+ case "${sc_kernel_bits}" in
635
+ 32) HP_ARCH="hppa2.0n" ;;
636
+ 64) HP_ARCH="hppa2.0w" ;;
637
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
641
+ if [ "${HP_ARCH}" = "" ]; then
642
+ eval $set_cc_for_build
643
+ sed 's/^ //' << EOF >$dummy.c
645
+ #define _HPUX_SOURCE
646
+ #include <stdlib.h>
647
+ #include <unistd.h>
651
+ #if defined(_SC_KERNEL_BITS)
652
+ long bits = sysconf(_SC_KERNEL_BITS);
654
+ long cpu = sysconf (_SC_CPU_VERSION);
658
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
659
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
660
+ case CPU_PA_RISC2_0:
661
+ #if defined(_SC_KERNEL_BITS)
664
+ case 64: puts ("hppa2.0w"); break;
665
+ case 32: puts ("hppa2.0n"); break;
666
+ default: puts ("hppa2.0"); break;
668
+ #else /* !defined(_SC_KERNEL_BITS) */
669
+ puts ("hppa2.0"); break;
671
+ default: puts ("hppa1.0"); break;
676
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
677
+ test -z "$HP_ARCH" && HP_ARCH=hppa
680
+ if [ ${HP_ARCH} = "hppa2.0w" ]
682
+ eval $set_cc_for_build
684
+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
685
+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
686
+ # generating 64-bit code. GNU and HP use different nomenclature:
688
+ # $ CC_FOR_BUILD=cc ./config.guess
689
+ # => hppa2.0w-hp-hpux11.23
690
+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
691
+ # => hppa64-hp-hpux11.23
693
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
701
+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
704
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
705
+ echo ia64-hp-hpux${HPUX_REV}
708
+ eval $set_cc_for_build
709
+ sed 's/^ //' << EOF >$dummy.c
710
+ #include <unistd.h>
714
+ long cpu = sysconf (_SC_CPU_VERSION);
715
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
716
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
717
+ results, however. */
718
+ if (CPU_IS_PA_RISC (cpu))
722
+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
723
+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
724
+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
725
+ default: puts ("hppa-hitachi-hiuxwe2"); break;
728
+ else if (CPU_IS_HP_MC68K (cpu))
729
+ puts ("m68k-hitachi-hiuxwe2");
730
+ else puts ("unknown-hitachi-hiuxwe2");
734
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
735
+ { echo "$SYSTEM_NAME"; exit; }
736
+ echo unknown-hitachi-hiuxwe2
738
+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
739
+ echo hppa1.1-hp-bsd
741
+ 9000/8??:4.3bsd:*:*)
742
+ echo hppa1.0-hp-bsd
744
+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
745
+ echo hppa1.0-hp-mpeix
747
+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
748
+ echo hppa1.1-hp-osf
751
+ echo hppa1.0-hp-osf
754
+ if [ -x /usr/sbin/sysversion ] ; then
755
+ echo ${UNAME_MACHINE}-unknown-osf1mk
757
+ echo ${UNAME_MACHINE}-unknown-osf1
760
+ parisc*:Lites*:*:*)
761
+ echo hppa1.1-hp-lites
763
+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
766
+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
767
+ if getsysinfo -f scalar_acc
768
+ then echo c32-convex-bsd
769
+ else echo c2-convex-bsd
772
+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
773
+ echo c34-convex-bsd
775
+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
776
+ echo c38-convex-bsd
778
+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
782
+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
784
+ CRAY*[A-Z]90:*:*:*)
785
+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
786
+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
787
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
788
+ -e 's/\.[^.]*$/.X/'
791
+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
794
+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
797
+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
800
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
802
+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
803
+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
804
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
805
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
806
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
808
+ 5000:UNIX_System_V:4.*:*)
809
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
810
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
811
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
813
+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
814
+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
817
+ echo sparc-unknown-bsdi${UNAME_RELEASE}
820
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
823
+ case ${UNAME_MACHINE} in
825
+ echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
827
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
829
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
833
+ echo ${UNAME_MACHINE}-pc-cygwin
836
+ echo ${UNAME_MACHINE}-pc-mingw32
839
+ # uname -m includes "-pc" on this system.
840
+ echo ${UNAME_MACHINE}-mingw32
843
+ echo ${UNAME_MACHINE}-pc-pw32
846
+ case ${UNAME_MACHINE} in
848
+ echo i586-pc-interix${UNAME_RELEASE}
850
+ authenticamd | genuineintel | EM64T)
851
+ echo x86_64-unknown-interix${UNAME_RELEASE}
854
+ echo ia64-unknown-interix${UNAME_RELEASE}
857
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
858
+ echo i${UNAME_MACHINE}-pc-mks
863
+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
864
+ # How do we know it's Interix rather than the generic POSIX subsystem?
865
+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
866
+ # UNAME_MACHINE based on the output of uname instead of i386?
867
+ echo i586-pc-interix
870
+ echo ${UNAME_MACHINE}-pc-uwin
872
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
873
+ echo x86_64-unknown-cygwin
876
+ echo powerpcle-unknown-cygwin
879
+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
883
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
886
+ # other systems with GNU libc and userland
887
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
890
+ echo ${UNAME_MACHINE}-pc-minix
893
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
894
+ EV5) UNAME_MACHINE=alphaev5 ;;
895
+ EV56) UNAME_MACHINE=alphaev56 ;;
896
+ PCA56) UNAME_MACHINE=alphapca56 ;;
897
+ PCA57) UNAME_MACHINE=alphapca56 ;;
898
+ EV6) UNAME_MACHINE=alphaev6 ;;
899
+ EV67) UNAME_MACHINE=alphaev67 ;;
900
+ EV68*) UNAME_MACHINE=alphaev68 ;;
902
+ objdump --private-headers /bin/sh | grep -q ld.so.1
903
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
904
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
907
+ eval $set_cc_for_build
908
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
909
+ | grep -q __ARM_EABI__
911
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
913
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
917
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
920
+ echo cris-axis-linux-gnu
923
+ echo crisv32-axis-linux-gnu
926
+ echo frv-unknown-linux-gnu
930
+ eval $set_cc_for_build
931
+ sed 's/^ //' << EOF >$dummy.c
932
+ #ifdef __dietlibc__
936
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
937
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
940
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
943
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
946
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
948
+ mips:Linux:*:* | mips64:Linux:*:*)
949
+ eval $set_cc_for_build
950
+ sed 's/^ //' << EOF >$dummy.c
952
+ #undef ${UNAME_MACHINE}
953
+ #undef ${UNAME_MACHINE}el
954
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
955
+ CPU=${UNAME_MACHINE}el
957
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
958
+ CPU=${UNAME_MACHINE}
964
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
965
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
968
+ echo or32-unknown-linux-gnu
971
+ echo sparc-unknown-linux-gnu
973
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
974
+ echo hppa64-unknown-linux-gnu
976
+ parisc:Linux:*:* | hppa:Linux:*:*)
977
+ # Look for CPU level
978
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
979
+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
980
+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
981
+ *) echo hppa-unknown-linux-gnu ;;
985
+ echo powerpc64-unknown-linux-gnu
988
+ echo powerpc-unknown-linux-gnu
990
+ s390:Linux:*:* | s390x:Linux:*:*)
991
+ echo ${UNAME_MACHINE}-ibm-linux
994
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
997
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
999
+ sparc:Linux:*:* | sparc64:Linux:*:*)
1000
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1003
+ echo ${UNAME_MACHINE}-dec-linux-gnu
1006
+ echo x86_64-unknown-linux-gnu
1008
+ xtensa*:Linux:*:*)
1009
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1011
+ i*86:DYNIX/ptx:4*:*)
1012
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1013
+ # earlier versions are messed up and put the nodename in both
1014
+ # sysname and nodename.
1015
+ echo i386-sequent-sysv4
1017
+ i*86:UNIX_SV:4.2MP:2.*)
1018
+ # Unixware is an offshoot of SVR4, but it has its own version
1019
+ # number series starting with 2...
1020
+ # I am not positive that other SVR4 systems won't match this,
1021
+ # I just have to hope. -- rms.
1022
+ # Use sysv4.2uw... so that sysv4* matches it.
1023
+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1026
+ # If we were able to find `uname', then EMX Unix compatibility
1027
+ # is probably installed.
1028
+ echo ${UNAME_MACHINE}-pc-os2-emx
1030
+ i*86:XTS-300:*:STOP)
1031
+ echo ${UNAME_MACHINE}-unknown-stop
1034
+ echo ${UNAME_MACHINE}-unknown-atheos
1036
+ i*86:syllable:*:*)
1037
+ echo ${UNAME_MACHINE}-pc-syllable
1039
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1040
+ echo i386-unknown-lynxos${UNAME_RELEASE}
1043
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
1045
+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1046
+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1047
+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1048
+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1050
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1054
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
1055
+ case `/bin/uname -X | grep "^Machine"` in
1056
+ *486*) UNAME_MACHINE=i486 ;;
1057
+ *Pentium) UNAME_MACHINE=i586 ;;
1058
+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1060
+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1063
+ if test -f /usr/options/cb.name; then
1064
+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1065
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1066
+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
1067
+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1068
+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1069
+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1070
+ && UNAME_MACHINE=i586
1071
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1072
+ && UNAME_MACHINE=i686
1073
+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1074
+ && UNAME_MACHINE=i686
1075
+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1077
+ echo ${UNAME_MACHINE}-pc-sysv32
1081
+ # Left here for compatibility:
1082
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
1083
+ # the processor, so we play safe by assuming i586.
1084
+ # Note: whatever this is, it MUST be the same as what config.sub
1085
+ # prints for the "djgpp" host, or else GDB configury will decide that
1086
+ # this is a cross-build.
1087
+ echo i586-pc-msdosdjgpp
1090
+ echo i386-pc-mach3
1093
+ echo i860-intel-osf1
1095
+ i860:*:4.*:*) # i860-SVR4
1096
+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1097
+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1098
+ else # Add other i860-SVR4 vendors below as they are discovered.
1099
+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1102
+ mini*:CTIX:SYS*5:*)
1104
+ echo m68010-convergent-sysv
1106
+ mc68k:UNIX:SYSTEM5:3.51m)
1107
+ echo m68k-convergent-sysv
1109
+ M680?0:D-NIX:5.3:*)
1110
+ echo m68k-diab-dnix
1112
+ M68*:*:R3V[5678]*:*)
1113
+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1114
+ 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)
1116
+ test -r /etc/.relid \
1117
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1118
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1119
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1120
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1121
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1122
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1123
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1124
+ && { echo i486-ncr-sysv4; exit; } ;;
1125
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1127
+ test -r /etc/.relid \
1128
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1129
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1130
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1131
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1132
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1133
+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1134
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1135
+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1136
+ echo m68k-unknown-lynxos${UNAME_RELEASE}
1138
+ mc68030:UNIX_System_V:4.*:*)
1139
+ echo m68k-atari-sysv4
1141
+ TSUNAMI:LynxOS:2.*:*)
1142
+ echo sparc-unknown-lynxos${UNAME_RELEASE}
1144
+ rs6000:LynxOS:2.*:*)
1145
+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
1147
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1148
+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
1150
+ SM[BE]S:UNIX_SV:*:*)
1151
+ echo mips-dde-sysv${UNAME_RELEASE}
1153
+ RM*:ReliantUNIX-*:*:*)
1154
+ echo mips-sni-sysv4
1157
+ echo mips-sni-sysv4
1160
+ if uname -p 2>/dev/null >/dev/null ; then
1161
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
1162
+ echo ${UNAME_MACHINE}-sni-sysv4
1164
+ echo ns32k-sni-sysv
1167
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1168
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
1169
+ echo i586-unisys-sysv4
1171
+ *:UNIX_System_V:4*:FTX*)
1172
+ # From Gerald Hewes <hewes@openmarket.com>.
1173
+ # How about differentiating between stratus architectures? -djm
1174
+ echo hppa1.1-stratus-sysv4
1177
+ # From seanf@swdc.stratus.com.
1178
+ echo i860-stratus-sysv4
1181
+ # From Paul.Green@stratus.com.
1182
+ echo ${UNAME_MACHINE}-stratus-vos
1185
+ # From Paul.Green@stratus.com.
1186
+ echo hppa1.1-stratus-vos
1189
+ echo m68k-apple-aux${UNAME_RELEASE}
1191
+ news*:NEWS-OS:6*:*)
1192
+ echo mips-sony-newsos6
1194
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1195
+ if [ -d /usr/nec ]; then
1196
+ echo mips-nec-sysv${UNAME_RELEASE}
1198
+ echo mips-unknown-sysv${UNAME_RELEASE}
1201
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1202
+ echo powerpc-be-beos
1204
+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1205
+ echo powerpc-apple-beos
1207
+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1210
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1211
+ echo i586-pc-haiku
1213
+ SX-4:SUPER-UX:*:*)
1214
+ echo sx4-nec-superux${UNAME_RELEASE}
1216
+ SX-5:SUPER-UX:*:*)
1217
+ echo sx5-nec-superux${UNAME_RELEASE}
1219
+ SX-6:SUPER-UX:*:*)
1220
+ echo sx6-nec-superux${UNAME_RELEASE}
1222
+ SX-7:SUPER-UX:*:*)
1223
+ echo sx7-nec-superux${UNAME_RELEASE}
1225
+ SX-8:SUPER-UX:*:*)
1226
+ echo sx8-nec-superux${UNAME_RELEASE}
1228
+ SX-8R:SUPER-UX:*:*)
1229
+ echo sx8r-nec-superux${UNAME_RELEASE}
1231
+ Power*:Rhapsody:*:*)
1232
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
1235
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1238
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1239
+ case $UNAME_PROCESSOR in
1241
+ eval $set_cc_for_build
1242
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1243
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1244
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1245
+ grep IS_64BIT_ARCH >/dev/null
1247
+ UNAME_PROCESSOR="x86_64"
1250
+ unknown) UNAME_PROCESSOR=powerpc ;;
1252
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1254
+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
1255
+ UNAME_PROCESSOR=`uname -p`
1256
+ if test "$UNAME_PROCESSOR" = "x86"; then
1257
+ UNAME_PROCESSOR=i386
1260
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1265
+ NSE-?:NONSTOP_KERNEL:*:*)
1266
+ echo nse-tandem-nsk${UNAME_RELEASE}
1268
+ NSR-?:NONSTOP_KERNEL:*:*)
1269
+ echo nsr-tandem-nsk${UNAME_RELEASE}
1272
+ echo mips-compaq-nonstopux
1274
+ BS2000:POSIX*:*:*)
1275
+ echo bs2000-siemens-sysv
1277
+ DS/*:UNIX_System_V:*:*)
1278
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1281
+ # "uname -m" is not consistent, so use $cputype instead. 386
1282
+ # is converted to i386 for consistency with other x86
1283
+ # operating systems.
1284
+ if test "$cputype" = "386"; then
1285
+ UNAME_MACHINE=i386
1287
+ UNAME_MACHINE="$cputype"
1289
+ echo ${UNAME_MACHINE}-unknown-plan9
1292
+ echo pdp10-unknown-tops10
1295
+ echo pdp10-unknown-tenex
1297
+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1298
+ echo pdp10-dec-tops20
1300
+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1301
+ echo pdp10-xkl-tops20
1304
+ echo pdp10-unknown-tops20
1307
+ echo pdp10-unknown-its
1310
+ echo mips-sei-seiux${UNAME_RELEASE}
1313
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1316
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
1317
+ case "${UNAME_MACHINE}" in
1318
+ A*) echo alpha-dec-vms ; exit ;;
1319
+ I*) echo ia64-dec-vms ; exit ;;
1320
+ V*) echo vax-dec-vms ; exit ;;
1323
+ echo i386-pc-xenix
1326
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1329
+ echo ${UNAME_MACHINE}-pc-rdos
1332
+ echo ${UNAME_MACHINE}-pc-aros
1336
+#echo '(No uname command or uname output not recognized.)' 1>&2
1337
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1339
+eval $set_cc_for_build
1340
+cat >$dummy.c <<EOF
1342
+# include <sys/types.h>
1343
+# include <sys/utsname.h>
1348
+#if defined (MIPSEB)
1349
+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1350
+ I don't know.... */
1351
+ printf ("mips-sony-bsd\n"); exit (0);
1353
+#include <sys/param.h>
1354
+ printf ("m68k-sony-newsos%s\n",
1364
+#if defined (__arm) && defined (__acorn) && defined (__unix)
1365
+ printf ("arm-acorn-riscix\n"); exit (0);
1368
+#if defined (hp300) && !defined (hpux)
1369
+ printf ("m68k-hp-bsd\n"); exit (0);
1373
+#if !defined (__ARCHITECTURE__)
1374
+#define __ARCHITECTURE__ "m68k"
1377
+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1379
+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1381
+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1385
+#if defined (MULTIMAX) || defined (n16)
1386
+#if defined (UMAXV)
1387
+ printf ("ns32k-encore-sysv\n"); exit (0);
1390
+ printf ("ns32k-encore-mach\n"); exit (0);
1392
+ printf ("ns32k-encore-bsd\n"); exit (0);
1397
+#if defined (__386BSD__)
1398
+ printf ("i386-pc-bsd\n"); exit (0);
1401
+#if defined (sequent)
1403
+ printf ("i386-sequent-dynix\n"); exit (0);
1405
+#if defined (ns32000)
1406
+ printf ("ns32k-sequent-dynix\n"); exit (0);
1410
+#if defined (_SEQUENT_)
1411
+ struct utsname un;
1415
+ if (strncmp(un.version, "V2", 2) == 0) {
1416
+ printf ("i386-sequent-ptx2\n"); exit (0);
1418
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1419
+ printf ("i386-sequent-ptx1\n"); exit (0);
1421
+ printf ("i386-sequent-ptx\n"); exit (0);
1426
+# if !defined (ultrix)
1427
+# include <sys/param.h>
1430
+ printf ("vax-dec-bsd4.3\n"); exit (0);
1433
+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
1435
+ printf ("vax-dec-bsd\n"); exit (0);
1439
+ printf ("vax-dec-bsd\n"); exit (0);
1442
+ printf ("vax-dec-ultrix\n"); exit (0);
1446
+#if defined (alliant) && defined (i860)
1447
+ printf ("i860-alliant-bsd\n"); exit (0);
1454
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1455
+ { echo "$SYSTEM_NAME"; exit; }
1457
+# Apollos put the system type in the environment.
1459
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1461
+# Convex versions that predate uname can use getsysinfo(1)
1463
+if [ -x /usr/convex/getsysinfo ]
1465
+ case `getsysinfo -f cpu_type` in
1467
+ echo c1-convex-bsd
1470
+ if getsysinfo -f scalar_acc
1471
+ then echo c32-convex-bsd
1472
+ else echo c2-convex-bsd
1476
+ echo c34-convex-bsd
1479
+ echo c38-convex-bsd
1482
+ echo c4-convex-bsd
1488
+$0: unable to guess system type
1490
+This script, last modified $timestamp, has failed to recognize
1491
+the operating system you are using. It is advised that you
1492
+download the most up to date version of the config scripts from
1494
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1496
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1498
+If the version you run ($0) is already up to date, please
1499
+send the following data and any information you think might be
1500
+pertinent to <config-patches@gnu.org> in order to provide the needed
1501
+information to handle your system.
1503
+config.guess timestamp = $timestamp
1505
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
1506
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
1507
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
1508
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
1510
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1511
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1513
+hostinfo = `(hostinfo) 2>/dev/null`
1514
+/bin/universe = `(/bin/universe) 2>/dev/null`
1515
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1516
+/bin/arch = `(/bin/arch) 2>/dev/null`
1517
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1518
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1520
+UNAME_MACHINE = ${UNAME_MACHINE}
1521
+UNAME_RELEASE = ${UNAME_RELEASE}
1522
+UNAME_SYSTEM = ${UNAME_SYSTEM}
1523
+UNAME_VERSION = ${UNAME_VERSION}
1529
+# eval: (add-hook 'write-file-hooks 'time-stamp)
1530
+# time-stamp-start: "timestamp='"
1531
+# time-stamp-format: "%:y-%02m-%02d"
1532
+# time-stamp-end: "'"
1535
+++ slurm-llnl-2.1.8/config.sub
1538
+# Configuration validation subroutine script.
1539
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1540
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
1541
+# Free Software Foundation, Inc.
1543
+timestamp='2010-01-22'
1545
+# This file is (in principle) common to ALL GNU software.
1546
+# The presence of a machine in this file suggests that SOME GNU software
1547
+# can handle that machine. It does not imply ALL GNU software can.
1549
+# This file is free software; you can redistribute it and/or modify
1550
+# it under the terms of the GNU General Public License as published by
1551
+# the Free Software Foundation; either version 2 of the License, or
1552
+# (at your option) any later version.
1554
+# This program is distributed in the hope that it will be useful,
1555
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1556
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1557
+# GNU General Public License for more details.
1559
+# You should have received a copy of the GNU General Public License
1560
+# along with this program; if not, write to the Free Software
1561
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
1564
+# As a special exception to the GNU General Public License, if you
1565
+# distribute this file as part of a program that contains a
1566
+# configuration script generated by Autoconf, you may include it under
1567
+# the same distribution terms that you use for the rest of that program.
1570
+# Please send patches to <config-patches@gnu.org>. Submit a context
1571
+# diff and a properly formatted GNU ChangeLog entry.
1573
+# Configuration subroutine to validate and canonicalize a configuration type.
1574
+# Supply the specified configuration type as an argument.
1575
+# If it is invalid, we print an error message on stderr and exit with code 1.
1576
+# Otherwise, we print the canonical config type on stdout and succeed.
1578
+# You can get the latest version of this script from:
1579
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1581
+# This file is supposed to be the same for all GNU packages
1582
+# and recognize all the CPU types, system types and aliases
1583
+# that are meaningful with *any* GNU software.
1584
+# Each package is responsible for reporting which valid configurations
1585
+# it does not support. The user should be able to distinguish
1586
+# a failure to support a valid configuration from a meaningless
1589
+# The goal of this file is to map all the various variations of a given
1590
+# machine specification into a single specification in the form:
1591
+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
1592
+# or in some cases, the newer four-part form:
1593
+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
1594
+# It is wrong to echo any other type of specification.
1596
+me=`echo "$0" | sed -e 's,.*/,,'`
1599
+Usage: $0 [OPTION] CPU-MFR-OPSYS
1602
+Canonicalize a configuration name.
1605
+ -h, --help print this help, then exit
1606
+ -t, --time-stamp print date of last modification, then exit
1607
+ -v, --version print version number, then exit
1609
+Report bugs and patches to <config-patches@gnu.org>."
1612
+GNU config.sub ($timestamp)
1614
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
1615
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
1616
+Software Foundation, Inc.
1618
+This is free software; see the source for copying conditions. There is NO
1619
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1622
+Try \`$me --help' for more information."
1624
+# Parse command line
1625
+while test $# -gt 0 ; do
1627
+ --time-stamp | --time* | -t )
1628
+ echo "$timestamp" ; exit ;;
1630
+ echo "$version" ; exit ;;
1631
+ --help | --h* | -h )
1632
+ echo "$usage"; exit ;;
1633
+ -- ) # Stop option processing
1635
+ - ) # Use stdin as input.
1638
+ echo "$me: invalid option $1$help"
1642
+ # First pass through any local machine types.
1652
+ 0) echo "$me: missing argument$help" >&2
1655
+ *) echo "$me: too many arguments$help" >&2
1659
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
1660
+# Here we must recognize all the valid KERNEL-OS combinations.
1661
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
1663
+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
1664
+ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
1665
+ kopensolaris*-gnu* | \
1666
+ storm-chaos* | os2-emx* | rtmk-nova*)
1668
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
1671
+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
1672
+ if [ $basic_machine != $1 ]
1673
+ then os=`echo $1 | sed 's/.*-/-/'`
1678
+### Let's recognize common machines as not being operating systems so
1679
+### that things like config.sub decstation-3100 work. We also
1680
+### recognize some manufacturers as not being operating systems, so we
1681
+### can provide default operating systems below.
1684
+ # Prevent following clause from handling this invalid input.
1686
+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
1687
+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
1688
+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
1689
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
1690
+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
1691
+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
1692
+ -apple | -axis | -knuth | -cray | -microblaze)
1699
+ -sim | -cisco | -oki | -wec | -winbond)
1722
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1726
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1730
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1733
+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1734
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1737
+ # Don't forget version if it is 3.2v4 or newer.
1738
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1741
+ # Don't forget version if it is 3.2v4 or newer.
1742
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1746
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1749
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1753
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1756
+ basic_machine=clipper-intergraph
1759
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1765
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
1768
+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
1773
+ -mint | -mint[0-9]*)
1774
+ basic_machine=m68k-atari
1779
+# Decode aliases for certain CPU-COMPANY combinations.
1780
+case $basic_machine in
1781
+ # Recognize the basic CPU types without company name.
1782
+ # Some are omitted here because they have special meanings below.
1785
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
1786
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
1788
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
1791
+ | d10v | d30v | dlx | dsp16xx \
1792
+ | fido | fr30 | frv \
1793
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1794
+ | i370 | i860 | i960 | ia64 \
1797
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
1798
+ | maxq | mb | microblaze | mcore | mep | metag \
1799
+ | mips | mipsbe | mipseb | mipsel | mipsle \
1801
+ | mips64 | mips64el \
1802
+ | mips64octeon | mips64octeonel \
1803
+ | mips64orion | mips64orionel \
1804
+ | mips64r5900 | mips64r5900el \
1805
+ | mips64vr | mips64vrel \
1806
+ | mips64vr4100 | mips64vr4100el \
1807
+ | mips64vr4300 | mips64vr4300el \
1808
+ | mips64vr5000 | mips64vr5000el \
1809
+ | mips64vr5900 | mips64vr5900el \
1810
+ | mipsisa32 | mipsisa32el \
1811
+ | mipsisa32r2 | mipsisa32r2el \
1812
+ | mipsisa64 | mipsisa64el \
1813
+ | mipsisa64r2 | mipsisa64r2el \
1814
+ | mipsisa64sb1 | mipsisa64sb1el \
1815
+ | mipsisa64sr71k | mipsisa64sr71kel \
1816
+ | mipstx39 | mipstx39el \
1817
+ | mn10200 | mn10300 \
1824
+ | pdp10 | pdp11 | pj | pjl \
1825
+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
1829
+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
1831
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
1832
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
1833
+ | spu | strongarm \
1834
+ | tahoe | thumb | tic4x | tic80 | tron \
1838
+ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
1840
+ basic_machine=$basic_machine-unknown
1842
+ m6811 | m68hc11 | m6812 | m68hc12 | picochip)
1843
+ # Motorola 68HC11/12.
1844
+ basic_machine=$basic_machine-unknown
1847
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
1850
+ basic_machine=mt-unknown
1853
+ # We use `pc' rather than `unknown'
1854
+ # because (1) that's what they normally are, and
1855
+ # (2) the word "unknown" tends to confuse beginning users.
1857
+ basic_machine=$basic_machine-pc
1859
+ # Object if more than one company name word.
1861
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1864
+ # Recognize the basic CPU types with company name.
1867
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
1868
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
1869
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
1870
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
1871
+ | avr-* | avr32-* \
1872
+ | bfin-* | bs2000-* \
1873
+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
1874
+ | clipper-* | craynv-* | cydra-* \
1875
+ | d10v-* | d30v-* | dlx-* \
1877
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
1878
+ | h8300-* | h8500-* \
1879
+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
1880
+ | i*86-* | i860-* | i960-* | ia64-* \
1881
+ | ip2k-* | iq2000-* \
1883
+ | m32c-* | m32r-* | m32rle-* \
1884
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
1885
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
1886
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
1888
+ | mips64-* | mips64el-* \
1889
+ | mips64octeon-* | mips64octeonel-* \
1890
+ | mips64orion-* | mips64orionel-* \
1891
+ | mips64r5900-* | mips64r5900el-* \
1892
+ | mips64vr-* | mips64vrel-* \
1893
+ | mips64vr4100-* | mips64vr4100el-* \
1894
+ | mips64vr4300-* | mips64vr4300el-* \
1895
+ | mips64vr5000-* | mips64vr5000el-* \
1896
+ | mips64vr5900-* | mips64vr5900el-* \
1897
+ | mipsisa32-* | mipsisa32el-* \
1898
+ | mipsisa32r2-* | mipsisa32r2el-* \
1899
+ | mipsisa64-* | mipsisa64el-* \
1900
+ | mipsisa64r2-* | mipsisa64r2el-* \
1901
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
1902
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
1903
+ | mipstx39-* | mipstx39el-* \
1907
+ | nios-* | nios2-* \
1908
+ | none-* | np1-* | ns16k-* | ns32k-* \
1910
+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
1911
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
1913
+ | romp-* | rs6000-* | rx-* \
1914
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
1915
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
1916
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
1918
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
1919
+ | tahoe-* | thumb-* \
1920
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
1921
+ | tile-* | tilegx-* \
1924
+ | v850-* | v850e-* | vax-* \
1926
+ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
1927
+ | xstormy16-* | xtensa*-* \
1931
+ # Recognize the basic CPU types without company name, with glob match.
1933
+ basic_machine=$basic_machine-unknown
1935
+ # Recognize the various machine names and aliases which stand
1936
+ # for a CPU type and a company and sometimes even an OS.
1938
+ basic_machine=i386-unknown
1941
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
1942
+ basic_machine=m68000-att
1945
+ basic_machine=we32k-att
1948
+ basic_machine=a29k-amd
1952
+ basic_machine=abacus-unknown
1955
+ basic_machine=m68010-adobe
1959
+ basic_machine=fx80-alliant
1961
+ altos | altos3068)
1962
+ basic_machine=m68k-altos
1965
+ basic_machine=a29k-none
1969
+ basic_machine=x86_64-pc
1972
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
1975
+ basic_machine=580-amdahl
1979
+ basic_machine=m68k-unknown
1981
+ amigaos | amigados)
1982
+ basic_machine=m68k-unknown
1986
+ basic_machine=m68k-unknown
1990
+ basic_machine=m68k-apollo
1994
+ basic_machine=m68k-apollo
1998
+ basic_machine=i386-pc
2002
+ basic_machine=m68k-apple
2006
+ basic_machine=ns32k-sequent
2010
+ basic_machine=bfin-unknown
2014
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
2018
+ basic_machine=powerpc-ibm
2022
+ basic_machine=c90-cray
2026
+ basic_machine=arm-unknown
2030
+ basic_machine=c1-convex
2034
+ basic_machine=c2-convex
2038
+ basic_machine=c32-convex
2042
+ basic_machine=c34-convex
2046
+ basic_machine=c38-convex
2050
+ basic_machine=j90-cray
2054
+ basic_machine=craynv-cray
2058
+ basic_machine=cr16-unknown
2062
+ basic_machine=m68k-crds
2064
+ crisv32 | crisv32-* | etraxfs*)
2065
+ basic_machine=crisv32-axis
2067
+ cris | cris-* | etrax*)
2068
+ basic_machine=cris-axis
2071
+ basic_machine=crx-unknown
2075
+ basic_machine=m68k-da30
2077
+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
2078
+ basic_machine=mips-dec
2080
+ decsystem10* | dec10*)
2081
+ basic_machine=pdp10-dec
2084
+ decsystem20* | dec20*)
2085
+ basic_machine=pdp10-dec
2088
+ delta | 3300 | motorola-3300 | motorola-delta \
2089
+ | 3300-motorola | delta-motorola)
2090
+ basic_machine=m68k-motorola
2093
+ basic_machine=m88k-motorola
2097
+ basic_machine=i686-pc
2101
+ basic_machine=i586-pc
2105
+ basic_machine=rs6000-bull
2108
+ dpx2* | dpx2*-bull)
2109
+ basic_machine=m68k-bull
2113
+ basic_machine=a29k-amd
2117
+ basic_machine=elxsi-elxsi
2120
+ encore | umax | mmax)
2121
+ basic_machine=ns32k-encore
2123
+ es1800 | OSE68k | ose68k | ose | OSE)
2124
+ basic_machine=m68k-ericsson
2128
+ basic_machine=i860-alliant
2131
+ basic_machine=ns32k-ns
2134
+ basic_machine=tron-gmicro
2138
+ basic_machine=i386-pc
2142
+ basic_machine=hppa1.1-hitachi
2146
+ basic_machine=h8300-hitachi
2150
+ basic_machine=h8300-hitachi
2154
+ basic_machine=h8500-hitachi
2158
+ basic_machine=m88k-harris
2162
+ basic_machine=m68k-hp
2165
+ basic_machine=m68k-hp
2169
+ basic_machine=m68k-hp
2172
+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
2173
+ basic_machine=hppa1.0-hp
2175
+ hp9k2[0-9][0-9] | hp9k31[0-9])
2176
+ basic_machine=m68000-hp
2179
+ basic_machine=m68k-hp
2181
+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
2182
+ basic_machine=hppa1.0-hp
2184
+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
2185
+ basic_machine=hppa1.1-hp
2187
+ hp9k78[0-9] | hp78[0-9])
2188
+ # FIXME: really hppa2.0-hp
2189
+ basic_machine=hppa1.1-hp
2191
+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
2192
+ # FIXME: really hppa2.0-hp
2193
+ basic_machine=hppa1.1-hp
2195
+ hp9k8[0-9][13679] | hp8[0-9][13679])
2196
+ basic_machine=hppa1.1-hp
2198
+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
2199
+ basic_machine=hppa1.0-hp
2205
+ basic_machine=hppa1.1-hp
2209
+ basic_machine=hppa1.1-hp
2213
+ basic_machine=i370-ibm
2215
+# I'm not sure what "Sysv32" means. Should this be sysv3.2?
2217
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2221
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2225
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2229
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2233
+ basic_machine=i386-mach
2237
+ basic_machine=i386-unknown
2241
+ basic_machine=mips-sgi
2251
+ basic_machine=m68k-isi
2255
+ basic_machine=m68k-unknown
2259
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
2263
+ basic_machine=m88k-omron
2266
+ basic_machine=mips-mips
2270
+ basic_machine=ns32k-utek
2274
+ basic_machine=microblaze-xilinx
2277
+ basic_machine=i386-pc
2281
+ basic_machine=arm-unknown
2285
+ basic_machine=m68000-convergent
2287
+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
2288
+ basic_machine=m68k-atari
2292
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
2295
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
2298
+ basic_machine=m68k-rom68k
2302
+ basic_machine=powerpc-unknown
2306
+ basic_machine=i386-pc
2310
+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
2313
+ basic_machine=i370-ibm
2317
+ basic_machine=i486-ncr
2321
+ basic_machine=i386-unknown
2325
+ basic_machine=armv4l-rebel
2328
+ news | news700 | news800 | news900)
2329
+ basic_machine=m68k-sony
2333
+ basic_machine=m68030-sony
2336
+ news-3600 | risc-news)
2337
+ basic_machine=mips-sony
2341
+ basic_machine=v70-nec
2345
+ basic_machine=m68k-next
2358
+ basic_machine=m68k-harris
2362
+ basic_machine=m88k-harris
2366
+ basic_machine=i960-intel
2370
+ basic_machine=i960-intel
2374
+ basic_machine=mips-compaq
2378
+ basic_machine=np1-gould
2381
+ basic_machine=nsr-tandem
2383
+ op50n-* | op60c-*)
2384
+ basic_machine=hppa1.1-oki
2387
+ openrisc | openrisc-*)
2388
+ basic_machine=or32-unknown
2391
+ basic_machine=powerpc-ibm
2394
+ OSE68000 | ose68000)
2395
+ basic_machine=m68000-ericsson
2399
+ basic_machine=m68k-none
2403
+ basic_machine=hppa1.1-hitachi
2407
+ basic_machine=i860-intel
2411
+ basic_machine=hppa-unknown
2415
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
2419
+ basic_machine=sparc-tti
2422
+ basic_machine=m68k-tti
2425
+ basic_machine=ns32k-pc532
2428
+ basic_machine=i386-pc
2431
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
2433
+ pentium | p5 | k5 | k6 | nexgen | viac3)
2434
+ basic_machine=i586-pc
2436
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
2437
+ basic_machine=i686-pc
2439
+ pentiumii | pentium2 | pentiumiii | pentium3)
2440
+ basic_machine=i686-pc
2443
+ basic_machine=i786-pc
2445
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
2446
+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
2448
+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
2449
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2451
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
2452
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2455
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
2458
+ basic_machine=pn-gould
2460
+ power) basic_machine=power-ibm
2462
+ ppc) basic_machine=powerpc-unknown
2464
+ ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
2466
+ ppcle | powerpclittle | ppc-le | powerpc-little)
2467
+ basic_machine=powerpcle-unknown
2469
+ ppcle-* | powerpclittle-*)
2470
+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
2472
+ ppc64) basic_machine=powerpc64-unknown
2474
+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
2476
+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
2477
+ basic_machine=powerpc64le-unknown
2479
+ ppc64le-* | powerpc64little-*)
2480
+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
2483
+ basic_machine=i386-ibm
2486
+ basic_machine=i586-unknown
2490
+ basic_machine=i386-pc
2494
+ basic_machine=m68k-rom68k
2498
+ basic_machine=mips-siemens
2501
+ basic_machine=romp-ibm
2504
+ basic_machine=s390-ibm
2507
+ basic_machine=s390x-ibm
2510
+ basic_machine=a29k-amd
2514
+ basic_machine=mipsisa64sb1-unknown
2517
+ basic_machine=mipsisa64sb1el-unknown
2520
+ basic_machine=mipsisa32-sde
2524
+ basic_machine=mips-sei
2528
+ basic_machine=i386-sequent
2531
+ basic_machine=sh-hitachi
2535
+ basic_machine=sh5le-unknown
2538
+ basic_machine=sh64-unknown
2540
+ sparclite-wrs | simso-wrs)
2541
+ basic_machine=sparclite-wrs
2545
+ basic_machine=m68k-bull
2549
+ basic_machine=spur-unknown
2552
+ basic_machine=m68k-tandem
2555
+ basic_machine=i860-stratus
2559
+ basic_machine=m68000-sun
2562
+ basic_machine=m68000-sun
2566
+ basic_machine=m68000-sun
2570
+ basic_machine=m68k-sun
2574
+ basic_machine=m68k-sun
2578
+ basic_machine=sparc-sun
2582
+ basic_machine=sparc-sun
2586
+ basic_machine=sparc-sun
2590
+ basic_machine=m68k-sun
2593
+ basic_machine=sparc-sun
2595
+ sun386 | sun386i | roadrunner)
2596
+ basic_machine=i386-sun
2599
+ basic_machine=sv1-cray
2603
+ basic_machine=i386-sequent
2607
+ basic_machine=alphaev5-cray
2611
+ basic_machine=t90-cray
2615
+ basic_machine=tic54x-unknown
2619
+ basic_machine=tic55x-unknown
2623
+ basic_machine=tic6x-unknown
2626
+ # This must be matched before tile*.
2628
+ basic_machine=tilegx-unknown
2632
+ basic_machine=tile-unknown
2636
+ basic_machine=mipstx39-unknown
2639
+ basic_machine=mipstx39el-unknown
2642
+ basic_machine=pdp10-xkl
2646
+ basic_machine=m68k-ncr
2649
+ basic_machine=s390x-ibm
2653
+ basic_machine=a29k-amd
2657
+ basic_machine=a29k-nyu
2661
+ basic_machine=v810-nec
2665
+ basic_machine=vax-dec
2669
+ basic_machine=vax-dec
2673
+ basic_machine=f301-fujitsu
2676
+ basic_machine=i960-wrs
2680
+ basic_machine=m68k-wrs
2684
+ basic_machine=a29k-wrs
2688
+ basic_machine=w65-wdc
2692
+ basic_machine=hppa1.1-winbond
2696
+ basic_machine=i686-pc
2700
+ basic_machine=xps100-honeywell
2703
+ basic_machine=ymp-cray
2707
+ basic_machine=z8k-unknown
2711
+ basic_machine=z80-unknown
2715
+ basic_machine=none-none
2719
+# Here we handle the default manufacturer of certain CPU types. It is in
2720
+# some cases the only manufacturer, in others, it is the most popular.
2722
+ basic_machine=hppa1.1-winbond
2725
+ basic_machine=hppa1.1-oki
2728
+ basic_machine=hppa1.1-oki
2731
+ basic_machine=romp-ibm
2734
+ basic_machine=mmix-knuth
2737
+ basic_machine=rs6000-ibm
2740
+ basic_machine=vax-dec
2743
+ # there are many clones, so DEC is not a safe bet
2744
+ basic_machine=pdp10-unknown
2747
+ basic_machine=pdp11-dec
2750
+ basic_machine=we32k-att
2752
+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
2753
+ basic_machine=sh-unknown
2755
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
2756
+ basic_machine=sparc-sun
2759
+ basic_machine=cydra-cydrome
2762
+ basic_machine=orion-highlevel
2765
+ basic_machine=clipper-highlevel
2767
+ mac | mpw | mac-mpw)
2768
+ basic_machine=m68k-apple
2771
+ basic_machine=powerpc-apple
2774
+ # Make sure to match an already-canonicalized machine name.
2777
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
2782
+# Here we canonicalize certain aliases for manufacturers.
2783
+case $basic_machine in
2785
+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
2788
+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
2794
+# Decode manufacturer-specific aliases for certain operating systems.
2796
+if [ x"$os" != x"" ]
2799
+ # First match some system type aliases
2800
+ # that might get confused with valid system types.
2801
+ # -solaris* is a basic system type, with this one exception.
2805
+ -solaris1 | -solaris1.*)
2806
+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
2818
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
2820
+ # First accept the basic system types.
2821
+ # The portable systems comes first.
2822
+ # Each alternative MUST END IN A *, to match a version number.
2823
+ # -sysv* is not here because it comes later, after sysvr4.
2824
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
2825
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
2826
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
2827
+ | -sym* | -kopensolaris* \
2828
+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
2829
+ | -aos* | -aros* \
2830
+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
2831
+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
2832
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
2833
+ | -openbsd* | -solidbsd* \
2834
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
2835
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
2836
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
2837
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
2838
+ | -chorusos* | -chorusrdb* | -cegcc* \
2839
+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
2840
+ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
2841
+ | -uxpv* | -beos* | -mpeix* | -udk* \
2842
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
2843
+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
2844
+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
2845
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
2846
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
2847
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
2848
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
2849
+ # Remember, each alternative MUST END IN *, to match a version number.
2852
+ case $basic_machine in
2863
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
2865
+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
2866
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
2867
+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
2870
+ os=`echo $os | sed -e 's|mac|macos|'`
2873
+ os=-linux-dietlibc
2876
+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
2879
+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
2882
+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
2929
+ # Preserve the version number of sinix5.
2931
+ os=`echo $os | sed -e 's|sinix|sysv|'`
2954
+ # This must come after -sysvr4.
2966
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
2986
+ # Get rid of the `-' at the beginning of $os.
2987
+ os=`echo $os | sed 's/[^-]*-//'`
2988
+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
2994
+# Here we handle the default operating systems that come with various machines.
2995
+# The value should be what the vendor currently ships out the door with their
2996
+# machine or put another way, the most popular os provided with the machine.
2998
+# Note that if you're going to try to match "-MANUFACTURER" here (say,
2999
+# "-sun"), then you have to tell the case statement up towards the top
3000
+# that MANUFACTURER isn't an operating system. Otherwise, code above
3001
+# will signal an error saying that MANUFACTURER isn't an operating
3002
+# system, and we'll never get to this point.
3004
+case $basic_machine in
3023
+ # This must come before the *-dec entry.
3041
+ # This also exists in the configure program, but was not the
3060
+ *-tti) # must be before sparc entry or we get the wrong os.
3093
+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
3147
+ f30[01]-fujitsu | f700-fujitsu)
3168
+# Here we handle the case where we know the os, and the CPU type, but not the
3169
+# manufacturer. We pick the logical manufacturer.
3171
+case $basic_machine in
3219
+ -vxsim* | -vxworks* | -windiss*)
3231
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
3238
+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
3242
+echo $basic_machine$os
3246
+# eval: (add-hook 'write-file-hooks 'time-stamp)
3247
+# time-stamp-start: "timestamp='"
3248
+# time-stamp-format: "%:y-%02m-%02d"
3249
+# time-stamp-end: "'"