rice 1.4.3 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/COPYING +2 -2
- data/Doxyfile +1 -1
- data/Makefile.in +296 -166
- data/README +18 -13
- data/Rakefile +3 -2
- data/aclocal.m4 +375 -248
- data/config.guess +296 -261
- data/config.sub +268 -94
- data/configure +2789 -3054
- data/configure.ac +1 -1
- data/depcomp +403 -197
- data/extconf.rb +14 -3
- data/install-sh +139 -119
- data/missing +154 -306
- data/rice/Builtin_Object_defn.hpp +0 -1
- data/rice/Constructor.hpp +31 -30
- data/rice/Data_Object_defn.hpp +8 -2
- data/rice/Hash.hpp +26 -9
- data/rice/Hash.ipp +52 -60
- data/rice/Makefile.am +0 -1
- data/rice/Makefile.in +278 -152
- data/rice/Module_impl.ipp +1 -1
- data/rice/VM.cpp +1 -11
- data/rice/config.hpp +3 -0
- data/rice/config.hpp.in +3 -0
- data/rice/detail/Auto_Function_Wrapper.hpp +69 -0
- data/rice/detail/Auto_Function_Wrapper.ipp +815 -512
- data/rice/detail/Auto_Member_Function_Wrapper.hpp +69 -0
- data/rice/detail/Auto_Member_Function_Wrapper.ipp +543 -272
- data/rice/detail/object_call.hpp +1 -0
- data/rice/detail/ruby.hpp +0 -9
- data/rice/detail/ruby_version_code.hpp +1 -1
- data/rice/detail/st.hpp +0 -38
- data/rice/protect.hpp +1 -0
- data/rice/protect.ipp +1 -0
- data/rice/to_from_ruby.ipp +1 -1
- data/ruby.ac +2 -2
- data/ruby/Makefile.in +221 -134
- data/ruby/lib/Makefile.in +133 -44
- data/ruby/lib/mkmf-rice.rb.in +1 -4
- data/ruby/lib/version.rb +1 -1
- data/sample/Makefile.in +96 -31
- data/test/Makefile.am +0 -1
- data/test/Makefile.in +617 -219
- data/test/ext/Makefile.in +96 -31
- data/test/test_Class.cpp +2 -2
- data/test/test_Data_Object.cpp +11 -11
- data/test/test_Hash.cpp +7 -4
- data/test/test_Module.cpp +17 -1
- data/test/test_To_From_Ruby.cpp +44 -0
- data/test/test_rice.rb +2 -2
- metadata +29 -43
- data/rice/Allocation_Strategies.hpp +0 -37
- data/test/test_Allocation_Strategies.cpp +0 -77
data/config.guess
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
#! /bin/sh
|
2
2
|
# Attempt to guess a canonical system name.
|
3
3
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
4
|
-
# 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
5
|
-
# Inc.
|
4
|
+
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
5
|
+
# 2011, 2012, 2013 Free Software Foundation, Inc.
|
6
6
|
|
7
|
-
timestamp='
|
7
|
+
timestamp='2012-12-29'
|
8
8
|
|
9
9
|
# This file is free software; you can redistribute it and/or modify it
|
10
10
|
# under the terms of the GNU General Public License as published by
|
11
|
-
# the Free Software Foundation; either version
|
11
|
+
# the Free Software Foundation; either version 3 of the License, or
|
12
12
|
# (at your option) any later version.
|
13
13
|
#
|
14
14
|
# This program is distributed in the hope that it will be useful, but
|
@@ -17,26 +17,22 @@ timestamp='2006-07-02'
|
|
17
17
|
# General Public License for more details.
|
18
18
|
#
|
19
19
|
# You should have received a copy of the GNU General Public License
|
20
|
-
# along with this program; if not,
|
21
|
-
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
22
|
-
# 02110-1301, USA.
|
20
|
+
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
23
21
|
#
|
24
22
|
# As a special exception to the GNU General Public License, if you
|
25
23
|
# distribute this file as part of a program that contains a
|
26
24
|
# configuration script generated by Autoconf, you may include it under
|
27
|
-
# the same distribution terms that you use for the rest of that
|
28
|
-
|
29
|
-
|
30
|
-
#
|
31
|
-
#
|
32
|
-
# diff and a properly formatted ChangeLog entry.
|
25
|
+
# the same distribution terms that you use for the rest of that
|
26
|
+
# program. This Exception is an additional permission under section 7
|
27
|
+
# of the GNU General Public License, version 3 ("GPLv3").
|
28
|
+
#
|
29
|
+
# Originally written by Per Bothner.
|
33
30
|
#
|
34
|
-
#
|
35
|
-
# config.
|
36
|
-
# exits with 0. Otherwise, it exits with 1.
|
31
|
+
# You can get the latest version of this script from:
|
32
|
+
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
37
33
|
#
|
38
|
-
#
|
39
|
-
|
34
|
+
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
|
35
|
+
|
40
36
|
|
41
37
|
me=`echo "$0" | sed -e 's,.*/,,'`
|
42
38
|
|
@@ -56,8 +52,9 @@ version="\
|
|
56
52
|
GNU config.guess ($timestamp)
|
57
53
|
|
58
54
|
Originally written by Per Bothner.
|
59
|
-
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
60
|
-
|
55
|
+
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
56
|
+
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
|
57
|
+
2012, 2013 Free Software Foundation, Inc.
|
61
58
|
|
62
59
|
This is free software; see the source for copying conditions. There is NO
|
63
60
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
@@ -144,7 +141,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
|
144
141
|
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
145
142
|
*:NetBSD:*:*)
|
146
143
|
# NetBSD (nbsd) targets should (where applicable) match one or
|
147
|
-
# more of the
|
144
|
+
# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
|
148
145
|
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
|
149
146
|
# switched to ELF, *-*-netbsd* would select the old
|
150
147
|
# object file format. This provides both forward
|
@@ -161,6 +158,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
161
158
|
arm*) machine=arm-unknown ;;
|
162
159
|
sh3el) machine=shl-unknown ;;
|
163
160
|
sh3eb) machine=sh-unknown ;;
|
161
|
+
sh5el) machine=sh5le-unknown ;;
|
164
162
|
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
|
165
163
|
esac
|
166
164
|
# The Operating System including object format, if it has switched
|
@@ -169,7 +167,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
169
167
|
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
170
168
|
eval $set_cc_for_build
|
171
169
|
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
172
|
-
| grep __ELF__
|
170
|
+
| grep -q __ELF__
|
173
171
|
then
|
174
172
|
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
|
175
173
|
# Return netbsd for either. FIX?
|
@@ -179,7 +177,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
179
177
|
fi
|
180
178
|
;;
|
181
179
|
*)
|
182
|
-
|
180
|
+
os=netbsd
|
183
181
|
;;
|
184
182
|
esac
|
185
183
|
# The OS release
|
@@ -200,6 +198,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
200
198
|
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
201
199
|
echo "${machine}-${os}${release}"
|
202
200
|
exit ;;
|
201
|
+
*:Bitrig:*:*)
|
202
|
+
UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
|
203
|
+
echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
|
204
|
+
exit ;;
|
203
205
|
*:OpenBSD:*:*)
|
204
206
|
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
|
205
207
|
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
|
@@ -222,7 +224,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
222
224
|
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
223
225
|
;;
|
224
226
|
*5.*)
|
225
|
-
|
227
|
+
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
226
228
|
;;
|
227
229
|
esac
|
228
230
|
# According to Compaq, /usr/sbin/psrinfo has been available on
|
@@ -268,7 +270,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
268
270
|
# A Xn.n version is an unreleased experimental baselevel.
|
269
271
|
# 1.2 uses "1.2" for uname -r.
|
270
272
|
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
271
|
-
exit
|
273
|
+
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
|
274
|
+
exitcode=$?
|
275
|
+
trap '' 0
|
276
|
+
exit $exitcode ;;
|
272
277
|
Alpha\ *:Windows_NT*:*)
|
273
278
|
# How do we know it's Interix rather than the generic POSIX subsystem?
|
274
279
|
# Should we change UNAME_MACHINE based on the output of uname instead
|
@@ -294,12 +299,12 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
294
299
|
echo s390-ibm-zvmoe
|
295
300
|
exit ;;
|
296
301
|
*:OS400:*:*)
|
297
|
-
|
302
|
+
echo powerpc-ibm-os400
|
298
303
|
exit ;;
|
299
304
|
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
300
305
|
echo arm-acorn-riscix${UNAME_RELEASE}
|
301
306
|
exit ;;
|
302
|
-
arm
|
307
|
+
arm*:riscos:*:*|arm*:RISCOS:*:*)
|
303
308
|
echo arm-unknown-riscos
|
304
309
|
exit ;;
|
305
310
|
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
|
@@ -323,14 +328,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
323
328
|
case `/usr/bin/uname -p` in
|
324
329
|
sparc) echo sparc-icl-nx7; exit ;;
|
325
330
|
esac ;;
|
331
|
+
s390x:SunOS:*:*)
|
332
|
+
echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
333
|
+
exit ;;
|
326
334
|
sun4H:SunOS:5.*:*)
|
327
335
|
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
328
336
|
exit ;;
|
329
337
|
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
330
338
|
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
331
339
|
exit ;;
|
332
|
-
i86pc:
|
333
|
-
echo i386-pc-
|
340
|
+
i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
|
341
|
+
echo i386-pc-auroraux${UNAME_RELEASE}
|
342
|
+
exit ;;
|
343
|
+
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
344
|
+
eval $set_cc_for_build
|
345
|
+
SUN_ARCH="i386"
|
346
|
+
# If there is a compiler, see if it is configured for 64-bit objects.
|
347
|
+
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
|
348
|
+
# This test works for both compilers.
|
349
|
+
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
350
|
+
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
|
351
|
+
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
352
|
+
grep IS_64BIT_ARCH >/dev/null
|
353
|
+
then
|
354
|
+
SUN_ARCH="x86_64"
|
355
|
+
fi
|
356
|
+
fi
|
357
|
+
echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
334
358
|
exit ;;
|
335
359
|
sun4*:SunOS:6*:*)
|
336
360
|
# According to config.sub, this is the proper way to canonicalize
|
@@ -374,23 +398,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
374
398
|
# MiNT. But MiNT is downward compatible to TOS, so this should
|
375
399
|
# be no problem.
|
376
400
|
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
377
|
-
|
401
|
+
echo m68k-atari-mint${UNAME_RELEASE}
|
378
402
|
exit ;;
|
379
403
|
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
380
404
|
echo m68k-atari-mint${UNAME_RELEASE}
|
381
|
-
|
405
|
+
exit ;;
|
382
406
|
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
383
|
-
|
407
|
+
echo m68k-atari-mint${UNAME_RELEASE}
|
384
408
|
exit ;;
|
385
409
|
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
386
|
-
|
387
|
-
|
410
|
+
echo m68k-milan-mint${UNAME_RELEASE}
|
411
|
+
exit ;;
|
388
412
|
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
389
|
-
|
390
|
-
|
413
|
+
echo m68k-hades-mint${UNAME_RELEASE}
|
414
|
+
exit ;;
|
391
415
|
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
392
|
-
|
393
|
-
|
416
|
+
echo m68k-unknown-mint${UNAME_RELEASE}
|
417
|
+
exit ;;
|
394
418
|
m68k:machten:*:*)
|
395
419
|
echo m68k-apple-machten${UNAME_RELEASE}
|
396
420
|
exit ;;
|
@@ -460,8 +484,8 @@ EOF
|
|
460
484
|
echo m88k-motorola-sysv3
|
461
485
|
exit ;;
|
462
486
|
AViiON:dgux:*:*)
|
463
|
-
|
464
|
-
|
487
|
+
# DG/UX returns AViiON for all architectures
|
488
|
+
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
465
489
|
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
|
466
490
|
then
|
467
491
|
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
|
@@ -474,7 +498,7 @@ EOF
|
|
474
498
|
else
|
475
499
|
echo i586-dg-dgux${UNAME_RELEASE}
|
476
500
|
fi
|
477
|
-
|
501
|
+
exit ;;
|
478
502
|
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
479
503
|
echo m88k-dolphin-sysv3
|
480
504
|
exit ;;
|
@@ -531,7 +555,7 @@ EOF
|
|
531
555
|
echo rs6000-ibm-aix3.2
|
532
556
|
fi
|
533
557
|
exit ;;
|
534
|
-
*:AIX:*:[
|
558
|
+
*:AIX:*:[4567])
|
535
559
|
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
536
560
|
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
537
561
|
IBM_ARCH=rs6000
|
@@ -574,52 +598,52 @@ EOF
|
|
574
598
|
9000/[678][0-9][0-9])
|
575
599
|
if [ -x /usr/bin/getconf ]; then
|
576
600
|
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
601
|
+
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
602
|
+
case "${sc_cpu_version}" in
|
603
|
+
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
604
|
+
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
605
|
+
532) # CPU_PA_RISC2_0
|
606
|
+
case "${sc_kernel_bits}" in
|
607
|
+
32) HP_ARCH="hppa2.0n" ;;
|
608
|
+
64) HP_ARCH="hppa2.0w" ;;
|
585
609
|
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
|
586
|
-
|
587
|
-
|
610
|
+
esac ;;
|
611
|
+
esac
|
588
612
|
fi
|
589
613
|
if [ "${HP_ARCH}" = "" ]; then
|
590
614
|
eval $set_cc_for_build
|
591
|
-
sed 's/^
|
615
|
+
sed 's/^ //' << EOF >$dummy.c
|
592
616
|
|
593
|
-
|
594
|
-
|
595
|
-
|
617
|
+
#define _HPUX_SOURCE
|
618
|
+
#include <stdlib.h>
|
619
|
+
#include <unistd.h>
|
596
620
|
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
621
|
+
int main ()
|
622
|
+
{
|
623
|
+
#if defined(_SC_KERNEL_BITS)
|
624
|
+
long bits = sysconf(_SC_KERNEL_BITS);
|
625
|
+
#endif
|
626
|
+
long cpu = sysconf (_SC_CPU_VERSION);
|
603
627
|
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
628
|
+
switch (cpu)
|
629
|
+
{
|
630
|
+
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
631
|
+
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
632
|
+
case CPU_PA_RISC2_0:
|
633
|
+
#if defined(_SC_KERNEL_BITS)
|
634
|
+
switch (bits)
|
635
|
+
{
|
636
|
+
case 64: puts ("hppa2.0w"); break;
|
637
|
+
case 32: puts ("hppa2.0n"); break;
|
638
|
+
default: puts ("hppa2.0"); break;
|
639
|
+
} break;
|
640
|
+
#else /* !defined(_SC_KERNEL_BITS) */
|
641
|
+
puts ("hppa2.0"); break;
|
642
|
+
#endif
|
643
|
+
default: puts ("hppa1.0"); break;
|
644
|
+
}
|
645
|
+
exit (0);
|
646
|
+
}
|
623
647
|
EOF
|
624
648
|
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
|
625
649
|
test -z "$HP_ARCH" && HP_ARCH=hppa
|
@@ -639,7 +663,7 @@ EOF
|
|
639
663
|
# => hppa64-hp-hpux11.23
|
640
664
|
|
641
665
|
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
|
642
|
-
grep __LP64__
|
666
|
+
grep -q __LP64__
|
643
667
|
then
|
644
668
|
HP_ARCH="hppa2.0w"
|
645
669
|
else
|
@@ -710,22 +734,22 @@ EOF
|
|
710
734
|
exit ;;
|
711
735
|
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
712
736
|
echo c1-convex-bsd
|
713
|
-
|
737
|
+
exit ;;
|
714
738
|
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
715
739
|
if getsysinfo -f scalar_acc
|
716
740
|
then echo c32-convex-bsd
|
717
741
|
else echo c2-convex-bsd
|
718
742
|
fi
|
719
|
-
|
743
|
+
exit ;;
|
720
744
|
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
721
745
|
echo c34-convex-bsd
|
722
|
-
|
746
|
+
exit ;;
|
723
747
|
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
724
748
|
echo c38-convex-bsd
|
725
|
-
|
749
|
+
exit ;;
|
726
750
|
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
727
751
|
echo c4-convex-bsd
|
728
|
-
|
752
|
+
exit ;;
|
729
753
|
CRAY*Y-MP:*:*:*)
|
730
754
|
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
731
755
|
exit ;;
|
@@ -749,14 +773,14 @@ EOF
|
|
749
773
|
exit ;;
|
750
774
|
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
751
775
|
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
776
|
+
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
777
|
+
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
778
|
+
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
779
|
+
exit ;;
|
756
780
|
5000:UNIX_System_V:4.*:*)
|
757
|
-
|
758
|
-
|
759
|
-
|
781
|
+
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
782
|
+
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
783
|
+
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
760
784
|
exit ;;
|
761
785
|
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
762
786
|
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
@@ -768,37 +792,51 @@ EOF
|
|
768
792
|
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
769
793
|
exit ;;
|
770
794
|
*:FreeBSD:*:*)
|
771
|
-
|
772
|
-
|
773
|
-
echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
795
|
+
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
796
|
+
case ${UNAME_PROCESSOR} in
|
774
797
|
amd64)
|
775
798
|
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
776
799
|
*)
|
777
|
-
echo ${
|
800
|
+
echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
778
801
|
esac
|
779
802
|
exit ;;
|
780
803
|
i*:CYGWIN*:*)
|
781
804
|
echo ${UNAME_MACHINE}-pc-cygwin
|
782
805
|
exit ;;
|
783
|
-
|
806
|
+
*:MINGW64*:*)
|
807
|
+
echo ${UNAME_MACHINE}-pc-mingw64
|
808
|
+
exit ;;
|
809
|
+
*:MINGW*:*)
|
784
810
|
echo ${UNAME_MACHINE}-pc-mingw32
|
785
811
|
exit ;;
|
812
|
+
i*:MSYS*:*)
|
813
|
+
echo ${UNAME_MACHINE}-pc-msys
|
814
|
+
exit ;;
|
786
815
|
i*:windows32*:*)
|
787
|
-
|
788
|
-
|
816
|
+
# uname -m includes "-pc" on this system.
|
817
|
+
echo ${UNAME_MACHINE}-mingw32
|
789
818
|
exit ;;
|
790
819
|
i*:PW*:*)
|
791
820
|
echo ${UNAME_MACHINE}-pc-pw32
|
792
821
|
exit ;;
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
822
|
+
*:Interix*:*)
|
823
|
+
case ${UNAME_MACHINE} in
|
824
|
+
x86)
|
825
|
+
echo i586-pc-interix${UNAME_RELEASE}
|
826
|
+
exit ;;
|
827
|
+
authenticamd | genuineintel | EM64T)
|
828
|
+
echo x86_64-unknown-interix${UNAME_RELEASE}
|
829
|
+
exit ;;
|
830
|
+
IA64)
|
831
|
+
echo ia64-unknown-interix${UNAME_RELEASE}
|
832
|
+
exit ;;
|
833
|
+
esac ;;
|
799
834
|
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
800
835
|
echo i${UNAME_MACHINE}-pc-mks
|
801
836
|
exit ;;
|
837
|
+
8664:Windows_NT:*)
|
838
|
+
echo x86_64-pc-mks
|
839
|
+
exit ;;
|
802
840
|
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
803
841
|
# How do we know it's Interix rather than the generic POSIX subsystem?
|
804
842
|
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
@@ -828,20 +866,68 @@ EOF
|
|
828
866
|
i*86:Minix:*:*)
|
829
867
|
echo ${UNAME_MACHINE}-pc-minix
|
830
868
|
exit ;;
|
831
|
-
|
869
|
+
aarch64:Linux:*:*)
|
870
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
871
|
+
exit ;;
|
872
|
+
aarch64_be:Linux:*:*)
|
873
|
+
UNAME_MACHINE=aarch64_be
|
832
874
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
833
875
|
exit ;;
|
876
|
+
alpha:Linux:*:*)
|
877
|
+
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
878
|
+
EV5) UNAME_MACHINE=alphaev5 ;;
|
879
|
+
EV56) UNAME_MACHINE=alphaev56 ;;
|
880
|
+
PCA56) UNAME_MACHINE=alphapca56 ;;
|
881
|
+
PCA57) UNAME_MACHINE=alphapca56 ;;
|
882
|
+
EV6) UNAME_MACHINE=alphaev6 ;;
|
883
|
+
EV67) UNAME_MACHINE=alphaev67 ;;
|
884
|
+
EV68*) UNAME_MACHINE=alphaev68 ;;
|
885
|
+
esac
|
886
|
+
objdump --private-headers /bin/sh | grep -q ld.so.1
|
887
|
+
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
888
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
889
|
+
exit ;;
|
890
|
+
arm*:Linux:*:*)
|
891
|
+
eval $set_cc_for_build
|
892
|
+
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
893
|
+
| grep -q __ARM_EABI__
|
894
|
+
then
|
895
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
896
|
+
else
|
897
|
+
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
|
898
|
+
| grep -q __ARM_PCS_VFP
|
899
|
+
then
|
900
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
|
901
|
+
else
|
902
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
|
903
|
+
fi
|
904
|
+
fi
|
905
|
+
exit ;;
|
834
906
|
avr32*:Linux:*:*)
|
835
907
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
836
908
|
exit ;;
|
837
909
|
cris:Linux:*:*)
|
838
|
-
echo
|
910
|
+
echo ${UNAME_MACHINE}-axis-linux-gnu
|
839
911
|
exit ;;
|
840
912
|
crisv32:Linux:*:*)
|
841
|
-
echo
|
913
|
+
echo ${UNAME_MACHINE}-axis-linux-gnu
|
842
914
|
exit ;;
|
843
915
|
frv:Linux:*:*)
|
844
|
-
|
916
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
917
|
+
exit ;;
|
918
|
+
hexagon:Linux:*:*)
|
919
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
920
|
+
exit ;;
|
921
|
+
i*86:Linux:*:*)
|
922
|
+
LIBC=gnu
|
923
|
+
eval $set_cc_for_build
|
924
|
+
sed 's/^ //' << EOF >$dummy.c
|
925
|
+
#ifdef __dietlibc__
|
926
|
+
LIBC=dietlibc
|
927
|
+
#endif
|
928
|
+
EOF
|
929
|
+
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
|
930
|
+
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
|
845
931
|
exit ;;
|
846
932
|
ia64:Linux:*:*)
|
847
933
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
@@ -852,74 +938,33 @@ EOF
|
|
852
938
|
m68*:Linux:*:*)
|
853
939
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
854
940
|
exit ;;
|
855
|
-
mips:Linux:*:*)
|
856
|
-
eval $set_cc_for_build
|
857
|
-
sed 's/^ //' << EOF >$dummy.c
|
858
|
-
#undef CPU
|
859
|
-
#undef mips
|
860
|
-
#undef mipsel
|
861
|
-
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
862
|
-
CPU=mipsel
|
863
|
-
#else
|
864
|
-
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
865
|
-
CPU=mips
|
866
|
-
#else
|
867
|
-
CPU=
|
868
|
-
#endif
|
869
|
-
#endif
|
870
|
-
EOF
|
871
|
-
eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
872
|
-
/^CPU/{
|
873
|
-
s: ::g
|
874
|
-
p
|
875
|
-
}'`"
|
876
|
-
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
877
|
-
;;
|
878
|
-
mips64:Linux:*:*)
|
941
|
+
mips:Linux:*:* | mips64:Linux:*:*)
|
879
942
|
eval $set_cc_for_build
|
880
943
|
sed 's/^ //' << EOF >$dummy.c
|
881
944
|
#undef CPU
|
882
|
-
#undef
|
883
|
-
#undef
|
945
|
+
#undef ${UNAME_MACHINE}
|
946
|
+
#undef ${UNAME_MACHINE}el
|
884
947
|
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
885
|
-
CPU
|
948
|
+
CPU=${UNAME_MACHINE}el
|
886
949
|
#else
|
887
950
|
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
888
|
-
CPU
|
951
|
+
CPU=${UNAME_MACHINE}
|
889
952
|
#else
|
890
953
|
CPU=
|
891
954
|
#endif
|
892
955
|
#endif
|
893
956
|
EOF
|
894
|
-
eval
|
895
|
-
/^CPU/{
|
896
|
-
s: ::g
|
897
|
-
p
|
898
|
-
}'`"
|
957
|
+
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
|
899
958
|
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
900
959
|
;;
|
901
960
|
or32:Linux:*:*)
|
902
|
-
echo
|
903
|
-
exit ;;
|
904
|
-
ppc:Linux:*:*)
|
905
|
-
echo powerpc-unknown-linux-gnu
|
961
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
906
962
|
exit ;;
|
907
|
-
|
908
|
-
echo
|
963
|
+
padre:Linux:*:*)
|
964
|
+
echo sparc-unknown-linux-gnu
|
909
965
|
exit ;;
|
910
|
-
|
911
|
-
|
912
|
-
EV5) UNAME_MACHINE=alphaev5 ;;
|
913
|
-
EV56) UNAME_MACHINE=alphaev56 ;;
|
914
|
-
PCA56) UNAME_MACHINE=alphapca56 ;;
|
915
|
-
PCA57) UNAME_MACHINE=alphapca56 ;;
|
916
|
-
EV6) UNAME_MACHINE=alphaev6 ;;
|
917
|
-
EV67) UNAME_MACHINE=alphaev67 ;;
|
918
|
-
EV68*) UNAME_MACHINE=alphaev68 ;;
|
919
|
-
esac
|
920
|
-
objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
|
921
|
-
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
922
|
-
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
966
|
+
parisc64:Linux:*:* | hppa64:Linux:*:*)
|
967
|
+
echo hppa64-unknown-linux-gnu
|
923
968
|
exit ;;
|
924
969
|
parisc:Linux:*:* | hppa:Linux:*:*)
|
925
970
|
# Look for CPU level
|
@@ -929,14 +974,17 @@ EOF
|
|
929
974
|
*) echo hppa-unknown-linux-gnu ;;
|
930
975
|
esac
|
931
976
|
exit ;;
|
932
|
-
|
933
|
-
echo
|
977
|
+
ppc64:Linux:*:*)
|
978
|
+
echo powerpc64-unknown-linux-gnu
|
979
|
+
exit ;;
|
980
|
+
ppc:Linux:*:*)
|
981
|
+
echo powerpc-unknown-linux-gnu
|
934
982
|
exit ;;
|
935
983
|
s390:Linux:*:* | s390x:Linux:*:*)
|
936
984
|
echo ${UNAME_MACHINE}-ibm-linux
|
937
985
|
exit ;;
|
938
986
|
sh64*:Linux:*:*)
|
939
|
-
|
987
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
940
988
|
exit ;;
|
941
989
|
sh*:Linux:*:*)
|
942
990
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
@@ -944,75 +992,18 @@ EOF
|
|
944
992
|
sparc:Linux:*:* | sparc64:Linux:*:*)
|
945
993
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
946
994
|
exit ;;
|
995
|
+
tile*:Linux:*:*)
|
996
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
997
|
+
exit ;;
|
947
998
|
vax:Linux:*:*)
|
948
999
|
echo ${UNAME_MACHINE}-dec-linux-gnu
|
949
1000
|
exit ;;
|
950
1001
|
x86_64:Linux:*:*)
|
951
|
-
echo
|
1002
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
1003
|
+
exit ;;
|
1004
|
+
xtensa*:Linux:*:*)
|
1005
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
952
1006
|
exit ;;
|
953
|
-
i*86:Linux:*:*)
|
954
|
-
# The BFD linker knows what the default object file format is, so
|
955
|
-
# first see if it will tell us. cd to the root directory to prevent
|
956
|
-
# problems with other programs or directories called `ld' in the path.
|
957
|
-
# Set LC_ALL=C to ensure ld outputs messages in English.
|
958
|
-
ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
|
959
|
-
| sed -ne '/supported targets:/!d
|
960
|
-
s/[ ][ ]*/ /g
|
961
|
-
s/.*supported targets: *//
|
962
|
-
s/ .*//
|
963
|
-
p'`
|
964
|
-
case "$ld_supported_targets" in
|
965
|
-
elf32-i386)
|
966
|
-
TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
|
967
|
-
;;
|
968
|
-
a.out-i386-linux)
|
969
|
-
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
970
|
-
exit ;;
|
971
|
-
coff-i386)
|
972
|
-
echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
973
|
-
exit ;;
|
974
|
-
"")
|
975
|
-
# Either a pre-BFD a.out linker (linux-gnuoldld) or
|
976
|
-
# one that does not give us useful --help.
|
977
|
-
echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
|
978
|
-
exit ;;
|
979
|
-
esac
|
980
|
-
# Determine whether the default compiler is a.out or elf
|
981
|
-
eval $set_cc_for_build
|
982
|
-
sed 's/^ //' << EOF >$dummy.c
|
983
|
-
#include <features.h>
|
984
|
-
#ifdef __ELF__
|
985
|
-
# ifdef __GLIBC__
|
986
|
-
# if __GLIBC__ >= 2
|
987
|
-
LIBC=gnu
|
988
|
-
# else
|
989
|
-
LIBC=gnulibc1
|
990
|
-
# endif
|
991
|
-
# else
|
992
|
-
LIBC=gnulibc1
|
993
|
-
# endif
|
994
|
-
#else
|
995
|
-
#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
|
996
|
-
LIBC=gnu
|
997
|
-
#else
|
998
|
-
LIBC=gnuaout
|
999
|
-
#endif
|
1000
|
-
#endif
|
1001
|
-
#ifdef __dietlibc__
|
1002
|
-
LIBC=dietlibc
|
1003
|
-
#endif
|
1004
|
-
EOF
|
1005
|
-
eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
1006
|
-
/^LIBC/{
|
1007
|
-
s: ::g
|
1008
|
-
p
|
1009
|
-
}'`"
|
1010
|
-
test x"${LIBC}" != x && {
|
1011
|
-
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
|
1012
|
-
exit
|
1013
|
-
}
|
1014
|
-
test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
|
1015
|
-
;;
|
1016
1007
|
i*86:DYNIX/ptx:4*:*)
|
1017
1008
|
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
1018
1009
|
# earlier versions are messed up and put the nodename in both
|
@@ -1020,11 +1011,11 @@ EOF
|
|
1020
1011
|
echo i386-sequent-sysv4
|
1021
1012
|
exit ;;
|
1022
1013
|
i*86:UNIX_SV:4.2MP:2.*)
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1014
|
+
# Unixware is an offshoot of SVR4, but it has its own version
|
1015
|
+
# number series starting with 2...
|
1016
|
+
# I am not positive that other SVR4 systems won't match this,
|
1026
1017
|
# I just have to hope. -- rms.
|
1027
|
-
|
1018
|
+
# Use sysv4.2uw... so that sysv4* matches it.
|
1028
1019
|
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
1029
1020
|
exit ;;
|
1030
1021
|
i*86:OS/2:*:*)
|
@@ -1041,7 +1032,7 @@ EOF
|
|
1041
1032
|
i*86:syllable:*:*)
|
1042
1033
|
echo ${UNAME_MACHINE}-pc-syllable
|
1043
1034
|
exit ;;
|
1044
|
-
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.
|
1035
|
+
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
|
1045
1036
|
echo i386-unknown-lynxos${UNAME_RELEASE}
|
1046
1037
|
exit ;;
|
1047
1038
|
i*86:*DOS:*:*)
|
@@ -1056,7 +1047,7 @@ EOF
|
|
1056
1047
|
fi
|
1057
1048
|
exit ;;
|
1058
1049
|
i*86:*:5:[678]*)
|
1059
|
-
|
1050
|
+
# UnixWare 7.x, OpenUNIX and OpenServer 6.
|
1060
1051
|
case `/bin/uname -X | grep "^Machine"` in
|
1061
1052
|
*486*) UNAME_MACHINE=i486 ;;
|
1062
1053
|
*Pentium) UNAME_MACHINE=i586 ;;
|
@@ -1084,10 +1075,13 @@ EOF
|
|
1084
1075
|
exit ;;
|
1085
1076
|
pc:*:*:*)
|
1086
1077
|
# Left here for compatibility:
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1078
|
+
# uname -m prints for DJGPP always 'pc', but it prints nothing about
|
1079
|
+
# the processor, so we play safe by assuming i586.
|
1080
|
+
# Note: whatever this is, it MUST be the same as what config.sub
|
1081
|
+
# prints for the "djgpp" host, or else GDB configury will decide that
|
1082
|
+
# this is a cross-build.
|
1083
|
+
echo i586-pc-msdosdjgpp
|
1084
|
+
exit ;;
|
1091
1085
|
Intel:Mach:3*:*)
|
1092
1086
|
echo i386-pc-mach3
|
1093
1087
|
exit ;;
|
@@ -1122,8 +1116,18 @@ EOF
|
|
1122
1116
|
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
1123
1117
|
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
1124
1118
|
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
1125
|
-
|
1126
|
-
|
1119
|
+
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
1120
|
+
&& { echo i486-ncr-sysv4; exit; } ;;
|
1121
|
+
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
|
1122
|
+
OS_REL='.3'
|
1123
|
+
test -r /etc/.relid \
|
1124
|
+
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
1125
|
+
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
1126
|
+
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; }
|
1127
|
+
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
1128
|
+
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; }
|
1129
|
+
/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
|
1130
|
+
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
1127
1131
|
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
1128
1132
|
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
1129
1133
|
exit ;;
|
@@ -1136,7 +1140,7 @@ EOF
|
|
1136
1140
|
rs6000:LynxOS:2.*:*)
|
1137
1141
|
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
1138
1142
|
exit ;;
|
1139
|
-
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.
|
1143
|
+
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
|
1140
1144
|
echo powerpc-unknown-lynxos${UNAME_RELEASE}
|
1141
1145
|
exit ;;
|
1142
1146
|
SM[BE]S:UNIX_SV:*:*)
|
@@ -1156,10 +1160,10 @@ EOF
|
|
1156
1160
|
echo ns32k-sni-sysv
|
1157
1161
|
fi
|
1158
1162
|
exit ;;
|
1159
|
-
PENTIUM:*:4.0*:*)
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
+
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
1164
|
+
# says <Richard.M.Bartel@ccMail.Census.GOV>
|
1165
|
+
echo i586-unisys-sysv4
|
1166
|
+
exit ;;
|
1163
1167
|
*:UNIX_System_V:4*:FTX*)
|
1164
1168
|
# From Gerald Hewes <hewes@openmarket.com>.
|
1165
1169
|
# How about differentiating between stratus architectures? -djm
|
@@ -1185,11 +1189,11 @@ EOF
|
|
1185
1189
|
exit ;;
|
1186
1190
|
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
1187
1191
|
if [ -d /usr/nec ]; then
|
1188
|
-
|
1192
|
+
echo mips-nec-sysv${UNAME_RELEASE}
|
1189
1193
|
else
|
1190
|
-
|
1194
|
+
echo mips-unknown-sysv${UNAME_RELEASE}
|
1191
1195
|
fi
|
1192
|
-
|
1196
|
+
exit ;;
|
1193
1197
|
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
|
1194
1198
|
echo powerpc-be-beos
|
1195
1199
|
exit ;;
|
@@ -1199,6 +1203,12 @@ EOF
|
|
1199
1203
|
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
1200
1204
|
echo i586-pc-beos
|
1201
1205
|
exit ;;
|
1206
|
+
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
|
1207
|
+
echo i586-pc-haiku
|
1208
|
+
exit ;;
|
1209
|
+
x86_64:Haiku:*:*)
|
1210
|
+
echo x86_64-unknown-haiku
|
1211
|
+
exit ;;
|
1202
1212
|
SX-4:SUPER-UX:*:*)
|
1203
1213
|
echo sx4-nec-superux${UNAME_RELEASE}
|
1204
1214
|
exit ;;
|
@@ -1208,6 +1218,15 @@ EOF
|
|
1208
1218
|
SX-6:SUPER-UX:*:*)
|
1209
1219
|
echo sx6-nec-superux${UNAME_RELEASE}
|
1210
1220
|
exit ;;
|
1221
|
+
SX-7:SUPER-UX:*:*)
|
1222
|
+
echo sx7-nec-superux${UNAME_RELEASE}
|
1223
|
+
exit ;;
|
1224
|
+
SX-8:SUPER-UX:*:*)
|
1225
|
+
echo sx8-nec-superux${UNAME_RELEASE}
|
1226
|
+
exit ;;
|
1227
|
+
SX-8R:SUPER-UX:*:*)
|
1228
|
+
echo sx8r-nec-superux${UNAME_RELEASE}
|
1229
|
+
exit ;;
|
1211
1230
|
Power*:Rhapsody:*:*)
|
1212
1231
|
echo powerpc-apple-rhapsody${UNAME_RELEASE}
|
1213
1232
|
exit ;;
|
@@ -1217,6 +1236,16 @@ EOF
|
|
1217
1236
|
*:Darwin:*:*)
|
1218
1237
|
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
|
1219
1238
|
case $UNAME_PROCESSOR in
|
1239
|
+
i386)
|
1240
|
+
eval $set_cc_for_build
|
1241
|
+
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
1242
|
+
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
|
1243
|
+
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
1244
|
+
grep IS_64BIT_ARCH >/dev/null
|
1245
|
+
then
|
1246
|
+
UNAME_PROCESSOR="x86_64"
|
1247
|
+
fi
|
1248
|
+
fi ;;
|
1220
1249
|
unknown) UNAME_PROCESSOR=powerpc ;;
|
1221
1250
|
esac
|
1222
1251
|
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
|
@@ -1232,7 +1261,10 @@ EOF
|
|
1232
1261
|
*:QNX:*:4*)
|
1233
1262
|
echo i386-pc-qnx
|
1234
1263
|
exit ;;
|
1235
|
-
|
1264
|
+
NEO-?:NONSTOP_KERNEL:*:*)
|
1265
|
+
echo neo-tandem-nsk${UNAME_RELEASE}
|
1266
|
+
exit ;;
|
1267
|
+
NSE-*:NONSTOP_KERNEL:*:*)
|
1236
1268
|
echo nse-tandem-nsk${UNAME_RELEASE}
|
1237
1269
|
exit ;;
|
1238
1270
|
NSR-?:NONSTOP_KERNEL:*:*)
|
@@ -1277,13 +1309,13 @@ EOF
|
|
1277
1309
|
echo pdp10-unknown-its
|
1278
1310
|
exit ;;
|
1279
1311
|
SEI:*:*:SEIUX)
|
1280
|
-
|
1312
|
+
echo mips-sei-seiux${UNAME_RELEASE}
|
1281
1313
|
exit ;;
|
1282
1314
|
*:DragonFly:*:*)
|
1283
1315
|
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
1284
1316
|
exit ;;
|
1285
1317
|
*:*VMS:*:*)
|
1286
|
-
|
1318
|
+
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
1287
1319
|
case "${UNAME_MACHINE}" in
|
1288
1320
|
A*) echo alpha-dec-vms ; exit ;;
|
1289
1321
|
I*) echo ia64-dec-vms ; exit ;;
|
@@ -1298,11 +1330,14 @@ EOF
|
|
1298
1330
|
i*86:rdos:*:*)
|
1299
1331
|
echo ${UNAME_MACHINE}-pc-rdos
|
1300
1332
|
exit ;;
|
1333
|
+
i*86:AROS:*:*)
|
1334
|
+
echo ${UNAME_MACHINE}-pc-aros
|
1335
|
+
exit ;;
|
1336
|
+
x86_64:VMkernel:*:*)
|
1337
|
+
echo ${UNAME_MACHINE}-unknown-esx
|
1338
|
+
exit ;;
|
1301
1339
|
esac
|
1302
1340
|
|
1303
|
-
#echo '(No uname command or uname output not recognized.)' 1>&2
|
1304
|
-
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
1305
|
-
|
1306
1341
|
eval $set_cc_for_build
|
1307
1342
|
cat >$dummy.c <<EOF
|
1308
1343
|
#ifdef _SEQUENT_
|
@@ -1320,11 +1355,11 @@ main ()
|
|
1320
1355
|
#include <sys/param.h>
|
1321
1356
|
printf ("m68k-sony-newsos%s\n",
|
1322
1357
|
#ifdef NEWSOS4
|
1323
|
-
|
1358
|
+
"4"
|
1324
1359
|
#else
|
1325
|
-
|
1360
|
+
""
|
1326
1361
|
#endif
|
1327
|
-
|
1362
|
+
); exit (0);
|
1328
1363
|
#endif
|
1329
1364
|
#endif
|
1330
1365
|
|
@@ -1458,9 +1493,9 @@ This script, last modified $timestamp, has failed to recognize
|
|
1458
1493
|
the operating system you are using. It is advised that you
|
1459
1494
|
download the most up to date version of the config scripts from
|
1460
1495
|
|
1461
|
-
http://savannah.gnu.org/
|
1496
|
+
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
1462
1497
|
and
|
1463
|
-
http://savannah.gnu.org/
|
1498
|
+
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
|
1464
1499
|
|
1465
1500
|
If the version you run ($0) is already up to date, please
|
1466
1501
|
send the following data and any information you think might be
|