Merge lp:~ubuntu-branches/ubuntu/oneiric/nagios-plugins/oneiric-201109071712 into lp:ubuntu/oneiric/nagios-plugins

Proposed by Ubuntu Package Importer
Status: Needs review
Proposed branch: lp:~ubuntu-branches/ubuntu/oneiric/nagios-plugins/oneiric-201109071712
Merge into: lp:ubuntu/oneiric/nagios-plugins
Diff against target: 3158 lines (+18/-3116) (has conflicts)
3 files modified
build-aux/config.guess (+0/-1500)
build-aux/config.sub (+0/-1616)
debian/patches/90_hardened_build_fixes.dpatch (+18/-0)
Conflict adding file debian/patches/90_hardened_build_fixes.dpatch.  Moved existing file to debian/patches/90_hardened_build_fixes.dpatch.moved.
To merge this branch: bzr merge lp:~ubuntu-branches/ubuntu/oneiric/nagios-plugins/oneiric-201109071712
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+74482@code.launchpad.net

Description of the change

The package importer has detected a possible inconsistency between the package history in the archve and the history in bzr. As the archive is authoritative the importer has made lp:ubuntu/oneiric/nagios-plugins reflect what is in the archive and the old bzr branch has been pushed to lp:~ubuntu-branches/ubuntu/oneiric/nagios-plugins/oneiric-201109071712. This merge proposal was created so that an Ubuntu developer can review the situations and perform a merge/upload if necessary. There are three typical cases where this can happen.
  1. Where someone pushes a change to bzr and someone else uploads the package without that change. This is the reason that this check is done by the importer. If this appears to be the case then a merge/upload should be done if the changes that were in bzr are still desirable.
  2. The importer incorrectly detected the above situation when someone made a change in bzr and then uploaded it.
  3. The importer incorrectly detected the above situation when someone just uploaded a package and didn't touch bzr.

If this case doesn't appear to be the first situation then set the status of the merge proposal to "Rejected" and help avoid the problem in future by filing a bug at https://bugs.launchpad.net/udd linking to this merge proposal.

(this is an automatically generated message)

To post a comment you must log in.

Unmerged revisions

43. By Kees Cook

releasing version 1.4.15-4ubuntu2

42. By Kees Cook

re-enable hardened builds (LP: #837085)

41. By Scott Moser

* Merge from debian unstable (LP: #789347). Remaining changes:
  - debian/control: keep on building with libradius1-dev to avoid pushing radiusclient-ng
    to main.
  - Don't depend on nagios-plugins-extra, we dont need qstat and fping in main.
  - debian/{control,rules}: add an enable hardened build for PIE.
    (Debian bug 542728).
  - Build with libmysqlclient-dev only.
  - debian/pluginconfig/nt.cfg: Fix syntax error.
* Add 13_check_smtp_greeting.dpatch (Closes: #611914), thanks Daniel Piddock
  for spotting and Holger Weiss for providing a fix
  - Abort immediately if we don't receive a server greeting or if the
    greeting doesn't contain the "--expect"ed string (by default: "220")
    instead of blindly sending the EHLO/HELO line.
* Add 14_check_icmp_multiple_ips.dpatch (Closes: #623702), thanks Max Kosmach
  for spotting and Sebastian Harl for providing a fix
  - When specifying a host-name on the command line, each of its IPs is added
    to the host table (and each one is pinged). So, the buffer has to be large
    enough to hold all of the respective host objects. (argc - 1) only fits
    hosts with a single IP.
* Move libraries linked at compile time against checks of
  nagios-plugins-standard from Depends to Recommends (Closes: #569028)
  - Add slightly modified bin/gen_plugin_deps.pl from collectd source package
  - Add linked libraries via bin/gen_plugin_deps.pl into
    /usr/share/doc/nagios-plugins-standard/README.Debian.plugins
  - Build-Depend on perl
  - Create customized substvars for nagios-plugins-standard via
    dpkg-shlibdeps in debian/rules
  - Remove temporary files via clean target in debian/rules
  - Add hint to NEWS.Debian

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: