Deleted Added
full compact
config.guess (251886) config.guess (269851)
1#! /bin/sh
2# Attempt to guess a canonical system name.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1#! /bin/sh
2# Attempt to guess a canonical system name.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5# 2011, 2012 Free Software Foundation, Inc.
5
6
6timestamp='2005-07-08'
7timestamp='2012-02-10'
7
8# This file is free software; you can redistribute it and/or modify it
9# under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful, but
14# WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16# General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
8
9# This file is free software; you can redistribute it and/or modify it
10# under the terms of the GNU General Public License as published by
11# the Free Software Foundation; either version 2 of the License, or
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful, but
15# WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17# General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21# 02110-1301, USA.
20# along with this program; if not, see <http://www.gnu.org/licenses/>.
22#
23# As a special exception to the GNU General Public License, if you
24# distribute this file as part of a program that contains a
25# configuration script generated by Autoconf, you may include it under
26# the same distribution terms that you use for the rest of that program.
27
28
21#
22# As a special exception to the GNU General Public License, if you
23# distribute this file as part of a program that contains a
24# configuration script generated by Autoconf, you may include it under
25# the same distribution terms that you use for the rest of that program.
26
27
29# Originally written by Per Bothner <per@bothner.com>.
30# Please send patches to <config-patches@gnu.org>. Submit a context
31# diff and a properly formatted ChangeLog entry.
28# Originally written by Per Bothner. Please send patches (context
29# diff format) to <config-patches@gnu.org> and include a ChangeLog
30# entry.
32#
33# This script attempts to guess a canonical system name similar to
34# config.sub. If it succeeds, it prints the system name on stdout, and
35# exits with 0. Otherwise, it exits with 1.
36#
31#
32# This script attempts to guess a canonical system name similar to
33# config.sub. If it succeeds, it prints the system name on stdout, and
34# exits with 0. Otherwise, it exits with 1.
35#
37# The plan is that this can be called by configure scripts if you
38# don't specify an explicit build system type.
36# You can get the latest version of this script from:
37# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
39
40me=`echo "$0" | sed -e 's,.*/,,'`
41
42usage="\
43Usage: $0 [OPTION]
44
45Output the configuration name of the system \`$me' is run on.
46
47Operation modes:
48 -h, --help print this help, then exit
49 -t, --time-stamp print date of last modification, then exit
50 -v, --version print version number, then exit
51
52Report bugs and patches to <config-patches@gnu.org>."
53
54version="\
55GNU config.guess ($timestamp)
56
57Originally written by Per Bothner.
38
39me=`echo "$0" | sed -e 's,.*/,,'`
40
41usage="\
42Usage: $0 [OPTION]
43
44Output the configuration name of the system \`$me' is run on.
45
46Operation modes:
47 -h, --help print this help, then exit
48 -t, --time-stamp print date of last modification, then exit
49 -v, --version print version number, then exit
50
51Report bugs and patches to <config-patches@gnu.org>."
52
53version="\
54GNU config.guess ($timestamp)
55
56Originally written by Per Bothner.
58Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
57Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
582001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
59Free Software Foundation, Inc.
60
61This is free software; see the source for copying conditions. There is NO
62warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
63
64help="
65Try \`$me --help' for more information."
66

--- 34 unchanged lines hidden (view full) ---

101# use `HOST_CC' if defined, but it is deprecated.
102
103# Portable tmp directory creation inspired by the Autoconf team.
104
105set_cc_for_build='
106trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108: ${TMPDIR=/tmp} ;
59Free Software Foundation, Inc.
60
61This is free software; see the source for copying conditions. There is NO
62warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
63
64help="
65Try \`$me --help' for more information."
66

--- 34 unchanged lines hidden (view full) ---

101# use `HOST_CC' if defined, but it is deprecated.
102
103# Portable tmp directory creation inspired by the Autoconf team.
104
105set_cc_for_build='
106trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108: ${TMPDIR=/tmp} ;
109 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
109 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
113dummy=$tmp/dummy ;
114tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
115case $CC_FOR_BUILD,$HOST_CC,$CC in
116 ,,) echo "int x;" > $dummy.c ;
117 for c in cc gcc c89 c99 ; do

--- 20 unchanged lines hidden (view full) ---

138UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
139UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140
141# Note: order is significant - the case branches are not exclusive.
142
143case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144 *:NetBSD:*:*)
145 # NetBSD (nbsd) targets should (where applicable) match one or
110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
113dummy=$tmp/dummy ;
114tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
115case $CC_FOR_BUILD,$HOST_CC,$CC in
116 ,,) echo "int x;" > $dummy.c ;
117 for c in cc gcc c89 c99 ; do

--- 20 unchanged lines hidden (view full) ---

138UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
139UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140
141# Note: order is significant - the case branches are not exclusive.
142
143case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144 *:NetBSD:*:*)
145 # NetBSD (nbsd) targets should (where applicable) match one or
146 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
146 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148 # switched to ELF, *-*-netbsd* would select the old
149 # object file format. This provides both forward
150 # compatibility and a consistent mechanism for selecting the
151 # object file format.
152 #
153 # Note: NetBSD doesn't particularly care about the vendor
154 # portion of the name. We always set it to "unknown".
155 sysctl="sysctl -n hw.machine_arch"
156 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
157 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
158 case "${UNAME_MACHINE_ARCH}" in
159 armeb) machine=armeb-unknown ;;
160 arm*) machine=arm-unknown ;;
161 sh3el) machine=shl-unknown ;;
162 sh3eb) machine=sh-unknown ;;
147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148 # switched to ELF, *-*-netbsd* would select the old
149 # object file format. This provides both forward
150 # compatibility and a consistent mechanism for selecting the
151 # object file format.
152 #
153 # Note: NetBSD doesn't particularly care about the vendor
154 # portion of the name. We always set it to "unknown".
155 sysctl="sysctl -n hw.machine_arch"
156 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
157 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
158 case "${UNAME_MACHINE_ARCH}" in
159 armeb) machine=armeb-unknown ;;
160 arm*) machine=arm-unknown ;;
161 sh3el) machine=shl-unknown ;;
162 sh3eb) machine=sh-unknown ;;
163 sh5el) machine=sh5le-unknown ;;
163 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
164 esac
165 # The Operating System including object format, if it has switched
166 # to ELF recently, or will in the future.
167 case "${UNAME_MACHINE_ARCH}" in
168 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
169 eval $set_cc_for_build
170 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
164 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
165 esac
166 # The Operating System including object format, if it has switched
167 # to ELF recently, or will in the future.
168 case "${UNAME_MACHINE_ARCH}" in
169 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
170 eval $set_cc_for_build
171 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
171 | grep __ELF__ >/dev/null
172 | grep -q __ELF__
172 then
173 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
174 # Return netbsd for either. FIX?
175 os=netbsd
176 else
177 os=netbsdelf
178 fi
179 ;;
180 *)
173 then
174 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
175 # Return netbsd for either. FIX?
176 os=netbsd
177 else
178 os=netbsdelf
179 fi
180 ;;
181 *)
181 os=netbsd
182 os=netbsd
182 ;;
183 esac
184 # The OS release
185 # Debian GNU/NetBSD machines have a different userland, and
186 # thus, need a distinct triplet. However, they do not need
187 # kernel version information, so it can be replaced with a
188 # suitable tag, in the style of linux-gnu.
189 case "${UNAME_VERSION}" in

--- 11 unchanged lines hidden (view full) ---

201 exit ;;
202 *:OpenBSD:*:*)
203 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
204 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
205 exit ;;
206 *:ekkoBSD:*:*)
207 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
208 exit ;;
183 ;;
184 esac
185 # The OS release
186 # Debian GNU/NetBSD machines have a different userland, and
187 # thus, need a distinct triplet. However, they do not need
188 # kernel version information, so it can be replaced with a
189 # suitable tag, in the style of linux-gnu.
190 case "${UNAME_VERSION}" in

--- 11 unchanged lines hidden (view full) ---

202 exit ;;
203 *:OpenBSD:*:*)
204 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
205 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
206 exit ;;
207 *:ekkoBSD:*:*)
208 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
209 exit ;;
210 *:SolidBSD:*:*)
211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
212 exit ;;
209 macppc:MirBSD:*:*)
213 macppc:MirBSD:*:*)
210 echo powerppc-unknown-mirbsd${UNAME_RELEASE}
214 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
211 exit ;;
212 *:MirBSD:*:*)
213 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
214 exit ;;
215 alpha:OSF1:*:*)
216 case $UNAME_RELEASE in
217 *4.0)
218 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
219 ;;
220 *5.*)
215 exit ;;
216 *:MirBSD:*:*)
217 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
218 exit ;;
219 alpha:OSF1:*:*)
220 case $UNAME_RELEASE in
221 *4.0)
222 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
223 ;;
224 *5.*)
221 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
225 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
222 ;;
223 esac
224 # According to Compaq, /usr/sbin/psrinfo has been available on
225 # OSF/1 and Tru64 systems produced since 1995. I hope that
226 # covers most systems running today. This code pipes the CPU
227 # types through head -n 1, so we only detect the type of CPU 0.
228 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
229 case "$ALPHA_CPU_TYPE" in

--- 29 unchanged lines hidden (view full) ---

259 UNAME_MACHINE="alphaev79" ;;
260 esac
261 # A Pn.n version is a patched version.
262 # A Vn.n version is a released version.
263 # A Tn.n version is a released field test version.
264 # A Xn.n version is an unreleased experimental baselevel.
265 # 1.2 uses "1.2" for uname -r.
266 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
226 ;;
227 esac
228 # According to Compaq, /usr/sbin/psrinfo has been available on
229 # OSF/1 and Tru64 systems produced since 1995. I hope that
230 # covers most systems running today. This code pipes the CPU
231 # types through head -n 1, so we only detect the type of CPU 0.
232 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
233 case "$ALPHA_CPU_TYPE" in

--- 29 unchanged lines hidden (view full) ---

263 UNAME_MACHINE="alphaev79" ;;
264 esac
265 # A Pn.n version is a patched version.
266 # A Vn.n version is a released version.
267 # A Tn.n version is a released field test version.
268 # A Xn.n version is an unreleased experimental baselevel.
269 # 1.2 uses "1.2" for uname -r.
270 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
267 exit ;;
271 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
272 exitcode=$?
273 trap '' 0
274 exit $exitcode ;;
268 Alpha\ *:Windows_NT*:*)
269 # How do we know it's Interix rather than the generic POSIX subsystem?
270 # Should we change UNAME_MACHINE based on the output of uname instead
271 # of the specific Alpha model?
272 echo alpha-pc-interix
273 exit ;;
274 21064:Windows_NT:50:3)
275 echo alpha-dec-winnt3.5

--- 9 unchanged lines hidden (view full) ---

285 exit ;;
286 *:OS/390:*:*)
287 echo i370-ibm-openedition
288 exit ;;
289 *:z/VM:*:*)
290 echo s390-ibm-zvmoe
291 exit ;;
292 *:OS400:*:*)
275 Alpha\ *:Windows_NT*:*)
276 # How do we know it's Interix rather than the generic POSIX subsystem?
277 # Should we change UNAME_MACHINE based on the output of uname instead
278 # of the specific Alpha model?
279 echo alpha-pc-interix
280 exit ;;
281 21064:Windows_NT:50:3)
282 echo alpha-dec-winnt3.5

--- 9 unchanged lines hidden (view full) ---

292 exit ;;
293 *:OS/390:*:*)
294 echo i370-ibm-openedition
295 exit ;;
296 *:z/VM:*:*)
297 echo s390-ibm-zvmoe
298 exit ;;
299 *:OS400:*:*)
293 echo powerpc-ibm-os400
300 echo powerpc-ibm-os400
294 exit ;;
295 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
296 echo arm-acorn-riscix${UNAME_RELEASE}
297 exit ;;
298 arm:riscos:*:*|arm:RISCOS:*:*)
299 echo arm-unknown-riscos
300 exit ;;
301 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)

--- 12 unchanged lines hidden (view full) ---

314 exit ;;
315 DRS?6000:unix:4.0:6*)
316 echo sparc-icl-nx6
317 exit ;;
318 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
319 case `/usr/bin/uname -p` in
320 sparc) echo sparc-icl-nx7; exit ;;
321 esac ;;
301 exit ;;
302 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
303 echo arm-acorn-riscix${UNAME_RELEASE}
304 exit ;;
305 arm:riscos:*:*|arm:RISCOS:*:*)
306 echo arm-unknown-riscos
307 exit ;;
308 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)

--- 12 unchanged lines hidden (view full) ---

321 exit ;;
322 DRS?6000:unix:4.0:6*)
323 echo sparc-icl-nx6
324 exit ;;
325 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
326 case `/usr/bin/uname -p` in
327 sparc) echo sparc-icl-nx7; exit ;;
328 esac ;;
329 s390x:SunOS:*:*)
330 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331 exit ;;
322 sun4H:SunOS:5.*:*)
323 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
324 exit ;;
325 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
326 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
327 exit ;;
332 sun4H:SunOS:5.*:*)
333 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334 exit ;;
335 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
336 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
337 exit ;;
328 i86pc:SunOS:5.*:*)
329 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
338 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
339 echo i386-pc-auroraux${UNAME_RELEASE}
330 exit ;;
340 exit ;;
341 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
342 eval $set_cc_for_build
343 SUN_ARCH="i386"
344 # If there is a compiler, see if it is configured for 64-bit objects.
345 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
346 # This test works for both compilers.
347 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
348 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
349 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
350 grep IS_64BIT_ARCH >/dev/null
351 then
352 SUN_ARCH="x86_64"
353 fi
354 fi
355 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
356 exit ;;
331 sun4*:SunOS:6*:*)
332 # According to config.sub, this is the proper way to canonicalize
333 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
334 # it's likely to be more like Solaris than SunOS4.
335 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
336 exit ;;
337 sun4*:SunOS:*:*)
338 case "`/usr/bin/arch -k`" in

--- 26 unchanged lines hidden (view full) ---

365 # can be virtually everything (everything which is not
366 # "atarist" or "atariste" at least should have a processor
367 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
368 # to the lowercase version "mint" (or "freemint"). Finally
369 # the system name "TOS" denotes a system which is actually not
370 # MiNT. But MiNT is downward compatible to TOS, so this should
371 # be no problem.
372 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
357 sun4*:SunOS:6*:*)
358 # According to config.sub, this is the proper way to canonicalize
359 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
360 # it's likely to be more like Solaris than SunOS4.
361 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
362 exit ;;
363 sun4*:SunOS:*:*)
364 case "`/usr/bin/arch -k`" in

--- 26 unchanged lines hidden (view full) ---

391 # can be virtually everything (everything which is not
392 # "atarist" or "atariste" at least should have a processor
393 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
394 # to the lowercase version "mint" (or "freemint"). Finally
395 # the system name "TOS" denotes a system which is actually not
396 # MiNT. But MiNT is downward compatible to TOS, so this should
397 # be no problem.
398 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
373 echo m68k-atari-mint${UNAME_RELEASE}
399 echo m68k-atari-mint${UNAME_RELEASE}
374 exit ;;
375 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
376 echo m68k-atari-mint${UNAME_RELEASE}
400 exit ;;
401 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
402 echo m68k-atari-mint${UNAME_RELEASE}
377 exit ;;
403 exit ;;
378 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
404 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
379 echo m68k-atari-mint${UNAME_RELEASE}
405 echo m68k-atari-mint${UNAME_RELEASE}
380 exit ;;
381 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
406 exit ;;
407 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
382 echo m68k-milan-mint${UNAME_RELEASE}
383 exit ;;
408 echo m68k-milan-mint${UNAME_RELEASE}
409 exit ;;
384 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
410 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
385 echo m68k-hades-mint${UNAME_RELEASE}
386 exit ;;
411 echo m68k-hades-mint${UNAME_RELEASE}
412 exit ;;
387 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
413 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
388 echo m68k-unknown-mint${UNAME_RELEASE}
389 exit ;;
414 echo m68k-unknown-mint${UNAME_RELEASE}
415 exit ;;
390 m68k:machten:*:*)
391 echo m68k-apple-machten${UNAME_RELEASE}
392 exit ;;
393 powerpc:machten:*:*)
394 echo powerpc-apple-machten${UNAME_RELEASE}
395 exit ;;
396 RISC*:Mach:*:*)
397 echo mips-dec-mach_bsd4.3

--- 53 unchanged lines hidden (view full) ---

451 exit ;;
452 m88k:*:4*:R4*)
453 echo m88k-motorola-sysv4
454 exit ;;
455 m88k:*:3*:R3*)
456 echo m88k-motorola-sysv3
457 exit ;;
458 AViiON:dgux:*:*)
416 m68k:machten:*:*)
417 echo m68k-apple-machten${UNAME_RELEASE}
418 exit ;;
419 powerpc:machten:*:*)
420 echo powerpc-apple-machten${UNAME_RELEASE}
421 exit ;;
422 RISC*:Mach:*:*)
423 echo mips-dec-mach_bsd4.3

--- 53 unchanged lines hidden (view full) ---

477 exit ;;
478 m88k:*:4*:R4*)
479 echo m88k-motorola-sysv4
480 exit ;;
481 m88k:*:3*:R3*)
482 echo m88k-motorola-sysv3
483 exit ;;
484 AViiON:dgux:*:*)
459 # DG/UX returns AViiON for all architectures
460 UNAME_PROCESSOR=`/usr/bin/uname -p`
485 # DG/UX returns AViiON for all architectures
486 UNAME_PROCESSOR=`/usr/bin/uname -p`
461 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
462 then
463 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
464 [ ${TARGET_BINARY_INTERFACE}x = x ]
465 then
466 echo m88k-dg-dgux${UNAME_RELEASE}
467 else
468 echo m88k-dg-dguxbcs${UNAME_RELEASE}
469 fi
470 else
471 echo i586-dg-dgux${UNAME_RELEASE}
472 fi
487 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
488 then
489 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
490 [ ${TARGET_BINARY_INTERFACE}x = x ]
491 then
492 echo m88k-dg-dgux${UNAME_RELEASE}
493 else
494 echo m88k-dg-dguxbcs${UNAME_RELEASE}
495 fi
496 else
497 echo i586-dg-dgux${UNAME_RELEASE}
498 fi
473 exit ;;
499 exit ;;
474 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
475 echo m88k-dolphin-sysv3
476 exit ;;
477 M88*:*:R3*:*)
478 # Delta 88k system running SVR3
479 echo m88k-motorola-sysv3
480 exit ;;
481 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)

--- 40 unchanged lines hidden (view full) ---

522 echo rs6000-ibm-aix3.2.5
523 fi
524 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
525 echo rs6000-ibm-aix3.2.4
526 else
527 echo rs6000-ibm-aix3.2
528 fi
529 exit ;;
500 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
501 echo m88k-dolphin-sysv3
502 exit ;;
503 M88*:*:R3*:*)
504 # Delta 88k system running SVR3
505 echo m88k-motorola-sysv3
506 exit ;;
507 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)

--- 40 unchanged lines hidden (view full) ---

548 echo rs6000-ibm-aix3.2.5
549 fi
550 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
551 echo rs6000-ibm-aix3.2.4
552 else
553 echo rs6000-ibm-aix3.2
554 fi
555 exit ;;
530 *:AIX:*:[45])
556 *:AIX:*:[4567])
531 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
532 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
533 IBM_ARCH=rs6000
534 else
535 IBM_ARCH=powerpc
536 fi
537 if [ -x /usr/bin/oslevel ] ; then
538 IBM_REV=`/usr/bin/oslevel`

--- 26 unchanged lines hidden (view full) ---

565 9000/[34678]??:HP-UX:*:*)
566 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
567 case "${UNAME_MACHINE}" in
568 9000/31? ) HP_ARCH=m68000 ;;
569 9000/[34]?? ) HP_ARCH=m68k ;;
570 9000/[678][0-9][0-9])
571 if [ -x /usr/bin/getconf ]; then
572 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
557 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
558 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
559 IBM_ARCH=rs6000
560 else
561 IBM_ARCH=powerpc
562 fi
563 if [ -x /usr/bin/oslevel ] ; then
564 IBM_REV=`/usr/bin/oslevel`

--- 26 unchanged lines hidden (view full) ---

591 9000/[34678]??:HP-UX:*:*)
592 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
593 case "${UNAME_MACHINE}" in
594 9000/31? ) HP_ARCH=m68000 ;;
595 9000/[34]?? ) HP_ARCH=m68k ;;
596 9000/[678][0-9][0-9])
597 if [ -x /usr/bin/getconf ]; then
598 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
573 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
574 case "${sc_cpu_version}" in
575 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
576 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
577 532) # CPU_PA_RISC2_0
578 case "${sc_kernel_bits}" in
579 32) HP_ARCH="hppa2.0n" ;;
580 64) HP_ARCH="hppa2.0w" ;;
599 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
600 case "${sc_cpu_version}" in
601 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
602 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
603 532) # CPU_PA_RISC2_0
604 case "${sc_kernel_bits}" in
605 32) HP_ARCH="hppa2.0n" ;;
606 64) HP_ARCH="hppa2.0w" ;;
581 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
607 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
582 esac ;;
583 esac
608 esac ;;
609 esac
584 fi
585 if [ "${HP_ARCH}" = "" ]; then
586 eval $set_cc_for_build
610 fi
611 if [ "${HP_ARCH}" = "" ]; then
612 eval $set_cc_for_build
587 sed 's/^ //' << EOF >$dummy.c
613 sed 's/^ //' << EOF >$dummy.c
588
614
589 #define _HPUX_SOURCE
590 #include <stdlib.h>
591 #include <unistd.h>
615 #define _HPUX_SOURCE
616 #include <stdlib.h>
617 #include <unistd.h>
592
618
593 int main ()
594 {
595 #if defined(_SC_KERNEL_BITS)
596 long bits = sysconf(_SC_KERNEL_BITS);
597 #endif
598 long cpu = sysconf (_SC_CPU_VERSION);
619 int main ()
620 {
621 #if defined(_SC_KERNEL_BITS)
622 long bits = sysconf(_SC_KERNEL_BITS);
623 #endif
624 long cpu = sysconf (_SC_CPU_VERSION);
599
625
600 switch (cpu)
601 {
602 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
603 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
604 case CPU_PA_RISC2_0:
605 #if defined(_SC_KERNEL_BITS)
606 switch (bits)
607 {
608 case 64: puts ("hppa2.0w"); break;
609 case 32: puts ("hppa2.0n"); break;
610 default: puts ("hppa2.0"); break;
611 } break;
612 #else /* !defined(_SC_KERNEL_BITS) */
613 puts ("hppa2.0"); break;
614 #endif
615 default: puts ("hppa1.0"); break;
616 }
617 exit (0);
618 }
626 switch (cpu)
627 {
628 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
629 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
630 case CPU_PA_RISC2_0:
631 #if defined(_SC_KERNEL_BITS)
632 switch (bits)
633 {
634 case 64: puts ("hppa2.0w"); break;
635 case 32: puts ("hppa2.0n"); break;
636 default: puts ("hppa2.0"); break;
637 } break;
638 #else /* !defined(_SC_KERNEL_BITS) */
639 puts ("hppa2.0"); break;
640 #endif
641 default: puts ("hppa1.0"); break;
642 }
643 exit (0);
644 }
619EOF
620 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
621 test -z "$HP_ARCH" && HP_ARCH=hppa
622 fi ;;
623 esac
624 if [ ${HP_ARCH} = "hppa2.0w" ]
625 then
626 eval $set_cc_for_build
627
628 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
629 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
630 # generating 64-bit code. GNU and HP use different nomenclature:
631 #
632 # $ CC_FOR_BUILD=cc ./config.guess
633 # => hppa2.0w-hp-hpux11.23
634 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
635 # => hppa64-hp-hpux11.23
636
637 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
645EOF
646 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
647 test -z "$HP_ARCH" && HP_ARCH=hppa
648 fi ;;
649 esac
650 if [ ${HP_ARCH} = "hppa2.0w" ]
651 then
652 eval $set_cc_for_build
653
654 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
655 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
656 # generating 64-bit code. GNU and HP use different nomenclature:
657 #
658 # $ CC_FOR_BUILD=cc ./config.guess
659 # => hppa2.0w-hp-hpux11.23
660 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
661 # => hppa64-hp-hpux11.23
662
663 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
638 grep __LP64__ >/dev/null
664 grep -q __LP64__
639 then
640 HP_ARCH="hppa2.0w"
641 else
642 HP_ARCH="hppa64"
643 fi
644 fi
645 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
646 exit ;;

--- 54 unchanged lines hidden (view full) ---

701 echo ${UNAME_MACHINE}-unknown-osf1
702 fi
703 exit ;;
704 parisc*:Lites*:*:*)
705 echo hppa1.1-hp-lites
706 exit ;;
707 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
708 echo c1-convex-bsd
665 then
666 HP_ARCH="hppa2.0w"
667 else
668 HP_ARCH="hppa64"
669 fi
670 fi
671 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
672 exit ;;

--- 54 unchanged lines hidden (view full) ---

727 echo ${UNAME_MACHINE}-unknown-osf1
728 fi
729 exit ;;
730 parisc*:Lites*:*:*)
731 echo hppa1.1-hp-lites
732 exit ;;
733 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
734 echo c1-convex-bsd
709 exit ;;
735 exit ;;
710 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
711 if getsysinfo -f scalar_acc
712 then echo c32-convex-bsd
713 else echo c2-convex-bsd
714 fi
736 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
737 if getsysinfo -f scalar_acc
738 then echo c32-convex-bsd
739 else echo c2-convex-bsd
740 fi
715 exit ;;
741 exit ;;
716 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
717 echo c34-convex-bsd
742 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
743 echo c34-convex-bsd
718 exit ;;
744 exit ;;
719 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
720 echo c38-convex-bsd
745 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
746 echo c38-convex-bsd
721 exit ;;
747 exit ;;
722 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
723 echo c4-convex-bsd
748 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
749 echo c4-convex-bsd
724 exit ;;
750 exit ;;
725 CRAY*Y-MP:*:*:*)
726 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
727 exit ;;
728 CRAY*[A-Z]90:*:*:*)
729 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
730 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
731 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
732 -e 's/\.[^.]*$/.X/'

--- 7 unchanged lines hidden (view full) ---

740 CRAY*SV1:*:*:*)
741 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
742 exit ;;
743 *:UNICOS/mp:*:*)
744 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
745 exit ;;
746 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
747 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
751 CRAY*Y-MP:*:*:*)
752 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
753 exit ;;
754 CRAY*[A-Z]90:*:*:*)
755 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
756 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
757 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
758 -e 's/\.[^.]*$/.X/'

--- 7 unchanged lines hidden (view full) ---

766 CRAY*SV1:*:*:*)
767 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
768 exit ;;
769 *:UNICOS/mp:*:*)
770 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
771 exit ;;
772 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
773 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
748 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
749 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
750 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
751 exit ;;
774 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
775 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
776 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
777 exit ;;
752 5000:UNIX_System_V:4.*:*)
778 5000:UNIX_System_V:4.*:*)
753 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
754 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
755 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
779 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
780 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
781 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
756 exit ;;
757 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
758 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
759 exit ;;
760 sparc*:BSD/OS:*:*)
761 echo sparc-unknown-bsdi${UNAME_RELEASE}
762 exit ;;
763 *:BSD/OS:*:*)
764 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
765 exit ;;
766 *:FreeBSD:*:*)
782 exit ;;
783 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
784 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
785 exit ;;
786 sparc*:BSD/OS:*:*)
787 echo sparc-unknown-bsdi${UNAME_RELEASE}
788 exit ;;
789 *:BSD/OS:*:*)
790 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
791 exit ;;
792 *:FreeBSD:*:*)
767 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
793 UNAME_PROCESSOR=`/usr/bin/uname -p`
794 case ${UNAME_PROCESSOR} in
795 amd64)
796 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797 *)
798 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
799 esac
768 exit ;;
769 i*:CYGWIN*:*)
770 echo ${UNAME_MACHINE}-pc-cygwin
771 exit ;;
800 exit ;;
801 i*:CYGWIN*:*)
802 echo ${UNAME_MACHINE}-pc-cygwin
803 exit ;;
772 i*:MINGW*:*)
804 *:MINGW*:*)
773 echo ${UNAME_MACHINE}-pc-mingw32
774 exit ;;
805 echo ${UNAME_MACHINE}-pc-mingw32
806 exit ;;
807 i*:MSYS*:*)
808 echo ${UNAME_MACHINE}-pc-msys
809 exit ;;
775 i*:windows32*:*)
810 i*:windows32*:*)
776 # uname -m includes "-pc" on this system.
777 echo ${UNAME_MACHINE}-mingw32
811 # uname -m includes "-pc" on this system.
812 echo ${UNAME_MACHINE}-mingw32
778 exit ;;
779 i*:PW*:*)
780 echo ${UNAME_MACHINE}-pc-pw32
781 exit ;;
813 exit ;;
814 i*:PW*:*)
815 echo ${UNAME_MACHINE}-pc-pw32
816 exit ;;
782 x86:Interix*:[34]*)
783 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
784 exit ;;
817 *:Interix*:*)
818 case ${UNAME_MACHINE} in
819 x86)
820 echo i586-pc-interix${UNAME_RELEASE}
821 exit ;;
822 authenticamd | genuineintel | EM64T)
823 echo x86_64-unknown-interix${UNAME_RELEASE}
824 exit ;;
825 IA64)
826 echo ia64-unknown-interix${UNAME_RELEASE}
827 exit ;;
828 esac ;;
785 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
786 echo i${UNAME_MACHINE}-pc-mks
787 exit ;;
829 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
830 echo i${UNAME_MACHINE}-pc-mks
831 exit ;;
832 8664:Windows_NT:*)
833 echo x86_64-pc-mks
834 exit ;;
788 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
789 # How do we know it's Interix rather than the generic POSIX subsystem?
790 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
791 # UNAME_MACHINE based on the output of uname instead of i386?
792 echo i586-pc-interix
793 exit ;;
794 i*:UWIN*:*)
795 echo ${UNAME_MACHINE}-pc-uwin
796 exit ;;
835 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
836 # How do we know it's Interix rather than the generic POSIX subsystem?
837 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
838 # UNAME_MACHINE based on the output of uname instead of i386?
839 echo i586-pc-interix
840 exit ;;
841 i*:UWIN*:*)
842 echo ${UNAME_MACHINE}-pc-uwin
843 exit ;;
797 amd64:CYGWIN*:*:*)
844 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
798 echo x86_64-unknown-cygwin
799 exit ;;
800 p*:CYGWIN*:*)
801 echo powerpcle-unknown-cygwin
802 exit ;;
803 prep*:SunOS:5.*:*)
804 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
805 exit ;;
806 *:GNU:*:*)
807 # the GNU system
808 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
809 exit ;;
810 *:GNU/*:*:*)
811 # other systems with GNU libc and userland
812 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
813 exit ;;
814 i*86:Minix:*:*)
815 echo ${UNAME_MACHINE}-pc-minix
816 exit ;;
845 echo x86_64-unknown-cygwin
846 exit ;;
847 p*:CYGWIN*:*)
848 echo powerpcle-unknown-cygwin
849 exit ;;
850 prep*:SunOS:5.*:*)
851 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
852 exit ;;
853 *:GNU:*:*)
854 # the GNU system
855 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
856 exit ;;
857 *:GNU/*:*:*)
858 # other systems with GNU libc and userland
859 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
860 exit ;;
861 i*86:Minix:*:*)
862 echo ${UNAME_MACHINE}-pc-minix
863 exit ;;
864 aarch64:Linux:*:*)
865 echo ${UNAME_MACHINE}-unknown-linux-gnu
866 exit ;;
867 aarch64_be:Linux:*:*)
868 UNAME_MACHINE=aarch64_be
869 echo ${UNAME_MACHINE}-unknown-linux-gnu
870 exit ;;
871 alpha:Linux:*:*)
872 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
873 EV5) UNAME_MACHINE=alphaev5 ;;
874 EV56) UNAME_MACHINE=alphaev56 ;;
875 PCA56) UNAME_MACHINE=alphapca56 ;;
876 PCA57) UNAME_MACHINE=alphapca56 ;;
877 EV6) UNAME_MACHINE=alphaev6 ;;
878 EV67) UNAME_MACHINE=alphaev67 ;;
879 EV68*) UNAME_MACHINE=alphaev68 ;;
880 esac
881 objdump --private-headers /bin/sh | grep -q ld.so.1
882 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
883 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
884 exit ;;
817 arm*:Linux:*:*)
885 arm*:Linux:*:*)
886 eval $set_cc_for_build
887 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
888 | grep -q __ARM_EABI__
889 then
890 echo ${UNAME_MACHINE}-unknown-linux-gnu
891 else
892 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
893 | grep -q __ARM_PCS_VFP
894 then
895 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
896 else
897 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
898 fi
899 fi
900 exit ;;
901 avr32*:Linux:*:*)
818 echo ${UNAME_MACHINE}-unknown-linux-gnu
819 exit ;;
820 cris:Linux:*:*)
902 echo ${UNAME_MACHINE}-unknown-linux-gnu
903 exit ;;
904 cris:Linux:*:*)
821 echo cris-axis-linux-gnu
905 echo ${UNAME_MACHINE}-axis-linux-gnu
822 exit ;;
823 crisv32:Linux:*:*)
906 exit ;;
907 crisv32:Linux:*:*)
824 echo crisv32-axis-linux-gnu
908 echo ${UNAME_MACHINE}-axis-linux-gnu
825 exit ;;
826 frv:Linux:*:*)
909 exit ;;
910 frv:Linux:*:*)
827 echo frv-unknown-linux-gnu
911 echo ${UNAME_MACHINE}-unknown-linux-gnu
828 exit ;;
912 exit ;;
913 hexagon:Linux:*:*)
914 echo ${UNAME_MACHINE}-unknown-linux-gnu
915 exit ;;
916 i*86:Linux:*:*)
917 LIBC=gnu
918 eval $set_cc_for_build
919 sed 's/^ //' << EOF >$dummy.c
920 #ifdef __dietlibc__
921 LIBC=dietlibc
922 #endif
923EOF
924 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
925 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
926 exit ;;
829 ia64:Linux:*:*)
830 echo ${UNAME_MACHINE}-unknown-linux-gnu
831 exit ;;
832 m32r*:Linux:*:*)
833 echo ${UNAME_MACHINE}-unknown-linux-gnu
834 exit ;;
835 m68*:Linux:*:*)
836 echo ${UNAME_MACHINE}-unknown-linux-gnu
837 exit ;;
927 ia64:Linux:*:*)
928 echo ${UNAME_MACHINE}-unknown-linux-gnu
929 exit ;;
930 m32r*:Linux:*:*)
931 echo ${UNAME_MACHINE}-unknown-linux-gnu
932 exit ;;
933 m68*:Linux:*:*)
934 echo ${UNAME_MACHINE}-unknown-linux-gnu
935 exit ;;
838 mips:Linux:*:*)
936 mips:Linux:*:* | mips64:Linux:*:*)
839 eval $set_cc_for_build
840 sed 's/^ //' << EOF >$dummy.c
841 #undef CPU
937 eval $set_cc_for_build
938 sed 's/^ //' << EOF >$dummy.c
939 #undef CPU
842 #undef mips
843 #undef mipsel
940 #undef ${UNAME_MACHINE}
941 #undef ${UNAME_MACHINE}el
844 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
942 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
845 CPU=mipsel
943 CPU=${UNAME_MACHINE}el
846 #else
847 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
944 #else
945 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
848 CPU=mips
946 CPU=${UNAME_MACHINE}
849 #else
850 CPU=
851 #endif
852 #endif
853EOF
947 #else
948 CPU=
949 #endif
950 #endif
951EOF
854 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
952 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
855 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
856 ;;
953 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
954 ;;
857 mips64:Linux:*:*)
858 eval $set_cc_for_build
859 sed 's/^ //' << EOF >$dummy.c
860 #undef CPU
861 #undef mips64
862 #undef mips64el
863 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
864 CPU=mips64el
865 #else
866 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
867 CPU=mips64
868 #else
869 CPU=
870 #endif
871 #endif
872EOF
873 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
874 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
875 ;;
876 ppc:Linux:*:*)
877 echo powerpc-unknown-linux-gnu
955 or32:Linux:*:*)
956 echo ${UNAME_MACHINE}-unknown-linux-gnu
878 exit ;;
957 exit ;;
879 ppc64:Linux:*:*)
880 echo powerpc64-unknown-linux-gnu
958 padre:Linux:*:*)
959 echo sparc-unknown-linux-gnu
881 exit ;;
960 exit ;;
882 alpha:Linux:*:*)
883 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
884 EV5) UNAME_MACHINE=alphaev5 ;;
885 EV56) UNAME_MACHINE=alphaev56 ;;
886 PCA56) UNAME_MACHINE=alphapca56 ;;
887 PCA57) UNAME_MACHINE=alphapca56 ;;
888 EV6) UNAME_MACHINE=alphaev6 ;;
889 EV67) UNAME_MACHINE=alphaev67 ;;
890 EV68*) UNAME_MACHINE=alphaev68 ;;
891 esac
892 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
893 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
894 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
961 parisc64:Linux:*:* | hppa64:Linux:*:*)
962 echo hppa64-unknown-linux-gnu
895 exit ;;
896 parisc:Linux:*:* | hppa:Linux:*:*)
897 # Look for CPU level
898 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
899 PA7*) echo hppa1.1-unknown-linux-gnu ;;
900 PA8*) echo hppa2.0-unknown-linux-gnu ;;
901 *) echo hppa-unknown-linux-gnu ;;
902 esac
903 exit ;;
963 exit ;;
964 parisc:Linux:*:* | hppa:Linux:*:*)
965 # Look for CPU level
966 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
967 PA7*) echo hppa1.1-unknown-linux-gnu ;;
968 PA8*) echo hppa2.0-unknown-linux-gnu ;;
969 *) echo hppa-unknown-linux-gnu ;;
970 esac
971 exit ;;
904 parisc64:Linux:*:* | hppa64:Linux:*:*)
905 echo hppa64-unknown-linux-gnu
972 ppc64:Linux:*:*)
973 echo powerpc64-unknown-linux-gnu
906 exit ;;
974 exit ;;
975 ppc:Linux:*:*)
976 echo powerpc-unknown-linux-gnu
977 exit ;;
907 s390:Linux:*:* | s390x:Linux:*:*)
908 echo ${UNAME_MACHINE}-ibm-linux
909 exit ;;
910 sh64*:Linux:*:*)
978 s390:Linux:*:* | s390x:Linux:*:*)
979 echo ${UNAME_MACHINE}-ibm-linux
980 exit ;;
981 sh64*:Linux:*:*)
911 echo ${UNAME_MACHINE}-unknown-linux-gnu
982 echo ${UNAME_MACHINE}-unknown-linux-gnu
912 exit ;;
913 sh*:Linux:*:*)
914 echo ${UNAME_MACHINE}-unknown-linux-gnu
915 exit ;;
916 sparc:Linux:*:* | sparc64:Linux:*:*)
917 echo ${UNAME_MACHINE}-unknown-linux-gnu
918 exit ;;
983 exit ;;
984 sh*:Linux:*:*)
985 echo ${UNAME_MACHINE}-unknown-linux-gnu
986 exit ;;
987 sparc:Linux:*:* | sparc64:Linux:*:*)
988 echo ${UNAME_MACHINE}-unknown-linux-gnu
989 exit ;;
990 tile*:Linux:*:*)
991 echo ${UNAME_MACHINE}-unknown-linux-gnu
992 exit ;;
993 vax:Linux:*:*)
994 echo ${UNAME_MACHINE}-dec-linux-gnu
995 exit ;;
919 x86_64:Linux:*:*)
996 x86_64:Linux:*:*)
920 echo x86_64-unknown-linux-gnu
997 echo ${UNAME_MACHINE}-unknown-linux-gnu
921 exit ;;
998 exit ;;
922 i*86:Linux:*:*)
923 # The BFD linker knows what the default object file format is, so
924 # first see if it will tell us. cd to the root directory to prevent
925 # problems with other programs or directories called `ld' in the path.
926 # Set LC_ALL=C to ensure ld outputs messages in English.
927 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
928 | sed -ne '/supported targets:/!d
929 s/[ ][ ]*/ /g
930 s/.*supported targets: *//
931 s/ .*//
932 p'`
933 case "$ld_supported_targets" in
934 elf32-i386)
935 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
936 ;;
937 a.out-i386-linux)
938 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
939 exit ;;
940 coff-i386)
941 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
942 exit ;;
943 "")
944 # Either a pre-BFD a.out linker (linux-gnuoldld) or
945 # one that does not give us useful --help.
946 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
947 exit ;;
948 esac
949 # Determine whether the default compiler is a.out or elf
950 eval $set_cc_for_build
951 sed 's/^ //' << EOF >$dummy.c
952 #include <features.h>
953 #ifdef __ELF__
954 # ifdef __GLIBC__
955 # if __GLIBC__ >= 2
956 LIBC=gnu
957 # else
958 LIBC=gnulibc1
959 # endif
960 # else
961 LIBC=gnulibc1
962 # endif
963 #else
964 #ifdef __INTEL_COMPILER
965 LIBC=gnu
966 #else
967 LIBC=gnuaout
968 #endif
969 #endif
970 #ifdef __dietlibc__
971 LIBC=dietlibc
972 #endif
973EOF
974 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
975 test x"${LIBC}" != x && {
976 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
977 exit
978 }
979 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
980 ;;
999 xtensa*:Linux:*:*)
1000 echo ${UNAME_MACHINE}-unknown-linux-gnu
1001 exit ;;
981 i*86:DYNIX/ptx:4*:*)
982 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
983 # earlier versions are messed up and put the nodename in both
984 # sysname and nodename.
985 echo i386-sequent-sysv4
986 exit ;;
987 i*86:UNIX_SV:4.2MP:2.*)
1002 i*86:DYNIX/ptx:4*:*)
1003 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1004 # earlier versions are messed up and put the nodename in both
1005 # sysname and nodename.
1006 echo i386-sequent-sysv4
1007 exit ;;
1008 i*86:UNIX_SV:4.2MP:2.*)
988 # Unixware is an offshoot of SVR4, but it has its own version
989 # number series starting with 2...
990 # I am not positive that other SVR4 systems won't match this,
1009 # Unixware is an offshoot of SVR4, but it has its own version
1010 # number series starting with 2...
1011 # I am not positive that other SVR4 systems won't match this,
991 # I just have to hope. -- rms.
1012 # I just have to hope. -- rms.
992 # Use sysv4.2uw... so that sysv4* matches it.
1013 # Use sysv4.2uw... so that sysv4* matches it.
993 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
994 exit ;;
995 i*86:OS/2:*:*)
996 # If we were able to find `uname', then EMX Unix compatibility
997 # is probably installed.
998 echo ${UNAME_MACHINE}-pc-os2-emx
999 exit ;;
1000 i*86:XTS-300:*:STOP)
1001 echo ${UNAME_MACHINE}-unknown-stop
1002 exit ;;
1003 i*86:atheos:*:*)
1004 echo ${UNAME_MACHINE}-unknown-atheos
1005 exit ;;
1006 i*86:syllable:*:*)
1007 echo ${UNAME_MACHINE}-pc-syllable
1008 exit ;;
1014 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1015 exit ;;
1016 i*86:OS/2:*:*)
1017 # If we were able to find `uname', then EMX Unix compatibility
1018 # is probably installed.
1019 echo ${UNAME_MACHINE}-pc-os2-emx
1020 exit ;;
1021 i*86:XTS-300:*:STOP)
1022 echo ${UNAME_MACHINE}-unknown-stop
1023 exit ;;
1024 i*86:atheos:*:*)
1025 echo ${UNAME_MACHINE}-unknown-atheos
1026 exit ;;
1027 i*86:syllable:*:*)
1028 echo ${UNAME_MACHINE}-pc-syllable
1029 exit ;;
1009 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1030 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1010 echo i386-unknown-lynxos${UNAME_RELEASE}
1011 exit ;;
1012 i*86:*DOS:*:*)
1013 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1014 exit ;;
1015 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1016 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1017 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1018 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1019 else
1020 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1021 fi
1022 exit ;;
1023 i*86:*:5:[678]*)
1031 echo i386-unknown-lynxos${UNAME_RELEASE}
1032 exit ;;
1033 i*86:*DOS:*:*)
1034 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1035 exit ;;
1036 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1037 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1038 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1039 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1040 else
1041 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1042 fi
1043 exit ;;
1044 i*86:*:5:[678]*)
1024 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1045 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1025 case `/bin/uname -X | grep "^Machine"` in
1026 *486*) UNAME_MACHINE=i486 ;;
1027 *Pentium) UNAME_MACHINE=i586 ;;
1028 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1029 esac
1030 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1031 exit ;;
1032 i*86:*:3.2:*)

--- 11 unchanged lines hidden (view full) ---

1044 && UNAME_MACHINE=i686
1045 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1046 else
1047 echo ${UNAME_MACHINE}-pc-sysv32
1048 fi
1049 exit ;;
1050 pc:*:*:*)
1051 # Left here for compatibility:
1046 case `/bin/uname -X | grep "^Machine"` in
1047 *486*) UNAME_MACHINE=i486 ;;
1048 *Pentium) UNAME_MACHINE=i586 ;;
1049 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1050 esac
1051 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1052 exit ;;
1053 i*86:*:3.2:*)

--- 11 unchanged lines hidden (view full) ---

1065 && UNAME_MACHINE=i686
1066 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1067 else
1068 echo ${UNAME_MACHINE}-pc-sysv32
1069 fi
1070 exit ;;
1071 pc:*:*:*)
1072 # Left here for compatibility:
1052 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1053 # the processor, so we play safe by assuming i386.
1054 echo i386-pc-msdosdjgpp
1055 exit ;;
1073 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1074 # the processor, so we play safe by assuming i586.
1075 # Note: whatever this is, it MUST be the same as what config.sub
1076 # prints for the "djgpp" host, or else GDB configury will decide that
1077 # this is a cross-build.
1078 echo i586-pc-msdosdjgpp
1079 exit ;;
1056 Intel:Mach:3*:*)
1057 echo i386-pc-mach3
1058 exit ;;
1059 paragon:*:*:*)
1060 echo i860-intel-osf1
1061 exit ;;
1062 i860:*:4.*:*) # i860-SVR4
1063 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then

--- 18 unchanged lines hidden (view full) ---

1082 OS_REL=''
1083 test -r /etc/.relid \
1084 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1085 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1086 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1087 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1088 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1089 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1080 Intel:Mach:3*:*)
1081 echo i386-pc-mach3
1082 exit ;;
1083 paragon:*:*:*)
1084 echo i860-intel-osf1
1085 exit ;;
1086 i860:*:4.*:*) # i860-SVR4
1087 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then

--- 18 unchanged lines hidden (view full) ---

1106 OS_REL=''
1107 test -r /etc/.relid \
1108 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1109 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1110 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1111 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1112 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1113 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1090 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1091 && { echo i486-ncr-sysv4; exit; } ;;
1114 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1115 && { echo i486-ncr-sysv4; exit; } ;;
1116 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1117 OS_REL='.3'
1118 test -r /etc/.relid \
1119 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1120 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1121 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1122 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1123 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1124 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1125 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1092 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1093 echo m68k-unknown-lynxos${UNAME_RELEASE}
1094 exit ;;
1095 mc68030:UNIX_System_V:4.*:*)
1096 echo m68k-atari-sysv4
1097 exit ;;
1098 TSUNAMI:LynxOS:2.*:*)
1099 echo sparc-unknown-lynxos${UNAME_RELEASE}
1100 exit ;;
1101 rs6000:LynxOS:2.*:*)
1102 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1103 exit ;;
1126 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1127 echo m68k-unknown-lynxos${UNAME_RELEASE}
1128 exit ;;
1129 mc68030:UNIX_System_V:4.*:*)
1130 echo m68k-atari-sysv4
1131 exit ;;
1132 TSUNAMI:LynxOS:2.*:*)
1133 echo sparc-unknown-lynxos${UNAME_RELEASE}
1134 exit ;;
1135 rs6000:LynxOS:2.*:*)
1136 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1137 exit ;;
1104 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1138 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1105 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1106 exit ;;
1107 SM[BE]S:UNIX_SV:*:*)
1108 echo mips-dde-sysv${UNAME_RELEASE}
1109 exit ;;
1110 RM*:ReliantUNIX-*:*:*)
1111 echo mips-sni-sysv4
1112 exit ;;
1113 RM*:SINIX-*:*:*)
1114 echo mips-sni-sysv4
1115 exit ;;
1116 *:SINIX-*:*:*)
1117 if uname -p 2>/dev/null >/dev/null ; then
1118 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1119 echo ${UNAME_MACHINE}-sni-sysv4
1120 else
1121 echo ns32k-sni-sysv
1122 fi
1123 exit ;;
1139 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1140 exit ;;
1141 SM[BE]S:UNIX_SV:*:*)
1142 echo mips-dde-sysv${UNAME_RELEASE}
1143 exit ;;
1144 RM*:ReliantUNIX-*:*:*)
1145 echo mips-sni-sysv4
1146 exit ;;
1147 RM*:SINIX-*:*:*)
1148 echo mips-sni-sysv4
1149 exit ;;
1150 *:SINIX-*:*:*)
1151 if uname -p 2>/dev/null >/dev/null ; then
1152 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1153 echo ${UNAME_MACHINE}-sni-sysv4
1154 else
1155 echo ns32k-sni-sysv
1156 fi
1157 exit ;;
1124 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1125 # says <Richard.M.Bartel@ccMail.Census.GOV>
1126 echo i586-unisys-sysv4
1127 exit ;;
1158 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1159 # says <Richard.M.Bartel@ccMail.Census.GOV>
1160 echo i586-unisys-sysv4
1161 exit ;;
1128 *:UNIX_System_V:4*:FTX*)
1129 # From Gerald Hewes <hewes@openmarket.com>.
1130 # How about differentiating between stratus architectures? -djm
1131 echo hppa1.1-stratus-sysv4
1132 exit ;;
1133 *:*:*:FTX*)
1134 # From seanf@swdc.stratus.com.
1135 echo i860-stratus-sysv4

--- 9 unchanged lines hidden (view full) ---

1145 mc68*:A/UX:*:*)
1146 echo m68k-apple-aux${UNAME_RELEASE}
1147 exit ;;
1148 news*:NEWS-OS:6*:*)
1149 echo mips-sony-newsos6
1150 exit ;;
1151 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1152 if [ -d /usr/nec ]; then
1162 *:UNIX_System_V:4*:FTX*)
1163 # From Gerald Hewes <hewes@openmarket.com>.
1164 # How about differentiating between stratus architectures? -djm
1165 echo hppa1.1-stratus-sysv4
1166 exit ;;
1167 *:*:*:FTX*)
1168 # From seanf@swdc.stratus.com.
1169 echo i860-stratus-sysv4

--- 9 unchanged lines hidden (view full) ---

1179 mc68*:A/UX:*:*)
1180 echo m68k-apple-aux${UNAME_RELEASE}
1181 exit ;;
1182 news*:NEWS-OS:6*:*)
1183 echo mips-sony-newsos6
1184 exit ;;
1185 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1186 if [ -d /usr/nec ]; then
1153 echo mips-nec-sysv${UNAME_RELEASE}
1187 echo mips-nec-sysv${UNAME_RELEASE}
1154 else
1188 else
1155 echo mips-unknown-sysv${UNAME_RELEASE}
1189 echo mips-unknown-sysv${UNAME_RELEASE}
1156 fi
1190 fi
1157 exit ;;
1191 exit ;;
1158 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1159 echo powerpc-be-beos
1160 exit ;;
1161 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1162 echo powerpc-apple-beos
1163 exit ;;
1164 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1165 echo i586-pc-beos
1166 exit ;;
1192 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1193 echo powerpc-be-beos
1194 exit ;;
1195 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1196 echo powerpc-apple-beos
1197 exit ;;
1198 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1199 echo i586-pc-beos
1200 exit ;;
1201 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1202 echo i586-pc-haiku
1203 exit ;;
1167 SX-4:SUPER-UX:*:*)
1168 echo sx4-nec-superux${UNAME_RELEASE}
1169 exit ;;
1170 SX-5:SUPER-UX:*:*)
1171 echo sx5-nec-superux${UNAME_RELEASE}
1172 exit ;;
1173 SX-6:SUPER-UX:*:*)
1174 echo sx6-nec-superux${UNAME_RELEASE}
1175 exit ;;
1204 SX-4:SUPER-UX:*:*)
1205 echo sx4-nec-superux${UNAME_RELEASE}
1206 exit ;;
1207 SX-5:SUPER-UX:*:*)
1208 echo sx5-nec-superux${UNAME_RELEASE}
1209 exit ;;
1210 SX-6:SUPER-UX:*:*)
1211 echo sx6-nec-superux${UNAME_RELEASE}
1212 exit ;;
1213 SX-7:SUPER-UX:*:*)
1214 echo sx7-nec-superux${UNAME_RELEASE}
1215 exit ;;
1216 SX-8:SUPER-UX:*:*)
1217 echo sx8-nec-superux${UNAME_RELEASE}
1218 exit ;;
1219 SX-8R:SUPER-UX:*:*)
1220 echo sx8r-nec-superux${UNAME_RELEASE}
1221 exit ;;
1176 Power*:Rhapsody:*:*)
1177 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1178 exit ;;
1179 *:Rhapsody:*:*)
1180 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1181 exit ;;
1182 *:Darwin:*:*)
1183 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1184 case $UNAME_PROCESSOR in
1222 Power*:Rhapsody:*:*)
1223 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1224 exit ;;
1225 *:Rhapsody:*:*)
1226 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1227 exit ;;
1228 *:Darwin:*:*)
1229 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1230 case $UNAME_PROCESSOR in
1185 *86) UNAME_PROCESSOR=i686 ;;
1231 i386)
1232 eval $set_cc_for_build
1233 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1234 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1235 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1236 grep IS_64BIT_ARCH >/dev/null
1237 then
1238 UNAME_PROCESSOR="x86_64"
1239 fi
1240 fi ;;
1186 unknown) UNAME_PROCESSOR=powerpc ;;
1187 esac
1188 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1189 exit ;;
1190 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1191 UNAME_PROCESSOR=`uname -p`
1192 if test "$UNAME_PROCESSOR" = "x86"; then
1193 UNAME_PROCESSOR=i386
1194 UNAME_MACHINE=pc
1195 fi
1196 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1197 exit ;;
1198 *:QNX:*:4*)
1199 echo i386-pc-qnx
1200 exit ;;
1241 unknown) UNAME_PROCESSOR=powerpc ;;
1242 esac
1243 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1244 exit ;;
1245 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1246 UNAME_PROCESSOR=`uname -p`
1247 if test "$UNAME_PROCESSOR" = "x86"; then
1248 UNAME_PROCESSOR=i386
1249 UNAME_MACHINE=pc
1250 fi
1251 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1252 exit ;;
1253 *:QNX:*:4*)
1254 echo i386-pc-qnx
1255 exit ;;
1256 NEO-?:NONSTOP_KERNEL:*:*)
1257 echo neo-tandem-nsk${UNAME_RELEASE}
1258 exit ;;
1201 NSE-?:NONSTOP_KERNEL:*:*)
1202 echo nse-tandem-nsk${UNAME_RELEASE}
1203 exit ;;
1204 NSR-?:NONSTOP_KERNEL:*:*)
1205 echo nsr-tandem-nsk${UNAME_RELEASE}
1206 exit ;;
1207 *:NonStop-UX:*:*)
1208 echo mips-compaq-nonstopux

--- 29 unchanged lines hidden (view full) ---

1238 exit ;;
1239 *:TOPS-20:*:*)
1240 echo pdp10-unknown-tops20
1241 exit ;;
1242 *:ITS:*:*)
1243 echo pdp10-unknown-its
1244 exit ;;
1245 SEI:*:*:SEIUX)
1259 NSE-?:NONSTOP_KERNEL:*:*)
1260 echo nse-tandem-nsk${UNAME_RELEASE}
1261 exit ;;
1262 NSR-?:NONSTOP_KERNEL:*:*)
1263 echo nsr-tandem-nsk${UNAME_RELEASE}
1264 exit ;;
1265 *:NonStop-UX:*:*)
1266 echo mips-compaq-nonstopux

--- 29 unchanged lines hidden (view full) ---

1296 exit ;;
1297 *:TOPS-20:*:*)
1298 echo pdp10-unknown-tops20
1299 exit ;;
1300 *:ITS:*:*)
1301 echo pdp10-unknown-its
1302 exit ;;
1303 SEI:*:*:SEIUX)
1246 echo mips-sei-seiux${UNAME_RELEASE}
1304 echo mips-sei-seiux${UNAME_RELEASE}
1247 exit ;;
1248 *:DragonFly:*:*)
1249 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1250 exit ;;
1251 *:*VMS:*:*)
1305 exit ;;
1306 *:DragonFly:*:*)
1307 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1308 exit ;;
1309 *:*VMS:*:*)
1252 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1310 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1253 case "${UNAME_MACHINE}" in
1254 A*) echo alpha-dec-vms ; exit ;;
1255 I*) echo ia64-dec-vms ; exit ;;
1256 V*) echo vax-dec-vms ; exit ;;
1257 esac ;;
1258 *:XENIX:*:SysV)
1259 echo i386-pc-xenix
1260 exit ;;
1261 i*86:skyos:*:*)
1262 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1263 exit ;;
1311 case "${UNAME_MACHINE}" in
1312 A*) echo alpha-dec-vms ; exit ;;
1313 I*) echo ia64-dec-vms ; exit ;;
1314 V*) echo vax-dec-vms ; exit ;;
1315 esac ;;
1316 *:XENIX:*:SysV)
1317 echo i386-pc-xenix
1318 exit ;;
1319 i*86:skyos:*:*)
1320 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1321 exit ;;
1322 i*86:rdos:*:*)
1323 echo ${UNAME_MACHINE}-pc-rdos
1324 exit ;;
1325 i*86:AROS:*:*)
1326 echo ${UNAME_MACHINE}-pc-aros
1327 exit ;;
1328 x86_64:VMkernel:*:*)
1329 echo ${UNAME_MACHINE}-unknown-esx
1330 exit ;;
1264esac
1265
1266#echo '(No uname command or uname output not recognized.)' 1>&2
1267#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1268
1269eval $set_cc_for_build
1270cat >$dummy.c <<EOF
1271#ifdef _SEQUENT_

--- 6 unchanged lines hidden (view full) ---

1278#if defined (MIPSEB)
1279 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1280 I don't know.... */
1281 printf ("mips-sony-bsd\n"); exit (0);
1282#else
1283#include <sys/param.h>
1284 printf ("m68k-sony-newsos%s\n",
1285#ifdef NEWSOS4
1331esac
1332
1333#echo '(No uname command or uname output not recognized.)' 1>&2
1334#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1335
1336eval $set_cc_for_build
1337cat >$dummy.c <<EOF
1338#ifdef _SEQUENT_

--- 6 unchanged lines hidden (view full) ---

1345#if defined (MIPSEB)
1346 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1347 I don't know.... */
1348 printf ("mips-sony-bsd\n"); exit (0);
1349#else
1350#include <sys/param.h>
1351 printf ("m68k-sony-newsos%s\n",
1352#ifdef NEWSOS4
1286 "4"
1353 "4"
1287#else
1354#else
1288 ""
1355 ""
1289#endif
1356#endif
1290 ); exit (0);
1357 ); exit (0);
1291#endif
1292#endif
1293
1294#if defined (__arm) && defined (__acorn) && defined (__unix)
1295 printf ("arm-acorn-riscix\n"); exit (0);
1296#endif
1297
1298#if defined (hp300) && !defined (hpux)

--- 117 unchanged lines hidden (view full) ---

1416
1417cat >&2 <<EOF
1418$0: unable to guess system type
1419
1420This script, last modified $timestamp, has failed to recognize
1421the operating system you are using. It is advised that you
1422download the most up to date version of the config scripts from
1423
1358#endif
1359#endif
1360
1361#if defined (__arm) && defined (__acorn) && defined (__unix)
1362 printf ("arm-acorn-riscix\n"); exit (0);
1363#endif
1364
1365#if defined (hp300) && !defined (hpux)

--- 117 unchanged lines hidden (view full) ---

1483
1484cat >&2 <<EOF
1485$0: unable to guess system type
1486
1487This script, last modified $timestamp, has failed to recognize
1488the operating system you are using. It is advised that you
1489download the most up to date version of the config scripts from
1490
1424 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1491 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1425and
1492and
1426 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1493 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1427
1428If the version you run ($0) is already up to date, please
1429send the following data and any information you think might be
1430pertinent to <config-patches@gnu.org> in order to provide the needed
1431information to handle your system.
1432
1433config.guess timestamp = $timestamp
1434

--- 29 unchanged lines hidden ---
1494
1495If the version you run ($0) is already up to date, please
1496send the following data and any information you think might be
1497pertinent to <config-patches@gnu.org> in order to provide the needed
1498information to handle your system.
1499
1500config.guess timestamp = $timestamp
1501

--- 29 unchanged lines hidden ---