tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
cygwin: w3m
authored by
Marko Durkovic
and committed by
Rok Garbas
10 years ago
d917f8c7
feef088b
+1712
-1
2 changed files
expand all
collapse all
unified
split
pkgs
applications
networking
browsers
w3m
cygwin.patch
default.nix
+1710
pkgs/applications/networking/browsers/w3m/cygwin.patch
···
1
1
+
diff -ur w3m-0.5.3/config.guess new/w3m-0.5.3/config.guess
2
2
+
--- w3m-0.5.3/config.guess 2004-08-04 13:32:27.000000000 -0400
3
3
+
+++ w3m-0.5.3/config.guess 2013-04-28 18:43:59.480227700 -0400
4
4
+
@@ -1,13 +1,14 @@
5
5
+
#! /bin/sh
6
6
+
# Attempt to guess a canonical system name.
7
7
+
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
8
8
+
-# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
9
9
+
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
10
10
+
+# 2011, 2012, 2013 Free Software Foundation, Inc.
11
11
+
12
12
+
-timestamp='2004-03-12'
13
13
+
+timestamp='2012-12-29'
14
14
+
15
15
+
# This file is free software; you can redistribute it and/or modify it
16
16
+
# under the terms of the GNU General Public License as published by
17
17
+
-# the Free Software Foundation; either version 2 of the License, or
18
18
+
+# the Free Software Foundation; either version 3 of the License, or
19
19
+
# (at your option) any later version.
20
20
+
#
21
21
+
# This program is distributed in the hope that it will be useful, but
22
22
+
@@ -16,24 +17,22 @@
23
23
+
# General Public License for more details.
24
24
+
#
25
25
+
# You should have received a copy of the GNU General Public License
26
26
+
-# along with this program; if not, write to the Free Software
27
27
+
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28
28
+
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
29
29
+
#
30
30
+
# As a special exception to the GNU General Public License, if you
31
31
+
# distribute this file as part of a program that contains a
32
32
+
# configuration script generated by Autoconf, you may include it under
33
33
+
-# the same distribution terms that you use for the rest of that program.
34
34
+
-
35
35
+
-# Originally written by Per Bothner <per@bothner.com>.
36
36
+
-# Please send patches to <config-patches@gnu.org>. Submit a context
37
37
+
-# diff and a properly formatted ChangeLog entry.
38
38
+
+# the same distribution terms that you use for the rest of that
39
39
+
+# program. This Exception is an additional permission under section 7
40
40
+
+# of the GNU General Public License, version 3 ("GPLv3").
41
41
+
+#
42
42
+
+# Originally written by Per Bothner.
43
43
+
#
44
44
+
-# This script attempts to guess a canonical system name similar to
45
45
+
-# config.sub. If it succeeds, it prints the system name on stdout, and
46
46
+
-# exits with 0. Otherwise, it exits with 1.
47
47
+
+# You can get the latest version of this script from:
48
48
+
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
49
49
+
#
50
50
+
-# The plan is that this can be called by configure scripts if you
51
51
+
-# don't specify an explicit build system type.
52
52
+
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
53
53
+
+
54
54
+
55
55
+
me=`echo "$0" | sed -e 's,.*/,,'`
56
56
+
57
57
+
@@ -53,8 +52,9 @@
58
58
+
GNU config.guess ($timestamp)
59
59
+
60
60
+
Originally written by Per Bothner.
61
61
+
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
62
62
+
-Free Software Foundation, Inc.
63
63
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
64
64
+
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
65
65
+
+2012, 2013 Free Software Foundation, Inc.
66
66
+
67
67
+
This is free software; see the source for copying conditions. There is NO
68
68
+
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
69
69
+
@@ -66,11 +66,11 @@
70
70
+
while test $# -gt 0 ; do
71
71
+
case $1 in
72
72
+
--time-stamp | --time* | -t )
73
73
+
- echo "$timestamp" ; exit 0 ;;
74
74
+
+ echo "$timestamp" ; exit ;;
75
75
+
--version | -v )
76
76
+
- echo "$version" ; exit 0 ;;
77
77
+
+ echo "$version" ; exit ;;
78
78
+
--help | --h* | -h )
79
79
+
- echo "$usage"; exit 0 ;;
80
80
+
+ echo "$usage"; exit ;;
81
81
+
-- ) # Stop option processing
82
82
+
shift; break ;;
83
83
+
- ) # Use stdin as input.
84
84
+
@@ -104,7 +104,7 @@
85
85
+
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
86
86
+
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
87
87
+
: ${TMPDIR=/tmp} ;
88
88
+
- { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
89
89
+
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
90
90
+
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
91
91
+
{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
92
92
+
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
93
93
+
@@ -123,7 +123,7 @@
94
94
+
;;
95
95
+
,,*) CC_FOR_BUILD=$CC ;;
96
96
+
,*,*) CC_FOR_BUILD=$HOST_CC ;;
97
97
+
-esac ;'
98
98
+
+esac ; set_cc_for_build= ;'
99
99
+
100
100
+
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
101
101
+
# (ghazi@noc.rutgers.edu 1994-08-24)
102
102
+
@@ -141,7 +141,7 @@
103
103
+
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
104
104
+
*:NetBSD:*:*)
105
105
+
# NetBSD (nbsd) targets should (where applicable) match one or
106
106
+
- # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
107
107
+
+ # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
108
108
+
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
109
109
+
# switched to ELF, *-*-netbsd* would select the old
110
110
+
# object file format. This provides both forward
111
111
+
@@ -158,6 +158,7 @@
112
112
+
arm*) machine=arm-unknown ;;
113
113
+
sh3el) machine=shl-unknown ;;
114
114
+
sh3eb) machine=sh-unknown ;;
115
115
+
+ sh5el) machine=sh5le-unknown ;;
116
116
+
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
117
117
+
esac
118
118
+
# The Operating System including object format, if it has switched
119
119
+
@@ -166,7 +167,7 @@
120
120
+
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
121
121
+
eval $set_cc_for_build
122
122
+
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
123
123
+
- | grep __ELF__ >/dev/null
124
124
+
+ | grep -q __ELF__
125
125
+
then
126
126
+
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
127
127
+
# Return netbsd for either. FIX?
128
128
+
@@ -176,7 +177,7 @@
129
129
+
fi
130
130
+
;;
131
131
+
*)
132
132
+
- os=netbsd
133
133
+
+ os=netbsd
134
134
+
;;
135
135
+
esac
136
136
+
# The OS release
137
137
+
@@ -196,71 +197,34 @@
138
138
+
# contains redundant information, the shorter form:
139
139
+
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
140
140
+
echo "${machine}-${os}${release}"
141
141
+
- exit 0 ;;
142
142
+
- amd64:OpenBSD:*:*)
143
143
+
- echo x86_64-unknown-openbsd${UNAME_RELEASE}
144
144
+
- exit 0 ;;
145
145
+
- amiga:OpenBSD:*:*)
146
146
+
- echo m68k-unknown-openbsd${UNAME_RELEASE}
147
147
+
- exit 0 ;;
148
148
+
- arc:OpenBSD:*:*)
149
149
+
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
150
150
+
- exit 0 ;;
151
151
+
- cats:OpenBSD:*:*)
152
152
+
- echo arm-unknown-openbsd${UNAME_RELEASE}
153
153
+
- exit 0 ;;
154
154
+
- hp300:OpenBSD:*:*)
155
155
+
- echo m68k-unknown-openbsd${UNAME_RELEASE}
156
156
+
- exit 0 ;;
157
157
+
- mac68k:OpenBSD:*:*)
158
158
+
- echo m68k-unknown-openbsd${UNAME_RELEASE}
159
159
+
- exit 0 ;;
160
160
+
- macppc:OpenBSD:*:*)
161
161
+
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
162
162
+
- exit 0 ;;
163
163
+
- mvme68k:OpenBSD:*:*)
164
164
+
- echo m68k-unknown-openbsd${UNAME_RELEASE}
165
165
+
- exit 0 ;;
166
166
+
- mvme88k:OpenBSD:*:*)
167
167
+
- echo m88k-unknown-openbsd${UNAME_RELEASE}
168
168
+
- exit 0 ;;
169
169
+
- mvmeppc:OpenBSD:*:*)
170
170
+
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
171
171
+
- exit 0 ;;
172
172
+
- pegasos:OpenBSD:*:*)
173
173
+
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
174
174
+
- exit 0 ;;
175
175
+
- pmax:OpenBSD:*:*)
176
176
+
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
177
177
+
- exit 0 ;;
178
178
+
- sgi:OpenBSD:*:*)
179
179
+
- echo mipseb-unknown-openbsd${UNAME_RELEASE}
180
180
+
- exit 0 ;;
181
181
+
- sun3:OpenBSD:*:*)
182
182
+
- echo m68k-unknown-openbsd${UNAME_RELEASE}
183
183
+
- exit 0 ;;
184
184
+
- wgrisc:OpenBSD:*:*)
185
185
+
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
186
186
+
- exit 0 ;;
187
187
+
+ exit ;;
188
188
+
+ *:Bitrig:*:*)
189
189
+
+ UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
190
190
+
+ echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
191
191
+
+ exit ;;
192
192
+
*:OpenBSD:*:*)
193
193
+
- echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
194
194
+
- exit 0 ;;
195
195
+
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
196
196
+
+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
197
197
+
+ exit ;;
198
198
+
*:ekkoBSD:*:*)
199
199
+
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
200
200
+
- exit 0 ;;
201
201
+
+ exit ;;
202
202
+
+ *:SolidBSD:*:*)
203
203
+
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
204
204
+
+ exit ;;
205
205
+
macppc:MirBSD:*:*)
206
206
+
- echo powerppc-unknown-mirbsd${UNAME_RELEASE}
207
207
+
- exit 0 ;;
208
208
+
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
209
209
+
+ exit ;;
210
210
+
*:MirBSD:*:*)
211
211
+
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
212
212
+
- exit 0 ;;
213
213
+
+ exit ;;
214
214
+
alpha:OSF1:*:*)
215
215
+
case $UNAME_RELEASE in
216
216
+
*4.0)
217
217
+
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
218
218
+
;;
219
219
+
*5.*)
220
220
+
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
221
221
+
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
222
222
+
;;
223
223
+
esac
224
224
+
# According to Compaq, /usr/sbin/psrinfo has been available on
225
225
+
@@ -306,40 +270,46 @@
226
226
+
# A Xn.n version is an unreleased experimental baselevel.
227
227
+
# 1.2 uses "1.2" for uname -r.
228
228
+
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
229
229
+
- exit 0 ;;
230
230
+
- Alpha*:OpenVMS:*:*)
231
231
+
- echo alpha-hp-vms
232
232
+
- exit 0 ;;
233
233
+
+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
234
234
+
+ exitcode=$?
235
235
+
+ trap '' 0
236
236
+
+ exit $exitcode ;;
237
237
+
Alpha\ *:Windows_NT*:*)
238
238
+
# How do we know it's Interix rather than the generic POSIX subsystem?
239
239
+
# Should we change UNAME_MACHINE based on the output of uname instead
240
240
+
# of the specific Alpha model?
241
241
+
echo alpha-pc-interix
242
242
+
- exit 0 ;;
243
243
+
+ exit ;;
244
244
+
21064:Windows_NT:50:3)
245
245
+
echo alpha-dec-winnt3.5
246
246
+
- exit 0 ;;
247
247
+
+ exit ;;
248
248
+
Amiga*:UNIX_System_V:4.0:*)
249
249
+
echo m68k-unknown-sysv4
250
250
+
- exit 0;;
251
251
+
+ exit ;;
252
252
+
*:[Aa]miga[Oo][Ss]:*:*)
253
253
+
echo ${UNAME_MACHINE}-unknown-amigaos
254
254
+
- exit 0 ;;
255
255
+
+ exit ;;
256
256
+
*:[Mm]orph[Oo][Ss]:*:*)
257
257
+
echo ${UNAME_MACHINE}-unknown-morphos
258
258
+
- exit 0 ;;
259
259
+
+ exit ;;
260
260
+
*:OS/390:*:*)
261
261
+
echo i370-ibm-openedition
262
262
+
- exit 0 ;;
263
263
+
+ exit ;;
264
264
+
+ *:z/VM:*:*)
265
265
+
+ echo s390-ibm-zvmoe
266
266
+
+ exit ;;
267
267
+
*:OS400:*:*)
268
268
+
- echo powerpc-ibm-os400
269
269
+
- exit 0 ;;
270
270
+
+ echo powerpc-ibm-os400
271
271
+
+ exit ;;
272
272
+
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
273
273
+
echo arm-acorn-riscix${UNAME_RELEASE}
274
274
+
- exit 0;;
275
275
+
+ exit ;;
276
276
+
+ arm*:riscos:*:*|arm*:RISCOS:*:*)
277
277
+
+ echo arm-unknown-riscos
278
278
+
+ exit ;;
279
279
+
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
280
280
+
echo hppa1.1-hitachi-hiuxmpp
281
281
+
- exit 0;;
282
282
+
+ exit ;;
283
283
+
Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
284
284
+
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
285
285
+
if test "`(/bin/universe) 2>/dev/null`" = att ; then
286
286
+
@@ -347,32 +317,51 @@
287
287
+
else
288
288
+
echo pyramid-pyramid-bsd
289
289
+
fi
290
290
+
- exit 0 ;;
291
291
+
+ exit ;;
292
292
+
NILE*:*:*:dcosx)
293
293
+
echo pyramid-pyramid-svr4
294
294
+
- exit 0 ;;
295
295
+
+ exit ;;
296
296
+
DRS?6000:unix:4.0:6*)
297
297
+
echo sparc-icl-nx6
298
298
+
- exit 0 ;;
299
299
+
- DRS?6000:UNIX_SV:4.2*:7*)
300
300
+
+ exit ;;
301
301
+
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
302
302
+
case `/usr/bin/uname -p` in
303
303
+
- sparc) echo sparc-icl-nx7 && exit 0 ;;
304
304
+
+ sparc) echo sparc-icl-nx7; exit ;;
305
305
+
esac ;;
306
306
+
+ s390x:SunOS:*:*)
307
307
+
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
308
308
+
+ exit ;;
309
309
+
sun4H:SunOS:5.*:*)
310
310
+
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
311
311
+
- exit 0 ;;
312
312
+
+ exit ;;
313
313
+
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
314
314
+
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
315
315
+
- exit 0 ;;
316
316
+
- i86pc:SunOS:5.*:*)
317
317
+
- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
318
318
+
- exit 0 ;;
319
319
+
+ exit ;;
320
320
+
+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
321
321
+
+ echo i386-pc-auroraux${UNAME_RELEASE}
322
322
+
+ exit ;;
323
323
+
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
324
324
+
+ eval $set_cc_for_build
325
325
+
+ SUN_ARCH="i386"
326
326
+
+ # If there is a compiler, see if it is configured for 64-bit objects.
327
327
+
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
328
328
+
+ # This test works for both compilers.
329
329
+
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
330
330
+
+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
331
331
+
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
332
332
+
+ grep IS_64BIT_ARCH >/dev/null
333
333
+
+ then
334
334
+
+ SUN_ARCH="x86_64"
335
335
+
+ fi
336
336
+
+ fi
337
337
+
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
338
338
+
+ exit ;;
339
339
+
sun4*:SunOS:6*:*)
340
340
+
# According to config.sub, this is the proper way to canonicalize
341
341
+
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
342
342
+
# it's likely to be more like Solaris than SunOS4.
343
343
+
echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
344
344
+
- exit 0 ;;
345
345
+
+ exit ;;
346
346
+
sun4*:SunOS:*:*)
347
347
+
case "`/usr/bin/arch -k`" in
348
348
+
Series*|S4*)
349
349
+
@@ -381,10 +370,10 @@
350
350
+
esac
351
351
+
# Japanese Language versions have a version number like `4.1.3-JL'.
352
352
+
echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
353
353
+
- exit 0 ;;
354
354
+
+ exit ;;
355
355
+
sun3*:SunOS:*:*)
356
356
+
echo m68k-sun-sunos${UNAME_RELEASE}
357
357
+
- exit 0 ;;
358
358
+
+ exit ;;
359
359
+
sun*:*:4.2BSD:*)
360
360
+
UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
361
361
+
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
362
362
+
@@ -396,10 +385,10 @@
363
363
+
echo sparc-sun-sunos${UNAME_RELEASE}
364
364
+
;;
365
365
+
esac
366
366
+
- exit 0 ;;
367
367
+
+ exit ;;
368
368
+
aushp:SunOS:*:*)
369
369
+
echo sparc-auspex-sunos${UNAME_RELEASE}
370
370
+
- exit 0 ;;
371
371
+
+ exit ;;
372
372
+
# The situation for MiNT is a little confusing. The machine name
373
373
+
# can be virtually everything (everything which is not
374
374
+
# "atarist" or "atariste" at least should have a processor
375
375
+
@@ -409,41 +398,41 @@
376
376
+
# MiNT. But MiNT is downward compatible to TOS, so this should
377
377
+
# be no problem.
378
378
+
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
379
379
+
- echo m68k-atari-mint${UNAME_RELEASE}
380
380
+
- exit 0 ;;
381
381
+
+ echo m68k-atari-mint${UNAME_RELEASE}
382
382
+
+ exit ;;
383
383
+
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
384
384
+
echo m68k-atari-mint${UNAME_RELEASE}
385
385
+
- exit 0 ;;
386
386
+
+ exit ;;
387
387
+
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
388
388
+
- echo m68k-atari-mint${UNAME_RELEASE}
389
389
+
- exit 0 ;;
390
390
+
+ echo m68k-atari-mint${UNAME_RELEASE}
391
391
+
+ exit ;;
392
392
+
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
393
393
+
- echo m68k-milan-mint${UNAME_RELEASE}
394
394
+
- exit 0 ;;
395
395
+
+ echo m68k-milan-mint${UNAME_RELEASE}
396
396
+
+ exit ;;
397
397
+
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
398
398
+
- echo m68k-hades-mint${UNAME_RELEASE}
399
399
+
- exit 0 ;;
400
400
+
+ echo m68k-hades-mint${UNAME_RELEASE}
401
401
+
+ exit ;;
402
402
+
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
403
403
+
- echo m68k-unknown-mint${UNAME_RELEASE}
404
404
+
- exit 0 ;;
405
405
+
+ echo m68k-unknown-mint${UNAME_RELEASE}
406
406
+
+ exit ;;
407
407
+
m68k:machten:*:*)
408
408
+
echo m68k-apple-machten${UNAME_RELEASE}
409
409
+
- exit 0 ;;
410
410
+
+ exit ;;
411
411
+
powerpc:machten:*:*)
412
412
+
echo powerpc-apple-machten${UNAME_RELEASE}
413
413
+
- exit 0 ;;
414
414
+
+ exit ;;
415
415
+
RISC*:Mach:*:*)
416
416
+
echo mips-dec-mach_bsd4.3
417
417
+
- exit 0 ;;
418
418
+
+ exit ;;
419
419
+
RISC*:ULTRIX:*:*)
420
420
+
echo mips-dec-ultrix${UNAME_RELEASE}
421
421
+
- exit 0 ;;
422
422
+
+ exit ;;
423
423
+
VAX*:ULTRIX*:*:*)
424
424
+
echo vax-dec-ultrix${UNAME_RELEASE}
425
425
+
- exit 0 ;;
426
426
+
+ exit ;;
427
427
+
2020:CLIX:*:* | 2430:CLIX:*:*)
428
428
+
echo clipper-intergraph-clix${UNAME_RELEASE}
429
429
+
- exit 0 ;;
430
430
+
+ exit ;;
431
431
+
mips:*:*:UMIPS | mips:*:*:RISCos)
432
432
+
eval $set_cc_for_build
433
433
+
sed 's/^ //' << EOF >$dummy.c
434
434
+
@@ -467,35 +456,36 @@
435
435
+
exit (-1);
436
436
+
}
437
437
+
EOF
438
438
+
- $CC_FOR_BUILD -o $dummy $dummy.c \
439
439
+
- && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
440
440
+
- && exit 0
441
441
+
+ $CC_FOR_BUILD -o $dummy $dummy.c &&
442
442
+
+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
443
443
+
+ SYSTEM_NAME=`$dummy $dummyarg` &&
444
444
+
+ { echo "$SYSTEM_NAME"; exit; }
445
445
+
echo mips-mips-riscos${UNAME_RELEASE}
446
446
+
- exit 0 ;;
447
447
+
+ exit ;;
448
448
+
Motorola:PowerMAX_OS:*:*)
449
449
+
echo powerpc-motorola-powermax
450
450
+
- exit 0 ;;
451
451
+
+ exit ;;
452
452
+
Motorola:*:4.3:PL8-*)
453
453
+
echo powerpc-harris-powermax
454
454
+
- exit 0 ;;
455
455
+
+ exit ;;
456
456
+
Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
457
457
+
echo powerpc-harris-powermax
458
458
+
- exit 0 ;;
459
459
+
+ exit ;;
460
460
+
Night_Hawk:Power_UNIX:*:*)
461
461
+
echo powerpc-harris-powerunix
462
462
+
- exit 0 ;;
463
463
+
+ exit ;;
464
464
+
m88k:CX/UX:7*:*)
465
465
+
echo m88k-harris-cxux7
466
466
+
- exit 0 ;;
467
467
+
+ exit ;;
468
468
+
m88k:*:4*:R4*)
469
469
+
echo m88k-motorola-sysv4
470
470
+
- exit 0 ;;
471
471
+
+ exit ;;
472
472
+
m88k:*:3*:R3*)
473
473
+
echo m88k-motorola-sysv3
474
474
+
- exit 0 ;;
475
475
+
+ exit ;;
476
476
+
AViiON:dgux:*:*)
477
477
+
- # DG/UX returns AViiON for all architectures
478
478
+
- UNAME_PROCESSOR=`/usr/bin/uname -p`
479
479
+
+ # DG/UX returns AViiON for all architectures
480
480
+
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
481
481
+
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
482
482
+
then
483
483
+
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
484
484
+
@@ -508,29 +498,29 @@
485
485
+
else
486
486
+
echo i586-dg-dgux${UNAME_RELEASE}
487
487
+
fi
488
488
+
- exit 0 ;;
489
489
+
+ exit ;;
490
490
+
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
491
491
+
echo m88k-dolphin-sysv3
492
492
+
- exit 0 ;;
493
493
+
+ exit ;;
494
494
+
M88*:*:R3*:*)
495
495
+
# Delta 88k system running SVR3
496
496
+
echo m88k-motorola-sysv3
497
497
+
- exit 0 ;;
498
498
+
+ exit ;;
499
499
+
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
500
500
+
echo m88k-tektronix-sysv3
501
501
+
- exit 0 ;;
502
502
+
+ exit ;;
503
503
+
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
504
504
+
echo m68k-tektronix-bsd
505
505
+
- exit 0 ;;
506
506
+
+ exit ;;
507
507
+
*:IRIX*:*:*)
508
508
+
echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
509
509
+
- exit 0 ;;
510
510
+
+ exit ;;
511
511
+
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
512
512
+
- echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
513
513
+
- exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
514
514
+
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
515
515
+
+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
516
516
+
i*86:AIX:*:*)
517
517
+
echo i386-ibm-aix
518
518
+
- exit 0 ;;
519
519
+
+ exit ;;
520
520
+
ia64:AIX:*:*)
521
521
+
if [ -x /usr/bin/oslevel ] ; then
522
522
+
IBM_REV=`/usr/bin/oslevel`
523
523
+
@@ -538,7 +528,7 @@
524
524
+
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
525
525
+
fi
526
526
+
echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
527
527
+
- exit 0 ;;
528
528
+
+ exit ;;
529
529
+
*:AIX:2:3)
530
530
+
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
531
531
+
eval $set_cc_for_build
532
532
+
@@ -553,15 +543,19 @@
533
533
+
exit(0);
534
534
+
}
535
535
+
EOF
536
536
+
- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
537
537
+
- echo rs6000-ibm-aix3.2.5
538
538
+
+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
539
539
+
+ then
540
540
+
+ echo "$SYSTEM_NAME"
541
541
+
+ else
542
542
+
+ echo rs6000-ibm-aix3.2.5
543
543
+
+ fi
544
544
+
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
545
545
+
echo rs6000-ibm-aix3.2.4
546
546
+
else
547
547
+
echo rs6000-ibm-aix3.2
548
548
+
fi
549
549
+
- exit 0 ;;
550
550
+
- *:AIX:*:[45])
551
551
+
+ exit ;;
552
552
+
+ *:AIX:*:[4567])
553
553
+
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
554
554
+
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
555
555
+
IBM_ARCH=rs6000
556
556
+
@@ -574,28 +568,28 @@
557
557
+
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
558
558
+
fi
559
559
+
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
560
560
+
- exit 0 ;;
561
561
+
+ exit ;;
562
562
+
*:AIX:*:*)
563
563
+
echo rs6000-ibm-aix
564
564
+
- exit 0 ;;
565
565
+
+ exit ;;
566
566
+
ibmrt:4.4BSD:*|romp-ibm:BSD:*)
567
567
+
echo romp-ibm-bsd4.4
568
568
+
- exit 0 ;;
569
569
+
+ exit ;;
570
570
+
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
571
571
+
echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
572
572
+
- exit 0 ;; # report: romp-ibm BSD 4.3
573
573
+
+ exit ;; # report: romp-ibm BSD 4.3
574
574
+
*:BOSX:*:*)
575
575
+
echo rs6000-bull-bosx
576
576
+
- exit 0 ;;
577
577
+
+ exit ;;
578
578
+
DPX/2?00:B.O.S.:*:*)
579
579
+
echo m68k-bull-sysv3
580
580
+
- exit 0 ;;
581
581
+
+ exit ;;
582
582
+
9000/[34]??:4.3bsd:1.*:*)
583
583
+
echo m68k-hp-bsd
584
584
+
- exit 0 ;;
585
585
+
+ exit ;;
586
586
+
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
587
587
+
echo m68k-hp-bsd4.4
588
588
+
- exit 0 ;;
589
589
+
+ exit ;;
590
590
+
9000/[34678]??:HP-UX:*:*)
591
591
+
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
592
592
+
case "${UNAME_MACHINE}" in
593
593
+
@@ -604,52 +598,52 @@
594
594
+
9000/[678][0-9][0-9])
595
595
+
if [ -x /usr/bin/getconf ]; then
596
596
+
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
597
597
+
- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
598
598
+
- case "${sc_cpu_version}" in
599
599
+
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
600
600
+
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
601
601
+
- 532) # CPU_PA_RISC2_0
602
602
+
- case "${sc_kernel_bits}" in
603
603
+
- 32) HP_ARCH="hppa2.0n" ;;
604
604
+
- 64) HP_ARCH="hppa2.0w" ;;
605
605
+
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
606
606
+
+ case "${sc_cpu_version}" in
607
607
+
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
608
608
+
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
609
609
+
+ 532) # CPU_PA_RISC2_0
610
610
+
+ case "${sc_kernel_bits}" in
611
611
+
+ 32) HP_ARCH="hppa2.0n" ;;
612
612
+
+ 64) HP_ARCH="hppa2.0w" ;;
613
613
+
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
614
614
+
- esac ;;
615
615
+
- esac
616
616
+
+ esac ;;
617
617
+
+ esac
618
618
+
fi
619
619
+
if [ "${HP_ARCH}" = "" ]; then
620
620
+
eval $set_cc_for_build
621
621
+
- sed 's/^ //' << EOF >$dummy.c
622
622
+
+ sed 's/^ //' << EOF >$dummy.c
623
623
+
624
624
+
- #define _HPUX_SOURCE
625
625
+
- #include <stdlib.h>
626
626
+
- #include <unistd.h>
627
627
+
-
628
628
+
- int main ()
629
629
+
- {
630
630
+
- #if defined(_SC_KERNEL_BITS)
631
631
+
- long bits = sysconf(_SC_KERNEL_BITS);
632
632
+
- #endif
633
633
+
- long cpu = sysconf (_SC_CPU_VERSION);
634
634
+
-
635
635
+
- switch (cpu)
636
636
+
- {
637
637
+
- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
638
638
+
- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
639
639
+
- case CPU_PA_RISC2_0:
640
640
+
- #if defined(_SC_KERNEL_BITS)
641
641
+
- switch (bits)
642
642
+
- {
643
643
+
- case 64: puts ("hppa2.0w"); break;
644
644
+
- case 32: puts ("hppa2.0n"); break;
645
645
+
- default: puts ("hppa2.0"); break;
646
646
+
- } break;
647
647
+
- #else /* !defined(_SC_KERNEL_BITS) */
648
648
+
- puts ("hppa2.0"); break;
649
649
+
- #endif
650
650
+
- default: puts ("hppa1.0"); break;
651
651
+
- }
652
652
+
- exit (0);
653
653
+
- }
654
654
+
+ #define _HPUX_SOURCE
655
655
+
+ #include <stdlib.h>
656
656
+
+ #include <unistd.h>
657
657
+
+
658
658
+
+ int main ()
659
659
+
+ {
660
660
+
+ #if defined(_SC_KERNEL_BITS)
661
661
+
+ long bits = sysconf(_SC_KERNEL_BITS);
662
662
+
+ #endif
663
663
+
+ long cpu = sysconf (_SC_CPU_VERSION);
664
664
+
+
665
665
+
+ switch (cpu)
666
666
+
+ {
667
667
+
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
668
668
+
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
669
669
+
+ case CPU_PA_RISC2_0:
670
670
+
+ #if defined(_SC_KERNEL_BITS)
671
671
+
+ switch (bits)
672
672
+
+ {
673
673
+
+ case 64: puts ("hppa2.0w"); break;
674
674
+
+ case 32: puts ("hppa2.0n"); break;
675
675
+
+ default: puts ("hppa2.0"); break;
676
676
+
+ } break;
677
677
+
+ #else /* !defined(_SC_KERNEL_BITS) */
678
678
+
+ puts ("hppa2.0"); break;
679
679
+
+ #endif
680
680
+
+ default: puts ("hppa1.0"); break;
681
681
+
+ }
682
682
+
+ exit (0);
683
683
+
+ }
684
684
+
EOF
685
685
+
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
686
686
+
test -z "$HP_ARCH" && HP_ARCH=hppa
687
687
+
@@ -657,9 +651,19 @@
688
688
+
esac
689
689
+
if [ ${HP_ARCH} = "hppa2.0w" ]
690
690
+
then
691
691
+
- # avoid double evaluation of $set_cc_for_build
692
692
+
- test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
693
693
+
- if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
694
694
+
+ eval $set_cc_for_build
695
695
+
+
696
696
+
+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
697
697
+
+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
698
698
+
+ # generating 64-bit code. GNU and HP use different nomenclature:
699
699
+
+ #
700
700
+
+ # $ CC_FOR_BUILD=cc ./config.guess
701
701
+
+ # => hppa2.0w-hp-hpux11.23
702
702
+
+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
703
703
+
+ # => hppa64-hp-hpux11.23
704
704
+
+
705
705
+
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
706
706
+
+ grep -q __LP64__
707
707
+
then
708
708
+
HP_ARCH="hppa2.0w"
709
709
+
else
710
710
+
@@ -667,11 +671,11 @@
711
711
+
fi
712
712
+
fi
713
713
+
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
714
714
+
- exit 0 ;;
715
715
+
+ exit ;;
716
716
+
ia64:HP-UX:*:*)
717
717
+
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
718
718
+
echo ia64-hp-hpux${HPUX_REV}
719
719
+
- exit 0 ;;
720
720
+
+ exit ;;
721
721
+
3050*:HI-UX:*:*)
722
722
+
eval $set_cc_for_build
723
723
+
sed 's/^ //' << EOF >$dummy.c
724
724
+
@@ -699,224 +703,269 @@
725
725
+
exit (0);
726
726
+
}
727
727
+
EOF
728
728
+
- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
729
729
+
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
730
730
+
+ { echo "$SYSTEM_NAME"; exit; }
731
731
+
echo unknown-hitachi-hiuxwe2
732
732
+
- exit 0 ;;
733
733
+
+ exit ;;
734
734
+
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
735
735
+
echo hppa1.1-hp-bsd
736
736
+
- exit 0 ;;
737
737
+
+ exit ;;
738
738
+
9000/8??:4.3bsd:*:*)
739
739
+
echo hppa1.0-hp-bsd
740
740
+
- exit 0 ;;
741
741
+
+ exit ;;
742
742
+
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
743
743
+
echo hppa1.0-hp-mpeix
744
744
+
- exit 0 ;;
745
745
+
+ exit ;;
746
746
+
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
747
747
+
echo hppa1.1-hp-osf
748
748
+
- exit 0 ;;
749
749
+
+ exit ;;
750
750
+
hp8??:OSF1:*:*)
751
751
+
echo hppa1.0-hp-osf
752
752
+
- exit 0 ;;
753
753
+
+ exit ;;
754
754
+
i*86:OSF1:*:*)
755
755
+
if [ -x /usr/sbin/sysversion ] ; then
756
756
+
echo ${UNAME_MACHINE}-unknown-osf1mk
757
757
+
else
758
758
+
echo ${UNAME_MACHINE}-unknown-osf1
759
759
+
fi
760
760
+
- exit 0 ;;
761
761
+
+ exit ;;
762
762
+
parisc*:Lites*:*:*)
763
763
+
echo hppa1.1-hp-lites
764
764
+
- exit 0 ;;
765
765
+
+ exit ;;
766
766
+
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
767
767
+
echo c1-convex-bsd
768
768
+
- exit 0 ;;
769
769
+
+ exit ;;
770
770
+
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
771
771
+
if getsysinfo -f scalar_acc
772
772
+
then echo c32-convex-bsd
773
773
+
else echo c2-convex-bsd
774
774
+
fi
775
775
+
- exit 0 ;;
776
776
+
+ exit ;;
777
777
+
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
778
778
+
echo c34-convex-bsd
779
779
+
- exit 0 ;;
780
780
+
+ exit ;;
781
781
+
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
782
782
+
echo c38-convex-bsd
783
783
+
- exit 0 ;;
784
784
+
+ exit ;;
785
785
+
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
786
786
+
echo c4-convex-bsd
787
787
+
- exit 0 ;;
788
788
+
+ exit ;;
789
789
+
CRAY*Y-MP:*:*:*)
790
790
+
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
791
791
+
- exit 0 ;;
792
792
+
+ exit ;;
793
793
+
CRAY*[A-Z]90:*:*:*)
794
794
+
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
795
795
+
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
796
796
+
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
797
797
+
-e 's/\.[^.]*$/.X/'
798
798
+
- exit 0 ;;
799
799
+
+ exit ;;
800
800
+
CRAY*TS:*:*:*)
801
801
+
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
802
802
+
- exit 0 ;;
803
803
+
+ exit ;;
804
804
+
CRAY*T3E:*:*:*)
805
805
+
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
806
806
+
- exit 0 ;;
807
807
+
+ exit ;;
808
808
+
CRAY*SV1:*:*:*)
809
809
+
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
810
810
+
- exit 0 ;;
811
811
+
+ exit ;;
812
812
+
*:UNICOS/mp:*:*)
813
813
+
- echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
814
814
+
- exit 0 ;;
815
815
+
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
816
816
+
+ exit ;;
817
817
+
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
818
818
+
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
819
819
+
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
820
820
+
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
821
821
+
- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
822
822
+
- exit 0 ;;
823
823
+
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
824
824
+
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
825
825
+
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
826
826
+
+ exit ;;
827
827
+
5000:UNIX_System_V:4.*:*)
828
828
+
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
829
829
+
- FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
830
830
+
- echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
831
831
+
- exit 0 ;;
832
832
+
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
833
833
+
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
834
834
+
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
835
835
+
+ exit ;;
836
836
+
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
837
837
+
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
838
838
+
- exit 0 ;;
839
839
+
+ exit ;;
840
840
+
sparc*:BSD/OS:*:*)
841
841
+
echo sparc-unknown-bsdi${UNAME_RELEASE}
842
842
+
- exit 0 ;;
843
843
+
+ exit ;;
844
844
+
*:BSD/OS:*:*)
845
845
+
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
846
846
+
- exit 0 ;;
847
847
+
+ exit ;;
848
848
+
*:FreeBSD:*:*)
849
849
+
- # Determine whether the default compiler uses glibc.
850
850
+
- eval $set_cc_for_build
851
851
+
- sed 's/^ //' << EOF >$dummy.c
852
852
+
- #include <features.h>
853
853
+
- #if __GLIBC__ >= 2
854
854
+
- LIBC=gnu
855
855
+
- #else
856
856
+
- LIBC=
857
857
+
- #endif
858
858
+
-EOF
859
859
+
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
860
860
+
- # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
861
861
+
- # FreeBSD's kernel, but not the complete OS.
862
862
+
- case ${LIBC} in gnu) kernel_only='k' ;; esac
863
863
+
- echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
864
864
+
- exit 0 ;;
865
865
+
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
866
866
+
+ case ${UNAME_PROCESSOR} in
867
867
+
+ amd64)
868
868
+
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
869
869
+
+ *)
870
870
+
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
871
871
+
+ esac
872
872
+
+ exit ;;
873
873
+
i*:CYGWIN*:*)
874
874
+
echo ${UNAME_MACHINE}-pc-cygwin
875
875
+
- exit 0 ;;
876
876
+
- i*:MINGW*:*)
877
877
+
+ exit ;;
878
878
+
+ *:MINGW64*:*)
879
879
+
+ echo ${UNAME_MACHINE}-pc-mingw64
880
880
+
+ exit ;;
881
881
+
+ *:MINGW*:*)
882
882
+
echo ${UNAME_MACHINE}-pc-mingw32
883
883
+
- exit 0 ;;
884
884
+
+ exit ;;
885
885
+
+ i*:MSYS*:*)
886
886
+
+ echo ${UNAME_MACHINE}-pc-msys
887
887
+
+ exit ;;
888
888
+
+ i*:windows32*:*)
889
889
+
+ # uname -m includes "-pc" on this system.
890
890
+
+ echo ${UNAME_MACHINE}-mingw32
891
891
+
+ exit ;;
892
892
+
i*:PW*:*)
893
893
+
echo ${UNAME_MACHINE}-pc-pw32
894
894
+
- exit 0 ;;
895
895
+
- x86:Interix*:[34]*)
896
896
+
- echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
897
897
+
- exit 0 ;;
898
898
+
+ exit ;;
899
899
+
+ *:Interix*:*)
900
900
+
+ case ${UNAME_MACHINE} in
901
901
+
+ x86)
902
902
+
+ echo i586-pc-interix${UNAME_RELEASE}
903
903
+
+ exit ;;
904
904
+
+ authenticamd | genuineintel | EM64T)
905
905
+
+ echo x86_64-unknown-interix${UNAME_RELEASE}
906
906
+
+ exit ;;
907
907
+
+ IA64)
908
908
+
+ echo ia64-unknown-interix${UNAME_RELEASE}
909
909
+
+ exit ;;
910
910
+
+ esac ;;
911
911
+
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
912
912
+
echo i${UNAME_MACHINE}-pc-mks
913
913
+
- exit 0 ;;
914
914
+
+ exit ;;
915
915
+
+ 8664:Windows_NT:*)
916
916
+
+ echo x86_64-pc-mks
917
917
+
+ exit ;;
918
918
+
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
919
919
+
# How do we know it's Interix rather than the generic POSIX subsystem?
920
920
+
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
921
921
+
# UNAME_MACHINE based on the output of uname instead of i386?
922
922
+
echo i586-pc-interix
923
923
+
- exit 0 ;;
924
924
+
+ exit ;;
925
925
+
i*:UWIN*:*)
926
926
+
echo ${UNAME_MACHINE}-pc-uwin
927
927
+
- exit 0 ;;
928
928
+
+ exit ;;
929
929
+
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
930
930
+
+ echo x86_64-unknown-cygwin
931
931
+
+ exit ;;
932
932
+
p*:CYGWIN*:*)
933
933
+
echo powerpcle-unknown-cygwin
934
934
+
- exit 0 ;;
935
935
+
+ exit ;;
936
936
+
prep*:SunOS:5.*:*)
937
937
+
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
938
938
+
- exit 0 ;;
939
939
+
+ exit ;;
940
940
+
*:GNU:*:*)
941
941
+
# the GNU system
942
942
+
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
943
943
+
- exit 0 ;;
944
944
+
+ exit ;;
945
945
+
*:GNU/*:*:*)
946
946
+
# other systems with GNU libc and userland
947
947
+
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
948
948
+
- exit 0 ;;
949
949
+
+ exit ;;
950
950
+
i*86:Minix:*:*)
951
951
+
echo ${UNAME_MACHINE}-pc-minix
952
952
+
- exit 0 ;;
953
953
+
+ exit ;;
954
954
+
+ aarch64:Linux:*:*)
955
955
+
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
956
956
+
+ exit ;;
957
957
+
+ aarch64_be:Linux:*:*)
958
958
+
+ UNAME_MACHINE=aarch64_be
959
959
+
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
960
960
+
+ exit ;;
961
961
+
+ alpha:Linux:*:*)
962
962
+
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
963
963
+
+ EV5) UNAME_MACHINE=alphaev5 ;;
964
964
+
+ EV56) UNAME_MACHINE=alphaev56 ;;
965
965
+
+ PCA56) UNAME_MACHINE=alphapca56 ;;
966
966
+
+ PCA57) UNAME_MACHINE=alphapca56 ;;
967
967
+
+ EV6) UNAME_MACHINE=alphaev6 ;;
968
968
+
+ EV67) UNAME_MACHINE=alphaev67 ;;
969
969
+
+ EV68*) UNAME_MACHINE=alphaev68 ;;
970
970
+
+ esac
971
971
+
+ objdump --private-headers /bin/sh | grep -q ld.so.1
972
972
+
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
973
973
+
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
974
974
+
+ exit ;;
975
975
+
arm*:Linux:*:*)
976
976
+
+ eval $set_cc_for_build
977
977
+
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
978
978
+
+ | grep -q __ARM_EABI__
979
979
+
+ then
980
980
+
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
981
981
+
+ else
982
982
+
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
983
983
+
+ | grep -q __ARM_PCS_VFP
984
984
+
+ then
985
985
+
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
986
986
+
+ else
987
987
+
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
988
988
+
+ fi
989
989
+
+ fi
990
990
+
+ exit ;;
991
991
+
+ avr32*:Linux:*:*)
992
992
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
993
993
+
- exit 0 ;;
994
994
+
+ exit ;;
995
995
+
cris:Linux:*:*)
996
996
+
- echo cris-axis-linux-gnu
997
997
+
- exit 0 ;;
998
998
+
- ia64:Linux:*:*)
999
999
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
1000
1000
+
- exit 0 ;;
1001
1001
+
- m32r*:Linux:*:*)
1002
1002
+
+ echo ${UNAME_MACHINE}-axis-linux-gnu
1003
1003
+
+ exit ;;
1004
1004
+
+ crisv32:Linux:*:*)
1005
1005
+
+ echo ${UNAME_MACHINE}-axis-linux-gnu
1006
1006
+
+ exit ;;
1007
1007
+
+ frv:Linux:*:*)
1008
1008
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
1009
1009
+
- exit 0 ;;
1010
1010
+
- m68*:Linux:*:*)
1011
1011
+
+ exit ;;
1012
1012
+
+ hexagon:Linux:*:*)
1013
1013
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
1014
1014
+
- exit 0 ;;
1015
1015
+
- mips:Linux:*:*)
1016
1016
+
+ exit ;;
1017
1017
+
+ i*86:Linux:*:*)
1018
1018
+
+ LIBC=gnu
1019
1019
+
eval $set_cc_for_build
1020
1020
+
sed 's/^ //' << EOF >$dummy.c
1021
1021
+
- #undef CPU
1022
1022
+
- #undef mips
1023
1023
+
- #undef mipsel
1024
1024
+
- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
1025
1025
+
- CPU=mipsel
1026
1026
+
- #else
1027
1027
+
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
1028
1028
+
- CPU=mips
1029
1029
+
- #else
1030
1030
+
- CPU=
1031
1031
+
- #endif
1032
1032
+
+ #ifdef __dietlibc__
1033
1033
+
+ LIBC=dietlibc
1034
1034
+
#endif
1035
1035
+
EOF
1036
1036
+
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
1037
1037
+
- test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
1038
1038
+
- ;;
1039
1039
+
- mips64:Linux:*:*)
1040
1040
+
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
1041
1041
+
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1042
1042
+
+ exit ;;
1043
1043
+
+ ia64:Linux:*:*)
1044
1044
+
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1045
1045
+
+ exit ;;
1046
1046
+
+ m32r*:Linux:*:*)
1047
1047
+
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1048
1048
+
+ exit ;;
1049
1049
+
+ m68*:Linux:*:*)
1050
1050
+
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1051
1051
+
+ exit ;;
1052
1052
+
+ mips:Linux:*:* | mips64:Linux:*:*)
1053
1053
+
eval $set_cc_for_build
1054
1054
+
sed 's/^ //' << EOF >$dummy.c
1055
1055
+
#undef CPU
1056
1056
+
- #undef mips64
1057
1057
+
- #undef mips64el
1058
1058
+
+ #undef ${UNAME_MACHINE}
1059
1059
+
+ #undef ${UNAME_MACHINE}el
1060
1060
+
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
1061
1061
+
- CPU=mips64el
1062
1062
+
+ CPU=${UNAME_MACHINE}el
1063
1063
+
#else
1064
1064
+
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
1065
1065
+
- CPU=mips64
1066
1066
+
+ CPU=${UNAME_MACHINE}
1067
1067
+
#else
1068
1068
+
CPU=
1069
1069
+
#endif
1070
1070
+
#endif
1071
1071
+
EOF
1072
1072
+
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
1073
1073
+
- test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
1074
1074
+
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
1075
1075
+
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
1076
1076
+
;;
1077
1077
+
- ppc:Linux:*:*)
1078
1078
+
- echo powerpc-unknown-linux-gnu
1079
1079
+
- exit 0 ;;
1080
1080
+
- ppc64:Linux:*:*)
1081
1081
+
- echo powerpc64-unknown-linux-gnu
1082
1082
+
- exit 0 ;;
1083
1083
+
- alpha:Linux:*:*)
1084
1084
+
- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
1085
1085
+
- EV5) UNAME_MACHINE=alphaev5 ;;
1086
1086
+
- EV56) UNAME_MACHINE=alphaev56 ;;
1087
1087
+
- PCA56) UNAME_MACHINE=alphapca56 ;;
1088
1088
+
- PCA57) UNAME_MACHINE=alphapca56 ;;
1089
1089
+
- EV6) UNAME_MACHINE=alphaev6 ;;
1090
1090
+
- EV67) UNAME_MACHINE=alphaev67 ;;
1091
1091
+
- EV68*) UNAME_MACHINE=alphaev68 ;;
1092
1092
+
- esac
1093
1093
+
- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
1094
1094
+
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
1095
1095
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
1096
1096
+
- exit 0 ;;
1097
1097
+
+ or32:Linux:*:*)
1098
1098
+
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1099
1099
+
+ exit ;;
1100
1100
+
+ padre:Linux:*:*)
1101
1101
+
+ echo sparc-unknown-linux-gnu
1102
1102
+
+ exit ;;
1103
1103
+
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
1104
1104
+
+ echo hppa64-unknown-linux-gnu
1105
1105
+
+ exit ;;
1106
1106
+
parisc:Linux:*:* | hppa:Linux:*:*)
1107
1107
+
# Look for CPU level
1108
1108
+
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1109
1109
+
@@ -924,115 +973,71 @@
1110
1110
+
PA8*) echo hppa2.0-unknown-linux-gnu ;;
1111
1111
+
*) echo hppa-unknown-linux-gnu ;;
1112
1112
+
esac
1113
1113
+
- exit 0 ;;
1114
1114
+
- parisc64:Linux:*:* | hppa64:Linux:*:*)
1115
1115
+
- echo hppa64-unknown-linux-gnu
1116
1116
+
- exit 0 ;;
1117
1117
+
+ exit ;;
1118
1118
+
+ ppc64:Linux:*:*)
1119
1119
+
+ echo powerpc64-unknown-linux-gnu
1120
1120
+
+ exit ;;
1121
1121
+
+ ppc:Linux:*:*)
1122
1122
+
+ echo powerpc-unknown-linux-gnu
1123
1123
+
+ exit ;;
1124
1124
+
s390:Linux:*:* | s390x:Linux:*:*)
1125
1125
+
echo ${UNAME_MACHINE}-ibm-linux
1126
1126
+
- exit 0 ;;
1127
1127
+
+ exit ;;
1128
1128
+
sh64*:Linux:*:*)
1129
1129
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
1130
1130
+
- exit 0 ;;
1131
1131
+
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1132
1132
+
+ exit ;;
1133
1133
+
sh*:Linux:*:*)
1134
1134
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
1135
1135
+
- exit 0 ;;
1136
1136
+
+ exit ;;
1137
1137
+
sparc:Linux:*:* | sparc64:Linux:*:*)
1138
1138
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
1139
1139
+
- exit 0 ;;
1140
1140
+
+ exit ;;
1141
1141
+
+ tile*:Linux:*:*)
1142
1142
+
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1143
1143
+
+ exit ;;
1144
1144
+
+ vax:Linux:*:*)
1145
1145
+
+ echo ${UNAME_MACHINE}-dec-linux-gnu
1146
1146
+
+ exit ;;
1147
1147
+
x86_64:Linux:*:*)
1148
1148
+
- echo x86_64-unknown-linux-gnu
1149
1149
+
- exit 0 ;;
1150
1150
+
- i*86:Linux:*:*)
1151
1151
+
- # The BFD linker knows what the default object file format is, so
1152
1152
+
- # first see if it will tell us. cd to the root directory to prevent
1153
1153
+
- # problems with other programs or directories called `ld' in the path.
1154
1154
+
- # Set LC_ALL=C to ensure ld outputs messages in English.
1155
1155
+
- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
1156
1156
+
- | sed -ne '/supported targets:/!d
1157
1157
+
- s/[ ][ ]*/ /g
1158
1158
+
- s/.*supported targets: *//
1159
1159
+
- s/ .*//
1160
1160
+
- p'`
1161
1161
+
- case "$ld_supported_targets" in
1162
1162
+
- elf32-i386)
1163
1163
+
- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
1164
1164
+
- ;;
1165
1165
+
- a.out-i386-linux)
1166
1166
+
- echo "${UNAME_MACHINE}-pc-linux-gnuaout"
1167
1167
+
- exit 0 ;;
1168
1168
+
- coff-i386)
1169
1169
+
- echo "${UNAME_MACHINE}-pc-linux-gnucoff"
1170
1170
+
- exit 0 ;;
1171
1171
+
- "")
1172
1172
+
- # Either a pre-BFD a.out linker (linux-gnuoldld) or
1173
1173
+
- # one that does not give us useful --help.
1174
1174
+
- echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
1175
1175
+
- exit 0 ;;
1176
1176
+
- esac
1177
1177
+
- # Determine whether the default compiler is a.out or elf
1178
1178
+
- eval $set_cc_for_build
1179
1179
+
- sed 's/^ //' << EOF >$dummy.c
1180
1180
+
- #include <features.h>
1181
1181
+
- #ifdef __ELF__
1182
1182
+
- # ifdef __GLIBC__
1183
1183
+
- # if __GLIBC__ >= 2
1184
1184
+
- LIBC=gnu
1185
1185
+
- # else
1186
1186
+
- LIBC=gnulibc1
1187
1187
+
- # endif
1188
1188
+
- # else
1189
1189
+
- LIBC=gnulibc1
1190
1190
+
- # endif
1191
1191
+
- #else
1192
1192
+
- #ifdef __INTEL_COMPILER
1193
1193
+
- LIBC=gnu
1194
1194
+
- #else
1195
1195
+
- LIBC=gnuaout
1196
1196
+
- #endif
1197
1197
+
- #endif
1198
1198
+
- #ifdef __dietlibc__
1199
1199
+
- LIBC=dietlibc
1200
1200
+
- #endif
1201
1201
+
-EOF
1202
1202
+
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
1203
1203
+
- test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
1204
1204
+
- test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
1205
1205
+
- ;;
1206
1206
+
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1207
1207
+
+ exit ;;
1208
1208
+
+ xtensa*:Linux:*:*)
1209
1209
+
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
1210
1210
+
+ exit ;;
1211
1211
+
i*86:DYNIX/ptx:4*:*)
1212
1212
+
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1213
1213
+
# earlier versions are messed up and put the nodename in both
1214
1214
+
# sysname and nodename.
1215
1215
+
echo i386-sequent-sysv4
1216
1216
+
- exit 0 ;;
1217
1217
+
+ exit ;;
1218
1218
+
i*86:UNIX_SV:4.2MP:2.*)
1219
1219
+
- # Unixware is an offshoot of SVR4, but it has its own version
1220
1220
+
- # number series starting with 2...
1221
1221
+
- # I am not positive that other SVR4 systems won't match this,
1222
1222
+
+ # Unixware is an offshoot of SVR4, but it has its own version
1223
1223
+
+ # number series starting with 2...
1224
1224
+
+ # I am not positive that other SVR4 systems won't match this,
1225
1225
+
# I just have to hope. -- rms.
1226
1226
+
- # Use sysv4.2uw... so that sysv4* matches it.
1227
1227
+
+ # Use sysv4.2uw... so that sysv4* matches it.
1228
1228
+
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1229
1229
+
- exit 0 ;;
1230
1230
+
+ exit ;;
1231
1231
+
i*86:OS/2:*:*)
1232
1232
+
# If we were able to find `uname', then EMX Unix compatibility
1233
1233
+
# is probably installed.
1234
1234
+
echo ${UNAME_MACHINE}-pc-os2-emx
1235
1235
+
- exit 0 ;;
1236
1236
+
+ exit ;;
1237
1237
+
i*86:XTS-300:*:STOP)
1238
1238
+
echo ${UNAME_MACHINE}-unknown-stop
1239
1239
+
- exit 0 ;;
1240
1240
+
+ exit ;;
1241
1241
+
i*86:atheos:*:*)
1242
1242
+
echo ${UNAME_MACHINE}-unknown-atheos
1243
1243
+
- exit 0 ;;
1244
1244
+
- i*86:syllable:*:*)
1245
1245
+
+ exit ;;
1246
1246
+
+ i*86:syllable:*:*)
1247
1247
+
echo ${UNAME_MACHINE}-pc-syllable
1248
1248
+
- exit 0 ;;
1249
1249
+
- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1250
1250
+
+ exit ;;
1251
1251
+
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1252
1252
+
echo i386-unknown-lynxos${UNAME_RELEASE}
1253
1253
+
- exit 0 ;;
1254
1254
+
+ exit ;;
1255
1255
+
i*86:*DOS:*:*)
1256
1256
+
echo ${UNAME_MACHINE}-pc-msdosdjgpp
1257
1257
+
- exit 0 ;;
1258
1258
+
+ exit ;;
1259
1259
+
i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1260
1260
+
UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1261
1261
+
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1262
1262
+
@@ -1040,15 +1045,16 @@
1263
1263
+
else
1264
1264
+
echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1265
1265
+
fi
1266
1266
+
- exit 0 ;;
1267
1267
+
- i*86:*:5:[78]*)
1268
1268
+
+ exit ;;
1269
1269
+
+ i*86:*:5:[678]*)
1270
1270
+
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
1271
1271
+
case `/bin/uname -X | grep "^Machine"` in
1272
1272
+
*486*) UNAME_MACHINE=i486 ;;
1273
1273
+
*Pentium) UNAME_MACHINE=i586 ;;
1274
1274
+
*Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1275
1275
+
esac
1276
1276
+
echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1277
1277
+
- exit 0 ;;
1278
1278
+
+ exit ;;
1279
1279
+
i*86:*:3.2:*)
1280
1280
+
if test -f /usr/options/cb.name; then
1281
1281
+
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1282
1282
+
@@ -1066,73 +1072,86 @@
1283
1283
+
else
1284
1284
+
echo ${UNAME_MACHINE}-pc-sysv32
1285
1285
+
fi
1286
1286
+
- exit 0 ;;
1287
1287
+
+ exit ;;
1288
1288
+
pc:*:*:*)
1289
1289
+
# Left here for compatibility:
1290
1290
+
- # uname -m prints for DJGPP always 'pc', but it prints nothing about
1291
1291
+
- # the processor, so we play safe by assuming i386.
1292
1292
+
- echo i386-pc-msdosdjgpp
1293
1293
+
- exit 0 ;;
1294
1294
+
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
1295
1295
+
+ # the processor, so we play safe by assuming i586.
1296
1296
+
+ # Note: whatever this is, it MUST be the same as what config.sub
1297
1297
+
+ # prints for the "djgpp" host, or else GDB configury will decide that
1298
1298
+
+ # this is a cross-build.
1299
1299
+
+ echo i586-pc-msdosdjgpp
1300
1300
+
+ exit ;;
1301
1301
+
Intel:Mach:3*:*)
1302
1302
+
echo i386-pc-mach3
1303
1303
+
- exit 0 ;;
1304
1304
+
+ exit ;;
1305
1305
+
paragon:*:*:*)
1306
1306
+
echo i860-intel-osf1
1307
1307
+
- exit 0 ;;
1308
1308
+
+ exit ;;
1309
1309
+
i860:*:4.*:*) # i860-SVR4
1310
1310
+
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1311
1311
+
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1312
1312
+
else # Add other i860-SVR4 vendors below as they are discovered.
1313
1313
+
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1314
1314
+
fi
1315
1315
+
- exit 0 ;;
1316
1316
+
+ exit ;;
1317
1317
+
mini*:CTIX:SYS*5:*)
1318
1318
+
# "miniframe"
1319
1319
+
echo m68010-convergent-sysv
1320
1320
+
- exit 0 ;;
1321
1321
+
+ exit ;;
1322
1322
+
mc68k:UNIX:SYSTEM5:3.51m)
1323
1323
+
echo m68k-convergent-sysv
1324
1324
+
- exit 0 ;;
1325
1325
+
+ exit ;;
1326
1326
+
M680?0:D-NIX:5.3:*)
1327
1327
+
echo m68k-diab-dnix
1328
1328
+
- exit 0 ;;
1329
1329
+
- M68*:*:R3V[567]*:*)
1330
1330
+
- test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1331
1331
+
- 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
1332
1332
+
+ exit ;;
1333
1333
+
+ M68*:*:R3V[5678]*:*)
1334
1334
+
+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1335
1335
+
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1336
1336
+
OS_REL=''
1337
1337
+
test -r /etc/.relid \
1338
1338
+
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1339
1339
+
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1340
1340
+
- && echo i486-ncr-sysv4.3${OS_REL} && exit 0
1341
1341
+
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1342
1342
+
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1343
1343
+
- && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
1344
1344
+
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1345
1345
+
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1346
1346
+
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1347
1347
+
- && echo i486-ncr-sysv4 && exit 0 ;;
1348
1348
+
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1349
1349
+
+ && { echo i486-ncr-sysv4; exit; } ;;
1350
1350
+
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1351
1351
+
+ OS_REL='.3'
1352
1352
+
+ test -r /etc/.relid \
1353
1353
+
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1354
1354
+
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1355
1355
+
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1356
1356
+
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1357
1357
+
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1358
1358
+
+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1359
1359
+
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1360
1360
+
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1361
1361
+
echo m68k-unknown-lynxos${UNAME_RELEASE}
1362
1362
+
- exit 0 ;;
1363
1363
+
+ exit ;;
1364
1364
+
mc68030:UNIX_System_V:4.*:*)
1365
1365
+
echo m68k-atari-sysv4
1366
1366
+
- exit 0 ;;
1367
1367
+
+ exit ;;
1368
1368
+
TSUNAMI:LynxOS:2.*:*)
1369
1369
+
echo sparc-unknown-lynxos${UNAME_RELEASE}
1370
1370
+
- exit 0 ;;
1371
1371
+
+ exit ;;
1372
1372
+
rs6000:LynxOS:2.*:*)
1373
1373
+
echo rs6000-unknown-lynxos${UNAME_RELEASE}
1374
1374
+
- exit 0 ;;
1375
1375
+
- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1376
1376
+
+ exit ;;
1377
1377
+
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1378
1378
+
echo powerpc-unknown-lynxos${UNAME_RELEASE}
1379
1379
+
- exit 0 ;;
1380
1380
+
+ exit ;;
1381
1381
+
SM[BE]S:UNIX_SV:*:*)
1382
1382
+
echo mips-dde-sysv${UNAME_RELEASE}
1383
1383
+
- exit 0 ;;
1384
1384
+
+ exit ;;
1385
1385
+
RM*:ReliantUNIX-*:*:*)
1386
1386
+
echo mips-sni-sysv4
1387
1387
+
- exit 0 ;;
1388
1388
+
+ exit ;;
1389
1389
+
RM*:SINIX-*:*:*)
1390
1390
+
echo mips-sni-sysv4
1391
1391
+
- exit 0 ;;
1392
1392
+
+ exit ;;
1393
1393
+
*:SINIX-*:*:*)
1394
1394
+
if uname -p 2>/dev/null >/dev/null ; then
1395
1395
+
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1396
1396
+
@@ -1140,68 +1159,97 @@
1397
1397
+
else
1398
1398
+
echo ns32k-sni-sysv
1399
1399
+
fi
1400
1400
+
- exit 0 ;;
1401
1401
+
- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1402
1402
+
- # says <Richard.M.Bartel@ccMail.Census.GOV>
1403
1403
+
- echo i586-unisys-sysv4
1404
1404
+
- exit 0 ;;
1405
1405
+
+ exit ;;
1406
1406
+
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1407
1407
+
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
1408
1408
+
+ echo i586-unisys-sysv4
1409
1409
+
+ exit ;;
1410
1410
+
*:UNIX_System_V:4*:FTX*)
1411
1411
+
# From Gerald Hewes <hewes@openmarket.com>.
1412
1412
+
# How about differentiating between stratus architectures? -djm
1413
1413
+
echo hppa1.1-stratus-sysv4
1414
1414
+
- exit 0 ;;
1415
1415
+
+ exit ;;
1416
1416
+
*:*:*:FTX*)
1417
1417
+
# From seanf@swdc.stratus.com.
1418
1418
+
echo i860-stratus-sysv4
1419
1419
+
- exit 0 ;;
1420
1420
+
+ exit ;;
1421
1421
+
+ i*86:VOS:*:*)
1422
1422
+
+ # From Paul.Green@stratus.com.
1423
1423
+
+ echo ${UNAME_MACHINE}-stratus-vos
1424
1424
+
+ exit ;;
1425
1425
+
*:VOS:*:*)
1426
1426
+
# From Paul.Green@stratus.com.
1427
1427
+
echo hppa1.1-stratus-vos
1428
1428
+
- exit 0 ;;
1429
1429
+
+ exit ;;
1430
1430
+
mc68*:A/UX:*:*)
1431
1431
+
echo m68k-apple-aux${UNAME_RELEASE}
1432
1432
+
- exit 0 ;;
1433
1433
+
+ exit ;;
1434
1434
+
news*:NEWS-OS:6*:*)
1435
1435
+
echo mips-sony-newsos6
1436
1436
+
- exit 0 ;;
1437
1437
+
+ exit ;;
1438
1438
+
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1439
1439
+
if [ -d /usr/nec ]; then
1440
1440
+
- echo mips-nec-sysv${UNAME_RELEASE}
1441
1441
+
+ echo mips-nec-sysv${UNAME_RELEASE}
1442
1442
+
else
1443
1443
+
- echo mips-unknown-sysv${UNAME_RELEASE}
1444
1444
+
+ echo mips-unknown-sysv${UNAME_RELEASE}
1445
1445
+
fi
1446
1446
+
- exit 0 ;;
1447
1447
+
+ exit ;;
1448
1448
+
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1449
1449
+
echo powerpc-be-beos
1450
1450
+
- exit 0 ;;
1451
1451
+
+ exit ;;
1452
1452
+
BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1453
1453
+
echo powerpc-apple-beos
1454
1454
+
- exit 0 ;;
1455
1455
+
+ exit ;;
1456
1456
+
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1457
1457
+
echo i586-pc-beos
1458
1458
+
- exit 0 ;;
1459
1459
+
+ exit ;;
1460
1460
+
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1461
1461
+
+ echo i586-pc-haiku
1462
1462
+
+ exit ;;
1463
1463
+
+ x86_64:Haiku:*:*)
1464
1464
+
+ echo x86_64-unknown-haiku
1465
1465
+
+ exit ;;
1466
1466
+
SX-4:SUPER-UX:*:*)
1467
1467
+
echo sx4-nec-superux${UNAME_RELEASE}
1468
1468
+
- exit 0 ;;
1469
1469
+
+ exit ;;
1470
1470
+
SX-5:SUPER-UX:*:*)
1471
1471
+
echo sx5-nec-superux${UNAME_RELEASE}
1472
1472
+
- exit 0 ;;
1473
1473
+
+ exit ;;
1474
1474
+
SX-6:SUPER-UX:*:*)
1475
1475
+
echo sx6-nec-superux${UNAME_RELEASE}
1476
1476
+
- exit 0 ;;
1477
1477
+
+ exit ;;
1478
1478
+
+ SX-7:SUPER-UX:*:*)
1479
1479
+
+ echo sx7-nec-superux${UNAME_RELEASE}
1480
1480
+
+ exit ;;
1481
1481
+
+ SX-8:SUPER-UX:*:*)
1482
1482
+
+ echo sx8-nec-superux${UNAME_RELEASE}
1483
1483
+
+ exit ;;
1484
1484
+
+ SX-8R:SUPER-UX:*:*)
1485
1485
+
+ echo sx8r-nec-superux${UNAME_RELEASE}
1486
1486
+
+ exit ;;
1487
1487
+
Power*:Rhapsody:*:*)
1488
1488
+
echo powerpc-apple-rhapsody${UNAME_RELEASE}
1489
1489
+
- exit 0 ;;
1490
1490
+
+ exit ;;
1491
1491
+
*:Rhapsody:*:*)
1492
1492
+
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1493
1493
+
- exit 0 ;;
1494
1494
+
+ exit ;;
1495
1495
+
*:Darwin:*:*)
1496
1496
+
- case `uname -p` in
1497
1497
+
- *86) UNAME_PROCESSOR=i686 ;;
1498
1498
+
- powerpc) UNAME_PROCESSOR=powerpc ;;
1499
1499
+
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1500
1500
+
+ case $UNAME_PROCESSOR in
1501
1501
+
+ i386)
1502
1502
+
+ eval $set_cc_for_build
1503
1503
+
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1504
1504
+
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1505
1505
+
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1506
1506
+
+ grep IS_64BIT_ARCH >/dev/null
1507
1507
+
+ then
1508
1508
+
+ UNAME_PROCESSOR="x86_64"
1509
1509
+
+ fi
1510
1510
+
+ fi ;;
1511
1511
+
+ unknown) UNAME_PROCESSOR=powerpc ;;
1512
1512
+
esac
1513
1513
+
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1514
1514
+
- exit 0 ;;
1515
1515
+
+ exit ;;
1516
1516
+
*:procnto*:*:* | *:QNX:[0123456789]*:*)
1517
1517
+
UNAME_PROCESSOR=`uname -p`
1518
1518
+
if test "$UNAME_PROCESSOR" = "x86"; then
1519
1519
+
@@ -1209,22 +1257,28 @@
1520
1520
+
UNAME_MACHINE=pc
1521
1521
+
fi
1522
1522
+
echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1523
1523
+
- exit 0 ;;
1524
1524
+
+ exit ;;
1525
1525
+
*:QNX:*:4*)
1526
1526
+
echo i386-pc-qnx
1527
1527
+
- exit 0 ;;
1528
1528
+
+ exit ;;
1529
1529
+
+ NEO-?:NONSTOP_KERNEL:*:*)
1530
1530
+
+ echo neo-tandem-nsk${UNAME_RELEASE}
1531
1531
+
+ exit ;;
1532
1532
+
+ NSE-*:NONSTOP_KERNEL:*:*)
1533
1533
+
+ echo nse-tandem-nsk${UNAME_RELEASE}
1534
1534
+
+ exit ;;
1535
1535
+
NSR-?:NONSTOP_KERNEL:*:*)
1536
1536
+
echo nsr-tandem-nsk${UNAME_RELEASE}
1537
1537
+
- exit 0 ;;
1538
1538
+
+ exit ;;
1539
1539
+
*:NonStop-UX:*:*)
1540
1540
+
echo mips-compaq-nonstopux
1541
1541
+
- exit 0 ;;
1542
1542
+
+ exit ;;
1543
1543
+
BS2000:POSIX*:*:*)
1544
1544
+
echo bs2000-siemens-sysv
1545
1545
+
- exit 0 ;;
1546
1546
+
+ exit ;;
1547
1547
+
DS/*:UNIX_System_V:*:*)
1548
1548
+
echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1549
1549
+
- exit 0 ;;
1550
1550
+
+ exit ;;
1551
1551
+
*:Plan9:*:*)
1552
1552
+
# "uname -m" is not consistent, so use $cputype instead. 386
1553
1553
+
# is converted to i386 for consistency with other x86
1554
1554
+
@@ -1235,36 +1289,55 @@
1555
1555
+
UNAME_MACHINE="$cputype"
1556
1556
+
fi
1557
1557
+
echo ${UNAME_MACHINE}-unknown-plan9
1558
1558
+
- exit 0 ;;
1559
1559
+
+ exit ;;
1560
1560
+
*:TOPS-10:*:*)
1561
1561
+
echo pdp10-unknown-tops10
1562
1562
+
- exit 0 ;;
1563
1563
+
+ exit ;;
1564
1564
+
*:TENEX:*:*)
1565
1565
+
echo pdp10-unknown-tenex
1566
1566
+
- exit 0 ;;
1567
1567
+
+ exit ;;
1568
1568
+
KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1569
1569
+
echo pdp10-dec-tops20
1570
1570
+
- exit 0 ;;
1571
1571
+
+ exit ;;
1572
1572
+
XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1573
1573
+
echo pdp10-xkl-tops20
1574
1574
+
- exit 0 ;;
1575
1575
+
+ exit ;;
1576
1576
+
*:TOPS-20:*:*)
1577
1577
+
echo pdp10-unknown-tops20
1578
1578
+
- exit 0 ;;
1579
1579
+
+ exit ;;
1580
1580
+
*:ITS:*:*)
1581
1581
+
echo pdp10-unknown-its
1582
1582
+
- exit 0 ;;
1583
1583
+
+ exit ;;
1584
1584
+
SEI:*:*:SEIUX)
1585
1585
+
- echo mips-sei-seiux${UNAME_RELEASE}
1586
1586
+
- exit 0 ;;
1587
1587
+
+ echo mips-sei-seiux${UNAME_RELEASE}
1588
1588
+
+ exit ;;
1589
1589
+
*:DragonFly:*:*)
1590
1590
+
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1591
1591
+
- exit 0 ;;
1592
1592
+
+ exit ;;
1593
1593
+
+ *:*VMS:*:*)
1594
1594
+
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
1595
1595
+
+ case "${UNAME_MACHINE}" in
1596
1596
+
+ A*) echo alpha-dec-vms ; exit ;;
1597
1597
+
+ I*) echo ia64-dec-vms ; exit ;;
1598
1598
+
+ V*) echo vax-dec-vms ; exit ;;
1599
1599
+
+ esac ;;
1600
1600
+
+ *:XENIX:*:SysV)
1601
1601
+
+ echo i386-pc-xenix
1602
1602
+
+ exit ;;
1603
1603
+
+ i*86:skyos:*:*)
1604
1604
+
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1605
1605
+
+ exit ;;
1606
1606
+
+ i*86:rdos:*:*)
1607
1607
+
+ echo ${UNAME_MACHINE}-pc-rdos
1608
1608
+
+ exit ;;
1609
1609
+
+ i*86:AROS:*:*)
1610
1610
+
+ echo ${UNAME_MACHINE}-pc-aros
1611
1611
+
+ exit ;;
1612
1612
+
+ x86_64:VMkernel:*:*)
1613
1613
+
+ echo ${UNAME_MACHINE}-unknown-esx
1614
1614
+
+ exit ;;
1615
1615
+
esac
1616
1616
+
1617
1617
+
-#echo '(No uname command or uname output not recognized.)' 1>&2
1618
1618
+
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1619
1619
+
-
1620
1620
+
eval $set_cc_for_build
1621
1621
+
cat >$dummy.c <<EOF
1622
1622
+
#ifdef _SEQUENT_
1623
1623
+
@@ -1282,16 +1355,16 @@
1624
1624
+
#include <sys/param.h>
1625
1625
+
printf ("m68k-sony-newsos%s\n",
1626
1626
+
#ifdef NEWSOS4
1627
1627
+
- "4"
1628
1628
+
+ "4"
1629
1629
+
#else
1630
1630
+
- ""
1631
1631
+
+ ""
1632
1632
+
#endif
1633
1633
+
- ); exit (0);
1634
1634
+
+ ); exit (0);
1635
1635
+
#endif
1636
1636
+
#endif
1637
1637
+
1638
1638
+
#if defined (__arm) && defined (__acorn) && defined (__unix)
1639
1639
+
- printf ("arm-acorn-riscix"); exit (0);
1640
1640
+
+ printf ("arm-acorn-riscix\n"); exit (0);
1641
1641
+
#endif
1642
1642
+
1643
1643
+
#if defined (hp300) && !defined (hpux)
1644
1644
+
@@ -1380,11 +1453,12 @@
1645
1645
+
}
1646
1646
+
EOF
1647
1647
+
1648
1648
+
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
1649
1649
+
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1650
1650
+
+ { echo "$SYSTEM_NAME"; exit; }
1651
1651
+
1652
1652
+
# Apollos put the system type in the environment.
1653
1653
+
1654
1654
+
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
1655
1655
+
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1656
1656
+
1657
1657
+
# Convex versions that predate uname can use getsysinfo(1)
1658
1658
+
1659
1659
+
@@ -1393,22 +1467,22 @@
1660
1660
+
case `getsysinfo -f cpu_type` in
1661
1661
+
c1*)
1662
1662
+
echo c1-convex-bsd
1663
1663
+
- exit 0 ;;
1664
1664
+
+ exit ;;
1665
1665
+
c2*)
1666
1666
+
if getsysinfo -f scalar_acc
1667
1667
+
then echo c32-convex-bsd
1668
1668
+
else echo c2-convex-bsd
1669
1669
+
fi
1670
1670
+
- exit 0 ;;
1671
1671
+
+ exit ;;
1672
1672
+
c34*)
1673
1673
+
echo c34-convex-bsd
1674
1674
+
- exit 0 ;;
1675
1675
+
+ exit ;;
1676
1676
+
c38*)
1677
1677
+
echo c38-convex-bsd
1678
1678
+
- exit 0 ;;
1679
1679
+
+ exit ;;
1680
1680
+
c4*)
1681
1681
+
echo c4-convex-bsd
1682
1682
+
- exit 0 ;;
1683
1683
+
+ exit ;;
1684
1684
+
esac
1685
1685
+
fi
1686
1686
+
1687
1687
+
@@ -1419,7 +1493,9 @@
1688
1688
+
the operating system you are using. It is advised that you
1689
1689
+
download the most up to date version of the config scripts from
1690
1690
+
1691
1691
+
- ftp://ftp.gnu.org/pub/gnu/config/
1692
1692
+
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1693
1693
+
+and
1694
1694
+
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1695
1695
+
1696
1696
+
If the version you run ($0) is already up to date, please
1697
1697
+
send the following data and any information you think might be
1698
1698
+
diff -ur w3m-0.5.3/main.c new/w3m-0.5.3/main.c
1699
1699
+
--- w3m-0.5.3/main.c 2011-01-04 04:42:19.000000000 -0500
1700
1700
+
+++ w3m-0.5.3/main.c 2013-04-28 18:42:08.408034100 -0400
1701
1701
+
@@ -789,7 +789,8 @@
1702
1702
+
}
1703
1703
+
1704
1704
+
#ifdef USE_BINMODE_STREAM
1705
1705
+
- setmode(fileno(stdout), O_BINARY);
1706
1706
+
+ /* Seems to only be needed for old versions of Cygwin */
1707
1707
+
+ /***setmode(fileno(stdout), O_BINARY);***/
1708
1708
+
#endif
1709
1709
+
if (!w3m_dump && !w3m_backend) {
1710
1710
+
fmInit();
+2
-1
pkgs/applications/networking/browsers/w3m/default.nix
···
22
22
patches = [ ./glibc214.patch ]
23
23
# Patch for the newer unstable boehm-gc 7.2alpha. Not all platforms use that
24
24
# alpha. At the time of writing this, boehm-gc-7.1 is the last stable.
25
25
-
++ stdenv.lib.optional (boehmgc.name != "boehm-gc-7.1") [ ./newgc.patch ];
25
25
+
++ stdenv.lib.optional (boehmgc.name != "boehm-gc-7.1") [ ./newgc.patch ]
26
26
+
++ stdenv.lib.optional stdenv.isCygwin ./cygwin.patch;
26
27
27
28
buildInputs = [ncurses boehmgc gettext zlib]
28
29
++ stdenv.lib.optional sslSupport openssl