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