1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 099_config_guess_sub_update.dpatch by <tfheen@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
8
diff -urNad apache2-2.2.3~/config.guess apache2-2.2.3/config.guess
9
--- apache2-2.2.3~/config.guess 1970-01-01 01:00:00.000000000 +0100
10
+++ apache2-2.2.3/config.guess 2006-09-27 21:50:35.000000000 +0200
13
+# Attempt to guess a canonical system name.
14
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
15
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
18
+timestamp='2006-07-02'
20
+# This file is free software; you can redistribute it and/or modify it
21
+# under the terms of the GNU General Public License as published by
22
+# the Free Software Foundation; either version 2 of the License, or
23
+# (at your option) any later version.
25
+# This program is distributed in the hope that it will be useful, but
26
+# WITHOUT ANY WARRANTY; without even the implied warranty of
27
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28
+# General Public License for more details.
30
+# You should have received a copy of the GNU General Public License
31
+# along with this program; if not, write to the Free Software
32
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
35
+# As a special exception to the GNU General Public License, if you
36
+# distribute this file as part of a program that contains a
37
+# configuration script generated by Autoconf, you may include it under
38
+# the same distribution terms that you use for the rest of that program.
41
+# Originally written by Per Bothner <per@bothner.com>.
42
+# Please send patches to <config-patches@gnu.org>. Submit a context
43
+# diff and a properly formatted ChangeLog entry.
45
+# This script attempts to guess a canonical system name similar to
46
+# config.sub. If it succeeds, it prints the system name on stdout, and
47
+# exits with 0. Otherwise, it exits with 1.
49
+# The plan is that this can be called by configure scripts if you
50
+# don't specify an explicit build system type.
52
+me=`echo "$0" | sed -e 's,.*/,,'`
57
+Output the configuration name of the system \`$me' is run on.
60
+ -h, --help print this help, then exit
61
+ -t, --time-stamp print date of last modification, then exit
62
+ -v, --version print version number, then exit
64
+Report bugs and patches to <config-patches@gnu.org>."
67
+GNU config.guess ($timestamp)
69
+Originally written by Per Bothner.
70
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
71
+Free Software Foundation, Inc.
73
+This is free software; see the source for copying conditions. There is NO
74
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
77
+Try \`$me --help' for more information."
80
+while test $# -gt 0 ; do
82
+ --time-stamp | --time* | -t )
83
+ echo "$timestamp" ; exit ;;
85
+ echo "$version" ; exit ;;
86
+ --help | --h* | -h )
87
+ echo "$usage"; exit ;;
88
+ -- ) # Stop option processing
90
+ - ) # Use stdin as input.
93
+ echo "$me: invalid option $1$help" >&2
100
+if test $# != 0; then
101
+ echo "$me: too many arguments$help" >&2
105
+trap 'exit 1' 1 2 15
107
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
108
+# compiler to aid in system detection is discouraged as it requires
109
+# temporary files to be created and, as you can see below, it is a
110
+# headache to deal with in a portable fashion.
112
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
113
+# use `HOST_CC' if defined, but it is deprecated.
115
+# Portable tmp directory creation inspired by the Autoconf team.
118
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
119
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
121
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
122
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
123
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
124
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
126
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
127
+case $CC_FOR_BUILD,$HOST_CC,$CC in
128
+ ,,) echo "int x;" > $dummy.c ;
129
+ for c in cc gcc c89 c99 ; do
130
+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
131
+ CC_FOR_BUILD="$c"; break ;
134
+ if test x"$CC_FOR_BUILD" = x ; then
135
+ CC_FOR_BUILD=no_compiler_found ;
138
+ ,,*) CC_FOR_BUILD=$CC ;;
139
+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
140
+esac ; set_cc_for_build= ;'
142
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
143
+# (ghazi@noc.rutgers.edu 1994-08-24)
144
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
145
+ PATH=$PATH:/.attbin ; export PATH
148
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
149
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
150
+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
151
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
153
+# Note: order is significant - the case branches are not exclusive.
155
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
157
+ # NetBSD (nbsd) targets should (where applicable) match one or
158
+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
159
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
160
+ # switched to ELF, *-*-netbsd* would select the old
161
+ # object file format. This provides both forward
162
+ # compatibility and a consistent mechanism for selecting the
163
+ # object file format.
165
+ # Note: NetBSD doesn't particularly care about the vendor
166
+ # portion of the name. We always set it to "unknown".
167
+ sysctl="sysctl -n hw.machine_arch"
168
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
169
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
170
+ case "${UNAME_MACHINE_ARCH}" in
171
+ armeb) machine=armeb-unknown ;;
172
+ arm*) machine=arm-unknown ;;
173
+ sh3el) machine=shl-unknown ;;
174
+ sh3eb) machine=sh-unknown ;;
175
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
177
+ # The Operating System including object format, if it has switched
178
+ # to ELF recently, or will in the future.
179
+ case "${UNAME_MACHINE_ARCH}" in
180
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
181
+ eval $set_cc_for_build
182
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
183
+ | grep __ELF__ >/dev/null
185
+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
186
+ # Return netbsd for either. FIX?
197
+ # Debian GNU/NetBSD machines have a different userland, and
198
+ # thus, need a distinct triplet. However, they do not need
199
+ # kernel version information, so it can be replaced with a
200
+ # suitable tag, in the style of linux-gnu.
201
+ case "${UNAME_VERSION}" in
206
+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
209
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
210
+ # contains redundant information, the shorter form:
211
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
212
+ echo "${machine}-${os}${release}"
215
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
216
+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
219
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
222
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
225
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
228
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
231
+ case $UNAME_RELEASE in
233
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
236
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
239
+ # According to Compaq, /usr/sbin/psrinfo has been available on
240
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
241
+ # covers most systems running today. This code pipes the CPU
242
+ # types through head -n 1, so we only detect the type of CPU 0.
243
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
244
+ case "$ALPHA_CPU_TYPE" in
246
+ UNAME_MACHINE="alpha" ;;
248
+ UNAME_MACHINE="alpha" ;;
249
+ "LCA4 (21066/21068)")
250
+ UNAME_MACHINE="alpha" ;;
252
+ UNAME_MACHINE="alphaev5" ;;
254
+ UNAME_MACHINE="alphaev56" ;;
256
+ UNAME_MACHINE="alphapca56" ;;
258
+ UNAME_MACHINE="alphapca57" ;;
260
+ UNAME_MACHINE="alphaev6" ;;
262
+ UNAME_MACHINE="alphaev67" ;;
263
+ "EV6.8CB (21264C)")
264
+ UNAME_MACHINE="alphaev68" ;;
265
+ "EV6.8AL (21264B)")
266
+ UNAME_MACHINE="alphaev68" ;;
267
+ "EV6.8CX (21264D)")
268
+ UNAME_MACHINE="alphaev68" ;;
269
+ "EV6.9A (21264/EV69A)")
270
+ UNAME_MACHINE="alphaev69" ;;
272
+ UNAME_MACHINE="alphaev7" ;;
274
+ UNAME_MACHINE="alphaev79" ;;
276
+ # A Pn.n version is a patched version.
277
+ # A Vn.n version is a released version.
278
+ # A Tn.n version is a released field test version.
279
+ # A Xn.n version is an unreleased experimental baselevel.
280
+ # 1.2 uses "1.2" for uname -r.
281
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
283
+ Alpha\ *:Windows_NT*:*)
284
+ # How do we know it's Interix rather than the generic POSIX subsystem?
285
+ # Should we change UNAME_MACHINE based on the output of uname instead
286
+ # of the specific Alpha model?
287
+ echo alpha-pc-interix
289
+ 21064:Windows_NT:50:3)
290
+ echo alpha-dec-winnt3.5
292
+ Amiga*:UNIX_System_V:4.0:*)
293
+ echo m68k-unknown-sysv4
295
+ *:[Aa]miga[Oo][Ss]:*:*)
296
+ echo ${UNAME_MACHINE}-unknown-amigaos
298
+ *:[Mm]orph[Oo][Ss]:*:*)
299
+ echo ${UNAME_MACHINE}-unknown-morphos
302
+ echo i370-ibm-openedition
305
+ echo s390-ibm-zvmoe
308
+ echo powerpc-ibm-os400
310
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
311
+ echo arm-acorn-riscix${UNAME_RELEASE}
313
+ arm:riscos:*:*|arm:RISCOS:*:*)
314
+ echo arm-unknown-riscos
316
+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
317
+ echo hppa1.1-hitachi-hiuxmpp
319
+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
320
+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
321
+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
322
+ echo pyramid-pyramid-sysv3
324
+ echo pyramid-pyramid-bsd
328
+ echo pyramid-pyramid-svr4
330
+ DRS?6000:unix:4.0:6*)
333
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
334
+ case `/usr/bin/uname -p` in
335
+ sparc) echo sparc-icl-nx7; exit ;;
338
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
340
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
341
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
344
+ echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
347
+ # According to config.sub, this is the proper way to canonicalize
348
+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
349
+ # it's likely to be more like Solaris than SunOS4.
350
+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
353
+ case "`/usr/bin/arch -k`" in
355
+ UNAME_RELEASE=`uname -v`
358
+ # Japanese Language versions have a version number like `4.1.3-JL'.
359
+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
362
+ echo m68k-sun-sunos${UNAME_RELEASE}
365
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
366
+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
367
+ case "`/bin/arch`" in
369
+ echo m68k-sun-sunos${UNAME_RELEASE}
372
+ echo sparc-sun-sunos${UNAME_RELEASE}
377
+ echo sparc-auspex-sunos${UNAME_RELEASE}
379
+ # The situation for MiNT is a little confusing. The machine name
380
+ # can be virtually everything (everything which is not
381
+ # "atarist" or "atariste" at least should have a processor
382
+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
383
+ # to the lowercase version "mint" (or "freemint"). Finally
384
+ # the system name "TOS" denotes a system which is actually not
385
+ # MiNT. But MiNT is downward compatible to TOS, so this should
387
+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
388
+ echo m68k-atari-mint${UNAME_RELEASE}
390
+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
391
+ echo m68k-atari-mint${UNAME_RELEASE}
393
+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
394
+ echo m68k-atari-mint${UNAME_RELEASE}
396
+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
397
+ echo m68k-milan-mint${UNAME_RELEASE}
399
+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
400
+ echo m68k-hades-mint${UNAME_RELEASE}
402
+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
403
+ echo m68k-unknown-mint${UNAME_RELEASE}
406
+ echo m68k-apple-machten${UNAME_RELEASE}
408
+ powerpc:machten:*:*)
409
+ echo powerpc-apple-machten${UNAME_RELEASE}
412
+ echo mips-dec-mach_bsd4.3
415
+ echo mips-dec-ultrix${UNAME_RELEASE}
418
+ echo vax-dec-ultrix${UNAME_RELEASE}
420
+ 2020:CLIX:*:* | 2430:CLIX:*:*)
421
+ echo clipper-intergraph-clix${UNAME_RELEASE}
423
+ mips:*:*:UMIPS | mips:*:*:RISCos)
424
+ eval $set_cc_for_build
425
+ sed 's/^ //' << EOF >$dummy.c
427
+#include <stdio.h> /* for printf() prototype */
428
+ int main (int argc, char *argv[]) {
430
+ int main (argc, argv) int argc; char *argv[]; {
432
+ #if defined (host_mips) && defined (MIPSEB)
433
+ #if defined (SYSTYPE_SYSV)
434
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
436
+ #if defined (SYSTYPE_SVR4)
437
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
439
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
440
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
446
+ $CC_FOR_BUILD -o $dummy $dummy.c &&
447
+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
448
+ SYSTEM_NAME=`$dummy $dummyarg` &&
449
+ { echo "$SYSTEM_NAME"; exit; }
450
+ echo mips-mips-riscos${UNAME_RELEASE}
452
+ Motorola:PowerMAX_OS:*:*)
453
+ echo powerpc-motorola-powermax
455
+ Motorola:*:4.3:PL8-*)
456
+ echo powerpc-harris-powermax
458
+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
459
+ echo powerpc-harris-powermax
461
+ Night_Hawk:Power_UNIX:*:*)
462
+ echo powerpc-harris-powerunix
465
+ echo m88k-harris-cxux7
468
+ echo m88k-motorola-sysv4
471
+ echo m88k-motorola-sysv3
474
+ # DG/UX returns AViiON for all architectures
475
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
476
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
478
+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
479
+ [ ${TARGET_BINARY_INTERFACE}x = x ]
481
+ echo m88k-dg-dgux${UNAME_RELEASE}
483
+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
486
+ echo i586-dg-dgux${UNAME_RELEASE}
489
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
490
+ echo m88k-dolphin-sysv3
493
+ # Delta 88k system running SVR3
494
+ echo m88k-motorola-sysv3
496
+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
497
+ echo m88k-tektronix-sysv3
499
+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
500
+ echo m68k-tektronix-bsd
503
+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
505
+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
506
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
507
+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
512
+ if [ -x /usr/bin/oslevel ] ; then
513
+ IBM_REV=`/usr/bin/oslevel`
515
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
517
+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
520
+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
521
+ eval $set_cc_for_build
522
+ sed 's/^ //' << EOF >$dummy.c
523
+ #include <sys/systemcfg.h>
529
+ puts("powerpc-ibm-aix3.2.5");
533
+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
535
+ echo "$SYSTEM_NAME"
537
+ echo rs6000-ibm-aix3.2.5
539
+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
540
+ echo rs6000-ibm-aix3.2.4
542
+ echo rs6000-ibm-aix3.2
546
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
547
+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
552
+ if [ -x /usr/bin/oslevel ] ; then
553
+ IBM_REV=`/usr/bin/oslevel`
555
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
557
+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
560
+ echo rs6000-ibm-aix
562
+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
563
+ echo romp-ibm-bsd4.4
565
+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
566
+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
567
+ exit ;; # report: romp-ibm BSD 4.3
569
+ echo rs6000-bull-bosx
571
+ DPX/2?00:B.O.S.:*:*)
572
+ echo m68k-bull-sysv3
574
+ 9000/[34]??:4.3bsd:1.*:*)
577
+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
578
+ echo m68k-hp-bsd4.4
580
+ 9000/[34678]??:HP-UX:*:*)
581
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
582
+ case "${UNAME_MACHINE}" in
583
+ 9000/31? ) HP_ARCH=m68000 ;;
584
+ 9000/[34]?? ) HP_ARCH=m68k ;;
585
+ 9000/[678][0-9][0-9])
586
+ if [ -x /usr/bin/getconf ]; then
587
+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
588
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
589
+ case "${sc_cpu_version}" in
590
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
591
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
592
+ 532) # CPU_PA_RISC2_0
593
+ case "${sc_kernel_bits}" in
594
+ 32) HP_ARCH="hppa2.0n" ;;
595
+ 64) HP_ARCH="hppa2.0w" ;;
596
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
600
+ if [ "${HP_ARCH}" = "" ]; then
601
+ eval $set_cc_for_build
602
+ sed 's/^ //' << EOF >$dummy.c
604
+ #define _HPUX_SOURCE
605
+ #include <stdlib.h>
606
+ #include <unistd.h>
610
+ #if defined(_SC_KERNEL_BITS)
611
+ long bits = sysconf(_SC_KERNEL_BITS);
613
+ long cpu = sysconf (_SC_CPU_VERSION);
617
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
618
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
619
+ case CPU_PA_RISC2_0:
620
+ #if defined(_SC_KERNEL_BITS)
623
+ case 64: puts ("hppa2.0w"); break;
624
+ case 32: puts ("hppa2.0n"); break;
625
+ default: puts ("hppa2.0"); break;
627
+ #else /* !defined(_SC_KERNEL_BITS) */
628
+ puts ("hppa2.0"); break;
630
+ default: puts ("hppa1.0"); break;
635
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
636
+ test -z "$HP_ARCH" && HP_ARCH=hppa
639
+ if [ ${HP_ARCH} = "hppa2.0w" ]
641
+ eval $set_cc_for_build
643
+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
644
+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
645
+ # generating 64-bit code. GNU and HP use different nomenclature:
647
+ # $ CC_FOR_BUILD=cc ./config.guess
648
+ # => hppa2.0w-hp-hpux11.23
649
+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
650
+ # => hppa64-hp-hpux11.23
652
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
653
+ grep __LP64__ >/dev/null
660
+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
663
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
664
+ echo ia64-hp-hpux${HPUX_REV}
667
+ eval $set_cc_for_build
668
+ sed 's/^ //' << EOF >$dummy.c
669
+ #include <unistd.h>
673
+ long cpu = sysconf (_SC_CPU_VERSION);
674
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
675
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
676
+ results, however. */
677
+ if (CPU_IS_PA_RISC (cpu))
681
+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
682
+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
683
+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
684
+ default: puts ("hppa-hitachi-hiuxwe2"); break;
687
+ else if (CPU_IS_HP_MC68K (cpu))
688
+ puts ("m68k-hitachi-hiuxwe2");
689
+ else puts ("unknown-hitachi-hiuxwe2");
693
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
694
+ { echo "$SYSTEM_NAME"; exit; }
695
+ echo unknown-hitachi-hiuxwe2
697
+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
698
+ echo hppa1.1-hp-bsd
700
+ 9000/8??:4.3bsd:*:*)
701
+ echo hppa1.0-hp-bsd
703
+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
704
+ echo hppa1.0-hp-mpeix
706
+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
707
+ echo hppa1.1-hp-osf
710
+ echo hppa1.0-hp-osf
713
+ if [ -x /usr/sbin/sysversion ] ; then
714
+ echo ${UNAME_MACHINE}-unknown-osf1mk
716
+ echo ${UNAME_MACHINE}-unknown-osf1
719
+ parisc*:Lites*:*:*)
720
+ echo hppa1.1-hp-lites
722
+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
725
+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
726
+ if getsysinfo -f scalar_acc
727
+ then echo c32-convex-bsd
728
+ else echo c2-convex-bsd
731
+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
732
+ echo c34-convex-bsd
734
+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
735
+ echo c38-convex-bsd
737
+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
741
+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
743
+ CRAY*[A-Z]90:*:*:*)
744
+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
745
+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
746
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
747
+ -e 's/\.[^.]*$/.X/'
750
+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
753
+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
756
+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
759
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
761
+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
762
+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
763
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
764
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
765
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
767
+ 5000:UNIX_System_V:4.*:*)
768
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
769
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
770
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
772
+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
773
+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
776
+ echo sparc-unknown-bsdi${UNAME_RELEASE}
779
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
782
+ case ${UNAME_MACHINE} in
784
+ echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
786
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
788
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
792
+ echo ${UNAME_MACHINE}-pc-cygwin
795
+ echo ${UNAME_MACHINE}-pc-mingw32
798
+ # uname -m includes "-pc" on this system.
799
+ echo ${UNAME_MACHINE}-mingw32
802
+ echo ${UNAME_MACHINE}-pc-pw32
804
+ x86:Interix*:[3456]*)
805
+ echo i586-pc-interix${UNAME_RELEASE}
807
+ EM64T:Interix*:[3456]*)
808
+ echo x86_64-unknown-interix${UNAME_RELEASE}
810
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
811
+ echo i${UNAME_MACHINE}-pc-mks
813
+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
814
+ # How do we know it's Interix rather than the generic POSIX subsystem?
815
+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
816
+ # UNAME_MACHINE based on the output of uname instead of i386?
817
+ echo i586-pc-interix
820
+ echo ${UNAME_MACHINE}-pc-uwin
822
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
823
+ echo x86_64-unknown-cygwin
826
+ echo powerpcle-unknown-cygwin
829
+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
833
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
836
+ # other systems with GNU libc and userland
837
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
840
+ echo ${UNAME_MACHINE}-pc-minix
843
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
846
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
849
+ echo cris-axis-linux-gnu
852
+ echo crisv32-axis-linux-gnu
855
+ echo frv-unknown-linux-gnu
858
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
861
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
864
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
867
+ eval $set_cc_for_build
868
+ sed 's/^ //' << EOF >$dummy.c
872
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
875
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
882
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
887
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
890
+ eval $set_cc_for_build
891
+ sed 's/^ //' << EOF >$dummy.c
895
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
898
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
905
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
910
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
913
+ echo or32-unknown-linux-gnu
916
+ echo powerpc-unknown-linux-gnu
919
+ echo powerpc64-unknown-linux-gnu
922
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
923
+ EV5) UNAME_MACHINE=alphaev5 ;;
924
+ EV56) UNAME_MACHINE=alphaev56 ;;
925
+ PCA56) UNAME_MACHINE=alphapca56 ;;
926
+ PCA57) UNAME_MACHINE=alphapca56 ;;
927
+ EV6) UNAME_MACHINE=alphaev6 ;;
928
+ EV67) UNAME_MACHINE=alphaev67 ;;
929
+ EV68*) UNAME_MACHINE=alphaev68 ;;
931
+ objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
932
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
933
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
935
+ parisc:Linux:*:* | hppa:Linux:*:*)
936
+ # Look for CPU level
937
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
938
+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
939
+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
940
+ *) echo hppa-unknown-linux-gnu ;;
943
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
944
+ echo hppa64-unknown-linux-gnu
946
+ s390:Linux:*:* | s390x:Linux:*:*)
947
+ echo ${UNAME_MACHINE}-ibm-linux
950
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
953
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
955
+ sparc:Linux:*:* | sparc64:Linux:*:*)
956
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
959
+ echo ${UNAME_MACHINE}-dec-linux-gnu
962
+ echo x86_64-unknown-linux-gnu
965
+ # The BFD linker knows what the default object file format is, so
966
+ # first see if it will tell us. cd to the root directory to prevent
967
+ # problems with other programs or directories called `ld' in the path.
968
+ # Set LC_ALL=C to ensure ld outputs messages in English.
969
+ ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
970
+ | sed -ne '/supported targets:/!d
972
+ s/.*supported targets: *//
975
+ case "$ld_supported_targets" in
977
+ TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
980
+ echo "${UNAME_MACHINE}-pc-linux-gnuaout"
983
+ echo "${UNAME_MACHINE}-pc-linux-gnucoff"
986
+ # Either a pre-BFD a.out linker (linux-gnuoldld) or
987
+ # one that does not give us useful --help.
988
+ echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
991
+ # Determine whether the default compiler is a.out or elf
992
+ eval $set_cc_for_build
993
+ sed 's/^ //' << EOF >$dummy.c
994
+ #include <features.h>
997
+ # if __GLIBC__ >= 2
1006
+ #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1012
+ #ifdef __dietlibc__
1016
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1021
+ test x"${LIBC}" != x && {
1022
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1025
+ test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1027
+ i*86:DYNIX/ptx:4*:*)
1028
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1029
+ # earlier versions are messed up and put the nodename in both
1030
+ # sysname and nodename.
1031
+ echo i386-sequent-sysv4
1033
+ i*86:UNIX_SV:4.2MP:2.*)
1034
+ # Unixware is an offshoot of SVR4, but it has its own version
1035
+ # number series starting with 2...
1036
+ # I am not positive that other SVR4 systems won't match this,
1037
+ # I just have to hope. -- rms.
1038
+ # Use sysv4.2uw... so that sysv4* matches it.
1039
+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1042
+ # If we were able to find `uname', then EMX Unix compatibility
1043
+ # is probably installed.
1044
+ echo ${UNAME_MACHINE}-pc-os2-emx
1046
+ i*86:XTS-300:*:STOP)
1047
+ echo ${UNAME_MACHINE}-unknown-stop
1050
+ echo ${UNAME_MACHINE}-unknown-atheos
1052
+ i*86:syllable:*:*)
1053
+ echo ${UNAME_MACHINE}-pc-syllable
1055
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1056
+ echo i386-unknown-lynxos${UNAME_RELEASE}
1059
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
1061
+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1062
+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1063
+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1064
+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1066
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1070
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
1071
+ case `/bin/uname -X | grep "^Machine"` in
1072
+ *486*) UNAME_MACHINE=i486 ;;
1073
+ *Pentium) UNAME_MACHINE=i586 ;;
1074
+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1076
+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1079
+ if test -f /usr/options/cb.name; then
1080
+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1081
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1082
+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
1083
+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1084
+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1085
+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1086
+ && UNAME_MACHINE=i586
1087
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1088
+ && UNAME_MACHINE=i686
1089
+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1090
+ && UNAME_MACHINE=i686
1091
+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1093
+ echo ${UNAME_MACHINE}-pc-sysv32
1097
+ # Left here for compatibility:
1098
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
1099
+ # the processor, so we play safe by assuming i386.
1100
+ echo i386-pc-msdosdjgpp
1103
+ echo i386-pc-mach3
1106
+ echo i860-intel-osf1
1108
+ i860:*:4.*:*) # i860-SVR4
1109
+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1110
+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1111
+ else # Add other i860-SVR4 vendors below as they are discovered.
1112
+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1115
+ mini*:CTIX:SYS*5:*)
1117
+ echo m68010-convergent-sysv
1119
+ mc68k:UNIX:SYSTEM5:3.51m)
1120
+ echo m68k-convergent-sysv
1122
+ M680?0:D-NIX:5.3:*)
1123
+ echo m68k-diab-dnix
1125
+ M68*:*:R3V[5678]*:*)
1126
+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1127
+ 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)
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
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1136
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1137
+ && { echo i486-ncr-sysv4; exit; } ;;
1138
+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1139
+ echo m68k-unknown-lynxos${UNAME_RELEASE}
1141
+ mc68030:UNIX_System_V:4.*:*)
1142
+ echo m68k-atari-sysv4
1144
+ TSUNAMI:LynxOS:2.*:*)
1145
+ echo sparc-unknown-lynxos${UNAME_RELEASE}
1147
+ rs6000:LynxOS:2.*:*)
1148
+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
1150
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1151
+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
1153
+ SM[BE]S:UNIX_SV:*:*)
1154
+ echo mips-dde-sysv${UNAME_RELEASE}
1156
+ RM*:ReliantUNIX-*:*:*)
1157
+ echo mips-sni-sysv4
1160
+ echo mips-sni-sysv4
1163
+ if uname -p 2>/dev/null >/dev/null ; then
1164
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
1165
+ echo ${UNAME_MACHINE}-sni-sysv4
1167
+ echo ns32k-sni-sysv
1170
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1171
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
1172
+ echo i586-unisys-sysv4
1174
+ *:UNIX_System_V:4*:FTX*)
1175
+ # From Gerald Hewes <hewes@openmarket.com>.
1176
+ # How about differentiating between stratus architectures? -djm
1177
+ echo hppa1.1-stratus-sysv4
1180
+ # From seanf@swdc.stratus.com.
1181
+ echo i860-stratus-sysv4
1184
+ # From Paul.Green@stratus.com.
1185
+ echo ${UNAME_MACHINE}-stratus-vos
1188
+ # From Paul.Green@stratus.com.
1189
+ echo hppa1.1-stratus-vos
1192
+ echo m68k-apple-aux${UNAME_RELEASE}
1194
+ news*:NEWS-OS:6*:*)
1195
+ echo mips-sony-newsos6
1197
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1198
+ if [ -d /usr/nec ]; then
1199
+ echo mips-nec-sysv${UNAME_RELEASE}
1201
+ echo mips-unknown-sysv${UNAME_RELEASE}
1204
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1205
+ echo powerpc-be-beos
1207
+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1208
+ echo powerpc-apple-beos
1210
+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
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
+ Power*:Rhapsody:*:*)
1223
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
1226
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1229
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1230
+ case $UNAME_PROCESSOR in
1231
+ unknown) UNAME_PROCESSOR=powerpc ;;
1233
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1235
+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
1236
+ UNAME_PROCESSOR=`uname -p`
1237
+ if test "$UNAME_PROCESSOR" = "x86"; then
1238
+ UNAME_PROCESSOR=i386
1241
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1246
+ NSE-?:NONSTOP_KERNEL:*:*)
1247
+ echo nse-tandem-nsk${UNAME_RELEASE}
1249
+ NSR-?:NONSTOP_KERNEL:*:*)
1250
+ echo nsr-tandem-nsk${UNAME_RELEASE}
1253
+ echo mips-compaq-nonstopux
1255
+ BS2000:POSIX*:*:*)
1256
+ echo bs2000-siemens-sysv
1258
+ DS/*:UNIX_System_V:*:*)
1259
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1262
+ # "uname -m" is not consistent, so use $cputype instead. 386
1263
+ # is converted to i386 for consistency with other x86
1264
+ # operating systems.
1265
+ if test "$cputype" = "386"; then
1266
+ UNAME_MACHINE=i386
1268
+ UNAME_MACHINE="$cputype"
1270
+ echo ${UNAME_MACHINE}-unknown-plan9
1273
+ echo pdp10-unknown-tops10
1276
+ echo pdp10-unknown-tenex
1278
+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1279
+ echo pdp10-dec-tops20
1281
+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1282
+ echo pdp10-xkl-tops20
1285
+ echo pdp10-unknown-tops20
1288
+ echo pdp10-unknown-its
1291
+ echo mips-sei-seiux${UNAME_RELEASE}
1294
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1297
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
1298
+ case "${UNAME_MACHINE}" in
1299
+ A*) echo alpha-dec-vms ; exit ;;
1300
+ I*) echo ia64-dec-vms ; exit ;;
1301
+ V*) echo vax-dec-vms ; exit ;;
1304
+ echo i386-pc-xenix
1307
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1310
+ echo ${UNAME_MACHINE}-pc-rdos
1314
+#echo '(No uname command or uname output not recognized.)' 1>&2
1315
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1317
+eval $set_cc_for_build
1318
+cat >$dummy.c <<EOF
1320
+# include <sys/types.h>
1321
+# include <sys/utsname.h>
1326
+#if defined (MIPSEB)
1327
+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1328
+ I don't know.... */
1329
+ printf ("mips-sony-bsd\n"); exit (0);
1331
+#include <sys/param.h>
1332
+ printf ("m68k-sony-newsos%s\n",
1342
+#if defined (__arm) && defined (__acorn) && defined (__unix)
1343
+ printf ("arm-acorn-riscix\n"); exit (0);
1346
+#if defined (hp300) && !defined (hpux)
1347
+ printf ("m68k-hp-bsd\n"); exit (0);
1351
+#if !defined (__ARCHITECTURE__)
1352
+#define __ARCHITECTURE__ "m68k"
1355
+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1357
+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1359
+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1363
+#if defined (MULTIMAX) || defined (n16)
1364
+#if defined (UMAXV)
1365
+ printf ("ns32k-encore-sysv\n"); exit (0);
1368
+ printf ("ns32k-encore-mach\n"); exit (0);
1370
+ printf ("ns32k-encore-bsd\n"); exit (0);
1375
+#if defined (__386BSD__)
1376
+ printf ("i386-pc-bsd\n"); exit (0);
1379
+#if defined (sequent)
1381
+ printf ("i386-sequent-dynix\n"); exit (0);
1383
+#if defined (ns32000)
1384
+ printf ("ns32k-sequent-dynix\n"); exit (0);
1388
+#if defined (_SEQUENT_)
1389
+ struct utsname un;
1393
+ if (strncmp(un.version, "V2", 2) == 0) {
1394
+ printf ("i386-sequent-ptx2\n"); exit (0);
1396
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1397
+ printf ("i386-sequent-ptx1\n"); exit (0);
1399
+ printf ("i386-sequent-ptx\n"); exit (0);
1404
+# if !defined (ultrix)
1405
+# include <sys/param.h>
1408
+ printf ("vax-dec-bsd4.3\n"); exit (0);
1411
+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
1413
+ printf ("vax-dec-bsd\n"); exit (0);
1417
+ printf ("vax-dec-bsd\n"); exit (0);
1420
+ printf ("vax-dec-ultrix\n"); exit (0);
1424
+#if defined (alliant) && defined (i860)
1425
+ printf ("i860-alliant-bsd\n"); exit (0);
1432
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1433
+ { echo "$SYSTEM_NAME"; exit; }
1435
+# Apollos put the system type in the environment.
1437
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1439
+# Convex versions that predate uname can use getsysinfo(1)
1441
+if [ -x /usr/convex/getsysinfo ]
1443
+ case `getsysinfo -f cpu_type` in
1445
+ echo c1-convex-bsd
1448
+ if getsysinfo -f scalar_acc
1449
+ then echo c32-convex-bsd
1450
+ else echo c2-convex-bsd
1454
+ echo c34-convex-bsd
1457
+ echo c38-convex-bsd
1460
+ echo c4-convex-bsd
1466
+$0: unable to guess system type
1468
+This script, last modified $timestamp, has failed to recognize
1469
+the operating system you are using. It is advised that you
1470
+download the most up to date version of the config scripts from
1472
+ http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1474
+ http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1476
+If the version you run ($0) is already up to date, please
1477
+send the following data and any information you think might be
1478
+pertinent to <config-patches@gnu.org> in order to provide the needed
1479
+information to handle your system.
1481
+config.guess timestamp = $timestamp
1483
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
1484
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
1485
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
1486
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
1488
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1489
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1491
+hostinfo = `(hostinfo) 2>/dev/null`
1492
+/bin/universe = `(/bin/universe) 2>/dev/null`
1493
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1494
+/bin/arch = `(/bin/arch) 2>/dev/null`
1495
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1496
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1498
+UNAME_MACHINE = ${UNAME_MACHINE}
1499
+UNAME_RELEASE = ${UNAME_RELEASE}
1500
+UNAME_SYSTEM = ${UNAME_SYSTEM}
1501
+UNAME_VERSION = ${UNAME_VERSION}
1507
+# eval: (add-hook 'write-file-hooks 'time-stamp)
1508
+# time-stamp-start: "timestamp='"
1509
+# time-stamp-format: "%:y-%02m-%02d"
1510
+# time-stamp-end: "'"
1512
diff -urNad apache2-2.2.3~/config.sub apache2-2.2.3/config.sub
1513
--- apache2-2.2.3~/config.sub 1970-01-01 01:00:00.000000000 +0100
1514
+++ apache2-2.2.3/config.sub 2006-09-27 21:50:35.000000000 +0200
1517
+# Configuration validation subroutine script.
1518
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1519
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
1522
+timestamp='2006-07-02'
1524
+# This file is (in principle) common to ALL GNU software.
1525
+# The presence of a machine in this file suggests that SOME GNU software
1526
+# can handle that machine. It does not imply ALL GNU software can.
1528
+# This file is free software; you can redistribute it and/or modify
1529
+# it under the terms of the GNU General Public License as published by
1530
+# the Free Software Foundation; either version 2 of the License, or
1531
+# (at your option) any later version.
1533
+# This program is distributed in the hope that it will be useful,
1534
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1535
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1536
+# GNU General Public License for more details.
1538
+# You should have received a copy of the GNU General Public License
1539
+# along with this program; if not, write to the Free Software
1540
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
1543
+# As a special exception to the GNU General Public License, if you
1544
+# distribute this file as part of a program that contains a
1545
+# configuration script generated by Autoconf, you may include it under
1546
+# the same distribution terms that you use for the rest of that program.
1549
+# Please send patches to <config-patches@gnu.org>. Submit a context
1550
+# diff and a properly formatted ChangeLog entry.
1552
+# Configuration subroutine to validate and canonicalize a configuration type.
1553
+# Supply the specified configuration type as an argument.
1554
+# If it is invalid, we print an error message on stderr and exit with code 1.
1555
+# Otherwise, we print the canonical config type on stdout and succeed.
1557
+# This file is supposed to be the same for all GNU packages
1558
+# and recognize all the CPU types, system types and aliases
1559
+# that are meaningful with *any* GNU software.
1560
+# Each package is responsible for reporting which valid configurations
1561
+# it does not support. The user should be able to distinguish
1562
+# a failure to support a valid configuration from a meaningless
1565
+# The goal of this file is to map all the various variations of a given
1566
+# machine specification into a single specification in the form:
1567
+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
1568
+# or in some cases, the newer four-part form:
1569
+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
1570
+# It is wrong to echo any other type of specification.
1572
+me=`echo "$0" | sed -e 's,.*/,,'`
1575
+Usage: $0 [OPTION] CPU-MFR-OPSYS
1578
+Canonicalize a configuration name.
1581
+ -h, --help print this help, then exit
1582
+ -t, --time-stamp print date of last modification, then exit
1583
+ -v, --version print version number, then exit
1585
+Report bugs and patches to <config-patches@gnu.org>."
1588
+GNU config.sub ($timestamp)
1590
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1591
+Free Software Foundation, Inc.
1593
+This is free software; see the source for copying conditions. There is NO
1594
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1597
+Try \`$me --help' for more information."
1599
+# Parse command line
1600
+while test $# -gt 0 ; do
1602
+ --time-stamp | --time* | -t )
1603
+ echo "$timestamp" ; exit ;;
1605
+ echo "$version" ; exit ;;
1606
+ --help | --h* | -h )
1607
+ echo "$usage"; exit ;;
1608
+ -- ) # Stop option processing
1610
+ - ) # Use stdin as input.
1613
+ echo "$me: invalid option $1$help"
1617
+ # First pass through any local machine types.
1627
+ 0) echo "$me: missing argument$help" >&2
1630
+ *) echo "$me: too many arguments$help" >&2
1634
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
1635
+# Here we must recognize all the valid KERNEL-OS combinations.
1636
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
1638
+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
1639
+ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
1640
+ storm-chaos* | os2-emx* | rtmk-nova*)
1642
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
1645
+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
1646
+ if [ $basic_machine != $1 ]
1647
+ then os=`echo $1 | sed 's/.*-/-/'`
1652
+### Let's recognize common machines as not being operating systems so
1653
+### that things like config.sub decstation-3100 work. We also
1654
+### recognize some manufacturers as not being operating systems, so we
1655
+### can provide default operating systems below.
1658
+ # Prevent following clause from handling this invalid input.
1660
+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
1661
+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
1662
+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
1663
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
1664
+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
1665
+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
1666
+ -apple | -axis | -knuth | -cray)
1670
+ -sim | -cisco | -oki | -wec | -winbond)
1693
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1697
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1701
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1704
+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1705
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1708
+ # Don't forget version if it is 3.2v4 or newer.
1709
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1712
+ # Don't forget version if it is 3.2v4 or newer.
1713
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1717
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1720
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1724
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1727
+ basic_machine=clipper-intergraph
1730
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1736
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
1739
+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
1744
+ -mint | -mint[0-9]*)
1745
+ basic_machine=m68k-atari
1750
+# Decode aliases for certain CPU-COMPANY combinations.
1751
+case $basic_machine in
1752
+ # Recognize the basic CPU types without company name.
1753
+ # Some are omitted here because they have special meanings below.
1756
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
1757
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
1759
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
1762
+ | d10v | d30v | dlx | dsp16xx \
1764
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1765
+ | i370 | i860 | i960 | ia64 \
1767
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
1768
+ | maxq | mb | microblaze | mcore \
1769
+ | mips | mipsbe | mipseb | mipsel | mipsle \
1771
+ | mips64 | mips64el \
1772
+ | mips64vr | mips64vrel \
1773
+ | mips64orion | mips64orionel \
1774
+ | mips64vr4100 | mips64vr4100el \
1775
+ | mips64vr4300 | mips64vr4300el \
1776
+ | mips64vr5000 | mips64vr5000el \
1777
+ | mips64vr5900 | mips64vr5900el \
1778
+ | mipsisa32 | mipsisa32el \
1779
+ | mipsisa32r2 | mipsisa32r2el \
1780
+ | mipsisa64 | mipsisa64el \
1781
+ | mipsisa64r2 | mipsisa64r2el \
1782
+ | mipsisa64sb1 | mipsisa64sb1el \
1783
+ | mipsisa64sr71k | mipsisa64sr71kel \
1784
+ | mipstx39 | mipstx39el \
1785
+ | mn10200 | mn10300 \
1791
+ | pdp10 | pdp11 | pj | pjl \
1792
+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
1794
+ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
1796
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
1797
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
1798
+ | spu | strongarm \
1799
+ | tahoe | thumb | tic4x | tic80 | tron \
1802
+ | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
1804
+ basic_machine=$basic_machine-unknown
1806
+ m6811 | m68hc11 | m6812 | m68hc12)
1807
+ # Motorola 68HC11/12.
1808
+ basic_machine=$basic_machine-unknown
1811
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
1814
+ basic_machine=mt-unknown
1817
+ # We use `pc' rather than `unknown'
1818
+ # because (1) that's what they normally are, and
1819
+ # (2) the word "unknown" tends to confuse beginning users.
1821
+ basic_machine=$basic_machine-pc
1823
+ # Object if more than one company name word.
1825
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1828
+ # Recognize the basic CPU types with company name.
1831
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
1832
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
1833
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
1834
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
1835
+ | avr-* | avr32-* \
1836
+ | bfin-* | bs2000-* \
1837
+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
1838
+ | clipper-* | craynv-* | cydra-* \
1839
+ | d10v-* | d30v-* | dlx-* \
1841
+ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
1842
+ | h8300-* | h8500-* \
1843
+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
1844
+ | i*86-* | i860-* | i960-* | ia64-* \
1845
+ | ip2k-* | iq2000-* \
1846
+ | m32c-* | m32r-* | m32rle-* \
1847
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
1848
+ | m88110-* | m88k-* | maxq-* | mcore-* \
1849
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
1851
+ | mips64-* | mips64el-* \
1852
+ | mips64vr-* | mips64vrel-* \
1853
+ | mips64orion-* | mips64orionel-* \
1854
+ | mips64vr4100-* | mips64vr4100el-* \
1855
+ | mips64vr4300-* | mips64vr4300el-* \
1856
+ | mips64vr5000-* | mips64vr5000el-* \
1857
+ | mips64vr5900-* | mips64vr5900el-* \
1858
+ | mipsisa32-* | mipsisa32el-* \
1859
+ | mipsisa32r2-* | mipsisa32r2el-* \
1860
+ | mipsisa64-* | mipsisa64el-* \
1861
+ | mipsisa64r2-* | mipsisa64r2el-* \
1862
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
1863
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
1864
+ | mipstx39-* | mipstx39el-* \
1868
+ | nios-* | nios2-* \
1869
+ | none-* | np1-* | ns16k-* | ns32k-* \
1871
+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
1872
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
1874
+ | romp-* | rs6000-* \
1875
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
1876
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
1877
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
1879
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
1880
+ | tahoe-* | thumb-* \
1881
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
1883
+ | v850-* | v850e-* | vax-* \
1885
+ | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
1886
+ | xstormy16-* | xtensa-* \
1890
+ # Recognize the various machine names and aliases which stand
1891
+ # for a CPU type and a company and sometimes even an OS.
1893
+ basic_machine=i386-unknown
1896
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
1897
+ basic_machine=m68000-att
1900
+ basic_machine=we32k-att
1903
+ basic_machine=a29k-amd
1907
+ basic_machine=abacus-unknown
1910
+ basic_machine=m68010-adobe
1914
+ basic_machine=fx80-alliant
1916
+ altos | altos3068)
1917
+ basic_machine=m68k-altos
1920
+ basic_machine=a29k-none
1924
+ basic_machine=x86_64-pc
1927
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
1930
+ basic_machine=580-amdahl
1934
+ basic_machine=m68k-unknown
1936
+ amigaos | amigados)
1937
+ basic_machine=m68k-unknown
1941
+ basic_machine=m68k-unknown
1945
+ basic_machine=m68k-apollo
1949
+ basic_machine=m68k-apollo
1953
+ basic_machine=m68k-apple
1957
+ basic_machine=ns32k-sequent
1961
+ basic_machine=c90-cray
1965
+ basic_machine=c1-convex
1969
+ basic_machine=c2-convex
1973
+ basic_machine=c32-convex
1977
+ basic_machine=c34-convex
1981
+ basic_machine=c38-convex
1985
+ basic_machine=j90-cray
1989
+ basic_machine=craynv-cray
1993
+ basic_machine=cr16c-unknown
1997
+ basic_machine=m68k-crds
1999
+ crisv32 | crisv32-* | etraxfs*)
2000
+ basic_machine=crisv32-axis
2002
+ cris | cris-* | etrax*)
2003
+ basic_machine=cris-axis
2006
+ basic_machine=crx-unknown
2010
+ basic_machine=m68k-da30
2012
+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
2013
+ basic_machine=mips-dec
2015
+ decsystem10* | dec10*)
2016
+ basic_machine=pdp10-dec
2019
+ decsystem20* | dec20*)
2020
+ basic_machine=pdp10-dec
2023
+ delta | 3300 | motorola-3300 | motorola-delta \
2024
+ | 3300-motorola | delta-motorola)
2025
+ basic_machine=m68k-motorola
2028
+ basic_machine=m88k-motorola
2032
+ basic_machine=i586-pc
2036
+ basic_machine=rs6000-bull
2039
+ dpx2* | dpx2*-bull)
2040
+ basic_machine=m68k-bull
2044
+ basic_machine=a29k-amd
2048
+ basic_machine=elxsi-elxsi
2051
+ encore | umax | mmax)
2052
+ basic_machine=ns32k-encore
2054
+ es1800 | OSE68k | ose68k | ose | OSE)
2055
+ basic_machine=m68k-ericsson
2059
+ basic_machine=i860-alliant
2062
+ basic_machine=ns32k-ns
2065
+ basic_machine=tron-gmicro
2069
+ basic_machine=i386-pc
2073
+ basic_machine=hppa1.1-hitachi
2077
+ basic_machine=h8300-hitachi
2081
+ basic_machine=h8300-hitachi
2085
+ basic_machine=h8500-hitachi
2089
+ basic_machine=m88k-harris
2093
+ basic_machine=m68k-hp
2096
+ basic_machine=m68k-hp
2100
+ basic_machine=m68k-hp
2103
+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
2104
+ basic_machine=hppa1.0-hp
2106
+ hp9k2[0-9][0-9] | hp9k31[0-9])
2107
+ basic_machine=m68000-hp
2110
+ basic_machine=m68k-hp
2112
+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
2113
+ basic_machine=hppa1.0-hp
2115
+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
2116
+ basic_machine=hppa1.1-hp
2118
+ hp9k78[0-9] | hp78[0-9])
2119
+ # FIXME: really hppa2.0-hp
2120
+ basic_machine=hppa1.1-hp
2122
+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
2123
+ # FIXME: really hppa2.0-hp
2124
+ basic_machine=hppa1.1-hp
2126
+ hp9k8[0-9][13679] | hp8[0-9][13679])
2127
+ basic_machine=hppa1.1-hp
2129
+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
2130
+ basic_machine=hppa1.0-hp
2136
+ basic_machine=hppa1.1-hp
2140
+ basic_machine=hppa1.1-hp
2144
+ basic_machine=i370-ibm
2146
+# I'm not sure what "Sysv32" means. Should this be sysv3.2?
2148
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2152
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2156
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2160
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2164
+ basic_machine=i386-mach
2168
+ basic_machine=i386-unknown
2172
+ basic_machine=mips-sgi
2182
+ basic_machine=m68k-isi
2186
+ basic_machine=m88k-omron
2189
+ basic_machine=mips-mips
2193
+ basic_machine=ns32k-utek
2197
+ basic_machine=i386-pc
2201
+ basic_machine=m68000-convergent
2203
+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
2204
+ basic_machine=m68k-atari
2208
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
2211
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
2214
+ basic_machine=m68k-rom68k
2218
+ basic_machine=powerpc-unknown
2222
+ basic_machine=i386-pc
2226
+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
2229
+ basic_machine=i370-ibm
2233
+ basic_machine=i486-ncr
2237
+ basic_machine=i386-unknown
2241
+ basic_machine=armv4l-rebel
2244
+ news | news700 | news800 | news900)
2245
+ basic_machine=m68k-sony
2249
+ basic_machine=m68030-sony
2252
+ news-3600 | risc-news)
2253
+ basic_machine=mips-sony
2257
+ basic_machine=v70-nec
2261
+ basic_machine=m68k-next
2274
+ basic_machine=m68k-harris
2278
+ basic_machine=m88k-harris
2282
+ basic_machine=i960-intel
2286
+ basic_machine=i960-intel
2290
+ basic_machine=mips-compaq
2294
+ basic_machine=np1-gould
2297
+ basic_machine=nsr-tandem
2299
+ op50n-* | op60c-*)
2300
+ basic_machine=hppa1.1-oki
2303
+ openrisc | openrisc-*)
2304
+ basic_machine=or32-unknown
2307
+ basic_machine=powerpc-ibm
2310
+ OSE68000 | ose68000)
2311
+ basic_machine=m68000-ericsson
2315
+ basic_machine=m68k-none
2319
+ basic_machine=hppa1.1-hitachi
2323
+ basic_machine=i860-intel
2327
+ basic_machine=sparc-tti
2330
+ basic_machine=m68k-tti
2333
+ basic_machine=ns32k-pc532
2336
+ basic_machine=i386-pc
2339
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
2341
+ pentium | p5 | k5 | k6 | nexgen | viac3)
2342
+ basic_machine=i586-pc
2344
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
2345
+ basic_machine=i686-pc
2347
+ pentiumii | pentium2 | pentiumiii | pentium3)
2348
+ basic_machine=i686-pc
2351
+ basic_machine=i786-pc
2353
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
2354
+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
2356
+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
2357
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2359
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
2360
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2363
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
2366
+ basic_machine=pn-gould
2368
+ power) basic_machine=power-ibm
2370
+ ppc) basic_machine=powerpc-unknown
2372
+ ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
2374
+ ppcle | powerpclittle | ppc-le | powerpc-little)
2375
+ basic_machine=powerpcle-unknown
2377
+ ppcle-* | powerpclittle-*)
2378
+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
2380
+ ppc64) basic_machine=powerpc64-unknown
2382
+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
2384
+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
2385
+ basic_machine=powerpc64le-unknown
2387
+ ppc64le-* | powerpc64little-*)
2388
+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
2391
+ basic_machine=i386-ibm
2394
+ basic_machine=i586-unknown
2398
+ basic_machine=i386-pc
2402
+ basic_machine=m68k-rom68k
2406
+ basic_machine=mips-siemens
2409
+ basic_machine=romp-ibm
2412
+ basic_machine=s390-ibm
2415
+ basic_machine=s390x-ibm
2418
+ basic_machine=a29k-amd
2422
+ basic_machine=mipsisa64sb1-unknown
2425
+ basic_machine=mipsisa64sb1el-unknown
2428
+ basic_machine=mips-sei
2432
+ basic_machine=i386-sequent
2435
+ basic_machine=sh-hitachi
2439
+ basic_machine=sh64-unknown
2441
+ sparclite-wrs | simso-wrs)
2442
+ basic_machine=sparclite-wrs
2446
+ basic_machine=m68k-bull
2450
+ basic_machine=spur-unknown
2453
+ basic_machine=m68k-tandem
2456
+ basic_machine=i860-stratus
2460
+ basic_machine=m68000-sun
2463
+ basic_machine=m68000-sun
2467
+ basic_machine=m68000-sun
2471
+ basic_machine=m68k-sun
2475
+ basic_machine=m68k-sun
2479
+ basic_machine=sparc-sun
2483
+ basic_machine=sparc-sun
2487
+ basic_machine=sparc-sun
2491
+ basic_machine=m68k-sun
2494
+ basic_machine=sparc-sun
2496
+ sun386 | sun386i | roadrunner)
2497
+ basic_machine=i386-sun
2500
+ basic_machine=sv1-cray
2504
+ basic_machine=i386-sequent
2508
+ basic_machine=alphaev5-cray
2512
+ basic_machine=t90-cray
2516
+ basic_machine=tic54x-unknown
2520
+ basic_machine=tic55x-unknown
2524
+ basic_machine=tic6x-unknown
2528
+ basic_machine=mipstx39-unknown
2531
+ basic_machine=mipstx39el-unknown
2534
+ basic_machine=pdp10-xkl
2538
+ basic_machine=m68k-ncr
2541
+ basic_machine=s390x-ibm
2545
+ basic_machine=a29k-amd
2549
+ basic_machine=a29k-nyu
2553
+ basic_machine=v810-nec
2557
+ basic_machine=vax-dec
2561
+ basic_machine=vax-dec
2565
+ basic_machine=f301-fujitsu
2568
+ basic_machine=i960-wrs
2572
+ basic_machine=m68k-wrs
2576
+ basic_machine=a29k-wrs
2580
+ basic_machine=w65-wdc
2584
+ basic_machine=hppa1.1-winbond
2588
+ basic_machine=i686-pc
2592
+ basic_machine=xps100-honeywell
2595
+ basic_machine=ymp-cray
2599
+ basic_machine=z8k-unknown
2603
+ basic_machine=none-none
2607
+# Here we handle the default manufacturer of certain CPU types. It is in
2608
+# some cases the only manufacturer, in others, it is the most popular.
2610
+ basic_machine=hppa1.1-winbond
2613
+ basic_machine=hppa1.1-oki
2616
+ basic_machine=hppa1.1-oki
2619
+ basic_machine=romp-ibm
2622
+ basic_machine=mmix-knuth
2625
+ basic_machine=rs6000-ibm
2628
+ basic_machine=vax-dec
2631
+ # there are many clones, so DEC is not a safe bet
2632
+ basic_machine=pdp10-unknown
2635
+ basic_machine=pdp11-dec
2638
+ basic_machine=we32k-att
2640
+ sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
2641
+ basic_machine=sh-unknown
2643
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
2644
+ basic_machine=sparc-sun
2647
+ basic_machine=cydra-cydrome
2650
+ basic_machine=orion-highlevel
2653
+ basic_machine=clipper-highlevel
2655
+ mac | mpw | mac-mpw)
2656
+ basic_machine=m68k-apple
2659
+ basic_machine=powerpc-apple
2662
+ # Make sure to match an already-canonicalized machine name.
2665
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
2670
+# Here we canonicalize certain aliases for manufacturers.
2671
+case $basic_machine in
2673
+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
2676
+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
2682
+# Decode manufacturer-specific aliases for certain operating systems.
2684
+if [ x"$os" != x"" ]
2687
+ # First match some system type aliases
2688
+ # that might get confused with valid system types.
2689
+ # -solaris* is a basic system type, with this one exception.
2690
+ -solaris1 | -solaris1.*)
2691
+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
2703
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
2705
+ # First accept the basic system types.
2706
+ # The portable systems comes first.
2707
+ # Each alternative MUST END IN A *, to match a version number.
2708
+ # -sysv* is not here because it comes later, after sysvr4.
2709
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
2710
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
2711
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
2712
+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
2714
+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
2715
+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
2716
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
2717
+ | -openbsd* | -solidbsd* \
2718
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
2719
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
2720
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
2721
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
2722
+ | -chorusos* | -chorusrdb* \
2723
+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
2724
+ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
2725
+ | -uxpv* | -beos* | -mpeix* | -udk* \
2726
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
2727
+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
2728
+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
2729
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
2730
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
2731
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
2732
+ | -skyos* | -haiku* | -rdos* | -toppers*)
2733
+ # Remember, each alternative MUST END IN *, to match a version number.
2736
+ case $basic_machine in
2747
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
2749
+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
2750
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
2751
+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
2754
+ os=`echo $os | sed -e 's|mac|macos|'`
2757
+ os=-linux-dietlibc
2760
+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
2763
+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
2766
+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
2813
+ # Preserve the version number of sinix5.
2815
+ os=`echo $os | sed -e 's|sinix|sysv|'`
2838
+ # This must come after -sysvr4.
2850
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
2865
+ # Get rid of the `-' at the beginning of $os.
2866
+ os=`echo $os | sed 's/[^-]*-//'`
2867
+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
2873
+# Here we handle the default operating systems that come with various machines.
2874
+# The value should be what the vendor currently ships out the door with their
2875
+# machine or put another way, the most popular os provided with the machine.
2877
+# Note that if you're going to try to match "-MANUFACTURER" here (say,
2878
+# "-sun"), then you have to tell the case statement up towards the top
2879
+# that MANUFACTURER isn't an operating system. Otherwise, code above
2880
+# will signal an error saying that MANUFACTURER isn't an operating
2881
+# system, and we'll never get to this point.
2883
+case $basic_machine in
2899
+ # This must come before the *-dec entry.
2917
+ # This also exists in the configure program, but was not the
2933
+ *-tti) # must be before sparc entry or we get the wrong os.
2966
+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
3020
+ f30[01]-fujitsu | f700-fujitsu)
3041
+# Here we handle the case where we know the os, and the CPU type, but not the
3042
+# manufacturer. We pick the logical manufacturer.
3044
+case $basic_machine in
3092
+ -vxsim* | -vxworks* | -windiss*)
3104
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
3111
+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
3115
+echo $basic_machine$os
3119
+# eval: (add-hook 'write-file-hooks 'time-stamp)
3120
+# time-stamp-start: "timestamp='"
3121
+# time-stamp-format: "%:y-%02m-%02d"
3122
+# time-stamp-end: "'"