source: scripts/untested/blfs-patches/libpaper-1.1.14-0.4-config_fix-1.patch@ 1c379e4

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1c379e4 was fd5b1fe, checked in by Jim Gifford <clfs@…>, 19 years ago

r588@server (orig r586): ryan | 2005-08-05 22:47:43 -0700
Add pile of new patches for blfs packages



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