Chris@0
|
1 #! /bin/sh
|
Chris@0
|
2 # Attempt to guess a canonical system name.
|
Chris@0
|
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
Chris@0
|
4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
Chris@0
|
5
|
Chris@0
|
6 timestamp='2004-01-05'
|
Chris@0
|
7
|
Chris@0
|
8 # This file is free software; you can redistribute it and/or modify it
|
Chris@0
|
9 # under the terms of the GNU General Public License as published by
|
Chris@0
|
10 # the Free Software Foundation; either version 2 of the License, or
|
Chris@0
|
11 # (at your option) any later version.
|
Chris@0
|
12 #
|
Chris@0
|
13 # This program is distributed in the hope that it will be useful, but
|
Chris@0
|
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
|
Chris@0
|
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
Chris@0
|
16 # General Public License for more details.
|
Chris@0
|
17 #
|
Chris@0
|
18 # You should have received a copy of the GNU General Public License
|
Chris@0
|
19 # along with this program; if not, write to the Free Software
|
Chris@0
|
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Chris@0
|
21 #
|
Chris@0
|
22 # As a special exception to the GNU General Public License, if you
|
Chris@0
|
23 # distribute this file as part of a program that contains a
|
Chris@0
|
24 # configuration script generated by Autoconf, you may include it under
|
Chris@0
|
25 # the same distribution terms that you use for the rest of that program.
|
Chris@0
|
26
|
Chris@0
|
27 # Originally written by Per Bothner <per@bothner.com>.
|
Chris@0
|
28 # Please send patches to <config-patches@gnu.org>. Submit a context
|
Chris@0
|
29 # diff and a properly formatted ChangeLog entry.
|
Chris@0
|
30 #
|
Chris@0
|
31 # This script attempts to guess a canonical system name similar to
|
Chris@0
|
32 # config.sub. If it succeeds, it prints the system name on stdout, and
|
Chris@0
|
33 # exits with 0. Otherwise, it exits with 1.
|
Chris@0
|
34 #
|
Chris@0
|
35 # The plan is that this can be called by configure scripts if you
|
Chris@0
|
36 # don't specify an explicit build system type.
|
Chris@0
|
37
|
Chris@0
|
38 me=`echo "$0" | sed -e 's,.*/,,'`
|
Chris@0
|
39
|
Chris@0
|
40 usage="\
|
Chris@0
|
41 Usage: $0 [OPTION]
|
Chris@0
|
42
|
Chris@0
|
43 Output the configuration name of the system \`$me' is run on.
|
Chris@0
|
44
|
Chris@0
|
45 Operation modes:
|
Chris@0
|
46 -h, --help print this help, then exit
|
Chris@0
|
47 -t, --time-stamp print date of last modification, then exit
|
Chris@0
|
48 -v, --version print version number, then exit
|
Chris@0
|
49
|
Chris@0
|
50 Report bugs and patches to <config-patches@gnu.org>."
|
Chris@0
|
51
|
Chris@0
|
52 version="\
|
Chris@0
|
53 GNU config.guess ($timestamp)
|
Chris@0
|
54
|
Chris@0
|
55 Originally written by Per Bothner.
|
Chris@0
|
56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
Chris@0
|
57 Free Software Foundation, Inc.
|
Chris@0
|
58
|
Chris@0
|
59 This is free software; see the source for copying conditions. There is NO
|
Chris@0
|
60 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
Chris@0
|
61
|
Chris@0
|
62 help="
|
Chris@0
|
63 Try \`$me --help' for more information."
|
Chris@0
|
64
|
Chris@0
|
65 # Parse command line
|
Chris@0
|
66 while test $# -gt 0 ; do
|
Chris@0
|
67 case $1 in
|
Chris@0
|
68 --time-stamp | --time* | -t )
|
Chris@0
|
69 echo "$timestamp" ; exit 0 ;;
|
Chris@0
|
70 --version | -v )
|
Chris@0
|
71 echo "$version" ; exit 0 ;;
|
Chris@0
|
72 --help | --h* | -h )
|
Chris@0
|
73 echo "$usage"; exit 0 ;;
|
Chris@0
|
74 -- ) # Stop option processing
|
Chris@0
|
75 shift; break ;;
|
Chris@0
|
76 - ) # Use stdin as input.
|
Chris@0
|
77 break ;;
|
Chris@0
|
78 -* )
|
Chris@0
|
79 echo "$me: invalid option $1$help" >&2
|
Chris@0
|
80 exit 1 ;;
|
Chris@0
|
81 * )
|
Chris@0
|
82 break ;;
|
Chris@0
|
83 esac
|
Chris@0
|
84 done
|
Chris@0
|
85
|
Chris@0
|
86 if test $# != 0; then
|
Chris@0
|
87 echo "$me: too many arguments$help" >&2
|
Chris@0
|
88 exit 1
|
Chris@0
|
89 fi
|
Chris@0
|
90
|
Chris@0
|
91 trap 'exit 1' 1 2 15
|
Chris@0
|
92
|
Chris@0
|
93 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
|
Chris@0
|
94 # compiler to aid in system detection is discouraged as it requires
|
Chris@0
|
95 # temporary files to be created and, as you can see below, it is a
|
Chris@0
|
96 # headache to deal with in a portable fashion.
|
Chris@0
|
97
|
Chris@0
|
98 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
|
Chris@0
|
99 # use `HOST_CC' if defined, but it is deprecated.
|
Chris@0
|
100
|
Chris@0
|
101 # Portable tmp directory creation inspired by the Autoconf team.
|
Chris@0
|
102
|
Chris@0
|
103 set_cc_for_build='
|
Chris@0
|
104 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
|
Chris@0
|
105 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
|
Chris@0
|
106 : ${TMPDIR=/tmp} ;
|
Chris@0
|
107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
|
Chris@0
|
108 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
|
Chris@0
|
109 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
|
Chris@0
|
110 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
|
Chris@0
|
111 dummy=$tmp/dummy ;
|
Chris@0
|
112 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
|
Chris@0
|
113 case $CC_FOR_BUILD,$HOST_CC,$CC in
|
Chris@0
|
114 ,,) echo "int x;" > $dummy.c ;
|
Chris@0
|
115 for c in cc gcc c89 c99 ; do
|
Chris@0
|
116 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
|
Chris@0
|
117 CC_FOR_BUILD="$c"; break ;
|
Chris@0
|
118 fi ;
|
Chris@0
|
119 done ;
|
Chris@0
|
120 if test x"$CC_FOR_BUILD" = x ; then
|
Chris@0
|
121 CC_FOR_BUILD=no_compiler_found ;
|
Chris@0
|
122 fi
|
Chris@0
|
123 ;;
|
Chris@0
|
124 ,,*) CC_FOR_BUILD=$CC ;;
|
Chris@0
|
125 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
|
Chris@0
|
126 esac ;'
|
Chris@0
|
127
|
Chris@0
|
128 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
|
Chris@0
|
129 # (ghazi@noc.rutgers.edu 1994-08-24)
|
Chris@0
|
130 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
|
Chris@0
|
131 PATH=$PATH:/.attbin ; export PATH
|
Chris@0
|
132 fi
|
Chris@0
|
133
|
Chris@0
|
134 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
|
Chris@0
|
135 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
|
Chris@0
|
136 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
Chris@0
|
137 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
Chris@0
|
138
|
Chris@0
|
139 # Note: order is significant - the case branches are not exclusive.
|
Chris@0
|
140
|
Chris@0
|
141 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
Chris@0
|
142 *:NetBSD:*:*)
|
Chris@0
|
143 # NetBSD (nbsd) targets should (where applicable) match one or
|
Chris@0
|
144 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
|
Chris@0
|
145 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
|
Chris@0
|
146 # switched to ELF, *-*-netbsd* would select the old
|
Chris@0
|
147 # object file format. This provides both forward
|
Chris@0
|
148 # compatibility and a consistent mechanism for selecting the
|
Chris@0
|
149 # object file format.
|
Chris@0
|
150 #
|
Chris@0
|
151 # Note: NetBSD doesn't particularly care about the vendor
|
Chris@0
|
152 # portion of the name. We always set it to "unknown".
|
Chris@0
|
153 sysctl="sysctl -n hw.machine_arch"
|
Chris@0
|
154 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
|
Chris@0
|
155 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
|
Chris@0
|
156 case "${UNAME_MACHINE_ARCH}" in
|
Chris@0
|
157 armeb) machine=armeb-unknown ;;
|
Chris@0
|
158 arm*) machine=arm-unknown ;;
|
Chris@0
|
159 sh3el) machine=shl-unknown ;;
|
Chris@0
|
160 sh3eb) machine=sh-unknown ;;
|
Chris@0
|
161 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
|
Chris@0
|
162 esac
|
Chris@0
|
163 # The Operating System including object format, if it has switched
|
Chris@0
|
164 # to ELF recently, or will in the future.
|
Chris@0
|
165 case "${UNAME_MACHINE_ARCH}" in
|
Chris@0
|
166 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
Chris@0
|
167 eval $set_cc_for_build
|
Chris@0
|
168 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
Chris@0
|
169 | grep __ELF__ >/dev/null
|
Chris@0
|
170 then
|
Chris@0
|
171 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
|
Chris@0
|
172 # Return netbsd for either. FIX?
|
Chris@0
|
173 os=netbsd
|
Chris@0
|
174 else
|
Chris@0
|
175 os=netbsdelf
|
Chris@0
|
176 fi
|
Chris@0
|
177 ;;
|
Chris@0
|
178 *)
|
Chris@0
|
179 os=netbsd
|
Chris@0
|
180 ;;
|
Chris@0
|
181 esac
|
Chris@0
|
182 # The OS release
|
Chris@0
|
183 # Debian GNU/NetBSD machines have a different userland, and
|
Chris@0
|
184 # thus, need a distinct triplet. However, they do not need
|
Chris@0
|
185 # kernel version information, so it can be replaced with a
|
Chris@0
|
186 # suitable tag, in the style of linux-gnu.
|
Chris@0
|
187 case "${UNAME_VERSION}" in
|
Chris@0
|
188 Debian*)
|
Chris@0
|
189 release='-gnu'
|
Chris@0
|
190 ;;
|
Chris@0
|
191 *)
|
Chris@0
|
192 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
Chris@0
|
193 ;;
|
Chris@0
|
194 esac
|
Chris@0
|
195 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
|
Chris@0
|
196 # contains redundant information, the shorter form:
|
Chris@0
|
197 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
Chris@0
|
198 echo "${machine}-${os}${release}"
|
Chris@0
|
199 exit 0 ;;
|
Chris@0
|
200 amiga:OpenBSD:*:*)
|
Chris@0
|
201 echo m68k-unknown-openbsd${UNAME_RELEASE}
|
Chris@0
|
202 exit 0 ;;
|
Chris@0
|
203 arc:OpenBSD:*:*)
|
Chris@0
|
204 echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
Chris@0
|
205 exit 0 ;;
|
Chris@0
|
206 hp300:OpenBSD:*:*)
|
Chris@0
|
207 echo m68k-unknown-openbsd${UNAME_RELEASE}
|
Chris@0
|
208 exit 0 ;;
|
Chris@0
|
209 mac68k:OpenBSD:*:*)
|
Chris@0
|
210 echo m68k-unknown-openbsd${UNAME_RELEASE}
|
Chris@0
|
211 exit 0 ;;
|
Chris@0
|
212 macppc:OpenBSD:*:*)
|
Chris@0
|
213 echo powerpc-unknown-openbsd${UNAME_RELEASE}
|
Chris@0
|
214 exit 0 ;;
|
Chris@0
|
215 mvme68k:OpenBSD:*:*)
|
Chris@0
|
216 echo m68k-unknown-openbsd${UNAME_RELEASE}
|
Chris@0
|
217 exit 0 ;;
|
Chris@0
|
218 mvme88k:OpenBSD:*:*)
|
Chris@0
|
219 echo m88k-unknown-openbsd${UNAME_RELEASE}
|
Chris@0
|
220 exit 0 ;;
|
Chris@0
|
221 mvmeppc:OpenBSD:*:*)
|
Chris@0
|
222 echo powerpc-unknown-openbsd${UNAME_RELEASE}
|
Chris@0
|
223 exit 0 ;;
|
Chris@0
|
224 pegasos:OpenBSD:*:*)
|
Chris@0
|
225 echo powerpc-unknown-openbsd${UNAME_RELEASE}
|
Chris@0
|
226 exit 0 ;;
|
Chris@0
|
227 pmax:OpenBSD:*:*)
|
Chris@0
|
228 echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
Chris@0
|
229 exit 0 ;;
|
Chris@0
|
230 sgi:OpenBSD:*:*)
|
Chris@0
|
231 echo mipseb-unknown-openbsd${UNAME_RELEASE}
|
Chris@0
|
232 exit 0 ;;
|
Chris@0
|
233 sun3:OpenBSD:*:*)
|
Chris@0
|
234 echo m68k-unknown-openbsd${UNAME_RELEASE}
|
Chris@0
|
235 exit 0 ;;
|
Chris@0
|
236 wgrisc:OpenBSD:*:*)
|
Chris@0
|
237 echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
Chris@0
|
238 exit 0 ;;
|
Chris@0
|
239 *:OpenBSD:*:*)
|
Chris@0
|
240 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
|
Chris@0
|
241 exit 0 ;;
|
Chris@0
|
242 alpha:OSF1:*:*)
|
Chris@0
|
243 if test $UNAME_RELEASE = "V4.0"; then
|
Chris@0
|
244 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
Chris@0
|
245 fi
|
Chris@0
|
246 # According to Compaq, /usr/sbin/psrinfo has been available on
|
Chris@0
|
247 # OSF/1 and Tru64 systems produced since 1995. I hope that
|
Chris@0
|
248 # covers most systems running today. This code pipes the CPU
|
Chris@0
|
249 # types through head -n 1, so we only detect the type of CPU 0.
|
Chris@0
|
250 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
|
Chris@0
|
251 case "$ALPHA_CPU_TYPE" in
|
Chris@0
|
252 "EV4 (21064)")
|
Chris@0
|
253 UNAME_MACHINE="alpha" ;;
|
Chris@0
|
254 "EV4.5 (21064)")
|
Chris@0
|
255 UNAME_MACHINE="alpha" ;;
|
Chris@0
|
256 "LCA4 (21066/21068)")
|
Chris@0
|
257 UNAME_MACHINE="alpha" ;;
|
Chris@0
|
258 "EV5 (21164)")
|
Chris@0
|
259 UNAME_MACHINE="alphaev5" ;;
|
Chris@0
|
260 "EV5.6 (21164A)")
|
Chris@0
|
261 UNAME_MACHINE="alphaev56" ;;
|
Chris@0
|
262 "EV5.6 (21164PC)")
|
Chris@0
|
263 UNAME_MACHINE="alphapca56" ;;
|
Chris@0
|
264 "EV5.7 (21164PC)")
|
Chris@0
|
265 UNAME_MACHINE="alphapca57" ;;
|
Chris@0
|
266 "EV6 (21264)")
|
Chris@0
|
267 UNAME_MACHINE="alphaev6" ;;
|
Chris@0
|
268 "EV6.7 (21264A)")
|
Chris@0
|
269 UNAME_MACHINE="alphaev67" ;;
|
Chris@0
|
270 "EV6.8CB (21264C)")
|
Chris@0
|
271 UNAME_MACHINE="alphaev68" ;;
|
Chris@0
|
272 "EV6.8AL (21264B)")
|
Chris@0
|
273 UNAME_MACHINE="alphaev68" ;;
|
Chris@0
|
274 "EV6.8CX (21264D)")
|
Chris@0
|
275 UNAME_MACHINE="alphaev68" ;;
|
Chris@0
|
276 "EV6.9A (21264/EV69A)")
|
Chris@0
|
277 UNAME_MACHINE="alphaev69" ;;
|
Chris@0
|
278 "EV7 (21364)")
|
Chris@0
|
279 UNAME_MACHINE="alphaev7" ;;
|
Chris@0
|
280 "EV7.9 (21364A)")
|
Chris@0
|
281 UNAME_MACHINE="alphaev79" ;;
|
Chris@0
|
282 esac
|
Chris@0
|
283 # A Vn.n version is a released version.
|
Chris@0
|
284 # A Tn.n version is a released field test version.
|
Chris@0
|
285 # A Xn.n version is an unreleased experimental baselevel.
|
Chris@0
|
286 # 1.2 uses "1.2" for uname -r.
|
Chris@0
|
287 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
Chris@0
|
288 exit 0 ;;
|
Chris@0
|
289 Alpha*:OpenVMS:*:*)
|
Chris@0
|
290 echo alpha-hp-vms
|
Chris@0
|
291 exit 0 ;;
|
Chris@0
|
292 Alpha\ *:Windows_NT*:*)
|
Chris@0
|
293 # How do we know it's Interix rather than the generic POSIX subsystem?
|
Chris@0
|
294 # Should we change UNAME_MACHINE based on the output of uname instead
|
Chris@0
|
295 # of the specific Alpha model?
|
Chris@0
|
296 echo alpha-pc-interix
|
Chris@0
|
297 exit 0 ;;
|
Chris@0
|
298 21064:Windows_NT:50:3)
|
Chris@0
|
299 echo alpha-dec-winnt3.5
|
Chris@0
|
300 exit 0 ;;
|
Chris@0
|
301 Amiga*:UNIX_System_V:4.0:*)
|
Chris@0
|
302 echo m68k-unknown-sysv4
|
Chris@0
|
303 exit 0;;
|
Chris@0
|
304 *:[Aa]miga[Oo][Ss]:*:*)
|
Chris@0
|
305 echo ${UNAME_MACHINE}-unknown-amigaos
|
Chris@0
|
306 exit 0 ;;
|
Chris@0
|
307 *:[Mm]orph[Oo][Ss]:*:*)
|
Chris@0
|
308 echo ${UNAME_MACHINE}-unknown-morphos
|
Chris@0
|
309 exit 0 ;;
|
Chris@0
|
310 *:OS/390:*:*)
|
Chris@0
|
311 echo i370-ibm-openedition
|
Chris@0
|
312 exit 0 ;;
|
Chris@0
|
313 *:OS400:*:*)
|
Chris@0
|
314 echo powerpc-ibm-os400
|
Chris@0
|
315 exit 0 ;;
|
Chris@0
|
316 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
Chris@0
|
317 echo arm-acorn-riscix${UNAME_RELEASE}
|
Chris@0
|
318 exit 0;;
|
Chris@0
|
319 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
|
Chris@0
|
320 echo hppa1.1-hitachi-hiuxmpp
|
Chris@0
|
321 exit 0;;
|
Chris@0
|
322 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
|
Chris@0
|
323 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
|
Chris@0
|
324 if test "`(/bin/universe) 2>/dev/null`" = att ; then
|
Chris@0
|
325 echo pyramid-pyramid-sysv3
|
Chris@0
|
326 else
|
Chris@0
|
327 echo pyramid-pyramid-bsd
|
Chris@0
|
328 fi
|
Chris@0
|
329 exit 0 ;;
|
Chris@0
|
330 NILE*:*:*:dcosx)
|
Chris@0
|
331 echo pyramid-pyramid-svr4
|
Chris@0
|
332 exit 0 ;;
|
Chris@0
|
333 DRS?6000:unix:4.0:6*)
|
Chris@0
|
334 echo sparc-icl-nx6
|
Chris@0
|
335 exit 0 ;;
|
Chris@0
|
336 DRS?6000:UNIX_SV:4.2*:7*)
|
Chris@0
|
337 case `/usr/bin/uname -p` in
|
Chris@0
|
338 sparc) echo sparc-icl-nx7 && exit 0 ;;
|
Chris@0
|
339 esac ;;
|
Chris@0
|
340 sun4H:SunOS:5.*:*)
|
Chris@0
|
341 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
Chris@0
|
342 exit 0 ;;
|
Chris@0
|
343 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
Chris@0
|
344 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
Chris@0
|
345 exit 0 ;;
|
Chris@0
|
346 i86pc:SunOS:5.*:*)
|
Chris@0
|
347 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
Chris@0
|
348 exit 0 ;;
|
Chris@0
|
349 sun4*:SunOS:6*:*)
|
Chris@0
|
350 # According to config.sub, this is the proper way to canonicalize
|
Chris@0
|
351 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
|
Chris@0
|
352 # it's likely to be more like Solaris than SunOS4.
|
Chris@0
|
353 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
Chris@0
|
354 exit 0 ;;
|
Chris@0
|
355 sun4*:SunOS:*:*)
|
Chris@0
|
356 case "`/usr/bin/arch -k`" in
|
Chris@0
|
357 Series*|S4*)
|
Chris@0
|
358 UNAME_RELEASE=`uname -v`
|
Chris@0
|
359 ;;
|
Chris@0
|
360 esac
|
Chris@0
|
361 # Japanese Language versions have a version number like `4.1.3-JL'.
|
Chris@0
|
362 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
|
Chris@0
|
363 exit 0 ;;
|
Chris@0
|
364 sun3*:SunOS:*:*)
|
Chris@0
|
365 echo m68k-sun-sunos${UNAME_RELEASE}
|
Chris@0
|
366 exit 0 ;;
|
Chris@0
|
367 sun*:*:4.2BSD:*)
|
Chris@0
|
368 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
|
Chris@0
|
369 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
|
Chris@0
|
370 case "`/bin/arch`" in
|
Chris@0
|
371 sun3)
|
Chris@0
|
372 echo m68k-sun-sunos${UNAME_RELEASE}
|
Chris@0
|
373 ;;
|
Chris@0
|
374 sun4)
|
Chris@0
|
375 echo sparc-sun-sunos${UNAME_RELEASE}
|
Chris@0
|
376 ;;
|
Chris@0
|
377 esac
|
Chris@0
|
378 exit 0 ;;
|
Chris@0
|
379 aushp:SunOS:*:*)
|
Chris@0
|
380 echo sparc-auspex-sunos${UNAME_RELEASE}
|
Chris@0
|
381 exit 0 ;;
|
Chris@0
|
382 # The situation for MiNT is a little confusing. The machine name
|
Chris@0
|
383 # can be virtually everything (everything which is not
|
Chris@0
|
384 # "atarist" or "atariste" at least should have a processor
|
Chris@0
|
385 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
|
Chris@0
|
386 # to the lowercase version "mint" (or "freemint"). Finally
|
Chris@0
|
387 # the system name "TOS" denotes a system which is actually not
|
Chris@0
|
388 # MiNT. But MiNT is downward compatible to TOS, so this should
|
Chris@0
|
389 # be no problem.
|
Chris@0
|
390 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
Chris@0
|
391 echo m68k-atari-mint${UNAME_RELEASE}
|
Chris@0
|
392 exit 0 ;;
|
Chris@0
|
393 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
Chris@0
|
394 echo m68k-atari-mint${UNAME_RELEASE}
|
Chris@0
|
395 exit 0 ;;
|
Chris@0
|
396 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
Chris@0
|
397 echo m68k-atari-mint${UNAME_RELEASE}
|
Chris@0
|
398 exit 0 ;;
|
Chris@0
|
399 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
Chris@0
|
400 echo m68k-milan-mint${UNAME_RELEASE}
|
Chris@0
|
401 exit 0 ;;
|
Chris@0
|
402 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
Chris@0
|
403 echo m68k-hades-mint${UNAME_RELEASE}
|
Chris@0
|
404 exit 0 ;;
|
Chris@0
|
405 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
Chris@0
|
406 echo m68k-unknown-mint${UNAME_RELEASE}
|
Chris@0
|
407 exit 0 ;;
|
Chris@0
|
408 powerpc:machten:*:*)
|
Chris@0
|
409 echo powerpc-apple-machten${UNAME_RELEASE}
|
Chris@0
|
410 exit 0 ;;
|
Chris@0
|
411 RISC*:Mach:*:*)
|
Chris@0
|
412 echo mips-dec-mach_bsd4.3
|
Chris@0
|
413 exit 0 ;;
|
Chris@0
|
414 RISC*:ULTRIX:*:*)
|
Chris@0
|
415 echo mips-dec-ultrix${UNAME_RELEASE}
|
Chris@0
|
416 exit 0 ;;
|
Chris@0
|
417 VAX*:ULTRIX*:*:*)
|
Chris@0
|
418 echo vax-dec-ultrix${UNAME_RELEASE}
|
Chris@0
|
419 exit 0 ;;
|
Chris@0
|
420 2020:CLIX:*:* | 2430:CLIX:*:*)
|
Chris@0
|
421 echo clipper-intergraph-clix${UNAME_RELEASE}
|
Chris@0
|
422 exit 0 ;;
|
Chris@0
|
423 mips:*:*:UMIPS | mips:*:*:RISCos)
|
Chris@0
|
424 eval $set_cc_for_build
|
Chris@0
|
425 sed 's/^ //' << EOF >$dummy.c
|
Chris@0
|
426 #ifdef __cplusplus
|
Chris@0
|
427 #include <stdio.h> /* for printf() prototype */
|
Chris@0
|
428 int main (int argc, char *argv[]) {
|
Chris@0
|
429 #else
|
Chris@0
|
430 int main (argc, argv) int argc; char *argv[]; {
|
Chris@0
|
431 #endif
|
Chris@0
|
432 #if defined (host_mips) && defined (MIPSEB)
|
Chris@0
|
433 #if defined (SYSTYPE_SYSV)
|
Chris@0
|
434 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
|
Chris@0
|
435 #endif
|
Chris@0
|
436 #if defined (SYSTYPE_SVR4)
|
Chris@0
|
437 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
|
Chris@0
|
438 #endif
|
Chris@0
|
439 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
|
Chris@0
|
440 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
|
Chris@0
|
441 #endif
|
Chris@0
|
442 #endif
|
Chris@0
|
443 exit (-1);
|
Chris@0
|
444 }
|
Chris@0
|
445 EOF
|
Chris@0
|
446 $CC_FOR_BUILD -o $dummy $dummy.c \
|
Chris@0
|
447 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
|
Chris@0
|
448 && exit 0
|
Chris@0
|
449 echo mips-mips-riscos${UNAME_RELEASE}
|
Chris@0
|
450 exit 0 ;;
|
Chris@0
|
451 Motorola:PowerMAX_OS:*:*)
|
Chris@0
|
452 echo powerpc-motorola-powermax
|
Chris@0
|
453 exit 0 ;;
|
Chris@0
|
454 Motorola:*:4.3:PL8-*)
|
Chris@0
|
455 echo powerpc-harris-powermax
|
Chris@0
|
456 exit 0 ;;
|
Chris@0
|
457 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
|
Chris@0
|
458 echo powerpc-harris-powermax
|
Chris@0
|
459 exit 0 ;;
|
Chris@0
|
460 Night_Hawk:Power_UNIX:*:*)
|
Chris@0
|
461 echo powerpc-harris-powerunix
|
Chris@0
|
462 exit 0 ;;
|
Chris@0
|
463 m88k:CX/UX:7*:*)
|
Chris@0
|
464 echo m88k-harris-cxux7
|
Chris@0
|
465 exit 0 ;;
|
Chris@0
|
466 m88k:*:4*:R4*)
|
Chris@0
|
467 echo m88k-motorola-sysv4
|
Chris@0
|
468 exit 0 ;;
|
Chris@0
|
469 m88k:*:3*:R3*)
|
Chris@0
|
470 echo m88k-motorola-sysv3
|
Chris@0
|
471 exit 0 ;;
|
Chris@0
|
472 AViiON:dgux:*:*)
|
Chris@0
|
473 # DG/UX returns AViiON for all architectures
|
Chris@0
|
474 UNAME_PROCESSOR=`/usr/bin/uname -p`
|
Chris@0
|
475 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
|
Chris@0
|
476 then
|
Chris@0
|
477 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
|
Chris@0
|
478 [ ${TARGET_BINARY_INTERFACE}x = x ]
|
Chris@0
|
479 then
|
Chris@0
|
480 echo m88k-dg-dgux${UNAME_RELEASE}
|
Chris@0
|
481 else
|
Chris@0
|
482 echo m88k-dg-dguxbcs${UNAME_RELEASE}
|
Chris@0
|
483 fi
|
Chris@0
|
484 else
|
Chris@0
|
485 echo i586-dg-dgux${UNAME_RELEASE}
|
Chris@0
|
486 fi
|
Chris@0
|
487 exit 0 ;;
|
Chris@0
|
488 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
Chris@0
|
489 echo m88k-dolphin-sysv3
|
Chris@0
|
490 exit 0 ;;
|
Chris@0
|
491 M88*:*:R3*:*)
|
Chris@0
|
492 # Delta 88k system running SVR3
|
Chris@0
|
493 echo m88k-motorola-sysv3
|
Chris@0
|
494 exit 0 ;;
|
Chris@0
|
495 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
|
Chris@0
|
496 echo m88k-tektronix-sysv3
|
Chris@0
|
497 exit 0 ;;
|
Chris@0
|
498 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
|
Chris@0
|
499 echo m68k-tektronix-bsd
|
Chris@0
|
500 exit 0 ;;
|
Chris@0
|
501 *:IRIX*:*:*)
|
Chris@0
|
502 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
|
Chris@0
|
503 exit 0 ;;
|
Chris@0
|
504 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
|
Chris@0
|
505 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
|
Chris@0
|
506 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
|
Chris@0
|
507 i*86:AIX:*:*)
|
Chris@0
|
508 echo i386-ibm-aix
|
Chris@0
|
509 exit 0 ;;
|
Chris@0
|
510 ia64:AIX:*:*)
|
Chris@0
|
511 if [ -x /usr/bin/oslevel ] ; then
|
Chris@0
|
512 IBM_REV=`/usr/bin/oslevel`
|
Chris@0
|
513 else
|
Chris@0
|
514 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
Chris@0
|
515 fi
|
Chris@0
|
516 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
|
Chris@0
|
517 exit 0 ;;
|
Chris@0
|
518 *:AIX:2:3)
|
Chris@0
|
519 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
|
Chris@0
|
520 eval $set_cc_for_build
|
Chris@0
|
521 sed 's/^ //' << EOF >$dummy.c
|
Chris@0
|
522 #include <sys/systemcfg.h>
|
Chris@0
|
523
|
Chris@0
|
524 main()
|
Chris@0
|
525 {
|
Chris@0
|
526 if (!__power_pc())
|
Chris@0
|
527 exit(1);
|
Chris@0
|
528 puts("powerpc-ibm-aix3.2.5");
|
Chris@0
|
529 exit(0);
|
Chris@0
|
530 }
|
Chris@0
|
531 EOF
|
Chris@0
|
532 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
|
Chris@0
|
533 echo rs6000-ibm-aix3.2.5
|
Chris@0
|
534 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
|
Chris@0
|
535 echo rs6000-ibm-aix3.2.4
|
Chris@0
|
536 else
|
Chris@0
|
537 echo rs6000-ibm-aix3.2
|
Chris@0
|
538 fi
|
Chris@0
|
539 exit 0 ;;
|
Chris@0
|
540 *:AIX:*:[45])
|
Chris@0
|
541 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
Chris@0
|
542 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
Chris@0
|
543 IBM_ARCH=rs6000
|
Chris@0
|
544 else
|
Chris@0
|
545 IBM_ARCH=powerpc
|
Chris@0
|
546 fi
|
Chris@0
|
547 if [ -x /usr/bin/oslevel ] ; then
|
Chris@0
|
548 IBM_REV=`/usr/bin/oslevel`
|
Chris@0
|
549 else
|
Chris@0
|
550 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
Chris@0
|
551 fi
|
Chris@0
|
552 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
|
Chris@0
|
553 exit 0 ;;
|
Chris@0
|
554 *:AIX:*:*)
|
Chris@0
|
555 echo rs6000-ibm-aix
|
Chris@0
|
556 exit 0 ;;
|
Chris@0
|
557 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
|
Chris@0
|
558 echo romp-ibm-bsd4.4
|
Chris@0
|
559 exit 0 ;;
|
Chris@0
|
560 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
|
Chris@0
|
561 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
|
Chris@0
|
562 exit 0 ;; # report: romp-ibm BSD 4.3
|
Chris@0
|
563 *:BOSX:*:*)
|
Chris@0
|
564 echo rs6000-bull-bosx
|
Chris@0
|
565 exit 0 ;;
|
Chris@0
|
566 DPX/2?00:B.O.S.:*:*)
|
Chris@0
|
567 echo m68k-bull-sysv3
|
Chris@0
|
568 exit 0 ;;
|
Chris@0
|
569 9000/[34]??:4.3bsd:1.*:*)
|
Chris@0
|
570 echo m68k-hp-bsd
|
Chris@0
|
571 exit 0 ;;
|
Chris@0
|
572 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
|
Chris@0
|
573 echo m68k-hp-bsd4.4
|
Chris@0
|
574 exit 0 ;;
|
Chris@0
|
575 9000/[34678]??:HP-UX:*:*)
|
Chris@0
|
576 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
Chris@0
|
577 case "${UNAME_MACHINE}" in
|
Chris@0
|
578 9000/31? ) HP_ARCH=m68000 ;;
|
Chris@0
|
579 9000/[34]?? ) HP_ARCH=m68k ;;
|
Chris@0
|
580 9000/[678][0-9][0-9])
|
Chris@0
|
581 if [ -x /usr/bin/getconf ]; then
|
Chris@0
|
582 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
Chris@0
|
583 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
Chris@0
|
584 case "${sc_cpu_version}" in
|
Chris@0
|
585 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
Chris@0
|
586 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
Chris@0
|
587 532) # CPU_PA_RISC2_0
|
Chris@0
|
588 case "${sc_kernel_bits}" in
|
Chris@0
|
589 32) HP_ARCH="hppa2.0n" ;;
|
Chris@0
|
590 64) HP_ARCH="hppa2.0w" ;;
|
Chris@0
|
591 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
|
Chris@0
|
592 esac ;;
|
Chris@0
|
593 esac
|
Chris@0
|
594 fi
|
Chris@0
|
595 if [ "${HP_ARCH}" = "" ]; then
|
Chris@0
|
596 eval $set_cc_for_build
|
Chris@0
|
597 sed 's/^ //' << EOF >$dummy.c
|
Chris@0
|
598
|
Chris@0
|
599 #define _HPUX_SOURCE
|
Chris@0
|
600 #include <stdlib.h>
|
Chris@0
|
601 #include <unistd.h>
|
Chris@0
|
602
|
Chris@0
|
603 int main ()
|
Chris@0
|
604 {
|
Chris@0
|
605 #if defined(_SC_KERNEL_BITS)
|
Chris@0
|
606 long bits = sysconf(_SC_KERNEL_BITS);
|
Chris@0
|
607 #endif
|
Chris@0
|
608 long cpu = sysconf (_SC_CPU_VERSION);
|
Chris@0
|
609
|
Chris@0
|
610 switch (cpu)
|
Chris@0
|
611 {
|
Chris@0
|
612 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
Chris@0
|
613 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
Chris@0
|
614 case CPU_PA_RISC2_0:
|
Chris@0
|
615 #if defined(_SC_KERNEL_BITS)
|
Chris@0
|
616 switch (bits)
|
Chris@0
|
617 {
|
Chris@0
|
618 case 64: puts ("hppa2.0w"); break;
|
Chris@0
|
619 case 32: puts ("hppa2.0n"); break;
|
Chris@0
|
620 default: puts ("hppa2.0"); break;
|
Chris@0
|
621 } break;
|
Chris@0
|
622 #else /* !defined(_SC_KERNEL_BITS) */
|
Chris@0
|
623 puts ("hppa2.0"); break;
|
Chris@0
|
624 #endif
|
Chris@0
|
625 default: puts ("hppa1.0"); break;
|
Chris@0
|
626 }
|
Chris@0
|
627 exit (0);
|
Chris@0
|
628 }
|
Chris@0
|
629 EOF
|
Chris@0
|
630 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
|
Chris@0
|
631 test -z "$HP_ARCH" && HP_ARCH=hppa
|
Chris@0
|
632 fi ;;
|
Chris@0
|
633 esac
|
Chris@0
|
634 if [ ${HP_ARCH} = "hppa2.0w" ]
|
Chris@0
|
635 then
|
Chris@0
|
636 # avoid double evaluation of $set_cc_for_build
|
Chris@0
|
637 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
|
Chris@0
|
638 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
|
Chris@0
|
639 then
|
Chris@0
|
640 HP_ARCH="hppa2.0w"
|
Chris@0
|
641 else
|
Chris@0
|
642 HP_ARCH="hppa64"
|
Chris@0
|
643 fi
|
Chris@0
|
644 fi
|
Chris@0
|
645 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
|
Chris@0
|
646 exit 0 ;;
|
Chris@0
|
647 ia64:HP-UX:*:*)
|
Chris@0
|
648 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
Chris@0
|
649 echo ia64-hp-hpux${HPUX_REV}
|
Chris@0
|
650 exit 0 ;;
|
Chris@0
|
651 3050*:HI-UX:*:*)
|
Chris@0
|
652 eval $set_cc_for_build
|
Chris@0
|
653 sed 's/^ //' << EOF >$dummy.c
|
Chris@0
|
654 #include <unistd.h>
|
Chris@0
|
655 int
|
Chris@0
|
656 main ()
|
Chris@0
|
657 {
|
Chris@0
|
658 long cpu = sysconf (_SC_CPU_VERSION);
|
Chris@0
|
659 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
|
Chris@0
|
660 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
|
Chris@0
|
661 results, however. */
|
Chris@0
|
662 if (CPU_IS_PA_RISC (cpu))
|
Chris@0
|
663 {
|
Chris@0
|
664 switch (cpu)
|
Chris@0
|
665 {
|
Chris@0
|
666 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
|
Chris@0
|
667 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
|
Chris@0
|
668 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
|
Chris@0
|
669 default: puts ("hppa-hitachi-hiuxwe2"); break;
|
Chris@0
|
670 }
|
Chris@0
|
671 }
|
Chris@0
|
672 else if (CPU_IS_HP_MC68K (cpu))
|
Chris@0
|
673 puts ("m68k-hitachi-hiuxwe2");
|
Chris@0
|
674 else puts ("unknown-hitachi-hiuxwe2");
|
Chris@0
|
675 exit (0);
|
Chris@0
|
676 }
|
Chris@0
|
677 EOF
|
Chris@0
|
678 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
|
Chris@0
|
679 echo unknown-hitachi-hiuxwe2
|
Chris@0
|
680 exit 0 ;;
|
Chris@0
|
681 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
|
Chris@0
|
682 echo hppa1.1-hp-bsd
|
Chris@0
|
683 exit 0 ;;
|
Chris@0
|
684 9000/8??:4.3bsd:*:*)
|
Chris@0
|
685 echo hppa1.0-hp-bsd
|
Chris@0
|
686 exit 0 ;;
|
Chris@0
|
687 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
|
Chris@0
|
688 echo hppa1.0-hp-mpeix
|
Chris@0
|
689 exit 0 ;;
|
Chris@0
|
690 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
|
Chris@0
|
691 echo hppa1.1-hp-osf
|
Chris@0
|
692 exit 0 ;;
|
Chris@0
|
693 hp8??:OSF1:*:*)
|
Chris@0
|
694 echo hppa1.0-hp-osf
|
Chris@0
|
695 exit 0 ;;
|
Chris@0
|
696 i*86:OSF1:*:*)
|
Chris@0
|
697 if [ -x /usr/sbin/sysversion ] ; then
|
Chris@0
|
698 echo ${UNAME_MACHINE}-unknown-osf1mk
|
Chris@0
|
699 else
|
Chris@0
|
700 echo ${UNAME_MACHINE}-unknown-osf1
|
Chris@0
|
701 fi
|
Chris@0
|
702 exit 0 ;;
|
Chris@0
|
703 parisc*:Lites*:*:*)
|
Chris@0
|
704 echo hppa1.1-hp-lites
|
Chris@0
|
705 exit 0 ;;
|
Chris@0
|
706 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
Chris@0
|
707 echo c1-convex-bsd
|
Chris@0
|
708 exit 0 ;;
|
Chris@0
|
709 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
Chris@0
|
710 if getsysinfo -f scalar_acc
|
Chris@0
|
711 then echo c32-convex-bsd
|
Chris@0
|
712 else echo c2-convex-bsd
|
Chris@0
|
713 fi
|
Chris@0
|
714 exit 0 ;;
|
Chris@0
|
715 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
Chris@0
|
716 echo c34-convex-bsd
|
Chris@0
|
717 exit 0 ;;
|
Chris@0
|
718 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
Chris@0
|
719 echo c38-convex-bsd
|
Chris@0
|
720 exit 0 ;;
|
Chris@0
|
721 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
Chris@0
|
722 echo c4-convex-bsd
|
Chris@0
|
723 exit 0 ;;
|
Chris@0
|
724 CRAY*Y-MP:*:*:*)
|
Chris@0
|
725 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
Chris@0
|
726 exit 0 ;;
|
Chris@0
|
727 CRAY*[A-Z]90:*:*:*)
|
Chris@0
|
728 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
|
Chris@0
|
729 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
|
Chris@0
|
730 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
|
Chris@0
|
731 -e 's/\.[^.]*$/.X/'
|
Chris@0
|
732 exit 0 ;;
|
Chris@0
|
733 CRAY*TS:*:*:*)
|
Chris@0
|
734 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
Chris@0
|
735 exit 0 ;;
|
Chris@0
|
736 CRAY*T3E:*:*:*)
|
Chris@0
|
737 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
Chris@0
|
738 exit 0 ;;
|
Chris@0
|
739 CRAY*SV1:*:*:*)
|
Chris@0
|
740 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
Chris@0
|
741 exit 0 ;;
|
Chris@0
|
742 *:UNICOS/mp:*:*)
|
Chris@0
|
743 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
Chris@0
|
744 exit 0 ;;
|
Chris@0
|
745 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
Chris@0
|
746 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
Chris@0
|
747 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
Chris@0
|
748 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
Chris@0
|
749 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
Chris@0
|
750 exit 0 ;;
|
Chris@0
|
751 5000:UNIX_System_V:4.*:*)
|
Chris@0
|
752 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
Chris@0
|
753 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
Chris@0
|
754 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
Chris@0
|
755 exit 0 ;;
|
Chris@0
|
756 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
Chris@0
|
757 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
Chris@0
|
758 exit 0 ;;
|
Chris@0
|
759 sparc*:BSD/OS:*:*)
|
Chris@0
|
760 echo sparc-unknown-bsdi${UNAME_RELEASE}
|
Chris@0
|
761 exit 0 ;;
|
Chris@0
|
762 *:BSD/OS:*:*)
|
Chris@0
|
763 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
Chris@0
|
764 exit 0 ;;
|
Chris@0
|
765 *:FreeBSD:*:*)
|
Chris@0
|
766 # Determine whether the default compiler uses glibc.
|
Chris@0
|
767 eval $set_cc_for_build
|
Chris@0
|
768 sed 's/^ //' << EOF >$dummy.c
|
Chris@0
|
769 #include <features.h>
|
Chris@0
|
770 #if __GLIBC__ >= 2
|
Chris@0
|
771 LIBC=gnu
|
Chris@0
|
772 #else
|
Chris@0
|
773 LIBC=
|
Chris@0
|
774 #endif
|
Chris@0
|
775 EOF
|
Chris@0
|
776 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
|
Chris@0
|
777 # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
|
Chris@0
|
778 # FreeBSD's kernel, but not the complete OS.
|
Chris@0
|
779 case ${LIBC} in gnu) kernel_only='k' ;; esac
|
Chris@0
|
780 echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
|
Chris@0
|
781 exit 0 ;;
|
Chris@0
|
782 i*:CYGWIN*:*)
|
Chris@0
|
783 echo ${UNAME_MACHINE}-pc-cygwin
|
Chris@0
|
784 exit 0 ;;
|
Chris@0
|
785 i*:MINGW*:*)
|
Chris@0
|
786 echo ${UNAME_MACHINE}-pc-mingw32
|
Chris@0
|
787 exit 0 ;;
|
Chris@0
|
788 i*:PW*:*)
|
Chris@0
|
789 echo ${UNAME_MACHINE}-pc-pw32
|
Chris@0
|
790 exit 0 ;;
|
Chris@0
|
791 x86:Interix*:[34]*)
|
Chris@0
|
792 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
|
Chris@0
|
793 exit 0 ;;
|
Chris@0
|
794 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
Chris@0
|
795 echo i${UNAME_MACHINE}-pc-mks
|
Chris@0
|
796 exit 0 ;;
|
Chris@0
|
797 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
Chris@0
|
798 # How do we know it's Interix rather than the generic POSIX subsystem?
|
Chris@0
|
799 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
Chris@0
|
800 # UNAME_MACHINE based on the output of uname instead of i386?
|
Chris@0
|
801 echo i586-pc-interix
|
Chris@0
|
802 exit 0 ;;
|
Chris@0
|
803 i*:UWIN*:*)
|
Chris@0
|
804 echo ${UNAME_MACHINE}-pc-uwin
|
Chris@0
|
805 exit 0 ;;
|
Chris@0
|
806 p*:CYGWIN*:*)
|
Chris@0
|
807 echo powerpcle-unknown-cygwin
|
Chris@0
|
808 exit 0 ;;
|
Chris@0
|
809 prep*:SunOS:5.*:*)
|
Chris@0
|
810 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
Chris@0
|
811 exit 0 ;;
|
Chris@0
|
812 *:GNU:*:*)
|
Chris@0
|
813 # the GNU system
|
Chris@0
|
814 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
Chris@0
|
815 exit 0 ;;
|
Chris@0
|
816 *:GNU/*:*:*)
|
Chris@0
|
817 # other systems with GNU libc and userland
|
Chris@0
|
818 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
|
Chris@0
|
819 exit 0 ;;
|
Chris@0
|
820 i*86:Minix:*:*)
|
Chris@0
|
821 echo ${UNAME_MACHINE}-pc-minix
|
Chris@0
|
822 exit 0 ;;
|
Chris@0
|
823 arm*:Linux:*:*)
|
Chris@0
|
824 echo ${UNAME_MACHINE}-unknown-linux-gnu
|
Chris@0
|
825 exit 0 ;;
|
Chris@0
|
826 cris:Linux:*:*)
|
Chris@0
|
827 echo cris-axis-linux-gnu
|
Chris@0
|
828 exit 0 ;;
|
Chris@0
|
829 ia64:Linux:*:*)
|
Chris@0
|
830 echo ${UNAME_MACHINE}-unknown-linux-gnu
|
Chris@0
|
831 exit 0 ;;
|
Chris@0
|
832 m68*:Linux:*:*)
|
Chris@0
|
833 echo ${UNAME_MACHINE}-unknown-linux-gnu
|
Chris@0
|
834 exit 0 ;;
|
Chris@0
|
835 mips:Linux:*:*)
|
Chris@0
|
836 eval $set_cc_for_build
|
Chris@0
|
837 sed 's/^ //' << EOF >$dummy.c
|
Chris@0
|
838 #undef CPU
|
Chris@0
|
839 #undef mips
|
Chris@0
|
840 #undef mipsel
|
Chris@0
|
841 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
Chris@0
|
842 CPU=mipsel
|
Chris@0
|
843 #else
|
Chris@0
|
844 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
Chris@0
|
845 CPU=mips
|
Chris@0
|
846 #else
|
Chris@0
|
847 CPU=
|
Chris@0
|
848 #endif
|
Chris@0
|
849 #endif
|
Chris@0
|
850 EOF
|
Chris@0
|
851 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
|
Chris@0
|
852 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
|
Chris@0
|
853 ;;
|
Chris@0
|
854 mips64:Linux:*:*)
|
Chris@0
|
855 eval $set_cc_for_build
|
Chris@0
|
856 sed 's/^ //' << EOF >$dummy.c
|
Chris@0
|
857 #undef CPU
|
Chris@0
|
858 #undef mips64
|
Chris@0
|
859 #undef mips64el
|
Chris@0
|
860 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
Chris@0
|
861 CPU=mips64el
|
Chris@0
|
862 #else
|
Chris@0
|
863 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
Chris@0
|
864 CPU=mips64
|
Chris@0
|
865 #else
|
Chris@0
|
866 CPU=
|
Chris@0
|
867 #endif
|
Chris@0
|
868 #endif
|
Chris@0
|
869 EOF
|
Chris@0
|
870 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
|
Chris@0
|
871 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
|
Chris@0
|
872 ;;
|
Chris@0
|
873 ppc:Linux:*:*)
|
Chris@0
|
874 echo powerpc-unknown-linux-gnu
|
Chris@0
|
875 exit 0 ;;
|
Chris@0
|
876 ppc64:Linux:*:*)
|
Chris@0
|
877 echo powerpc64-unknown-linux-gnu
|
Chris@0
|
878 exit 0 ;;
|
Chris@0
|
879 alpha:Linux:*:*)
|
Chris@0
|
880 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
Chris@0
|
881 EV5) UNAME_MACHINE=alphaev5 ;;
|
Chris@0
|
882 EV56) UNAME_MACHINE=alphaev56 ;;
|
Chris@0
|
883 PCA56) UNAME_MACHINE=alphapca56 ;;
|
Chris@0
|
884 PCA57) UNAME_MACHINE=alphapca56 ;;
|
Chris@0
|
885 EV6) UNAME_MACHINE=alphaev6 ;;
|
Chris@0
|
886 EV67) UNAME_MACHINE=alphaev67 ;;
|
Chris@0
|
887 EV68*) UNAME_MACHINE=alphaev68 ;;
|
Chris@0
|
888 esac
|
Chris@0
|
889 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
|
Chris@0
|
890 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
Chris@0
|
891 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
Chris@0
|
892 exit 0 ;;
|
Chris@0
|
893 parisc:Linux:*:* | hppa:Linux:*:*)
|
Chris@0
|
894 # Look for CPU level
|
Chris@0
|
895 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
Chris@0
|
896 PA7*) echo hppa1.1-unknown-linux-gnu ;;
|
Chris@0
|
897 PA8*) echo hppa2.0-unknown-linux-gnu ;;
|
Chris@0
|
898 *) echo hppa-unknown-linux-gnu ;;
|
Chris@0
|
899 esac
|
Chris@0
|
900 exit 0 ;;
|
Chris@0
|
901 parisc64:Linux:*:* | hppa64:Linux:*:*)
|
Chris@0
|
902 echo hppa64-unknown-linux-gnu
|
Chris@0
|
903 exit 0 ;;
|
Chris@0
|
904 s390:Linux:*:* | s390x:Linux:*:*)
|
Chris@0
|
905 echo ${UNAME_MACHINE}-ibm-linux
|
Chris@0
|
906 exit 0 ;;
|
Chris@0
|
907 sh64*:Linux:*:*)
|
Chris@0
|
908 echo ${UNAME_MACHINE}-unknown-linux-gnu
|
Chris@0
|
909 exit 0 ;;
|
Chris@0
|
910 sh*:Linux:*:*)
|
Chris@0
|
911 echo ${UNAME_MACHINE}-unknown-linux-gnu
|
Chris@0
|
912 exit 0 ;;
|
Chris@0
|
913 sparc:Linux:*:* | sparc64:Linux:*:*)
|
Chris@0
|
914 echo ${UNAME_MACHINE}-unknown-linux-gnu
|
Chris@0
|
915 exit 0 ;;
|
Chris@0
|
916 x86_64:Linux:*:*)
|
Chris@0
|
917 echo x86_64-unknown-linux-gnu
|
Chris@0
|
918 exit 0 ;;
|
Chris@0
|
919 i*86:Linux:*:*)
|
Chris@0
|
920 # The BFD linker knows what the default object file format is, so
|
Chris@0
|
921 # first see if it will tell us. cd to the root directory to prevent
|
Chris@0
|
922 # problems with other programs or directories called `ld' in the path.
|
Chris@0
|
923 # Set LC_ALL=C to ensure ld outputs messages in English.
|
Chris@0
|
924 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
|
Chris@0
|
925 | sed -ne '/supported targets:/!d
|
Chris@0
|
926 s/[ ][ ]*/ /g
|
Chris@0
|
927 s/.*supported targets: *//
|
Chris@0
|
928 s/ .*//
|
Chris@0
|
929 p'`
|
Chris@0
|
930 case "$ld_supported_targets" in
|
Chris@0
|
931 elf32-i386)
|
Chris@0
|
932 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
|
Chris@0
|
933 ;;
|
Chris@0
|
934 a.out-i386-linux)
|
Chris@0
|
935 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
Chris@0
|
936 exit 0 ;;
|
Chris@0
|
937 coff-i386)
|
Chris@0
|
938 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
Chris@0
|
939 exit 0 ;;
|
Chris@0
|
940 "")
|
Chris@0
|
941 # Either a pre-BFD a.out linker (linux-gnuoldld) or
|
Chris@0
|
942 # one that does not give us useful --help.
|
Chris@0
|
943 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
|
Chris@0
|
944 exit 0 ;;
|
Chris@0
|
945 esac
|
Chris@0
|
946 # Determine whether the default compiler is a.out or elf
|
Chris@0
|
947 eval $set_cc_for_build
|
Chris@0
|
948 sed 's/^ //' << EOF >$dummy.c
|
Chris@0
|
949 #include <features.h>
|
Chris@0
|
950 #ifdef __ELF__
|
Chris@0
|
951 # ifdef __GLIBC__
|
Chris@0
|
952 # if __GLIBC__ >= 2
|
Chris@0
|
953 LIBC=gnu
|
Chris@0
|
954 # else
|
Chris@0
|
955 LIBC=gnulibc1
|
Chris@0
|
956 # endif
|
Chris@0
|
957 # else
|
Chris@0
|
958 LIBC=gnulibc1
|
Chris@0
|
959 # endif
|
Chris@0
|
960 #else
|
Chris@0
|
961 #ifdef __INTEL_COMPILER
|
Chris@0
|
962 LIBC=gnu
|
Chris@0
|
963 #else
|
Chris@0
|
964 LIBC=gnuaout
|
Chris@0
|
965 #endif
|
Chris@0
|
966 #endif
|
Chris@0
|
967 #ifdef __dietlibc__
|
Chris@0
|
968 LIBC=dietlibc
|
Chris@0
|
969 #endif
|
Chris@0
|
970 EOF
|
Chris@0
|
971 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
|
Chris@0
|
972 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
|
Chris@0
|
973 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
|
Chris@0
|
974 ;;
|
Chris@0
|
975 i*86:DYNIX/ptx:4*:*)
|
Chris@0
|
976 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
Chris@0
|
977 # earlier versions are messed up and put the nodename in both
|
Chris@0
|
978 # sysname and nodename.
|
Chris@0
|
979 echo i386-sequent-sysv4
|
Chris@0
|
980 exit 0 ;;
|
Chris@0
|
981 i*86:UNIX_SV:4.2MP:2.*)
|
Chris@0
|
982 # Unixware is an offshoot of SVR4, but it has its own version
|
Chris@0
|
983 # number series starting with 2...
|
Chris@0
|
984 # I am not positive that other SVR4 systems won't match this,
|
Chris@0
|
985 # I just have to hope. -- rms.
|
Chris@0
|
986 # Use sysv4.2uw... so that sysv4* matches it.
|
Chris@0
|
987 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
Chris@0
|
988 exit 0 ;;
|
Chris@0
|
989 i*86:OS/2:*:*)
|
Chris@0
|
990 # If we were able to find `uname', then EMX Unix compatibility
|
Chris@0
|
991 # is probably installed.
|
Chris@0
|
992 echo ${UNAME_MACHINE}-pc-os2-emx
|
Chris@0
|
993 exit 0 ;;
|
Chris@0
|
994 i*86:XTS-300:*:STOP)
|
Chris@0
|
995 echo ${UNAME_MACHINE}-unknown-stop
|
Chris@0
|
996 exit 0 ;;
|
Chris@0
|
997 i*86:atheos:*:*)
|
Chris@0
|
998 echo ${UNAME_MACHINE}-unknown-atheos
|
Chris@0
|
999 exit 0 ;;
|
Chris@0
|
1000 i*86:syllable:*:*)
|
Chris@0
|
1001 echo ${UNAME_MACHINE}-pc-syllable
|
Chris@0
|
1002 exit 0 ;;
|
Chris@0
|
1003 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
|
Chris@0
|
1004 echo i386-unknown-lynxos${UNAME_RELEASE}
|
Chris@0
|
1005 exit 0 ;;
|
Chris@0
|
1006 i*86:*DOS:*:*)
|
Chris@0
|
1007 echo ${UNAME_MACHINE}-pc-msdosdjgpp
|
Chris@0
|
1008 exit 0 ;;
|
Chris@0
|
1009 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
|
Chris@0
|
1010 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
|
Chris@0
|
1011 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
|
Chris@0
|
1012 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
|
Chris@0
|
1013 else
|
Chris@0
|
1014 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
|
Chris@0
|
1015 fi
|
Chris@0
|
1016 exit 0 ;;
|
Chris@0
|
1017 i*86:*:5:[78]*)
|
Chris@0
|
1018 case `/bin/uname -X | grep "^Machine"` in
|
Chris@0
|
1019 *486*) UNAME_MACHINE=i486 ;;
|
Chris@0
|
1020 *Pentium) UNAME_MACHINE=i586 ;;
|
Chris@0
|
1021 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
|
Chris@0
|
1022 esac
|
Chris@0
|
1023 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
|
Chris@0
|
1024 exit 0 ;;
|
Chris@0
|
1025 i*86:*:3.2:*)
|
Chris@0
|
1026 if test -f /usr/options/cb.name; then
|
Chris@0
|
1027 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
|
Chris@0
|
1028 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
|
Chris@0
|
1029 elif /bin/uname -X 2>/dev/null >/dev/null ; then
|
Chris@0
|
1030 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
|
Chris@0
|
1031 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
|
Chris@0
|
1032 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
|
Chris@0
|
1033 && UNAME_MACHINE=i586
|
Chris@0
|
1034 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
|
Chris@0
|
1035 && UNAME_MACHINE=i686
|
Chris@0
|
1036 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
|
Chris@0
|
1037 && UNAME_MACHINE=i686
|
Chris@0
|
1038 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
|
Chris@0
|
1039 else
|
Chris@0
|
1040 echo ${UNAME_MACHINE}-pc-sysv32
|
Chris@0
|
1041 fi
|
Chris@0
|
1042 exit 0 ;;
|
Chris@0
|
1043 pc:*:*:*)
|
Chris@0
|
1044 # Left here for compatibility:
|
Chris@0
|
1045 # uname -m prints for DJGPP always 'pc', but it prints nothing about
|
Chris@0
|
1046 # the processor, so we play safe by assuming i386.
|
Chris@0
|
1047 echo i386-pc-msdosdjgpp
|
Chris@0
|
1048 exit 0 ;;
|
Chris@0
|
1049 Intel:Mach:3*:*)
|
Chris@0
|
1050 echo i386-pc-mach3
|
Chris@0
|
1051 exit 0 ;;
|
Chris@0
|
1052 paragon:*:*:*)
|
Chris@0
|
1053 echo i860-intel-osf1
|
Chris@0
|
1054 exit 0 ;;
|
Chris@0
|
1055 i860:*:4.*:*) # i860-SVR4
|
Chris@0
|
1056 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
|
Chris@0
|
1057 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
|
Chris@0
|
1058 else # Add other i860-SVR4 vendors below as they are discovered.
|
Chris@0
|
1059 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
|
Chris@0
|
1060 fi
|
Chris@0
|
1061 exit 0 ;;
|
Chris@0
|
1062 mini*:CTIX:SYS*5:*)
|
Chris@0
|
1063 # "miniframe"
|
Chris@0
|
1064 echo m68010-convergent-sysv
|
Chris@0
|
1065 exit 0 ;;
|
Chris@0
|
1066 mc68k:UNIX:SYSTEM5:3.51m)
|
Chris@0
|
1067 echo m68k-convergent-sysv
|
Chris@0
|
1068 exit 0 ;;
|
Chris@0
|
1069 M680?0:D-NIX:5.3:*)
|
Chris@0
|
1070 echo m68k-diab-dnix
|
Chris@0
|
1071 exit 0 ;;
|
Chris@0
|
1072 M68*:*:R3V[567]*:*)
|
Chris@0
|
1073 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
|
Chris@0
|
1074 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)
|
Chris@0
|
1075 OS_REL=''
|
Chris@0
|
1076 test -r /etc/.relid \
|
Chris@0
|
1077 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
Chris@0
|
1078 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
Chris@0
|
1079 && echo i486-ncr-sysv4.3${OS_REL} && exit 0
|
Chris@0
|
1080 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
Chris@0
|
1081 && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
|
Chris@0
|
1082 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
Chris@0
|
1083 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
Chris@0
|
1084 && echo i486-ncr-sysv4 && exit 0 ;;
|
Chris@0
|
1085 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
Chris@0
|
1086 echo m68k-unknown-lynxos${UNAME_RELEASE}
|
Chris@0
|
1087 exit 0 ;;
|
Chris@0
|
1088 mc68030:UNIX_System_V:4.*:*)
|
Chris@0
|
1089 echo m68k-atari-sysv4
|
Chris@0
|
1090 exit 0 ;;
|
Chris@0
|
1091 TSUNAMI:LynxOS:2.*:*)
|
Chris@0
|
1092 echo sparc-unknown-lynxos${UNAME_RELEASE}
|
Chris@0
|
1093 exit 0 ;;
|
Chris@0
|
1094 rs6000:LynxOS:2.*:*)
|
Chris@0
|
1095 echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
Chris@0
|
1096 exit 0 ;;
|
Chris@0
|
1097 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
|
Chris@0
|
1098 echo powerpc-unknown-lynxos${UNAME_RELEASE}
|
Chris@0
|
1099 exit 0 ;;
|
Chris@0
|
1100 SM[BE]S:UNIX_SV:*:*)
|
Chris@0
|
1101 echo mips-dde-sysv${UNAME_RELEASE}
|
Chris@0
|
1102 exit 0 ;;
|
Chris@0
|
1103 RM*:ReliantUNIX-*:*:*)
|
Chris@0
|
1104 echo mips-sni-sysv4
|
Chris@0
|
1105 exit 0 ;;
|
Chris@0
|
1106 RM*:SINIX-*:*:*)
|
Chris@0
|
1107 echo mips-sni-sysv4
|
Chris@0
|
1108 exit 0 ;;
|
Chris@0
|
1109 *:SINIX-*:*:*)
|
Chris@0
|
1110 if uname -p 2>/dev/null >/dev/null ; then
|
Chris@0
|
1111 UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
Chris@0
|
1112 echo ${UNAME_MACHINE}-sni-sysv4
|
Chris@0
|
1113 else
|
Chris@0
|
1114 echo ns32k-sni-sysv
|
Chris@0
|
1115 fi
|
Chris@0
|
1116 exit 0 ;;
|
Chris@0
|
1117 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
Chris@0
|
1118 # says <Richard.M.Bartel@ccMail.Census.GOV>
|
Chris@0
|
1119 echo i586-unisys-sysv4
|
Chris@0
|
1120 exit 0 ;;
|
Chris@0
|
1121 *:UNIX_System_V:4*:FTX*)
|
Chris@0
|
1122 # From Gerald Hewes <hewes@openmarket.com>.
|
Chris@0
|
1123 # How about differentiating between stratus architectures? -djm
|
Chris@0
|
1124 echo hppa1.1-stratus-sysv4
|
Chris@0
|
1125 exit 0 ;;
|
Chris@0
|
1126 *:*:*:FTX*)
|
Chris@0
|
1127 # From seanf@swdc.stratus.com.
|
Chris@0
|
1128 echo i860-stratus-sysv4
|
Chris@0
|
1129 exit 0 ;;
|
Chris@0
|
1130 *:VOS:*:*)
|
Chris@0
|
1131 # From Paul.Green@stratus.com.
|
Chris@0
|
1132 echo hppa1.1-stratus-vos
|
Chris@0
|
1133 exit 0 ;;
|
Chris@0
|
1134 mc68*:A/UX:*:*)
|
Chris@0
|
1135 echo m68k-apple-aux${UNAME_RELEASE}
|
Chris@0
|
1136 exit 0 ;;
|
Chris@0
|
1137 news*:NEWS-OS:6*:*)
|
Chris@0
|
1138 echo mips-sony-newsos6
|
Chris@0
|
1139 exit 0 ;;
|
Chris@0
|
1140 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
Chris@0
|
1141 if [ -d /usr/nec ]; then
|
Chris@0
|
1142 echo mips-nec-sysv${UNAME_RELEASE}
|
Chris@0
|
1143 else
|
Chris@0
|
1144 echo mips-unknown-sysv${UNAME_RELEASE}
|
Chris@0
|
1145 fi
|
Chris@0
|
1146 exit 0 ;;
|
Chris@0
|
1147 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
|
Chris@0
|
1148 echo powerpc-be-beos
|
Chris@0
|
1149 exit 0 ;;
|
Chris@0
|
1150 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
|
Chris@0
|
1151 echo powerpc-apple-beos
|
Chris@0
|
1152 exit 0 ;;
|
Chris@0
|
1153 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
Chris@0
|
1154 echo i586-pc-beos
|
Chris@0
|
1155 exit 0 ;;
|
Chris@0
|
1156 SX-4:SUPER-UX:*:*)
|
Chris@0
|
1157 echo sx4-nec-superux${UNAME_RELEASE}
|
Chris@0
|
1158 exit 0 ;;
|
Chris@0
|
1159 SX-5:SUPER-UX:*:*)
|
Chris@0
|
1160 echo sx5-nec-superux${UNAME_RELEASE}
|
Chris@0
|
1161 exit 0 ;;
|
Chris@0
|
1162 SX-6:SUPER-UX:*:*)
|
Chris@0
|
1163 echo sx6-nec-superux${UNAME_RELEASE}
|
Chris@0
|
1164 exit 0 ;;
|
Chris@0
|
1165 Power*:Rhapsody:*:*)
|
Chris@0
|
1166 echo powerpc-apple-rhapsody${UNAME_RELEASE}
|
Chris@0
|
1167 exit 0 ;;
|
Chris@0
|
1168 *:Rhapsody:*:*)
|
Chris@0
|
1169 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
|
Chris@0
|
1170 exit 0 ;;
|
Chris@0
|
1171 *:Darwin:*:*)
|
Chris@0
|
1172 case `uname -p` in
|
Chris@0
|
1173 *86) UNAME_PROCESSOR=i686 ;;
|
Chris@0
|
1174 powerpc) UNAME_PROCESSOR=powerpc ;;
|
Chris@0
|
1175 esac
|
Chris@0
|
1176 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
|
Chris@0
|
1177 exit 0 ;;
|
Chris@0
|
1178 *:procnto*:*:* | *:QNX:[0123456789]*:*)
|
Chris@0
|
1179 UNAME_PROCESSOR=`uname -p`
|
Chris@0
|
1180 if test "$UNAME_PROCESSOR" = "x86"; then
|
Chris@0
|
1181 UNAME_PROCESSOR=i386
|
Chris@0
|
1182 UNAME_MACHINE=pc
|
Chris@0
|
1183 fi
|
Chris@0
|
1184 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
|
Chris@0
|
1185 exit 0 ;;
|
Chris@0
|
1186 *:QNX:*:4*)
|
Chris@0
|
1187 echo i386-pc-qnx
|
Chris@0
|
1188 exit 0 ;;
|
Chris@0
|
1189 NSR-?:NONSTOP_KERNEL:*:*)
|
Chris@0
|
1190 echo nsr-tandem-nsk${UNAME_RELEASE}
|
Chris@0
|
1191 exit 0 ;;
|
Chris@0
|
1192 *:NonStop-UX:*:*)
|
Chris@0
|
1193 echo mips-compaq-nonstopux
|
Chris@0
|
1194 exit 0 ;;
|
Chris@0
|
1195 BS2000:POSIX*:*:*)
|
Chris@0
|
1196 echo bs2000-siemens-sysv
|
Chris@0
|
1197 exit 0 ;;
|
Chris@0
|
1198 DS/*:UNIX_System_V:*:*)
|
Chris@0
|
1199 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
|
Chris@0
|
1200 exit 0 ;;
|
Chris@0
|
1201 *:Plan9:*:*)
|
Chris@0
|
1202 # "uname -m" is not consistent, so use $cputype instead. 386
|
Chris@0
|
1203 # is converted to i386 for consistency with other x86
|
Chris@0
|
1204 # operating systems.
|
Chris@0
|
1205 if test "$cputype" = "386"; then
|
Chris@0
|
1206 UNAME_MACHINE=i386
|
Chris@0
|
1207 else
|
Chris@0
|
1208 UNAME_MACHINE="$cputype"
|
Chris@0
|
1209 fi
|
Chris@0
|
1210 echo ${UNAME_MACHINE}-unknown-plan9
|
Chris@0
|
1211 exit 0 ;;
|
Chris@0
|
1212 *:TOPS-10:*:*)
|
Chris@0
|
1213 echo pdp10-unknown-tops10
|
Chris@0
|
1214 exit 0 ;;
|
Chris@0
|
1215 *:TENEX:*:*)
|
Chris@0
|
1216 echo pdp10-unknown-tenex
|
Chris@0
|
1217 exit 0 ;;
|
Chris@0
|
1218 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
|
Chris@0
|
1219 echo pdp10-dec-tops20
|
Chris@0
|
1220 exit 0 ;;
|
Chris@0
|
1221 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
|
Chris@0
|
1222 echo pdp10-xkl-tops20
|
Chris@0
|
1223 exit 0 ;;
|
Chris@0
|
1224 *:TOPS-20:*:*)
|
Chris@0
|
1225 echo pdp10-unknown-tops20
|
Chris@0
|
1226 exit 0 ;;
|
Chris@0
|
1227 *:ITS:*:*)
|
Chris@0
|
1228 echo pdp10-unknown-its
|
Chris@0
|
1229 exit 0 ;;
|
Chris@0
|
1230 SEI:*:*:SEIUX)
|
Chris@0
|
1231 echo mips-sei-seiux${UNAME_RELEASE}
|
Chris@0
|
1232 exit 0 ;;
|
Chris@0
|
1233 *:DRAGONFLY:*:*)
|
Chris@0
|
1234 echo ${UNAME_MACHINE}-unknown-dragonfly${UNAME_RELEASE}
|
Chris@0
|
1235 exit 0 ;;
|
Chris@0
|
1236 esac
|
Chris@0
|
1237
|
Chris@0
|
1238 #echo '(No uname command or uname output not recognized.)' 1>&2
|
Chris@0
|
1239 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
Chris@0
|
1240
|
Chris@0
|
1241 eval $set_cc_for_build
|
Chris@0
|
1242 cat >$dummy.c <<EOF
|
Chris@0
|
1243 #ifdef _SEQUENT_
|
Chris@0
|
1244 # include <sys/types.h>
|
Chris@0
|
1245 # include <sys/utsname.h>
|
Chris@0
|
1246 #endif
|
Chris@0
|
1247 main ()
|
Chris@0
|
1248 {
|
Chris@0
|
1249 #if defined (sony)
|
Chris@0
|
1250 #if defined (MIPSEB)
|
Chris@0
|
1251 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
|
Chris@0
|
1252 I don't know.... */
|
Chris@0
|
1253 printf ("mips-sony-bsd\n"); exit (0);
|
Chris@0
|
1254 #else
|
Chris@0
|
1255 #include <sys/param.h>
|
Chris@0
|
1256 printf ("m68k-sony-newsos%s\n",
|
Chris@0
|
1257 #ifdef NEWSOS4
|
Chris@0
|
1258 "4"
|
Chris@0
|
1259 #else
|
Chris@0
|
1260 ""
|
Chris@0
|
1261 #endif
|
Chris@0
|
1262 ); exit (0);
|
Chris@0
|
1263 #endif
|
Chris@0
|
1264 #endif
|
Chris@0
|
1265
|
Chris@0
|
1266 #if defined (__arm) && defined (__acorn) && defined (__unix)
|
Chris@0
|
1267 printf ("arm-acorn-riscix"); exit (0);
|
Chris@0
|
1268 #endif
|
Chris@0
|
1269
|
Chris@0
|
1270 #if defined (hp300) && !defined (hpux)
|
Chris@0
|
1271 printf ("m68k-hp-bsd\n"); exit (0);
|
Chris@0
|
1272 #endif
|
Chris@0
|
1273
|
Chris@0
|
1274 #if defined (NeXT)
|
Chris@0
|
1275 #if !defined (__ARCHITECTURE__)
|
Chris@0
|
1276 #define __ARCHITECTURE__ "m68k"
|
Chris@0
|
1277 #endif
|
Chris@0
|
1278 int version;
|
Chris@0
|
1279 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
|
Chris@0
|
1280 if (version < 4)
|
Chris@0
|
1281 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
|
Chris@0
|
1282 else
|
Chris@0
|
1283 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
|
Chris@0
|
1284 exit (0);
|
Chris@0
|
1285 #endif
|
Chris@0
|
1286
|
Chris@0
|
1287 #if defined (MULTIMAX) || defined (n16)
|
Chris@0
|
1288 #if defined (UMAXV)
|
Chris@0
|
1289 printf ("ns32k-encore-sysv\n"); exit (0);
|
Chris@0
|
1290 #else
|
Chris@0
|
1291 #if defined (CMU)
|
Chris@0
|
1292 printf ("ns32k-encore-mach\n"); exit (0);
|
Chris@0
|
1293 #else
|
Chris@0
|
1294 printf ("ns32k-encore-bsd\n"); exit (0);
|
Chris@0
|
1295 #endif
|
Chris@0
|
1296 #endif
|
Chris@0
|
1297 #endif
|
Chris@0
|
1298
|
Chris@0
|
1299 #if defined (__386BSD__)
|
Chris@0
|
1300 printf ("i386-pc-bsd\n"); exit (0);
|
Chris@0
|
1301 #endif
|
Chris@0
|
1302
|
Chris@0
|
1303 #if defined (sequent)
|
Chris@0
|
1304 #if defined (i386)
|
Chris@0
|
1305 printf ("i386-sequent-dynix\n"); exit (0);
|
Chris@0
|
1306 #endif
|
Chris@0
|
1307 #if defined (ns32000)
|
Chris@0
|
1308 printf ("ns32k-sequent-dynix\n"); exit (0);
|
Chris@0
|
1309 #endif
|
Chris@0
|
1310 #endif
|
Chris@0
|
1311
|
Chris@0
|
1312 #if defined (_SEQUENT_)
|
Chris@0
|
1313 struct utsname un;
|
Chris@0
|
1314
|
Chris@0
|
1315 uname(&un);
|
Chris@0
|
1316
|
Chris@0
|
1317 if (strncmp(un.version, "V2", 2) == 0) {
|
Chris@0
|
1318 printf ("i386-sequent-ptx2\n"); exit (0);
|
Chris@0
|
1319 }
|
Chris@0
|
1320 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
|
Chris@0
|
1321 printf ("i386-sequent-ptx1\n"); exit (0);
|
Chris@0
|
1322 }
|
Chris@0
|
1323 printf ("i386-sequent-ptx\n"); exit (0);
|
Chris@0
|
1324
|
Chris@0
|
1325 #endif
|
Chris@0
|
1326
|
Chris@0
|
1327 #if defined (vax)
|
Chris@0
|
1328 # if !defined (ultrix)
|
Chris@0
|
1329 # include <sys/param.h>
|
Chris@0
|
1330 # if defined (BSD)
|
Chris@0
|
1331 # if BSD == 43
|
Chris@0
|
1332 printf ("vax-dec-bsd4.3\n"); exit (0);
|
Chris@0
|
1333 # else
|
Chris@0
|
1334 # if BSD == 199006
|
Chris@0
|
1335 printf ("vax-dec-bsd4.3reno\n"); exit (0);
|
Chris@0
|
1336 # else
|
Chris@0
|
1337 printf ("vax-dec-bsd\n"); exit (0);
|
Chris@0
|
1338 # endif
|
Chris@0
|
1339 # endif
|
Chris@0
|
1340 # else
|
Chris@0
|
1341 printf ("vax-dec-bsd\n"); exit (0);
|
Chris@0
|
1342 # endif
|
Chris@0
|
1343 # else
|
Chris@0
|
1344 printf ("vax-dec-ultrix\n"); exit (0);
|
Chris@0
|
1345 # endif
|
Chris@0
|
1346 #endif
|
Chris@0
|
1347
|
Chris@0
|
1348 #if defined (alliant) && defined (i860)
|
Chris@0
|
1349 printf ("i860-alliant-bsd\n"); exit (0);
|
Chris@0
|
1350 #endif
|
Chris@0
|
1351
|
Chris@0
|
1352 exit (1);
|
Chris@0
|
1353 }
|
Chris@0
|
1354 EOF
|
Chris@0
|
1355
|
Chris@0
|
1356 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
|
Chris@0
|
1357
|
Chris@0
|
1358 # Apollos put the system type in the environment.
|
Chris@0
|
1359
|
Chris@0
|
1360 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
|
Chris@0
|
1361
|
Chris@0
|
1362 # Convex versions that predate uname can use getsysinfo(1)
|
Chris@0
|
1363
|
Chris@0
|
1364 if [ -x /usr/convex/getsysinfo ]
|
Chris@0
|
1365 then
|
Chris@0
|
1366 case `getsysinfo -f cpu_type` in
|
Chris@0
|
1367 c1*)
|
Chris@0
|
1368 echo c1-convex-bsd
|
Chris@0
|
1369 exit 0 ;;
|
Chris@0
|
1370 c2*)
|
Chris@0
|
1371 if getsysinfo -f scalar_acc
|
Chris@0
|
1372 then echo c32-convex-bsd
|
Chris@0
|
1373 else echo c2-convex-bsd
|
Chris@0
|
1374 fi
|
Chris@0
|
1375 exit 0 ;;
|
Chris@0
|
1376 c34*)
|
Chris@0
|
1377 echo c34-convex-bsd
|
Chris@0
|
1378 exit 0 ;;
|
Chris@0
|
1379 c38*)
|
Chris@0
|
1380 echo c38-convex-bsd
|
Chris@0
|
1381 exit 0 ;;
|
Chris@0
|
1382 c4*)
|
Chris@0
|
1383 echo c4-convex-bsd
|
Chris@0
|
1384 exit 0 ;;
|
Chris@0
|
1385 esac
|
Chris@0
|
1386 fi
|
Chris@0
|
1387
|
Chris@0
|
1388 cat >&2 <<EOF
|
Chris@0
|
1389 $0: unable to guess system type
|
Chris@0
|
1390
|
Chris@0
|
1391 This script, last modified $timestamp, has failed to recognize
|
Chris@0
|
1392 the operating system you are using. It is advised that you
|
Chris@0
|
1393 download the most up to date version of the config scripts from
|
Chris@0
|
1394
|
Chris@0
|
1395 ftp://ftp.gnu.org/pub/gnu/config/
|
Chris@0
|
1396
|
Chris@0
|
1397 If the version you run ($0) is already up to date, please
|
Chris@0
|
1398 send the following data and any information you think might be
|
Chris@0
|
1399 pertinent to <config-patches@gnu.org> in order to provide the needed
|
Chris@0
|
1400 information to handle your system.
|
Chris@0
|
1401
|
Chris@0
|
1402 config.guess timestamp = $timestamp
|
Chris@0
|
1403
|
Chris@0
|
1404 uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
Chris@0
|
1405 uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
Chris@0
|
1406 uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
Chris@0
|
1407 uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
Chris@0
|
1408
|
Chris@0
|
1409 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
|
Chris@0
|
1410 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
|
Chris@0
|
1411
|
Chris@0
|
1412 hostinfo = `(hostinfo) 2>/dev/null`
|
Chris@0
|
1413 /bin/universe = `(/bin/universe) 2>/dev/null`
|
Chris@0
|
1414 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
|
Chris@0
|
1415 /bin/arch = `(/bin/arch) 2>/dev/null`
|
Chris@0
|
1416 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
|
Chris@0
|
1417 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
|
Chris@0
|
1418
|
Chris@0
|
1419 UNAME_MACHINE = ${UNAME_MACHINE}
|
Chris@0
|
1420 UNAME_RELEASE = ${UNAME_RELEASE}
|
Chris@0
|
1421 UNAME_SYSTEM = ${UNAME_SYSTEM}
|
Chris@0
|
1422 UNAME_VERSION = ${UNAME_VERSION}
|
Chris@0
|
1423 EOF
|
Chris@0
|
1424
|
Chris@0
|
1425 exit 1
|
Chris@0
|
1426
|
Chris@0
|
1427 # Local variables:
|
Chris@0
|
1428 # eval: (add-hook 'write-file-hooks 'time-stamp)
|
Chris@0
|
1429 # time-stamp-start: "timestamp='"
|
Chris@0
|
1430 # time-stamp-format: "%:y-%02m-%02d"
|
Chris@0
|
1431 # time-stamp-end: "'"
|
Chris@0
|
1432 # End:
|