Merge lp:~ubuntu-branches/ubuntu/lucid/glew/lucid-201002122355 into lp:ubuntu/lucid/glew
- Lucid (10.04)
- lucid-201002122355
- Merge into lucid
Proposed by
James Westby
Status: | Needs review |
---|---|
Proposed branch: | lp:~ubuntu-branches/ubuntu/lucid/glew/lucid-201002122355 |
Merge into: | lp:ubuntu/lucid/glew |
Diff against target: |
3560 lines (+3478/-0) (has conflicts) 8 files modified
Makefile (+180/-0) config/Makefile.gnu (+26/-0) config/Makefile.kfreebsd (+26/-0) debian/changelog (+42/-0) debian/control (+5/-0) debian/patches/.dpkg-source-applied (+4/-0) debian/patches/debian-changes-1.5.1-7 (+3191/-0) debian/patches/series (+4/-0) Text conflict in Makefile Text conflict in config/Makefile.gnu Text conflict in config/Makefile.kfreebsd Text conflict in debian/changelog Text conflict in debian/control Text conflict in debian/patches/.dpkg-source-applied Text conflict in debian/patches/series |
To merge this branch: | bzr merge lp:~ubuntu-branches/ubuntu/lucid/glew/lucid-201002122355 |
Related bugs: |
Commit message
Description of the change
To post a comment you must log in.
Unmerged revisions
- 14. By Rich Johnson
-
* Merge from Debian unstable, remaining Ubuntu changes:
- Build shared libraries with CC, not LD.
- The debian Makefile had trailing '^M' characters; once sanitized the
diff between the debian/ubuntu Makefile looks as follows:
http://pastebin. ca/1447378
* update source format to 3.0
* update standards version to 3.8.3
* fix section of glew-utils
* Fix build on kfreebsd (Closes: #540971)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'Makefile' |
2 | --- Makefile 2010-01-17 01:00:53 +0000 |
3 | +++ Makefile 2010-02-13 00:02:19 +0000 |
4 | @@ -1,3 +1,4 @@ |
5 | +<<<<<<< TREE |
6 | #!gmake |
7 | ## The OpenGL Extension Wrangler Library |
8 | ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org> |
9 | @@ -262,3 +263,182 @@ |
10 | $(MAKE) -C auto |
11 | |
12 | .PHONY: clean distclean tardist dist-win32 dist-src |
13 | +======= |
14 | +#!gmake |
15 | +## The OpenGL Extension Wrangler Library |
16 | +## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org> |
17 | +## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org> |
18 | +## Copyright (C) 2002, Lev Povalahev |
19 | +## All rights reserved. |
20 | +## |
21 | +## Redistribution and use in source and binary forms, with or without |
22 | +## modification, are permitted provided that the following conditions are met: |
23 | +## |
24 | +## * Redistributions of source code must retain the above copyright notice, |
25 | +## this list of conditions and the following disclaimer. |
26 | +## * Redistributions in binary form must reproduce the above copyright notice, |
27 | +## this list of conditions and the following disclaimer in the documentation |
28 | +## and/or other materials provided with the distribution. |
29 | +## * The name of the author may be used to endorse or promote products |
30 | +## derived from this software without specific prior written permission. |
31 | +## |
32 | +## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
33 | +## AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
34 | +## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
35 | +## ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
36 | +## LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
37 | +## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
38 | +## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
39 | +## INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
40 | +## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
41 | +## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
42 | +## THE POSSIBILITY OF SUCH DAMAGE. |
43 | + |
44 | +include config/version |
45 | + |
46 | +SHELL = /bin/sh |
47 | +SYSTEM = $(shell config/config.guess | cut -d - -f 3 | sed -e 's/[0-9\.]//g;') |
48 | +SYSTEM.SUPPORTED = $(shell test -f config/Makefile.$(SYSTEM) && echo 1) |
49 | + |
50 | +ifeq ($(SYSTEM.SUPPORTED), 1) |
51 | +include config/Makefile.$(SYSTEM) |
52 | +else |
53 | +$(error "Platform '$(SYSTEM)' not supported") |
54 | +endif |
55 | + |
56 | +GLEW_DEST ?= /usr |
57 | +BINDIR ?= $(GLEW_DEST)/bin |
58 | +LIBDIR ?= $(GLEW_DEST)/lib |
59 | +INCDIR ?= $(GLEW_DEST)/include/GL |
60 | +SHARED_OBJ_EXT ?= o |
61 | +TARDIR = ../glew-$(GLEW_VERSION) |
62 | +TARBALL = ../glew_$(GLEW_VERSION).tar.gz |
63 | + |
64 | +AR = ar |
65 | +INSTALL = install |
66 | +STRIP = strip |
67 | +RM = rm -f |
68 | +LN = ln -sf |
69 | +ifeq ($(MAKECMDGOALS), debug) |
70 | +OPT = -g |
71 | +else |
72 | +OPT = $(POPT) |
73 | +endif |
74 | +INCLUDE = -Iinclude |
75 | +CFLAGS = $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA) |
76 | + |
77 | +LIB.SRCS = src/glew.c |
78 | +LIB.OBJS = $(LIB.SRCS:.c=.o) |
79 | +LIB.SOBJS = $(LIB.SRCS:.c=.$(SHARED_OBJ_EXT)) |
80 | +LIB.LDFLAGS = $(LDFLAGS.EXTRA) $(LDFLAGS.GL) |
81 | +LIB.LIBS = $(GL_LDFLAGS) |
82 | + |
83 | +GLEWINFO.BIN = glewinfo$(BIN.SUFFIX) |
84 | +GLEWINFO.BIN.SRCS = src/glewinfo.c |
85 | +GLEWINFO.BIN.OBJS = $(GLEWINFO_BIN.SRCS:.c=.o) |
86 | +VISUALINFO.BIN = visualinfo$(BIN.SUFFIX) |
87 | +VISUALINFO.BIN.SRCS = src/visualinfo.c |
88 | +VISUALINFO.BIN.OBJS = $(VISUALINFO_BIN.SRCS:.c=.o) |
89 | +BIN.LIBS = -Llib $(LDFLAGS.DYNAMIC) -l$(NAME) $(LDFLAGS.EXTRA) $(LDFLAGS.GL) |
90 | + |
91 | +all debug: lib/$(LIB.SHARED) lib/$(LIB.STATIC) bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) |
92 | + |
93 | +lib: |
94 | + mkdir lib |
95 | + |
96 | +lib/$(LIB.STATIC): $(LIB.OBJS) |
97 | + $(AR) cr $@ $^ |
98 | + |
99 | +lib/$(LIB.SHARED): $(LIB.SOBJS) |
100 | + $(CC) $(LDFLAGS.SO) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS) |
101 | +ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw) |
102 | +else |
103 | + $(LN) $(LIB.SHARED) lib/$(LIB.SONAME) |
104 | + $(LN) $(LIB.SHARED) lib/$(LIB.DEVLNK) |
105 | +endif |
106 | + |
107 | +bin/$(GLEWINFO.BIN): $(GLEWINFO.BIN.SRCS) lib/$(LIB.SHARED) |
108 | + $(CC) $(CFLAGS) -o $@ $(GLEWINFO.BIN.SRCS) $(BIN.LIBS) |
109 | + |
110 | +bin/$(VISUALINFO.BIN): $(VISUALINFO.BIN.SRCS) lib/$(LIB.SHARED) |
111 | + $(CC) $(CFLAGS) -o $@ $(VISUALINFO.BIN.SRCS) $(BIN.LIBS) |
112 | + |
113 | +%.o: %.c |
114 | + $(CC) -c $(CFLAGS) -o $@ $< |
115 | + |
116 | +src/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h |
117 | + $(CC) $(CFLAGS) $(CFLAGS.SO) -o $@ -c $< |
118 | + |
119 | +src/glew.pic_o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h |
120 | + $(CC) $(CFLAGS) $(PICFLAG) $(CFLAGS.SO) -o $@ -c $< |
121 | + |
122 | +install: all |
123 | +# directories |
124 | + $(INSTALL) -d -m 0755 $(BINDIR) |
125 | + $(INSTALL) -d -m 0755 $(INCDIR) |
126 | + $(INSTALL) -d -m 0755 $(LIBDIR) |
127 | +# runtime |
128 | +ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw) |
129 | + $(STRIP) -x lib/$(LIB.SHARED) |
130 | + $(INSTALL) -m 0644 lib/$(LIB.SHARED) $(BINDIR)/ |
131 | +else |
132 | + $(STRIP) -x lib/$(LIB.SHARED) |
133 | + $(INSTALL) -m 0644 lib/$(LIB.SHARED) $(LIBDIR)/ |
134 | + $(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.SONAME) |
135 | +endif |
136 | +# development files |
137 | + $(INSTALL) -m 0644 include/GL/wglew.h $(INCDIR)/ |
138 | + $(INSTALL) -m 0644 include/GL/glew.h $(INCDIR)/ |
139 | + $(INSTALL) -m 0644 include/GL/glxew.h $(INCDIR)/ |
140 | +ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw) |
141 | + $(INSTALL) -m 0644 lib/$(LIB.DEVLNK) $(LIBDIR)/ |
142 | +else |
143 | + strip -x lib/$(LIB.STATIC) |
144 | + $(INSTALL) -m 0644 lib/$(LIB.STATIC) $(LIBDIR)/ |
145 | + $(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.DEVLNK) |
146 | +endif |
147 | +# utilities |
148 | + $(INSTALL) -m 0755 bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) $(BINDIR)/ |
149 | + |
150 | +uninstall: |
151 | + $(RM) $(INCDIR)/wglew.h |
152 | + $(RM) $(INCDIR)/glew.h |
153 | + $(RM) $(INCDIR)/glxew.h |
154 | + $(RM) $(LIBDIR)/$(LIB.DEVLNK) |
155 | +ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw) |
156 | + $(RM) $(BINDIR)/$(LIB.SHARED) |
157 | +else |
158 | + $(RM) $(LIBDIR)/$(LIB.SONAME) |
159 | + $(RM) $(LIBDIR)/$(LIB.SHARED) |
160 | + $(RM) $(LIBDIR)/$(LIB.STATIC) |
161 | +endif |
162 | + $(RM) $(BINDIR)/$(GLEWINFO.BIN) $(BINDIR)/$(VISUALINFO.BIN) |
163 | + |
164 | +clean: |
165 | + $(RM) $(LIB.OBJS) |
166 | + $(RM) $(LIB.SOBJS) |
167 | + $(RM) lib/$(LIB.STATIC) lib/$(LIB.SHARED) lib/$(LIB.DEVLNK) lib/$(LIB.SONAME) $(LIB.STATIC) |
168 | + $(RM) $(GLEWINFO.BIN.OBJS) bin/$(GLEWINFO.BIN) $(VISUALINFO.BIN.OBJS) bin/$(VISUALINFO.BIN) |
169 | +# Compiler droppings |
170 | + $(RM) so_locations |
171 | + |
172 | +distclean: clean |
173 | + find . -name \*~ | xargs $(RM) |
174 | + find . -name .\*.sw\? | xargs $(RM) |
175 | + |
176 | +tardist: |
177 | + $(RM) -r $(TARDIR) |
178 | + mkdir $(TARDIR) |
179 | + cp -a . $(TARDIR) |
180 | + find $(TARDIR) -name CVS -o -name .cvsignore | xargs $(RM) -r |
181 | + $(MAKE) -C $(TARDIR) distclean |
182 | + $(MAKE) -C $(TARDIR) |
183 | + $(MAKE) -C $(TARDIR) distclean |
184 | + $(RM) -r $(TARDIR)/auto/registry |
185 | + env GZIP=-9 tar -C `dirname $(TARDIR)` -cvzf $(TARBALL) `basename $(TARDIR)` |
186 | + |
187 | +extensions: |
188 | + $(MAKE) -C auto |
189 | + |
190 | +.PHONY: clean distclean tardist |
191 | +>>>>>>> MERGE-SOURCE |
192 | |
193 | === modified file 'config/Makefile.gnu' |
194 | --- config/Makefile.gnu 2010-01-17 01:00:53 +0000 |
195 | +++ config/Makefile.gnu 2010-02-13 00:02:19 +0000 |
196 | @@ -1,3 +1,4 @@ |
197 | +<<<<<<< TREE |
198 | NAME = $(GLEW_NAME) |
199 | CC = cc |
200 | LD = cc |
201 | @@ -21,3 +22,28 @@ |
202 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) |
203 | LIB.STATIC = lib$(NAME).a |
204 | SHARED_OBJ_EXT = pic_o |
205 | +======= |
206 | +NAME = $(GLEW_NAME) |
207 | +CC = cc |
208 | +LD = cc |
209 | +ifneq (undefined, $(origin GLEW_MX)) |
210 | +CFLAGS.EXTRA = -DGLEW_MX |
211 | +NAME_SUF=mx |
212 | +endif |
213 | +PICFLAG = -fPIC |
214 | +LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) -Wl,-Bsymbolic-functions |
215 | +M_ARCH ?= $(shell arch) |
216 | +LIBDIR = $(GLEW_DEST)/lib |
217 | +LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11 |
218 | +LDFLAGS.STATIC = -Wl,-Bstatic |
219 | +LDFLAGS.DYNAMIC = -Wl,-Bdynamic |
220 | +NAME = GLEW$(NAME_SUF) |
221 | +WARN = -Wall -W |
222 | +POPT = -O2 |
223 | +BIN.SUFFIX = |
224 | +LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) |
225 | +LIB.DEVLNK = lib$(NAME).so |
226 | +LIB.SHARED = lib$(NAME).so.$(SO_VERSION) |
227 | +LIB.STATIC = lib$(NAME).a |
228 | +SHARED_OBJ_EXT = pic_o |
229 | +>>>>>>> MERGE-SOURCE |
230 | |
231 | === modified file 'config/Makefile.kfreebsd' |
232 | --- config/Makefile.kfreebsd 2010-01-17 01:00:53 +0000 |
233 | +++ config/Makefile.kfreebsd 2010-02-13 00:02:19 +0000 |
234 | @@ -1,3 +1,4 @@ |
235 | +<<<<<<< TREE |
236 | NAME = $(GLEW_NAME) |
237 | CC = cc |
238 | LD = cc |
239 | @@ -21,3 +22,28 @@ |
240 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) |
241 | LIB.STATIC = lib$(NAME).a |
242 | SHARED_OBJ_EXT = pic_o |
243 | +======= |
244 | +NAME = $(GLEW_NAME) |
245 | +CC = cc |
246 | +LD = cc |
247 | +ifneq (undefined, $(origin GLEW_MX)) |
248 | +CFLAGS.EXTRA = -DGLEW_MX |
249 | +NAME_SUF=mx |
250 | +endif |
251 | +PICFLAG = -fPIC |
252 | +LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) -Wl,-Bsymbolic-functions |
253 | +M_ARCH ?= $(shell arch) |
254 | +LIBDIR = $(GLEW_DEST)/lib |
255 | +LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11 |
256 | +LDFLAGS.STATIC = -Wl,-Bstatic |
257 | +LDFLAGS.DYNAMIC = -Wl,-Bdynamic |
258 | +NAME = GLEW$(NAME_SUF) |
259 | +WARN = -Wall -W |
260 | +POPT = -O2 |
261 | +BIN.SUFFIX = |
262 | +LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) |
263 | +LIB.DEVLNK = lib$(NAME).so |
264 | +LIB.SHARED = lib$(NAME).so.$(SO_VERSION) |
265 | +LIB.STATIC = lib$(NAME).a |
266 | +SHARED_OBJ_EXT = pic_o |
267 | +>>>>>>> MERGE-SOURCE |
268 | |
269 | === modified file 'debian/changelog' |
270 | --- debian/changelog 2010-01-17 01:00:53 +0000 |
271 | +++ debian/changelog 2010-02-13 00:02:19 +0000 |
272 | @@ -1,3 +1,4 @@ |
273 | +<<<<<<< TREE |
274 | glew (1.5.2-0ubuntu1) lucid; urgency=low |
275 | |
276 | * New upstream release |
277 | @@ -53,6 +54,47 @@ |
278 | |
279 | -- Muharem Hrnjadovic <muharem@ubuntu.com> Thu, 04 Jun 2009 12:12:40 +0200 |
280 | |
281 | +======= |
282 | +glew (1.5.1-7ubuntu1) lucid; urgency=low |
283 | + |
284 | + * Merge from Debian unstable, remaining Ubuntu changes: |
285 | + - Build shared libraries with CC, not LD. |
286 | + - The debian Makefile had trailing '^M' characters; once sanitized the |
287 | + diff between the debian/ubuntu Makefile looks as follows: |
288 | + http://pastebin.ca/1447378 |
289 | + |
290 | + -- Richard A. Johnson <nixternal@ubuntu.com> Mon, 11 Jan 2010 17:44:15 -0600 |
291 | + |
292 | +glew (1.5.1-7) unstable; urgency=low |
293 | + |
294 | + * update source format to 3.0 |
295 | + * update standards version to 3.8.3 |
296 | + |
297 | + -- Joost Yervante Damad <andete@debian.org> Sat, 19 Dec 2009 21:16:11 +0100 |
298 | + |
299 | +glew (1.5.1-6) unstable; urgency=low |
300 | + |
301 | + * fix section of glew-utils |
302 | + |
303 | + -- Joost Yervante Damad <andete@debian.org> Mon, 17 Aug 2009 08:40:44 +0200 |
304 | + |
305 | +glew (1.5.1-5) unstable; urgency=low |
306 | + |
307 | + * Fix build on kfreebsd (Closes: #540971) |
308 | + |
309 | + -- Joost Yervante Damad <andete@debian.org> Mon, 17 Aug 2009 07:44:45 +0200 |
310 | + |
311 | +glew (1.5.1-4ubuntu1) karmic; urgency=low |
312 | + |
313 | + * Merge from debian unstable, remaining changes: |
314 | + - Build shared libraries with CC, not LD. |
315 | + - The debian Makefile had trailing '^M' characters; once sanitized |
316 | + the diff between the debian/ubuntu Makefile looks as follows: |
317 | + http://pastebin.ca/1447378 |
318 | + |
319 | + -- Muharem Hrnjadovic <muharem@ubuntu.com> Thu, 04 Jun 2009 12:12:40 +0200 |
320 | + |
321 | +>>>>>>> MERGE-SOURCE |
322 | glew (1.5.1-4) unstable; urgency=low |
323 | |
324 | * make sure mx library really is MX (closes: #528232) |
325 | |
326 | === modified file 'debian/control' |
327 | --- debian/control 2010-01-17 01:00:53 +0000 |
328 | +++ debian/control 2010-02-13 00:02:19 +0000 |
329 | @@ -1,8 +1,13 @@ |
330 | Source: glew |
331 | Priority: optional |
332 | Section: libs |
333 | +<<<<<<< TREE |
334 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
335 | XSBC-Original-Maintainer: Joost Yervante Damad <andete@debian.org> |
336 | +======= |
337 | +Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
338 | +XSBC-Original-Maintainer: Joost Yervante Damad <andete@debian.org> |
339 | +>>>>>>> MERGE-SOURCE |
340 | Build-Depends: debhelper (>> 5.0.0), libgl1-mesa-dev | libgl-dev, libglu1-mesa-dev | libglu-dev, libx11-dev, docbook-to-man, libxmu-dev, libxi-dev, binutils (>> 2.18) |
341 | Standards-Version: 3.8.3 |
342 | Homepage: http://glew.sourceforge.net/ |
343 | |
344 | === modified file 'debian/patches/.dpkg-source-applied' |
345 | --- debian/patches/.dpkg-source-applied 2010-01-17 01:00:53 +0000 |
346 | +++ debian/patches/.dpkg-source-applied 2010-02-13 00:02:19 +0000 |
347 | @@ -1,1 +1,5 @@ |
348 | +<<<<<<< TREE |
349 | debian-changes-1.5.2-0ubuntu1 |
350 | +======= |
351 | +debian-changes-1.5.1-7 |
352 | +>>>>>>> MERGE-SOURCE |
353 | |
354 | === added file 'debian/patches/debian-changes-1.5.1-7' |
355 | --- debian/patches/debian-changes-1.5.1-7 1970-01-01 00:00:00 +0000 |
356 | +++ debian/patches/debian-changes-1.5.1-7 2010-02-13 00:02:19 +0000 |
357 | @@ -0,0 +1,3191 @@ |
358 | +Description: Upstream changes introduced in version 1.5.1-7 |
359 | + This patch has been created by dpkg-source during the package build. |
360 | + Here's the last changelog entry, hopefully it gives details on why |
361 | + those changes were made: |
362 | + . |
363 | + glew (1.5.1-7) unstable; urgency=low |
364 | + . |
365 | + * update source format to 3.0 |
366 | + * update standards version to 3.8.3 |
367 | + . |
368 | + The person named in the Author field signed this changelog entry. |
369 | +Author: Joost Yervante Damad <andete@debian.org> |
370 | + |
371 | +--- |
372 | +The information above should follow the Patch Tagging Guidelines, please |
373 | +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here |
374 | +are templates for supplementary fields that you might want to add: |
375 | + |
376 | +Origin: <vendor|upstream|other>, <url of original patch> |
377 | +Bug: <url in upstream bugtracker> |
378 | +Bug-Debian: http://bugs.debian.org/<bugnumber> |
379 | +Forwarded: <no|not-needed|url proving that it has been forwarded> |
380 | +Reviewed-By: <name and email of someone who approved the patch> |
381 | +Last-Update: <YYYY-MM-DD> |
382 | + |
383 | +--- glew-1.5.1.orig/Makefile |
384 | ++++ glew-1.5.1/Makefile |
385 | +@@ -77,6 +77,8 @@ BIN.LIBS = -Llib $(LDFLAGS.DYNAMIC) -l$( |
386 | + |
387 | + all debug: lib/$(LIB.SHARED) lib/$(LIB.STATIC) bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) |
388 | + |
389 | ++libsonly: lib/$(LIB.SHARED) lib/$(LIB.STATIC) |
390 | ++ |
391 | + lib: |
392 | + mkdir lib |
393 | + |
394 | +@@ -106,7 +108,7 @@ src/glew.o: src/glew.c include/GL/glew.h |
395 | + src/glew.pic_o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h |
396 | + $(CC) $(CFLAGS) $(PICFLAG) $(CFLAGS.SO) -o $@ -c $< |
397 | + |
398 | +-install: all |
399 | ++install: libsonly |
400 | + # directories |
401 | + $(INSTALL) -d -m 0755 $(BINDIR) |
402 | + $(INSTALL) -d -m 0755 $(INCDIR) |
403 | +@@ -127,12 +129,11 @@ endif |
404 | + ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw) |
405 | + $(INSTALL) -m 0644 lib/$(LIB.DEVLNK) $(LIBDIR)/ |
406 | + else |
407 | +- strip -x lib/$(LIB.STATIC) |
408 | + $(INSTALL) -m 0644 lib/$(LIB.STATIC) $(LIBDIR)/ |
409 | + $(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.DEVLNK) |
410 | + endif |
411 | + # utilities |
412 | +- $(INSTALL) -s -m 0755 bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) $(BINDIR)/ |
413 | ++ -$(INSTALL) -m 0755 bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) $(BINDIR)/ |
414 | + |
415 | + uninstall: |
416 | + $(RM) $(INCDIR)/wglew.h |
417 | +--- glew-1.5.1.orig/config/config.guess |
418 | ++++ glew-1.5.1/config/config.guess |
419 | +@@ -1,1497 +1,1561 @@ |
420 | +-#! /bin/sh |
421 | +-# Attempt to guess a canonical system name. |
422 | +-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
423 | +-# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
424 | +- |
425 | +-timestamp='2006-02-23' |
426 | +- |
427 | +-# This file is free software; you can redistribute it and/or modify it |
428 | +-# under the terms of the GNU General Public License as published by |
429 | +-# the Free Software Foundation; either version 2 of the License, or |
430 | +-# (at your option) any later version. |
431 | +-# |
432 | +-# This program is distributed in the hope that it will be useful, but |
433 | +-# WITHOUT ANY WARRANTY; without even the implied warranty of |
434 | +-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
435 | +-# General Public License for more details. |
436 | +-# |
437 | +-# You should have received a copy of the GNU General Public License |
438 | +-# along with this program; if not, write to the Free Software |
439 | +-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
440 | +-# 02110-1301, USA. |
441 | +-# |
442 | +-# As a special exception to the GNU General Public License, if you |
443 | +-# distribute this file as part of a program that contains a |
444 | +-# configuration script generated by Autoconf, you may include it under |
445 | +-# the same distribution terms that you use for the rest of that program. |
446 | +- |
447 | +- |
448 | +-# Originally written by Per Bothner <per@bothner.com>. |
449 | +-# Please send patches to <config-patches@gnu.org>. Submit a context |
450 | +-# diff and a properly formatted ChangeLog entry. |
451 | +-# |
452 | +-# This script attempts to guess a canonical system name similar to |
453 | +-# config.sub. If it succeeds, it prints the system name on stdout, and |
454 | +-# exits with 0. Otherwise, it exits with 1. |
455 | +-# |
456 | +-# The plan is that this can be called by configure scripts if you |
457 | +-# don't specify an explicit build system type. |
458 | +- |
459 | +-me=`echo "$0" | sed -e 's,.*/,,'` |
460 | +- |
461 | +-usage="\ |
462 | +-Usage: $0 [OPTION] |
463 | +- |
464 | +-Output the configuration name of the system \`$me' is run on. |
465 | +- |
466 | +-Operation modes: |
467 | +- -h, --help print this help, then exit |
468 | +- -t, --time-stamp print date of last modification, then exit |
469 | +- -v, --version print version number, then exit |
470 | +- |
471 | +-Report bugs and patches to <config-patches@gnu.org>." |
472 | +- |
473 | +-version="\ |
474 | +-GNU config.guess ($timestamp) |
475 | +- |
476 | +-Originally written by Per Bothner. |
477 | +-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
478 | +-Free Software Foundation, Inc. |
479 | +- |
480 | +-This is free software; see the source for copying conditions. There is NO |
481 | +-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
482 | +- |
483 | +-help=" |
484 | +-Try \`$me --help' for more information." |
485 | +- |
486 | +-# Parse command line |
487 | +-while test $# -gt 0 ; do |
488 | +- case $1 in |
489 | +- --time-stamp | --time* | -t ) |
490 | +- echo "$timestamp" ; exit ;; |
491 | +- --version | -v ) |
492 | +- echo "$version" ; exit ;; |
493 | +- --help | --h* | -h ) |
494 | +- echo "$usage"; exit ;; |
495 | +- -- ) # Stop option processing |
496 | +- shift; break ;; |
497 | +- - ) # Use stdin as input. |
498 | +- break ;; |
499 | +- -* ) |
500 | +- echo "$me: invalid option $1$help" >&2 |
501 | +- exit 1 ;; |
502 | +- * ) |
503 | +- break ;; |
504 | +- esac |
505 | +-done |
506 | +- |
507 | +-if test $# != 0; then |
508 | +- echo "$me: too many arguments$help" >&2 |
509 | +- exit 1 |
510 | +-fi |
511 | +- |
512 | +-trap 'exit 1' 1 2 15 |
513 | +- |
514 | +-# CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
515 | +-# compiler to aid in system detection is discouraged as it requires |
516 | +-# temporary files to be created and, as you can see below, it is a |
517 | +-# headache to deal with in a portable fashion. |
518 | +- |
519 | +-# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still |
520 | +-# use `HOST_CC' if defined, but it is deprecated. |
521 | +- |
522 | +-# Portable tmp directory creation inspired by the Autoconf team. |
523 | +- |
524 | +-set_cc_for_build=' |
525 | +-trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; |
526 | +-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; |
527 | +-: ${TMPDIR=/tmp} ; |
528 | +- { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
529 | +- { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || |
530 | +- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || |
531 | +- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; |
532 | +-dummy=$tmp/dummy ; |
533 | +-tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; |
534 | +-case $CC_FOR_BUILD,$HOST_CC,$CC in |
535 | +- ,,) echo "int x;" > $dummy.c ; |
536 | +- for c in cc gcc c89 c99 ; do |
537 | +- if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then |
538 | +- CC_FOR_BUILD="$c"; break ; |
539 | +- fi ; |
540 | +- done ; |
541 | +- if test x"$CC_FOR_BUILD" = x ; then |
542 | +- CC_FOR_BUILD=no_compiler_found ; |
543 | +- fi |
544 | +- ;; |
545 | +- ,,*) CC_FOR_BUILD=$CC ;; |
546 | +- ,*,*) CC_FOR_BUILD=$HOST_CC ;; |
547 | +-esac ; set_cc_for_build= ;' |
548 | +- |
549 | +-# This is needed to find uname on a Pyramid OSx when run in the BSD universe. |
550 | +-# (ghazi@noc.rutgers.edu 1994-08-24) |
551 | +-if (test -f /.attbin/uname) >/dev/null 2>&1 ; then |
552 | +- PATH=$PATH:/.attbin ; export PATH |
553 | +-fi |
554 | +- |
555 | +-UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
556 | +-UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
557 | +-UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
558 | +-UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
559 | +- |
560 | +-# Note: order is significant - the case branches are not exclusive. |
561 | +- |
562 | +-case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
563 | +- *:NetBSD:*:*) |
564 | +- # NetBSD (nbsd) targets should (where applicable) match one or |
565 | +- # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, |
566 | +- # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
567 | +- # switched to ELF, *-*-netbsd* would select the old |
568 | +- # object file format. This provides both forward |
569 | +- # compatibility and a consistent mechanism for selecting the |
570 | +- # object file format. |
571 | +- # |
572 | +- # Note: NetBSD doesn't particularly care about the vendor |
573 | +- # portion of the name. We always set it to "unknown". |
574 | +- sysctl="sysctl -n hw.machine_arch" |
575 | +- UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ |
576 | +- /usr/sbin/$sysctl 2>/dev/null || echo unknown)` |
577 | +- case "${UNAME_MACHINE_ARCH}" in |
578 | +- armeb) machine=armeb-unknown ;; |
579 | +- arm*) machine=arm-unknown ;; |
580 | +- sh3el) machine=shl-unknown ;; |
581 | +- sh3eb) machine=sh-unknown ;; |
582 | +- *) machine=${UNAME_MACHINE_ARCH}-unknown ;; |
583 | +- esac |
584 | +- # The Operating System including object format, if it has switched |
585 | +- # to ELF recently, or will in the future. |
586 | +- case "${UNAME_MACHINE_ARCH}" in |
587 | +- arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
588 | +- eval $set_cc_for_build |
589 | +- if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
590 | +- | grep __ELF__ >/dev/null |
591 | +- then |
592 | +- # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
593 | +- # Return netbsd for either. FIX? |
594 | +- os=netbsd |
595 | +- else |
596 | +- os=netbsdelf |
597 | +- fi |
598 | +- ;; |
599 | +- *) |
600 | +- os=netbsd |
601 | +- ;; |
602 | +- esac |
603 | +- # The OS release |
604 | +- # Debian GNU/NetBSD machines have a different userland, and |
605 | +- # thus, need a distinct triplet. However, they do not need |
606 | +- # kernel version information, so it can be replaced with a |
607 | +- # suitable tag, in the style of linux-gnu. |
608 | +- case "${UNAME_VERSION}" in |
609 | +- Debian*) |
610 | +- release='-gnu' |
611 | +- ;; |
612 | +- *) |
613 | +- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` |
614 | +- ;; |
615 | +- esac |
616 | +- # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
617 | +- # contains redundant information, the shorter form: |
618 | +- # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
619 | +- echo "${machine}-${os}${release}" |
620 | +- exit ;; |
621 | +- *:OpenBSD:*:*) |
622 | +- UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
623 | +- echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} |
624 | +- exit ;; |
625 | +- *:ekkoBSD:*:*) |
626 | +- echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} |
627 | +- exit ;; |
628 | +- *:SolidBSD:*:*) |
629 | +- echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} |
630 | +- exit ;; |
631 | +- macppc:MirBSD:*:*) |
632 | +- echo powerppc-unknown-mirbsd${UNAME_RELEASE} |
633 | +- exit ;; |
634 | +- *:MirBSD:*:*) |
635 | +- echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} |
636 | +- exit ;; |
637 | +- alpha:OSF1:*:*) |
638 | +- case $UNAME_RELEASE in |
639 | +- *4.0) |
640 | +- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
641 | +- ;; |
642 | +- *5.*) |
643 | +- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` |
644 | +- ;; |
645 | +- esac |
646 | +- # According to Compaq, /usr/sbin/psrinfo has been available on |
647 | +- # OSF/1 and Tru64 systems produced since 1995. I hope that |
648 | +- # covers most systems running today. This code pipes the CPU |
649 | +- # types through head -n 1, so we only detect the type of CPU 0. |
650 | +- ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` |
651 | +- case "$ALPHA_CPU_TYPE" in |
652 | +- "EV4 (21064)") |
653 | +- UNAME_MACHINE="alpha" ;; |
654 | +- "EV4.5 (21064)") |
655 | +- UNAME_MACHINE="alpha" ;; |
656 | +- "LCA4 (21066/21068)") |
657 | +- UNAME_MACHINE="alpha" ;; |
658 | +- "EV5 (21164)") |
659 | +- UNAME_MACHINE="alphaev5" ;; |
660 | +- "EV5.6 (21164A)") |
661 | +- UNAME_MACHINE="alphaev56" ;; |
662 | +- "EV5.6 (21164PC)") |
663 | +- UNAME_MACHINE="alphapca56" ;; |
664 | +- "EV5.7 (21164PC)") |
665 | +- UNAME_MACHINE="alphapca57" ;; |
666 | +- "EV6 (21264)") |
667 | +- UNAME_MACHINE="alphaev6" ;; |
668 | +- "EV6.7 (21264A)") |
669 | +- UNAME_MACHINE="alphaev67" ;; |
670 | +- "EV6.8CB (21264C)") |
671 | +- UNAME_MACHINE="alphaev68" ;; |
672 | +- "EV6.8AL (21264B)") |
673 | +- UNAME_MACHINE="alphaev68" ;; |
674 | +- "EV6.8CX (21264D)") |
675 | +- UNAME_MACHINE="alphaev68" ;; |
676 | +- "EV6.9A (21264/EV69A)") |
677 | +- UNAME_MACHINE="alphaev69" ;; |
678 | +- "EV7 (21364)") |
679 | +- UNAME_MACHINE="alphaev7" ;; |
680 | +- "EV7.9 (21364A)") |
681 | +- UNAME_MACHINE="alphaev79" ;; |
682 | +- esac |
683 | +- # A Pn.n version is a patched version. |
684 | +- # A Vn.n version is a released version. |
685 | +- # A Tn.n version is a released field test version. |
686 | +- # A Xn.n version is an unreleased experimental baselevel. |
687 | +- # 1.2 uses "1.2" for uname -r. |
688 | +- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
689 | +- exit ;; |
690 | +- Alpha\ *:Windows_NT*:*) |
691 | +- # How do we know it's Interix rather than the generic POSIX subsystem? |
692 | +- # Should we change UNAME_MACHINE based on the output of uname instead |
693 | +- # of the specific Alpha model? |
694 | +- echo alpha-pc-interix |
695 | +- exit ;; |
696 | +- 21064:Windows_NT:50:3) |
697 | +- echo alpha-dec-winnt3.5 |
698 | +- exit ;; |
699 | +- Amiga*:UNIX_System_V:4.0:*) |
700 | +- echo m68k-unknown-sysv4 |
701 | +- exit ;; |
702 | +- *:[Aa]miga[Oo][Ss]:*:*) |
703 | +- echo ${UNAME_MACHINE}-unknown-amigaos |
704 | +- exit ;; |
705 | +- *:[Mm]orph[Oo][Ss]:*:*) |
706 | +- echo ${UNAME_MACHINE}-unknown-morphos |
707 | +- exit ;; |
708 | +- *:OS/390:*:*) |
709 | +- echo i370-ibm-openedition |
710 | +- exit ;; |
711 | +- *:z/VM:*:*) |
712 | +- echo s390-ibm-zvmoe |
713 | +- exit ;; |
714 | +- *:OS400:*:*) |
715 | +- echo powerpc-ibm-os400 |
716 | +- exit ;; |
717 | +- arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
718 | +- echo arm-acorn-riscix${UNAME_RELEASE} |
719 | +- exit ;; |
720 | +- arm:riscos:*:*|arm:RISCOS:*:*) |
721 | +- echo arm-unknown-riscos |
722 | +- exit ;; |
723 | +- SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
724 | +- echo hppa1.1-hitachi-hiuxmpp |
725 | +- exit ;; |
726 | +- Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) |
727 | +- # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. |
728 | +- if test "`(/bin/universe) 2>/dev/null`" = att ; then |
729 | +- echo pyramid-pyramid-sysv3 |
730 | +- else |
731 | +- echo pyramid-pyramid-bsd |
732 | +- fi |
733 | +- exit ;; |
734 | +- NILE*:*:*:dcosx) |
735 | +- echo pyramid-pyramid-svr4 |
736 | +- exit ;; |
737 | +- DRS?6000:unix:4.0:6*) |
738 | +- echo sparc-icl-nx6 |
739 | +- exit ;; |
740 | +- DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) |
741 | +- case `/usr/bin/uname -p` in |
742 | +- sparc) echo sparc-icl-nx7; exit ;; |
743 | +- esac ;; |
744 | +- sun4H:SunOS:5.*:*) |
745 | +- echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
746 | +- exit ;; |
747 | +- sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
748 | +- echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
749 | +- exit ;; |
750 | +- i86pc:SunOS:5.*:*) |
751 | +- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
752 | +- exit ;; |
753 | +- sun4*:SunOS:6*:*) |
754 | +- # According to config.sub, this is the proper way to canonicalize |
755 | +- # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
756 | +- # it's likely to be more like Solaris than SunOS4. |
757 | +- echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
758 | +- exit ;; |
759 | +- sun4*:SunOS:*:*) |
760 | +- case "`/usr/bin/arch -k`" in |
761 | +- Series*|S4*) |
762 | +- UNAME_RELEASE=`uname -v` |
763 | +- ;; |
764 | +- esac |
765 | +- # Japanese Language versions have a version number like `4.1.3-JL'. |
766 | +- echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` |
767 | +- exit ;; |
768 | +- sun3*:SunOS:*:*) |
769 | +- echo m68k-sun-sunos${UNAME_RELEASE} |
770 | +- exit ;; |
771 | +- sun*:*:4.2BSD:*) |
772 | +- UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
773 | +- test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 |
774 | +- case "`/bin/arch`" in |
775 | +- sun3) |
776 | +- echo m68k-sun-sunos${UNAME_RELEASE} |
777 | +- ;; |
778 | +- sun4) |
779 | +- echo sparc-sun-sunos${UNAME_RELEASE} |
780 | +- ;; |
781 | +- esac |
782 | +- exit ;; |
783 | +- aushp:SunOS:*:*) |
784 | +- echo sparc-auspex-sunos${UNAME_RELEASE} |
785 | +- exit ;; |
786 | +- # The situation for MiNT is a little confusing. The machine name |
787 | +- # can be virtually everything (everything which is not |
788 | +- # "atarist" or "atariste" at least should have a processor |
789 | +- # > m68000). The system name ranges from "MiNT" over "FreeMiNT" |
790 | +- # to the lowercase version "mint" (or "freemint"). Finally |
791 | +- # the system name "TOS" denotes a system which is actually not |
792 | +- # MiNT. But MiNT is downward compatible to TOS, so this should |
793 | +- # be no problem. |
794 | +- atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
795 | +- echo m68k-atari-mint${UNAME_RELEASE} |
796 | +- exit ;; |
797 | +- atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
798 | +- echo m68k-atari-mint${UNAME_RELEASE} |
799 | +- exit ;; |
800 | +- *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
801 | +- echo m68k-atari-mint${UNAME_RELEASE} |
802 | +- exit ;; |
803 | +- milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
804 | +- echo m68k-milan-mint${UNAME_RELEASE} |
805 | +- exit ;; |
806 | +- hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
807 | +- echo m68k-hades-mint${UNAME_RELEASE} |
808 | +- exit ;; |
809 | +- *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
810 | +- echo m68k-unknown-mint${UNAME_RELEASE} |
811 | +- exit ;; |
812 | +- m68k:machten:*:*) |
813 | +- echo m68k-apple-machten${UNAME_RELEASE} |
814 | +- exit ;; |
815 | +- powerpc:machten:*:*) |
816 | +- echo powerpc-apple-machten${UNAME_RELEASE} |
817 | +- exit ;; |
818 | +- RISC*:Mach:*:*) |
819 | +- echo mips-dec-mach_bsd4.3 |
820 | +- exit ;; |
821 | +- RISC*:ULTRIX:*:*) |
822 | +- echo mips-dec-ultrix${UNAME_RELEASE} |
823 | +- exit ;; |
824 | +- VAX*:ULTRIX*:*:*) |
825 | +- echo vax-dec-ultrix${UNAME_RELEASE} |
826 | +- exit ;; |
827 | +- 2020:CLIX:*:* | 2430:CLIX:*:*) |
828 | +- echo clipper-intergraph-clix${UNAME_RELEASE} |
829 | +- exit ;; |
830 | +- mips:*:*:UMIPS | mips:*:*:RISCos) |
831 | +- eval $set_cc_for_build |
832 | +- sed 's/^ //' << EOF >$dummy.c |
833 | +-#ifdef __cplusplus |
834 | +-#include <stdio.h> /* for printf() prototype */ |
835 | +- int main (int argc, char *argv[]) { |
836 | +-#else |
837 | +- int main (argc, argv) int argc; char *argv[]; { |
838 | +-#endif |
839 | +- #if defined (host_mips) && defined (MIPSEB) |
840 | +- #if defined (SYSTYPE_SYSV) |
841 | +- printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); |
842 | +- #endif |
843 | +- #if defined (SYSTYPE_SVR4) |
844 | +- printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); |
845 | +- #endif |
846 | +- #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) |
847 | +- printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); |
848 | +- #endif |
849 | +- #endif |
850 | +- exit (-1); |
851 | +- } |
852 | +-EOF |
853 | +- $CC_FOR_BUILD -o $dummy $dummy.c && |
854 | +- dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && |
855 | +- SYSTEM_NAME=`$dummy $dummyarg` && |
856 | +- { echo "$SYSTEM_NAME"; exit; } |
857 | +- echo mips-mips-riscos${UNAME_RELEASE} |
858 | +- exit ;; |
859 | +- Motorola:PowerMAX_OS:*:*) |
860 | +- echo powerpc-motorola-powermax |
861 | +- exit ;; |
862 | +- Motorola:*:4.3:PL8-*) |
863 | +- echo powerpc-harris-powermax |
864 | +- exit ;; |
865 | +- Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) |
866 | +- echo powerpc-harris-powermax |
867 | +- exit ;; |
868 | +- Night_Hawk:Power_UNIX:*:*) |
869 | +- echo powerpc-harris-powerunix |
870 | +- exit ;; |
871 | +- m88k:CX/UX:7*:*) |
872 | +- echo m88k-harris-cxux7 |
873 | +- exit ;; |
874 | +- m88k:*:4*:R4*) |
875 | +- echo m88k-motorola-sysv4 |
876 | +- exit ;; |
877 | +- m88k:*:3*:R3*) |
878 | +- echo m88k-motorola-sysv3 |
879 | +- exit ;; |
880 | +- AViiON:dgux:*:*) |
881 | +- # DG/UX returns AViiON for all architectures |
882 | +- UNAME_PROCESSOR=`/usr/bin/uname -p` |
883 | +- if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
884 | +- then |
885 | +- if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
886 | +- [ ${TARGET_BINARY_INTERFACE}x = x ] |
887 | +- then |
888 | +- echo m88k-dg-dgux${UNAME_RELEASE} |
889 | +- else |
890 | +- echo m88k-dg-dguxbcs${UNAME_RELEASE} |
891 | +- fi |
892 | +- else |
893 | +- echo i586-dg-dgux${UNAME_RELEASE} |
894 | +- fi |
895 | +- exit ;; |
896 | +- M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
897 | +- echo m88k-dolphin-sysv3 |
898 | +- exit ;; |
899 | +- M88*:*:R3*:*) |
900 | +- # Delta 88k system running SVR3 |
901 | +- echo m88k-motorola-sysv3 |
902 | +- exit ;; |
903 | +- XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) |
904 | +- echo m88k-tektronix-sysv3 |
905 | +- exit ;; |
906 | +- Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) |
907 | +- echo m68k-tektronix-bsd |
908 | +- exit ;; |
909 | +- *:IRIX*:*:*) |
910 | +- echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` |
911 | +- exit ;; |
912 | +- ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
913 | +- echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
914 | +- exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' |
915 | +- i*86:AIX:*:*) |
916 | +- echo i386-ibm-aix |
917 | +- exit ;; |
918 | +- ia64:AIX:*:*) |
919 | +- if [ -x /usr/bin/oslevel ] ; then |
920 | +- IBM_REV=`/usr/bin/oslevel` |
921 | +- else |
922 | +- IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} |
923 | +- fi |
924 | +- echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} |
925 | +- exit ;; |
926 | +- *:AIX:2:3) |
927 | +- if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
928 | +- eval $set_cc_for_build |
929 | +- sed 's/^ //' << EOF >$dummy.c |
930 | +- #include <sys/systemcfg.h> |
931 | +- |
932 | +- main() |
933 | +- { |
934 | +- if (!__power_pc()) |
935 | +- exit(1); |
936 | +- puts("powerpc-ibm-aix3.2.5"); |
937 | +- exit(0); |
938 | +- } |
939 | +-EOF |
940 | +- if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` |
941 | +- then |
942 | +- echo "$SYSTEM_NAME" |
943 | +- else |
944 | +- echo rs6000-ibm-aix3.2.5 |
945 | +- fi |
946 | +- elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then |
947 | +- echo rs6000-ibm-aix3.2.4 |
948 | +- else |
949 | +- echo rs6000-ibm-aix3.2 |
950 | +- fi |
951 | +- exit ;; |
952 | +- *:AIX:*:[45]) |
953 | +- IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
954 | +- if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
955 | +- IBM_ARCH=rs6000 |
956 | +- else |
957 | +- IBM_ARCH=powerpc |
958 | +- fi |
959 | +- if [ -x /usr/bin/oslevel ] ; then |
960 | +- IBM_REV=`/usr/bin/oslevel` |
961 | +- else |
962 | +- IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} |
963 | +- fi |
964 | +- echo ${IBM_ARCH}-ibm-aix${IBM_REV} |
965 | +- exit ;; |
966 | +- *:AIX:*:*) |
967 | +- echo rs6000-ibm-aix |
968 | +- exit ;; |
969 | +- ibmrt:4.4BSD:*|romp-ibm:BSD:*) |
970 | +- echo romp-ibm-bsd4.4 |
971 | +- exit ;; |
972 | +- ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and |
973 | +- echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to |
974 | +- exit ;; # report: romp-ibm BSD 4.3 |
975 | +- *:BOSX:*:*) |
976 | +- echo rs6000-bull-bosx |
977 | +- exit ;; |
978 | +- DPX/2?00:B.O.S.:*:*) |
979 | +- echo m68k-bull-sysv3 |
980 | +- exit ;; |
981 | +- 9000/[34]??:4.3bsd:1.*:*) |
982 | +- echo m68k-hp-bsd |
983 | +- exit ;; |
984 | +- hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) |
985 | +- echo m68k-hp-bsd4.4 |
986 | +- exit ;; |
987 | +- 9000/[34678]??:HP-UX:*:*) |
988 | +- HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
989 | +- case "${UNAME_MACHINE}" in |
990 | +- 9000/31? ) HP_ARCH=m68000 ;; |
991 | +- 9000/[34]?? ) HP_ARCH=m68k ;; |
992 | +- 9000/[678][0-9][0-9]) |
993 | +- if [ -x /usr/bin/getconf ]; then |
994 | +- sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
995 | +- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
996 | +- case "${sc_cpu_version}" in |
997 | +- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
998 | +- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 |
999 | +- 532) # CPU_PA_RISC2_0 |
1000 | +- case "${sc_kernel_bits}" in |
1001 | +- 32) HP_ARCH="hppa2.0n" ;; |
1002 | +- 64) HP_ARCH="hppa2.0w" ;; |
1003 | +- '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
1004 | +- esac ;; |
1005 | +- esac |
1006 | +- fi |
1007 | +- if [ "${HP_ARCH}" = "" ]; then |
1008 | +- eval $set_cc_for_build |
1009 | +- sed 's/^ //' << EOF >$dummy.c |
1010 | +- |
1011 | +- #define _HPUX_SOURCE |
1012 | +- #include <stdlib.h> |
1013 | +- #include <unistd.h> |
1014 | +- |
1015 | +- int main () |
1016 | +- { |
1017 | +- #if defined(_SC_KERNEL_BITS) |
1018 | +- long bits = sysconf(_SC_KERNEL_BITS); |
1019 | +- #endif |
1020 | +- long cpu = sysconf (_SC_CPU_VERSION); |
1021 | +- |
1022 | +- switch (cpu) |
1023 | +- { |
1024 | +- case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
1025 | +- case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
1026 | +- case CPU_PA_RISC2_0: |
1027 | +- #if defined(_SC_KERNEL_BITS) |
1028 | +- switch (bits) |
1029 | +- { |
1030 | +- case 64: puts ("hppa2.0w"); break; |
1031 | +- case 32: puts ("hppa2.0n"); break; |
1032 | +- default: puts ("hppa2.0"); break; |
1033 | +- } break; |
1034 | +- #else /* !defined(_SC_KERNEL_BITS) */ |
1035 | +- puts ("hppa2.0"); break; |
1036 | +- #endif |
1037 | +- default: puts ("hppa1.0"); break; |
1038 | +- } |
1039 | +- exit (0); |
1040 | +- } |
1041 | +-EOF |
1042 | +- (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
1043 | +- test -z "$HP_ARCH" && HP_ARCH=hppa |
1044 | +- fi ;; |
1045 | +- esac |
1046 | +- if [ ${HP_ARCH} = "hppa2.0w" ] |
1047 | +- then |
1048 | +- eval $set_cc_for_build |
1049 | +- |
1050 | +- # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating |
1051 | +- # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler |
1052 | +- # generating 64-bit code. GNU and HP use different nomenclature: |
1053 | +- # |
1054 | +- # $ CC_FOR_BUILD=cc ./config.guess |
1055 | +- # => hppa2.0w-hp-hpux11.23 |
1056 | +- # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
1057 | +- # => hppa64-hp-hpux11.23 |
1058 | +- |
1059 | +- if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | |
1060 | +- grep __LP64__ >/dev/null |
1061 | +- then |
1062 | +- HP_ARCH="hppa2.0w" |
1063 | +- else |
1064 | +- HP_ARCH="hppa64" |
1065 | +- fi |
1066 | +- fi |
1067 | +- echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
1068 | +- exit ;; |
1069 | +- ia64:HP-UX:*:*) |
1070 | +- HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
1071 | +- echo ia64-hp-hpux${HPUX_REV} |
1072 | +- exit ;; |
1073 | +- 3050*:HI-UX:*:*) |
1074 | +- eval $set_cc_for_build |
1075 | +- sed 's/^ //' << EOF >$dummy.c |
1076 | +- #include <unistd.h> |
1077 | +- int |
1078 | +- main () |
1079 | +- { |
1080 | +- long cpu = sysconf (_SC_CPU_VERSION); |
1081 | +- /* The order matters, because CPU_IS_HP_MC68K erroneously returns |
1082 | +- true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct |
1083 | +- results, however. */ |
1084 | +- if (CPU_IS_PA_RISC (cpu)) |
1085 | +- { |
1086 | +- switch (cpu) |
1087 | +- { |
1088 | +- case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; |
1089 | +- case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; |
1090 | +- case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; |
1091 | +- default: puts ("hppa-hitachi-hiuxwe2"); break; |
1092 | +- } |
1093 | +- } |
1094 | +- else if (CPU_IS_HP_MC68K (cpu)) |
1095 | +- puts ("m68k-hitachi-hiuxwe2"); |
1096 | +- else puts ("unknown-hitachi-hiuxwe2"); |
1097 | +- exit (0); |
1098 | +- } |
1099 | +-EOF |
1100 | +- $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && |
1101 | +- { echo "$SYSTEM_NAME"; exit; } |
1102 | +- echo unknown-hitachi-hiuxwe2 |
1103 | +- exit ;; |
1104 | +- 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) |
1105 | +- echo hppa1.1-hp-bsd |
1106 | +- exit ;; |
1107 | +- 9000/8??:4.3bsd:*:*) |
1108 | +- echo hppa1.0-hp-bsd |
1109 | +- exit ;; |
1110 | +- *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) |
1111 | +- echo hppa1.0-hp-mpeix |
1112 | +- exit ;; |
1113 | +- hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) |
1114 | +- echo hppa1.1-hp-osf |
1115 | +- exit ;; |
1116 | +- hp8??:OSF1:*:*) |
1117 | +- echo hppa1.0-hp-osf |
1118 | +- exit ;; |
1119 | +- i*86:OSF1:*:*) |
1120 | +- if [ -x /usr/sbin/sysversion ] ; then |
1121 | +- echo ${UNAME_MACHINE}-unknown-osf1mk |
1122 | +- else |
1123 | +- echo ${UNAME_MACHINE}-unknown-osf1 |
1124 | +- fi |
1125 | +- exit ;; |
1126 | +- parisc*:Lites*:*:*) |
1127 | +- echo hppa1.1-hp-lites |
1128 | +- exit ;; |
1129 | +- C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
1130 | +- echo c1-convex-bsd |
1131 | +- exit ;; |
1132 | +- C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
1133 | +- if getsysinfo -f scalar_acc |
1134 | +- then echo c32-convex-bsd |
1135 | +- else echo c2-convex-bsd |
1136 | +- fi |
1137 | +- exit ;; |
1138 | +- C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
1139 | +- echo c34-convex-bsd |
1140 | +- exit ;; |
1141 | +- C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
1142 | +- echo c38-convex-bsd |
1143 | +- exit ;; |
1144 | +- C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
1145 | +- echo c4-convex-bsd |
1146 | +- exit ;; |
1147 | +- CRAY*Y-MP:*:*:*) |
1148 | +- echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
1149 | +- exit ;; |
1150 | +- CRAY*[A-Z]90:*:*:*) |
1151 | +- echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
1152 | +- | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
1153 | +- -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ |
1154 | +- -e 's/\.[^.]*$/.X/' |
1155 | +- exit ;; |
1156 | +- CRAY*TS:*:*:*) |
1157 | +- echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
1158 | +- exit ;; |
1159 | +- CRAY*T3E:*:*:*) |
1160 | +- echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
1161 | +- exit ;; |
1162 | +- CRAY*SV1:*:*:*) |
1163 | +- echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
1164 | +- exit ;; |
1165 | +- *:UNICOS/mp:*:*) |
1166 | +- echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
1167 | +- exit ;; |
1168 | +- F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
1169 | +- FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
1170 | +- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
1171 | +- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
1172 | +- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
1173 | +- exit ;; |
1174 | +- 5000:UNIX_System_V:4.*:*) |
1175 | +- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
1176 | +- FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` |
1177 | +- echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
1178 | +- exit ;; |
1179 | +- i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
1180 | +- echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
1181 | +- exit ;; |
1182 | +- sparc*:BSD/OS:*:*) |
1183 | +- echo sparc-unknown-bsdi${UNAME_RELEASE} |
1184 | +- exit ;; |
1185 | +- *:BSD/OS:*:*) |
1186 | +- echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
1187 | +- exit ;; |
1188 | +- *:FreeBSD:*:*) |
1189 | +- case ${UNAME_MACHINE} in |
1190 | +- pc98) |
1191 | +- echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
1192 | +- *) |
1193 | +- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
1194 | +- esac |
1195 | +- exit ;; |
1196 | +- i*:CYGWIN*:*) |
1197 | +- echo ${UNAME_MACHINE}-pc-cygwin |
1198 | +- exit ;; |
1199 | +- i*:MINGW*:*) |
1200 | +- echo ${UNAME_MACHINE}-pc-mingw32 |
1201 | +- exit ;; |
1202 | +- i*:MSYS_NT-*:*:*) |
1203 | +- echo ${UNAME_MACHINE}-pc-mingw32 |
1204 | +- exit ;; |
1205 | +- i*:windows32*:*) |
1206 | +- # uname -m includes "-pc" on this system. |
1207 | +- echo ${UNAME_MACHINE}-mingw32 |
1208 | +- exit ;; |
1209 | +- i*:PW*:*) |
1210 | +- echo ${UNAME_MACHINE}-pc-pw32 |
1211 | +- exit ;; |
1212 | +- x86:Interix*:[345]*) |
1213 | +- echo i586-pc-interix${UNAME_RELEASE} |
1214 | +- exit ;; |
1215 | +- EM64T:Interix*:[345]*) |
1216 | +- echo x86_64-unknown-interix${UNAME_RELEASE} |
1217 | +- exit ;; |
1218 | +- [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
1219 | +- echo i${UNAME_MACHINE}-pc-mks |
1220 | +- exit ;; |
1221 | +- i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
1222 | +- # How do we know it's Interix rather than the generic POSIX subsystem? |
1223 | +- # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
1224 | +- # UNAME_MACHINE based on the output of uname instead of i386? |
1225 | +- echo i586-pc-interix |
1226 | +- exit ;; |
1227 | +- i*:UWIN*:*) |
1228 | +- echo ${UNAME_MACHINE}-pc-uwin |
1229 | +- exit ;; |
1230 | +- amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) |
1231 | +- echo x86_64-unknown-cygwin |
1232 | +- exit ;; |
1233 | +- p*:CYGWIN*:*) |
1234 | +- echo powerpcle-unknown-cygwin |
1235 | +- exit ;; |
1236 | +- prep*:SunOS:5.*:*) |
1237 | +- echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
1238 | +- exit ;; |
1239 | +- *:GNU:*:*) |
1240 | +- # the GNU system |
1241 | +- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
1242 | +- exit ;; |
1243 | +- *:GNU/*:*:*) |
1244 | +- # other systems with GNU libc and userland |
1245 | +- echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu |
1246 | +- exit ;; |
1247 | +- i*86:Minix:*:*) |
1248 | +- echo ${UNAME_MACHINE}-pc-minix |
1249 | +- exit ;; |
1250 | +- arm*:Linux:*:*) |
1251 | +- echo ${UNAME_MACHINE}-unknown-linux-gnu |
1252 | +- exit ;; |
1253 | +- cris:Linux:*:*) |
1254 | +- echo cris-axis-linux-gnu |
1255 | +- exit ;; |
1256 | +- crisv32:Linux:*:*) |
1257 | +- echo crisv32-axis-linux-gnu |
1258 | +- exit ;; |
1259 | +- frv:Linux:*:*) |
1260 | +- echo frv-unknown-linux-gnu |
1261 | +- exit ;; |
1262 | +- ia64:Linux:*:*) |
1263 | +- echo ${UNAME_MACHINE}-unknown-linux-gnu |
1264 | +- exit ;; |
1265 | +- m32r*:Linux:*:*) |
1266 | +- echo ${UNAME_MACHINE}-unknown-linux-gnu |
1267 | +- exit ;; |
1268 | +- m68*:Linux:*:*) |
1269 | +- echo ${UNAME_MACHINE}-unknown-linux-gnu |
1270 | +- exit ;; |
1271 | +- mips:Linux:*:*) |
1272 | +- eval $set_cc_for_build |
1273 | +- sed 's/^ //' << EOF >$dummy.c |
1274 | +- #undef CPU |
1275 | +- #undef mips |
1276 | +- #undef mipsel |
1277 | +- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
1278 | +- CPU=mipsel |
1279 | +- #else |
1280 | +- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
1281 | +- CPU=mips |
1282 | +- #else |
1283 | +- CPU= |
1284 | +- #endif |
1285 | +- #endif |
1286 | +-EOF |
1287 | +- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' |
1288 | +- /^CPU/{ |
1289 | +- s: ::g |
1290 | +- p |
1291 | +- }'`" |
1292 | +- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
1293 | +- ;; |
1294 | +- mips64:Linux:*:*) |
1295 | +- eval $set_cc_for_build |
1296 | +- sed 's/^ //' << EOF >$dummy.c |
1297 | +- #undef CPU |
1298 | +- #undef mips64 |
1299 | +- #undef mips64el |
1300 | +- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
1301 | +- CPU=mips64el |
1302 | +- #else |
1303 | +- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
1304 | +- CPU=mips64 |
1305 | +- #else |
1306 | +- CPU= |
1307 | +- #endif |
1308 | +- #endif |
1309 | +-EOF |
1310 | +- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' |
1311 | +- /^CPU/{ |
1312 | +- s: ::g |
1313 | +- p |
1314 | +- }'`" |
1315 | +- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
1316 | +- ;; |
1317 | +- or32:Linux:*:*) |
1318 | +- echo or32-unknown-linux-gnu |
1319 | +- exit ;; |
1320 | +- ppc:Linux:*:*) |
1321 | +- echo powerpc-unknown-linux-gnu |
1322 | +- exit ;; |
1323 | +- ppc64:Linux:*:*) |
1324 | +- echo powerpc64-unknown-linux-gnu |
1325 | +- exit ;; |
1326 | +- alpha:Linux:*:*) |
1327 | +- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
1328 | +- EV5) UNAME_MACHINE=alphaev5 ;; |
1329 | +- EV56) UNAME_MACHINE=alphaev56 ;; |
1330 | +- PCA56) UNAME_MACHINE=alphapca56 ;; |
1331 | +- PCA57) UNAME_MACHINE=alphapca56 ;; |
1332 | +- EV6) UNAME_MACHINE=alphaev6 ;; |
1333 | +- EV67) UNAME_MACHINE=alphaev67 ;; |
1334 | +- EV68*) UNAME_MACHINE=alphaev68 ;; |
1335 | +- esac |
1336 | +- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null |
1337 | +- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
1338 | +- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
1339 | +- exit ;; |
1340 | +- parisc:Linux:*:* | hppa:Linux:*:*) |
1341 | +- # Look for CPU level |
1342 | +- case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
1343 | +- PA7*) echo hppa1.1-unknown-linux-gnu ;; |
1344 | +- PA8*) echo hppa2.0-unknown-linux-gnu ;; |
1345 | +- *) echo hppa-unknown-linux-gnu ;; |
1346 | +- esac |
1347 | +- exit ;; |
1348 | +- parisc64:Linux:*:* | hppa64:Linux:*:*) |
1349 | +- echo hppa64-unknown-linux-gnu |
1350 | +- exit ;; |
1351 | +- s390:Linux:*:* | s390x:Linux:*:*) |
1352 | +- echo ${UNAME_MACHINE}-ibm-linux |
1353 | +- exit ;; |
1354 | +- sh64*:Linux:*:*) |
1355 | +- echo ${UNAME_MACHINE}-unknown-linux-gnu |
1356 | +- exit ;; |
1357 | +- sh*:Linux:*:*) |
1358 | +- echo ${UNAME_MACHINE}-unknown-linux-gnu |
1359 | +- exit ;; |
1360 | +- sparc:Linux:*:* | sparc64:Linux:*:*) |
1361 | +- echo ${UNAME_MACHINE}-unknown-linux-gnu |
1362 | +- exit ;; |
1363 | +- vax:Linux:*:*) |
1364 | +- echo ${UNAME_MACHINE}-dec-linux-gnu |
1365 | +- exit ;; |
1366 | +- x86_64:Linux:*:*) |
1367 | +- echo x86_64-unknown-linux-gnu |
1368 | +- exit ;; |
1369 | +- i*86:Linux:*:*) |
1370 | +- # The BFD linker knows what the default object file format is, so |
1371 | +- # first see if it will tell us. cd to the root directory to prevent |
1372 | +- # problems with other programs or directories called `ld' in the path. |
1373 | +- # Set LC_ALL=C to ensure ld outputs messages in English. |
1374 | +- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ |
1375 | +- | sed -ne '/supported targets:/!d |
1376 | +- s/[ ][ ]*/ /g |
1377 | +- s/.*supported targets: *// |
1378 | +- s/ .*// |
1379 | +- p'` |
1380 | +- case "$ld_supported_targets" in |
1381 | +- elf32-i386) |
1382 | +- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" |
1383 | +- ;; |
1384 | +- a.out-i386-linux) |
1385 | +- echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
1386 | +- exit ;; |
1387 | +- coff-i386) |
1388 | +- echo "${UNAME_MACHINE}-pc-linux-gnucoff" |
1389 | +- exit ;; |
1390 | +- "") |
1391 | +- # Either a pre-BFD a.out linker (linux-gnuoldld) or |
1392 | +- # one that does not give us useful --help. |
1393 | +- echo "${UNAME_MACHINE}-pc-linux-gnuoldld" |
1394 | +- exit ;; |
1395 | +- esac |
1396 | +- # Determine whether the default compiler is a.out or elf |
1397 | +- eval $set_cc_for_build |
1398 | +- sed 's/^ //' << EOF >$dummy.c |
1399 | +- #include <features.h> |
1400 | +- #ifdef __ELF__ |
1401 | +- # ifdef __GLIBC__ |
1402 | +- # if __GLIBC__ >= 2 |
1403 | +- LIBC=gnu |
1404 | +- # else |
1405 | +- LIBC=gnulibc1 |
1406 | +- # endif |
1407 | +- # else |
1408 | +- LIBC=gnulibc1 |
1409 | +- # endif |
1410 | +- #else |
1411 | +- #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun) |
1412 | +- LIBC=gnu |
1413 | +- #else |
1414 | +- LIBC=gnuaout |
1415 | +- #endif |
1416 | +- #endif |
1417 | +- #ifdef __dietlibc__ |
1418 | +- LIBC=dietlibc |
1419 | +- #endif |
1420 | +-EOF |
1421 | +- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' |
1422 | +- /^LIBC/{ |
1423 | +- s: ::g |
1424 | +- p |
1425 | +- }'`" |
1426 | +- test x"${LIBC}" != x && { |
1427 | +- echo "${UNAME_MACHINE}-pc-linux-${LIBC}" |
1428 | +- exit |
1429 | +- } |
1430 | +- test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } |
1431 | +- ;; |
1432 | +- i*86:DYNIX/ptx:4*:*) |
1433 | +- # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1434 | +- # earlier versions are messed up and put the nodename in both |
1435 | +- # sysname and nodename. |
1436 | +- echo i386-sequent-sysv4 |
1437 | +- exit ;; |
1438 | +- i*86:UNIX_SV:4.2MP:2.*) |
1439 | +- # Unixware is an offshoot of SVR4, but it has its own version |
1440 | +- # number series starting with 2... |
1441 | +- # I am not positive that other SVR4 systems won't match this, |
1442 | +- # I just have to hope. -- rms. |
1443 | +- # Use sysv4.2uw... so that sysv4* matches it. |
1444 | +- echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
1445 | +- exit ;; |
1446 | +- i*86:OS/2:*:*) |
1447 | +- # If we were able to find `uname', then EMX Unix compatibility |
1448 | +- # is probably installed. |
1449 | +- echo ${UNAME_MACHINE}-pc-os2-emx |
1450 | +- exit ;; |
1451 | +- i*86:XTS-300:*:STOP) |
1452 | +- echo ${UNAME_MACHINE}-unknown-stop |
1453 | +- exit ;; |
1454 | +- i*86:atheos:*:*) |
1455 | +- echo ${UNAME_MACHINE}-unknown-atheos |
1456 | +- exit ;; |
1457 | +- i*86:syllable:*:*) |
1458 | +- echo ${UNAME_MACHINE}-pc-syllable |
1459 | +- exit ;; |
1460 | +- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) |
1461 | +- echo i386-unknown-lynxos${UNAME_RELEASE} |
1462 | +- exit ;; |
1463 | +- i*86:*DOS:*:*) |
1464 | +- echo ${UNAME_MACHINE}-pc-msdosdjgpp |
1465 | +- exit ;; |
1466 | +- i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) |
1467 | +- UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` |
1468 | +- if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
1469 | +- echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} |
1470 | +- else |
1471 | +- echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
1472 | +- fi |
1473 | +- exit ;; |
1474 | +- i*86:*:5:[678]*) |
1475 | +- # UnixWare 7.x, OpenUNIX and OpenServer 6. |
1476 | +- case `/bin/uname -X | grep "^Machine"` in |
1477 | +- *486*) UNAME_MACHINE=i486 ;; |
1478 | +- *Pentium) UNAME_MACHINE=i586 ;; |
1479 | +- *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
1480 | +- esac |
1481 | +- echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} |
1482 | +- exit ;; |
1483 | +- i*86:*:3.2:*) |
1484 | +- if test -f /usr/options/cb.name; then |
1485 | +- UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
1486 | +- echo ${UNAME_MACHINE}-pc-isc$UNAME_REL |
1487 | +- elif /bin/uname -X 2>/dev/null >/dev/null ; then |
1488 | +- UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` |
1489 | +- (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 |
1490 | +- (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ |
1491 | +- && UNAME_MACHINE=i586 |
1492 | +- (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ |
1493 | +- && UNAME_MACHINE=i686 |
1494 | +- (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ |
1495 | +- && UNAME_MACHINE=i686 |
1496 | +- echo ${UNAME_MACHINE}-pc-sco$UNAME_REL |
1497 | +- else |
1498 | +- echo ${UNAME_MACHINE}-pc-sysv32 |
1499 | +- fi |
1500 | +- exit ;; |
1501 | +- pc:*:*:*) |
1502 | +- # Left here for compatibility: |
1503 | +- # uname -m prints for DJGPP always 'pc', but it prints nothing about |
1504 | +- # the processor, so we play safe by assuming i386. |
1505 | +- echo i386-pc-msdosdjgpp |
1506 | +- exit ;; |
1507 | +- Intel:Mach:3*:*) |
1508 | +- echo i386-pc-mach3 |
1509 | +- exit ;; |
1510 | +- paragon:*:*:*) |
1511 | +- echo i860-intel-osf1 |
1512 | +- exit ;; |
1513 | +- i860:*:4.*:*) # i860-SVR4 |
1514 | +- if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then |
1515 | +- echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 |
1516 | +- else # Add other i860-SVR4 vendors below as they are discovered. |
1517 | +- echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 |
1518 | +- fi |
1519 | +- exit ;; |
1520 | +- mini*:CTIX:SYS*5:*) |
1521 | +- # "miniframe" |
1522 | +- echo m68010-convergent-sysv |
1523 | +- exit ;; |
1524 | +- mc68k:UNIX:SYSTEM5:3.51m) |
1525 | +- echo m68k-convergent-sysv |
1526 | +- exit ;; |
1527 | +- M680?0:D-NIX:5.3:*) |
1528 | +- echo m68k-diab-dnix |
1529 | +- exit ;; |
1530 | +- M68*:*:R3V[5678]*:*) |
1531 | +- test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; |
1532 | +- 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) |
1533 | +- OS_REL='' |
1534 | +- test -r /etc/.relid \ |
1535 | +- && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1536 | +- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1537 | +- && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
1538 | +- /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1539 | +- && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
1540 | +- 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1541 | +- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1542 | +- && { echo i486-ncr-sysv4; exit; } ;; |
1543 | +- m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1544 | +- echo m68k-unknown-lynxos${UNAME_RELEASE} |
1545 | +- exit ;; |
1546 | +- mc68030:UNIX_System_V:4.*:*) |
1547 | +- echo m68k-atari-sysv4 |
1548 | +- exit ;; |
1549 | +- TSUNAMI:LynxOS:2.*:*) |
1550 | +- echo sparc-unknown-lynxos${UNAME_RELEASE} |
1551 | +- exit ;; |
1552 | +- rs6000:LynxOS:2.*:*) |
1553 | +- echo rs6000-unknown-lynxos${UNAME_RELEASE} |
1554 | +- exit ;; |
1555 | +- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) |
1556 | +- echo powerpc-unknown-lynxos${UNAME_RELEASE} |
1557 | +- exit ;; |
1558 | +- SM[BE]S:UNIX_SV:*:*) |
1559 | +- echo mips-dde-sysv${UNAME_RELEASE} |
1560 | +- exit ;; |
1561 | +- RM*:ReliantUNIX-*:*:*) |
1562 | +- echo mips-sni-sysv4 |
1563 | +- exit ;; |
1564 | +- RM*:SINIX-*:*:*) |
1565 | +- echo mips-sni-sysv4 |
1566 | +- exit ;; |
1567 | +- *:SINIX-*:*:*) |
1568 | +- if uname -p 2>/dev/null >/dev/null ; then |
1569 | +- UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1570 | +- echo ${UNAME_MACHINE}-sni-sysv4 |
1571 | +- else |
1572 | +- echo ns32k-sni-sysv |
1573 | +- fi |
1574 | +- exit ;; |
1575 | +- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
1576 | +- # says <Richard.M.Bartel@ccMail.Census.GOV> |
1577 | +- echo i586-unisys-sysv4 |
1578 | +- exit ;; |
1579 | +- *:UNIX_System_V:4*:FTX*) |
1580 | +- # From Gerald Hewes <hewes@openmarket.com>. |
1581 | +- # How about differentiating between stratus architectures? -djm |
1582 | +- echo hppa1.1-stratus-sysv4 |
1583 | +- exit ;; |
1584 | +- *:*:*:FTX*) |
1585 | +- # From seanf@swdc.stratus.com. |
1586 | +- echo i860-stratus-sysv4 |
1587 | +- exit ;; |
1588 | +- i*86:VOS:*:*) |
1589 | +- # From Paul.Green@stratus.com. |
1590 | +- echo ${UNAME_MACHINE}-stratus-vos |
1591 | +- exit ;; |
1592 | +- *:VOS:*:*) |
1593 | +- # From Paul.Green@stratus.com. |
1594 | +- echo hppa1.1-stratus-vos |
1595 | +- exit ;; |
1596 | +- mc68*:A/UX:*:*) |
1597 | +- echo m68k-apple-aux${UNAME_RELEASE} |
1598 | +- exit ;; |
1599 | +- news*:NEWS-OS:6*:*) |
1600 | +- echo mips-sony-newsos6 |
1601 | +- exit ;; |
1602 | +- R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1603 | +- if [ -d /usr/nec ]; then |
1604 | +- echo mips-nec-sysv${UNAME_RELEASE} |
1605 | +- else |
1606 | +- echo mips-unknown-sysv${UNAME_RELEASE} |
1607 | +- fi |
1608 | +- exit ;; |
1609 | +- BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1610 | +- echo powerpc-be-beos |
1611 | +- exit ;; |
1612 | +- BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
1613 | +- echo powerpc-apple-beos |
1614 | +- exit ;; |
1615 | +- BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
1616 | +- echo i586-pc-beos |
1617 | +- exit ;; |
1618 | +- SX-4:SUPER-UX:*:*) |
1619 | +- echo sx4-nec-superux${UNAME_RELEASE} |
1620 | +- exit ;; |
1621 | +- SX-5:SUPER-UX:*:*) |
1622 | +- echo sx5-nec-superux${UNAME_RELEASE} |
1623 | +- exit ;; |
1624 | +- SX-6:SUPER-UX:*:*) |
1625 | +- echo sx6-nec-superux${UNAME_RELEASE} |
1626 | +- exit ;; |
1627 | +- Power*:Rhapsody:*:*) |
1628 | +- echo powerpc-apple-rhapsody${UNAME_RELEASE} |
1629 | +- exit ;; |
1630 | +- *:Rhapsody:*:*) |
1631 | +- echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
1632 | +- exit ;; |
1633 | +- *:Darwin:*:*) |
1634 | +- UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1635 | +- case $UNAME_PROCESSOR in |
1636 | +- unknown) UNAME_PROCESSOR=powerpc ;; |
1637 | +- esac |
1638 | +- echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
1639 | +- exit ;; |
1640 | +- *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1641 | +- UNAME_PROCESSOR=`uname -p` |
1642 | +- if test "$UNAME_PROCESSOR" = "x86"; then |
1643 | +- UNAME_PROCESSOR=i386 |
1644 | +- UNAME_MACHINE=pc |
1645 | +- fi |
1646 | +- echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
1647 | +- exit ;; |
1648 | +- *:QNX:*:4*) |
1649 | +- echo i386-pc-qnx |
1650 | +- exit ;; |
1651 | +- NSE-?:NONSTOP_KERNEL:*:*) |
1652 | +- echo nse-tandem-nsk${UNAME_RELEASE} |
1653 | +- exit ;; |
1654 | +- NSR-?:NONSTOP_KERNEL:*:*) |
1655 | +- echo nsr-tandem-nsk${UNAME_RELEASE} |
1656 | +- exit ;; |
1657 | +- *:NonStop-UX:*:*) |
1658 | +- echo mips-compaq-nonstopux |
1659 | +- exit ;; |
1660 | +- BS2000:POSIX*:*:*) |
1661 | +- echo bs2000-siemens-sysv |
1662 | +- exit ;; |
1663 | +- DS/*:UNIX_System_V:*:*) |
1664 | +- echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} |
1665 | +- exit ;; |
1666 | +- *:Plan9:*:*) |
1667 | +- # "uname -m" is not consistent, so use $cputype instead. 386 |
1668 | +- # is converted to i386 for consistency with other x86 |
1669 | +- # operating systems. |
1670 | +- if test "$cputype" = "386"; then |
1671 | +- UNAME_MACHINE=i386 |
1672 | +- else |
1673 | +- UNAME_MACHINE="$cputype" |
1674 | +- fi |
1675 | +- echo ${UNAME_MACHINE}-unknown-plan9 |
1676 | +- exit ;; |
1677 | +- *:TOPS-10:*:*) |
1678 | +- echo pdp10-unknown-tops10 |
1679 | +- exit ;; |
1680 | +- *:TENEX:*:*) |
1681 | +- echo pdp10-unknown-tenex |
1682 | +- exit ;; |
1683 | +- KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) |
1684 | +- echo pdp10-dec-tops20 |
1685 | +- exit ;; |
1686 | +- XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) |
1687 | +- echo pdp10-xkl-tops20 |
1688 | +- exit ;; |
1689 | +- *:TOPS-20:*:*) |
1690 | +- echo pdp10-unknown-tops20 |
1691 | +- exit ;; |
1692 | +- *:ITS:*:*) |
1693 | +- echo pdp10-unknown-its |
1694 | +- exit ;; |
1695 | +- SEI:*:*:SEIUX) |
1696 | +- echo mips-sei-seiux${UNAME_RELEASE} |
1697 | +- exit ;; |
1698 | +- *:DragonFly:*:*) |
1699 | +- echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
1700 | +- exit ;; |
1701 | +- *:*VMS:*:*) |
1702 | +- UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1703 | +- case "${UNAME_MACHINE}" in |
1704 | +- A*) echo alpha-dec-vms ; exit ;; |
1705 | +- I*) echo ia64-dec-vms ; exit ;; |
1706 | +- V*) echo vax-dec-vms ; exit ;; |
1707 | +- esac ;; |
1708 | +- *:XENIX:*:SysV) |
1709 | +- echo i386-pc-xenix |
1710 | +- exit ;; |
1711 | +- i*86:skyos:*:*) |
1712 | +- echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' |
1713 | +- exit ;; |
1714 | +- i*86:rdos:*:*) |
1715 | +- echo ${UNAME_MACHINE}-pc-rdos |
1716 | +- exit ;; |
1717 | +-esac |
1718 | +- |
1719 | +-#echo '(No uname command or uname output not recognized.)' 1>&2 |
1720 | +-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
1721 | +- |
1722 | +-eval $set_cc_for_build |
1723 | +-cat >$dummy.c <<EOF |
1724 | +-#ifdef _SEQUENT_ |
1725 | +-# include <sys/types.h> |
1726 | +-# include <sys/utsname.h> |
1727 | +-#endif |
1728 | +-main () |
1729 | +-{ |
1730 | +-#if defined (sony) |
1731 | +-#if defined (MIPSEB) |
1732 | +- /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, |
1733 | +- I don't know.... */ |
1734 | +- printf ("mips-sony-bsd\n"); exit (0); |
1735 | +-#else |
1736 | +-#include <sys/param.h> |
1737 | +- printf ("m68k-sony-newsos%s\n", |
1738 | +-#ifdef NEWSOS4 |
1739 | +- "4" |
1740 | +-#else |
1741 | +- "" |
1742 | +-#endif |
1743 | +- ); exit (0); |
1744 | +-#endif |
1745 | +-#endif |
1746 | +- |
1747 | +-#if defined (__arm) && defined (__acorn) && defined (__unix) |
1748 | +- printf ("arm-acorn-riscix\n"); exit (0); |
1749 | +-#endif |
1750 | +- |
1751 | +-#if defined (hp300) && !defined (hpux) |
1752 | +- printf ("m68k-hp-bsd\n"); exit (0); |
1753 | +-#endif |
1754 | +- |
1755 | +-#if defined (NeXT) |
1756 | +-#if !defined (__ARCHITECTURE__) |
1757 | +-#define __ARCHITECTURE__ "m68k" |
1758 | +-#endif |
1759 | +- int version; |
1760 | +- version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; |
1761 | +- if (version < 4) |
1762 | +- printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); |
1763 | +- else |
1764 | +- printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); |
1765 | +- exit (0); |
1766 | +-#endif |
1767 | +- |
1768 | +-#if defined (MULTIMAX) || defined (n16) |
1769 | +-#if defined (UMAXV) |
1770 | +- printf ("ns32k-encore-sysv\n"); exit (0); |
1771 | +-#else |
1772 | +-#if defined (CMU) |
1773 | +- printf ("ns32k-encore-mach\n"); exit (0); |
1774 | +-#else |
1775 | +- printf ("ns32k-encore-bsd\n"); exit (0); |
1776 | +-#endif |
1777 | +-#endif |
1778 | +-#endif |
1779 | +- |
1780 | +-#if defined (__386BSD__) |
1781 | +- printf ("i386-pc-bsd\n"); exit (0); |
1782 | +-#endif |
1783 | +- |
1784 | +-#if defined (sequent) |
1785 | +-#if defined (i386) |
1786 | +- printf ("i386-sequent-dynix\n"); exit (0); |
1787 | +-#endif |
1788 | +-#if defined (ns32000) |
1789 | +- printf ("ns32k-sequent-dynix\n"); exit (0); |
1790 | +-#endif |
1791 | +-#endif |
1792 | +- |
1793 | +-#if defined (_SEQUENT_) |
1794 | +- struct utsname un; |
1795 | +- |
1796 | +- uname(&un); |
1797 | +- |
1798 | +- if (strncmp(un.version, "V2", 2) == 0) { |
1799 | +- printf ("i386-sequent-ptx2\n"); exit (0); |
1800 | +- } |
1801 | +- if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ |
1802 | +- printf ("i386-sequent-ptx1\n"); exit (0); |
1803 | +- } |
1804 | +- printf ("i386-sequent-ptx\n"); exit (0); |
1805 | +- |
1806 | +-#endif |
1807 | +- |
1808 | +-#if defined (vax) |
1809 | +-# if !defined (ultrix) |
1810 | +-# include <sys/param.h> |
1811 | +-# if defined (BSD) |
1812 | +-# if BSD == 43 |
1813 | +- printf ("vax-dec-bsd4.3\n"); exit (0); |
1814 | +-# else |
1815 | +-# if BSD == 199006 |
1816 | +- printf ("vax-dec-bsd4.3reno\n"); exit (0); |
1817 | +-# else |
1818 | +- printf ("vax-dec-bsd\n"); exit (0); |
1819 | +-# endif |
1820 | +-# endif |
1821 | +-# else |
1822 | +- printf ("vax-dec-bsd\n"); exit (0); |
1823 | +-# endif |
1824 | +-# else |
1825 | +- printf ("vax-dec-ultrix\n"); exit (0); |
1826 | +-# endif |
1827 | +-#endif |
1828 | +- |
1829 | +-#if defined (alliant) && defined (i860) |
1830 | +- printf ("i860-alliant-bsd\n"); exit (0); |
1831 | +-#endif |
1832 | +- |
1833 | +- exit (1); |
1834 | +-} |
1835 | +-EOF |
1836 | +- |
1837 | +-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && |
1838 | +- { echo "$SYSTEM_NAME"; exit; } |
1839 | +- |
1840 | +-# Apollos put the system type in the environment. |
1841 | +- |
1842 | +-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } |
1843 | +- |
1844 | +-# Convex versions that predate uname can use getsysinfo(1) |
1845 | +- |
1846 | +-if [ -x /usr/convex/getsysinfo ] |
1847 | +-then |
1848 | +- case `getsysinfo -f cpu_type` in |
1849 | +- c1*) |
1850 | +- echo c1-convex-bsd |
1851 | +- exit ;; |
1852 | +- c2*) |
1853 | +- if getsysinfo -f scalar_acc |
1854 | +- then echo c32-convex-bsd |
1855 | +- else echo c2-convex-bsd |
1856 | +- fi |
1857 | +- exit ;; |
1858 | +- c34*) |
1859 | +- echo c34-convex-bsd |
1860 | +- exit ;; |
1861 | +- c38*) |
1862 | +- echo c38-convex-bsd |
1863 | +- exit ;; |
1864 | +- c4*) |
1865 | +- echo c4-convex-bsd |
1866 | +- exit ;; |
1867 | +- esac |
1868 | +-fi |
1869 | +- |
1870 | +-cat >&2 <<EOF |
1871 | +-$0: unable to guess system type |
1872 | +- |
1873 | +-This script, last modified $timestamp, has failed to recognize |
1874 | +-the operating system you are using. It is advised that you |
1875 | +-download the most up to date version of the config scripts from |
1876 | +- |
1877 | +- http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess |
1878 | +-and |
1879 | +- http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub |
1880 | +- |
1881 | +-If the version you run ($0) is already up to date, please |
1882 | +-send the following data and any information you think might be |
1883 | +-pertinent to <config-patches@gnu.org> in order to provide the needed |
1884 | +-information to handle your system. |
1885 | +- |
1886 | +-config.guess timestamp = $timestamp |
1887 | +- |
1888 | +-uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1889 | +-uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1890 | +-uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1891 | +-uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1892 | +- |
1893 | +-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` |
1894 | +-/bin/uname -X = `(/bin/uname -X) 2>/dev/null` |
1895 | +- |
1896 | +-hostinfo = `(hostinfo) 2>/dev/null` |
1897 | +-/bin/universe = `(/bin/universe) 2>/dev/null` |
1898 | +-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` |
1899 | +-/bin/arch = `(/bin/arch) 2>/dev/null` |
1900 | +-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` |
1901 | +-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` |
1902 | +- |
1903 | +-UNAME_MACHINE = ${UNAME_MACHINE} |
1904 | +-UNAME_RELEASE = ${UNAME_RELEASE} |
1905 | +-UNAME_SYSTEM = ${UNAME_SYSTEM} |
1906 | +-UNAME_VERSION = ${UNAME_VERSION} |
1907 | +-EOF |
1908 | +- |
1909 | +-exit 1 |
1910 | +- |
1911 | +-# Local variables: |
1912 | +-# eval: (add-hook 'write-file-hooks 'time-stamp) |
1913 | +-# time-stamp-start: "timestamp='" |
1914 | +-# time-stamp-format: "%:y-%02m-%02d" |
1915 | +-# time-stamp-end: "'" |
1916 | +-# End: |
1917 | ++#! /bin/sh |
1918 | ++# Attempt to guess a canonical system name. |
1919 | ++# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
1920 | ++# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
1921 | ++# Free Software Foundation, Inc. |
1922 | ++ |
1923 | ++timestamp='2009-04-27' |
1924 | ++ |
1925 | ++# This file is free software; you can redistribute it and/or modify it |
1926 | ++# under the terms of the GNU General Public License as published by |
1927 | ++# the Free Software Foundation; either version 2 of the License, or |
1928 | ++# (at your option) any later version. |
1929 | ++# |
1930 | ++# This program is distributed in the hope that it will be useful, but |
1931 | ++# WITHOUT ANY WARRANTY; without even the implied warranty of |
1932 | ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1933 | ++# General Public License for more details. |
1934 | ++# |
1935 | ++# You should have received a copy of the GNU General Public License |
1936 | ++# along with this program; if not, write to the Free Software |
1937 | ++# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
1938 | ++# 02110-1301, USA. |
1939 | ++# |
1940 | ++# As a special exception to the GNU General Public License, if you |
1941 | ++# distribute this file as part of a program that contains a |
1942 | ++# configuration script generated by Autoconf, you may include it under |
1943 | ++# the same distribution terms that you use for the rest of that program. |
1944 | ++ |
1945 | ++ |
1946 | ++# Originally written by Per Bothner <per@bothner.com>. |
1947 | ++# Please send patches to <config-patches@gnu.org>. Submit a context |
1948 | ++# diff and a properly formatted ChangeLog entry. |
1949 | ++# |
1950 | ++# This script attempts to guess a canonical system name similar to |
1951 | ++# config.sub. If it succeeds, it prints the system name on stdout, and |
1952 | ++# exits with 0. Otherwise, it exits with 1. |
1953 | ++# |
1954 | ++# The plan is that this can be called by configure scripts if you |
1955 | ++# don't specify an explicit build system type. |
1956 | ++ |
1957 | ++me=`echo "$0" | sed -e 's,.*/,,'` |
1958 | ++ |
1959 | ++usage="\ |
1960 | ++Usage: $0 [OPTION] |
1961 | ++ |
1962 | ++Output the configuration name of the system \`$me' is run on. |
1963 | ++ |
1964 | ++Operation modes: |
1965 | ++ -h, --help print this help, then exit |
1966 | ++ -t, --time-stamp print date of last modification, then exit |
1967 | ++ -v, --version print version number, then exit |
1968 | ++ |
1969 | ++Report bugs and patches to <config-patches@gnu.org>." |
1970 | ++ |
1971 | ++version="\ |
1972 | ++GNU config.guess ($timestamp) |
1973 | ++ |
1974 | ++Originally written by Per Bothner. |
1975 | ++Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
1976 | ++2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
1977 | ++ |
1978 | ++This is free software; see the source for copying conditions. There is NO |
1979 | ++warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
1980 | ++ |
1981 | ++help=" |
1982 | ++Try \`$me --help' for more information." |
1983 | ++ |
1984 | ++# Parse command line |
1985 | ++while test $# -gt 0 ; do |
1986 | ++ case $1 in |
1987 | ++ --time-stamp | --time* | -t ) |
1988 | ++ echo "$timestamp" ; exit ;; |
1989 | ++ --version | -v ) |
1990 | ++ echo "$version" ; exit ;; |
1991 | ++ --help | --h* | -h ) |
1992 | ++ echo "$usage"; exit ;; |
1993 | ++ -- ) # Stop option processing |
1994 | ++ shift; break ;; |
1995 | ++ - ) # Use stdin as input. |
1996 | ++ break ;; |
1997 | ++ -* ) |
1998 | ++ echo "$me: invalid option $1$help" >&2 |
1999 | ++ exit 1 ;; |
2000 | ++ * ) |
2001 | ++ break ;; |
2002 | ++ esac |
2003 | ++done |
2004 | ++ |
2005 | ++if test $# != 0; then |
2006 | ++ echo "$me: too many arguments$help" >&2 |
2007 | ++ exit 1 |
2008 | ++fi |
2009 | ++ |
2010 | ++trap 'exit 1' 1 2 15 |
2011 | ++ |
2012 | ++# CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
2013 | ++# compiler to aid in system detection is discouraged as it requires |
2014 | ++# temporary files to be created and, as you can see below, it is a |
2015 | ++# headache to deal with in a portable fashion. |
2016 | ++ |
2017 | ++# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still |
2018 | ++# use `HOST_CC' if defined, but it is deprecated. |
2019 | ++ |
2020 | ++# Portable tmp directory creation inspired by the Autoconf team. |
2021 | ++ |
2022 | ++set_cc_for_build=' |
2023 | ++trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; |
2024 | ++trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; |
2025 | ++: ${TMPDIR=/tmp} ; |
2026 | ++ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
2027 | ++ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || |
2028 | ++ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || |
2029 | ++ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; |
2030 | ++dummy=$tmp/dummy ; |
2031 | ++tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; |
2032 | ++case $CC_FOR_BUILD,$HOST_CC,$CC in |
2033 | ++ ,,) echo "int x;" > $dummy.c ; |
2034 | ++ for c in cc gcc c89 c99 ; do |
2035 | ++ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then |
2036 | ++ CC_FOR_BUILD="$c"; break ; |
2037 | ++ fi ; |
2038 | ++ done ; |
2039 | ++ if test x"$CC_FOR_BUILD" = x ; then |
2040 | ++ CC_FOR_BUILD=no_compiler_found ; |
2041 | ++ fi |
2042 | ++ ;; |
2043 | ++ ,,*) CC_FOR_BUILD=$CC ;; |
2044 | ++ ,*,*) CC_FOR_BUILD=$HOST_CC ;; |
2045 | ++esac ; set_cc_for_build= ;' |
2046 | ++ |
2047 | ++# This is needed to find uname on a Pyramid OSx when run in the BSD universe. |
2048 | ++# (ghazi@noc.rutgers.edu 1994-08-24) |
2049 | ++if (test -f /.attbin/uname) >/dev/null 2>&1 ; then |
2050 | ++ PATH=$PATH:/.attbin ; export PATH |
2051 | ++fi |
2052 | ++ |
2053 | ++UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
2054 | ++UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
2055 | ++UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
2056 | ++UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
2057 | ++ |
2058 | ++# Note: order is significant - the case branches are not exclusive. |
2059 | ++ |
2060 | ++case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
2061 | ++ *:NetBSD:*:*) |
2062 | ++ # NetBSD (nbsd) targets should (where applicable) match one or |
2063 | ++ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, |
2064 | ++ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
2065 | ++ # switched to ELF, *-*-netbsd* would select the old |
2066 | ++ # object file format. This provides both forward |
2067 | ++ # compatibility and a consistent mechanism for selecting the |
2068 | ++ # object file format. |
2069 | ++ # |
2070 | ++ # Note: NetBSD doesn't particularly care about the vendor |
2071 | ++ # portion of the name. We always set it to "unknown". |
2072 | ++ sysctl="sysctl -n hw.machine_arch" |
2073 | ++ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ |
2074 | ++ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` |
2075 | ++ case "${UNAME_MACHINE_ARCH}" in |
2076 | ++ armeb) machine=armeb-unknown ;; |
2077 | ++ arm*) machine=arm-unknown ;; |
2078 | ++ sh3el) machine=shl-unknown ;; |
2079 | ++ sh3eb) machine=sh-unknown ;; |
2080 | ++ sh5el) machine=sh5le-unknown ;; |
2081 | ++ *) machine=${UNAME_MACHINE_ARCH}-unknown ;; |
2082 | ++ esac |
2083 | ++ # The Operating System including object format, if it has switched |
2084 | ++ # to ELF recently, or will in the future. |
2085 | ++ case "${UNAME_MACHINE_ARCH}" in |
2086 | ++ arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
2087 | ++ eval $set_cc_for_build |
2088 | ++ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
2089 | ++ | grep __ELF__ >/dev/null |
2090 | ++ then |
2091 | ++ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
2092 | ++ # Return netbsd for either. FIX? |
2093 | ++ os=netbsd |
2094 | ++ else |
2095 | ++ os=netbsdelf |
2096 | ++ fi |
2097 | ++ ;; |
2098 | ++ *) |
2099 | ++ os=netbsd |
2100 | ++ ;; |
2101 | ++ esac |
2102 | ++ # The OS release |
2103 | ++ # Debian GNU/NetBSD machines have a different userland, and |
2104 | ++ # thus, need a distinct triplet. However, they do not need |
2105 | ++ # kernel version information, so it can be replaced with a |
2106 | ++ # suitable tag, in the style of linux-gnu. |
2107 | ++ case "${UNAME_VERSION}" in |
2108 | ++ Debian*) |
2109 | ++ release='-gnu' |
2110 | ++ ;; |
2111 | ++ *) |
2112 | ++ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` |
2113 | ++ ;; |
2114 | ++ esac |
2115 | ++ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
2116 | ++ # contains redundant information, the shorter form: |
2117 | ++ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
2118 | ++ echo "${machine}-${os}${release}" |
2119 | ++ exit ;; |
2120 | ++ *:OpenBSD:*:*) |
2121 | ++ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
2122 | ++ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} |
2123 | ++ exit ;; |
2124 | ++ *:ekkoBSD:*:*) |
2125 | ++ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} |
2126 | ++ exit ;; |
2127 | ++ *:SolidBSD:*:*) |
2128 | ++ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} |
2129 | ++ exit ;; |
2130 | ++ macppc:MirBSD:*:*) |
2131 | ++ echo powerpc-unknown-mirbsd${UNAME_RELEASE} |
2132 | ++ exit ;; |
2133 | ++ *:MirBSD:*:*) |
2134 | ++ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} |
2135 | ++ exit ;; |
2136 | ++ alpha:OSF1:*:*) |
2137 | ++ case $UNAME_RELEASE in |
2138 | ++ *4.0) |
2139 | ++ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
2140 | ++ ;; |
2141 | ++ *5.*) |
2142 | ++ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` |
2143 | ++ ;; |
2144 | ++ esac |
2145 | ++ # According to Compaq, /usr/sbin/psrinfo has been available on |
2146 | ++ # OSF/1 and Tru64 systems produced since 1995. I hope that |
2147 | ++ # covers most systems running today. This code pipes the CPU |
2148 | ++ # types through head -n 1, so we only detect the type of CPU 0. |
2149 | ++ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` |
2150 | ++ case "$ALPHA_CPU_TYPE" in |
2151 | ++ "EV4 (21064)") |
2152 | ++ UNAME_MACHINE="alpha" ;; |
2153 | ++ "EV4.5 (21064)") |
2154 | ++ UNAME_MACHINE="alpha" ;; |
2155 | ++ "LCA4 (21066/21068)") |
2156 | ++ UNAME_MACHINE="alpha" ;; |
2157 | ++ "EV5 (21164)") |
2158 | ++ UNAME_MACHINE="alphaev5" ;; |
2159 | ++ "EV5.6 (21164A)") |
2160 | ++ UNAME_MACHINE="alphaev56" ;; |
2161 | ++ "EV5.6 (21164PC)") |
2162 | ++ UNAME_MACHINE="alphapca56" ;; |
2163 | ++ "EV5.7 (21164PC)") |
2164 | ++ UNAME_MACHINE="alphapca57" ;; |
2165 | ++ "EV6 (21264)") |
2166 | ++ UNAME_MACHINE="alphaev6" ;; |
2167 | ++ "EV6.7 (21264A)") |
2168 | ++ UNAME_MACHINE="alphaev67" ;; |
2169 | ++ "EV6.8CB (21264C)") |
2170 | ++ UNAME_MACHINE="alphaev68" ;; |
2171 | ++ "EV6.8AL (21264B)") |
2172 | ++ UNAME_MACHINE="alphaev68" ;; |
2173 | ++ "EV6.8CX (21264D)") |
2174 | ++ UNAME_MACHINE="alphaev68" ;; |
2175 | ++ "EV6.9A (21264/EV69A)") |
2176 | ++ UNAME_MACHINE="alphaev69" ;; |
2177 | ++ "EV7 (21364)") |
2178 | ++ UNAME_MACHINE="alphaev7" ;; |
2179 | ++ "EV7.9 (21364A)") |
2180 | ++ UNAME_MACHINE="alphaev79" ;; |
2181 | ++ esac |
2182 | ++ # A Pn.n version is a patched version. |
2183 | ++ # A Vn.n version is a released version. |
2184 | ++ # A Tn.n version is a released field test version. |
2185 | ++ # A Xn.n version is an unreleased experimental baselevel. |
2186 | ++ # 1.2 uses "1.2" for uname -r. |
2187 | ++ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
2188 | ++ exit ;; |
2189 | ++ Alpha\ *:Windows_NT*:*) |
2190 | ++ # How do we know it's Interix rather than the generic POSIX subsystem? |
2191 | ++ # Should we change UNAME_MACHINE based on the output of uname instead |
2192 | ++ # of the specific Alpha model? |
2193 | ++ echo alpha-pc-interix |
2194 | ++ exit ;; |
2195 | ++ 21064:Windows_NT:50:3) |
2196 | ++ echo alpha-dec-winnt3.5 |
2197 | ++ exit ;; |
2198 | ++ Amiga*:UNIX_System_V:4.0:*) |
2199 | ++ echo m68k-unknown-sysv4 |
2200 | ++ exit ;; |
2201 | ++ *:[Aa]miga[Oo][Ss]:*:*) |
2202 | ++ echo ${UNAME_MACHINE}-unknown-amigaos |
2203 | ++ exit ;; |
2204 | ++ *:[Mm]orph[Oo][Ss]:*:*) |
2205 | ++ echo ${UNAME_MACHINE}-unknown-morphos |
2206 | ++ exit ;; |
2207 | ++ *:OS/390:*:*) |
2208 | ++ echo i370-ibm-openedition |
2209 | ++ exit ;; |
2210 | ++ *:z/VM:*:*) |
2211 | ++ echo s390-ibm-zvmoe |
2212 | ++ exit ;; |
2213 | ++ *:OS400:*:*) |
2214 | ++ echo powerpc-ibm-os400 |
2215 | ++ exit ;; |
2216 | ++ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
2217 | ++ echo arm-acorn-riscix${UNAME_RELEASE} |
2218 | ++ exit ;; |
2219 | ++ arm:riscos:*:*|arm:RISCOS:*:*) |
2220 | ++ echo arm-unknown-riscos |
2221 | ++ exit ;; |
2222 | ++ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
2223 | ++ echo hppa1.1-hitachi-hiuxmpp |
2224 | ++ exit ;; |
2225 | ++ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) |
2226 | ++ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. |
2227 | ++ if test "`(/bin/universe) 2>/dev/null`" = att ; then |
2228 | ++ echo pyramid-pyramid-sysv3 |
2229 | ++ else |
2230 | ++ echo pyramid-pyramid-bsd |
2231 | ++ fi |
2232 | ++ exit ;; |
2233 | ++ NILE*:*:*:dcosx) |
2234 | ++ echo pyramid-pyramid-svr4 |
2235 | ++ exit ;; |
2236 | ++ DRS?6000:unix:4.0:6*) |
2237 | ++ echo sparc-icl-nx6 |
2238 | ++ exit ;; |
2239 | ++ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) |
2240 | ++ case `/usr/bin/uname -p` in |
2241 | ++ sparc) echo sparc-icl-nx7; exit ;; |
2242 | ++ esac ;; |
2243 | ++ s390x:SunOS:*:*) |
2244 | ++ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
2245 | ++ exit ;; |
2246 | ++ sun4H:SunOS:5.*:*) |
2247 | ++ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
2248 | ++ exit ;; |
2249 | ++ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
2250 | ++ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
2251 | ++ exit ;; |
2252 | ++ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
2253 | ++ eval $set_cc_for_build |
2254 | ++ SUN_ARCH="i386" |
2255 | ++ # If there is a compiler, see if it is configured for 64-bit objects. |
2256 | ++ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
2257 | ++ # This test works for both compilers. |
2258 | ++ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
2259 | ++ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ |
2260 | ++ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
2261 | ++ grep IS_64BIT_ARCH >/dev/null |
2262 | ++ then |
2263 | ++ SUN_ARCH="x86_64" |
2264 | ++ fi |
2265 | ++ fi |
2266 | ++ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
2267 | ++ exit ;; |
2268 | ++ sun4*:SunOS:6*:*) |
2269 | ++ # According to config.sub, this is the proper way to canonicalize |
2270 | ++ # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
2271 | ++ # it's likely to be more like Solaris than SunOS4. |
2272 | ++ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
2273 | ++ exit ;; |
2274 | ++ sun4*:SunOS:*:*) |
2275 | ++ case "`/usr/bin/arch -k`" in |
2276 | ++ Series*|S4*) |
2277 | ++ UNAME_RELEASE=`uname -v` |
2278 | ++ ;; |
2279 | ++ esac |
2280 | ++ # Japanese Language versions have a version number like `4.1.3-JL'. |
2281 | ++ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` |
2282 | ++ exit ;; |
2283 | ++ sun3*:SunOS:*:*) |
2284 | ++ echo m68k-sun-sunos${UNAME_RELEASE} |
2285 | ++ exit ;; |
2286 | ++ sun*:*:4.2BSD:*) |
2287 | ++ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
2288 | ++ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 |
2289 | ++ case "`/bin/arch`" in |
2290 | ++ sun3) |
2291 | ++ echo m68k-sun-sunos${UNAME_RELEASE} |
2292 | ++ ;; |
2293 | ++ sun4) |
2294 | ++ echo sparc-sun-sunos${UNAME_RELEASE} |
2295 | ++ ;; |
2296 | ++ esac |
2297 | ++ exit ;; |
2298 | ++ aushp:SunOS:*:*) |
2299 | ++ echo sparc-auspex-sunos${UNAME_RELEASE} |
2300 | ++ exit ;; |
2301 | ++ # The situation for MiNT is a little confusing. The machine name |
2302 | ++ # can be virtually everything (everything which is not |
2303 | ++ # "atarist" or "atariste" at least should have a processor |
2304 | ++ # > m68000). The system name ranges from "MiNT" over "FreeMiNT" |
2305 | ++ # to the lowercase version "mint" (or "freemint"). Finally |
2306 | ++ # the system name "TOS" denotes a system which is actually not |
2307 | ++ # MiNT. But MiNT is downward compatible to TOS, so this should |
2308 | ++ # be no problem. |
2309 | ++ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
2310 | ++ echo m68k-atari-mint${UNAME_RELEASE} |
2311 | ++ exit ;; |
2312 | ++ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
2313 | ++ echo m68k-atari-mint${UNAME_RELEASE} |
2314 | ++ exit ;; |
2315 | ++ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
2316 | ++ echo m68k-atari-mint${UNAME_RELEASE} |
2317 | ++ exit ;; |
2318 | ++ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
2319 | ++ echo m68k-milan-mint${UNAME_RELEASE} |
2320 | ++ exit ;; |
2321 | ++ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
2322 | ++ echo m68k-hades-mint${UNAME_RELEASE} |
2323 | ++ exit ;; |
2324 | ++ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
2325 | ++ echo m68k-unknown-mint${UNAME_RELEASE} |
2326 | ++ exit ;; |
2327 | ++ m68k:machten:*:*) |
2328 | ++ echo m68k-apple-machten${UNAME_RELEASE} |
2329 | ++ exit ;; |
2330 | ++ powerpc:machten:*:*) |
2331 | ++ echo powerpc-apple-machten${UNAME_RELEASE} |
2332 | ++ exit ;; |
2333 | ++ RISC*:Mach:*:*) |
2334 | ++ echo mips-dec-mach_bsd4.3 |
2335 | ++ exit ;; |
2336 | ++ RISC*:ULTRIX:*:*) |
2337 | ++ echo mips-dec-ultrix${UNAME_RELEASE} |
2338 | ++ exit ;; |
2339 | ++ VAX*:ULTRIX*:*:*) |
2340 | ++ echo vax-dec-ultrix${UNAME_RELEASE} |
2341 | ++ exit ;; |
2342 | ++ 2020:CLIX:*:* | 2430:CLIX:*:*) |
2343 | ++ echo clipper-intergraph-clix${UNAME_RELEASE} |
2344 | ++ exit ;; |
2345 | ++ mips:*:*:UMIPS | mips:*:*:RISCos) |
2346 | ++ eval $set_cc_for_build |
2347 | ++ sed 's/^ //' << EOF >$dummy.c |
2348 | ++#ifdef __cplusplus |
2349 | ++#include <stdio.h> /* for printf() prototype */ |
2350 | ++ int main (int argc, char *argv[]) { |
2351 | ++#else |
2352 | ++ int main (argc, argv) int argc; char *argv[]; { |
2353 | ++#endif |
2354 | ++ #if defined (host_mips) && defined (MIPSEB) |
2355 | ++ #if defined (SYSTYPE_SYSV) |
2356 | ++ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); |
2357 | ++ #endif |
2358 | ++ #if defined (SYSTYPE_SVR4) |
2359 | ++ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); |
2360 | ++ #endif |
2361 | ++ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) |
2362 | ++ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); |
2363 | ++ #endif |
2364 | ++ #endif |
2365 | ++ exit (-1); |
2366 | ++ } |
2367 | ++EOF |
2368 | ++ $CC_FOR_BUILD -o $dummy $dummy.c && |
2369 | ++ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && |
2370 | ++ SYSTEM_NAME=`$dummy $dummyarg` && |
2371 | ++ { echo "$SYSTEM_NAME"; exit; } |
2372 | ++ echo mips-mips-riscos${UNAME_RELEASE} |
2373 | ++ exit ;; |
2374 | ++ Motorola:PowerMAX_OS:*:*) |
2375 | ++ echo powerpc-motorola-powermax |
2376 | ++ exit ;; |
2377 | ++ Motorola:*:4.3:PL8-*) |
2378 | ++ echo powerpc-harris-powermax |
2379 | ++ exit ;; |
2380 | ++ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) |
2381 | ++ echo powerpc-harris-powermax |
2382 | ++ exit ;; |
2383 | ++ Night_Hawk:Power_UNIX:*:*) |
2384 | ++ echo powerpc-harris-powerunix |
2385 | ++ exit ;; |
2386 | ++ m88k:CX/UX:7*:*) |
2387 | ++ echo m88k-harris-cxux7 |
2388 | ++ exit ;; |
2389 | ++ m88k:*:4*:R4*) |
2390 | ++ echo m88k-motorola-sysv4 |
2391 | ++ exit ;; |
2392 | ++ m88k:*:3*:R3*) |
2393 | ++ echo m88k-motorola-sysv3 |
2394 | ++ exit ;; |
2395 | ++ AViiON:dgux:*:*) |
2396 | ++ # DG/UX returns AViiON for all architectures |
2397 | ++ UNAME_PROCESSOR=`/usr/bin/uname -p` |
2398 | ++ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
2399 | ++ then |
2400 | ++ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
2401 | ++ [ ${TARGET_BINARY_INTERFACE}x = x ] |
2402 | ++ then |
2403 | ++ echo m88k-dg-dgux${UNAME_RELEASE} |
2404 | ++ else |
2405 | ++ echo m88k-dg-dguxbcs${UNAME_RELEASE} |
2406 | ++ fi |
2407 | ++ else |
2408 | ++ echo i586-dg-dgux${UNAME_RELEASE} |
2409 | ++ fi |
2410 | ++ exit ;; |
2411 | ++ M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
2412 | ++ echo m88k-dolphin-sysv3 |
2413 | ++ exit ;; |
2414 | ++ M88*:*:R3*:*) |
2415 | ++ # Delta 88k system running SVR3 |
2416 | ++ echo m88k-motorola-sysv3 |
2417 | ++ exit ;; |
2418 | ++ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) |
2419 | ++ echo m88k-tektronix-sysv3 |
2420 | ++ exit ;; |
2421 | ++ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) |
2422 | ++ echo m68k-tektronix-bsd |
2423 | ++ exit ;; |
2424 | ++ *:IRIX*:*:*) |
2425 | ++ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` |
2426 | ++ exit ;; |
2427 | ++ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
2428 | ++ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
2429 | ++ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' |
2430 | ++ i*86:AIX:*:*) |
2431 | ++ echo i386-ibm-aix |
2432 | ++ exit ;; |
2433 | ++ ia64:AIX:*:*) |
2434 | ++ if [ -x /usr/bin/oslevel ] ; then |
2435 | ++ IBM_REV=`/usr/bin/oslevel` |
2436 | ++ else |
2437 | ++ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} |
2438 | ++ fi |
2439 | ++ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} |
2440 | ++ exit ;; |
2441 | ++ *:AIX:2:3) |
2442 | ++ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
2443 | ++ eval $set_cc_for_build |
2444 | ++ sed 's/^ //' << EOF >$dummy.c |
2445 | ++ #include <sys/systemcfg.h> |
2446 | ++ |
2447 | ++ main() |
2448 | ++ { |
2449 | ++ if (!__power_pc()) |
2450 | ++ exit(1); |
2451 | ++ puts("powerpc-ibm-aix3.2.5"); |
2452 | ++ exit(0); |
2453 | ++ } |
2454 | ++EOF |
2455 | ++ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` |
2456 | ++ then |
2457 | ++ echo "$SYSTEM_NAME" |
2458 | ++ else |
2459 | ++ echo rs6000-ibm-aix3.2.5 |
2460 | ++ fi |
2461 | ++ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then |
2462 | ++ echo rs6000-ibm-aix3.2.4 |
2463 | ++ else |
2464 | ++ echo rs6000-ibm-aix3.2 |
2465 | ++ fi |
2466 | ++ exit ;; |
2467 | ++ *:AIX:*:[456]) |
2468 | ++ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
2469 | ++ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
2470 | ++ IBM_ARCH=rs6000 |
2471 | ++ else |
2472 | ++ IBM_ARCH=powerpc |
2473 | ++ fi |
2474 | ++ if [ -x /usr/bin/oslevel ] ; then |
2475 | ++ IBM_REV=`/usr/bin/oslevel` |
2476 | ++ else |
2477 | ++ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} |
2478 | ++ fi |
2479 | ++ echo ${IBM_ARCH}-ibm-aix${IBM_REV} |
2480 | ++ exit ;; |
2481 | ++ *:AIX:*:*) |
2482 | ++ echo rs6000-ibm-aix |
2483 | ++ exit ;; |
2484 | ++ ibmrt:4.4BSD:*|romp-ibm:BSD:*) |
2485 | ++ echo romp-ibm-bsd4.4 |
2486 | ++ exit ;; |
2487 | ++ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and |
2488 | ++ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to |
2489 | ++ exit ;; # report: romp-ibm BSD 4.3 |
2490 | ++ *:BOSX:*:*) |
2491 | ++ echo rs6000-bull-bosx |
2492 | ++ exit ;; |
2493 | ++ DPX/2?00:B.O.S.:*:*) |
2494 | ++ echo m68k-bull-sysv3 |
2495 | ++ exit ;; |
2496 | ++ 9000/[34]??:4.3bsd:1.*:*) |
2497 | ++ echo m68k-hp-bsd |
2498 | ++ exit ;; |
2499 | ++ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) |
2500 | ++ echo m68k-hp-bsd4.4 |
2501 | ++ exit ;; |
2502 | ++ 9000/[34678]??:HP-UX:*:*) |
2503 | ++ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
2504 | ++ case "${UNAME_MACHINE}" in |
2505 | ++ 9000/31? ) HP_ARCH=m68000 ;; |
2506 | ++ 9000/[34]?? ) HP_ARCH=m68k ;; |
2507 | ++ 9000/[678][0-9][0-9]) |
2508 | ++ if [ -x /usr/bin/getconf ]; then |
2509 | ++ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
2510 | ++ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
2511 | ++ case "${sc_cpu_version}" in |
2512 | ++ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
2513 | ++ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 |
2514 | ++ 532) # CPU_PA_RISC2_0 |
2515 | ++ case "${sc_kernel_bits}" in |
2516 | ++ 32) HP_ARCH="hppa2.0n" ;; |
2517 | ++ 64) HP_ARCH="hppa2.0w" ;; |
2518 | ++ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
2519 | ++ esac ;; |
2520 | ++ esac |
2521 | ++ fi |
2522 | ++ if [ "${HP_ARCH}" = "" ]; then |
2523 | ++ eval $set_cc_for_build |
2524 | ++ sed 's/^ //' << EOF >$dummy.c |
2525 | ++ |
2526 | ++ #define _HPUX_SOURCE |
2527 | ++ #include <stdlib.h> |
2528 | ++ #include <unistd.h> |
2529 | ++ |
2530 | ++ int main () |
2531 | ++ { |
2532 | ++ #if defined(_SC_KERNEL_BITS) |
2533 | ++ long bits = sysconf(_SC_KERNEL_BITS); |
2534 | ++ #endif |
2535 | ++ long cpu = sysconf (_SC_CPU_VERSION); |
2536 | ++ |
2537 | ++ switch (cpu) |
2538 | ++ { |
2539 | ++ case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
2540 | ++ case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
2541 | ++ case CPU_PA_RISC2_0: |
2542 | ++ #if defined(_SC_KERNEL_BITS) |
2543 | ++ switch (bits) |
2544 | ++ { |
2545 | ++ case 64: puts ("hppa2.0w"); break; |
2546 | ++ case 32: puts ("hppa2.0n"); break; |
2547 | ++ default: puts ("hppa2.0"); break; |
2548 | ++ } break; |
2549 | ++ #else /* !defined(_SC_KERNEL_BITS) */ |
2550 | ++ puts ("hppa2.0"); break; |
2551 | ++ #endif |
2552 | ++ default: puts ("hppa1.0"); break; |
2553 | ++ } |
2554 | ++ exit (0); |
2555 | ++ } |
2556 | ++EOF |
2557 | ++ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
2558 | ++ test -z "$HP_ARCH" && HP_ARCH=hppa |
2559 | ++ fi ;; |
2560 | ++ esac |
2561 | ++ if [ ${HP_ARCH} = "hppa2.0w" ] |
2562 | ++ then |
2563 | ++ eval $set_cc_for_build |
2564 | ++ |
2565 | ++ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating |
2566 | ++ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler |
2567 | ++ # generating 64-bit code. GNU and HP use different nomenclature: |
2568 | ++ # |
2569 | ++ # $ CC_FOR_BUILD=cc ./config.guess |
2570 | ++ # => hppa2.0w-hp-hpux11.23 |
2571 | ++ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
2572 | ++ # => hppa64-hp-hpux11.23 |
2573 | ++ |
2574 | ++ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | |
2575 | ++ grep __LP64__ >/dev/null |
2576 | ++ then |
2577 | ++ HP_ARCH="hppa2.0w" |
2578 | ++ else |
2579 | ++ HP_ARCH="hppa64" |
2580 | ++ fi |
2581 | ++ fi |
2582 | ++ echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
2583 | ++ exit ;; |
2584 | ++ ia64:HP-UX:*:*) |
2585 | ++ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
2586 | ++ echo ia64-hp-hpux${HPUX_REV} |
2587 | ++ exit ;; |
2588 | ++ 3050*:HI-UX:*:*) |
2589 | ++ eval $set_cc_for_build |
2590 | ++ sed 's/^ //' << EOF >$dummy.c |
2591 | ++ #include <unistd.h> |
2592 | ++ int |
2593 | ++ main () |
2594 | ++ { |
2595 | ++ long cpu = sysconf (_SC_CPU_VERSION); |
2596 | ++ /* The order matters, because CPU_IS_HP_MC68K erroneously returns |
2597 | ++ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct |
2598 | ++ results, however. */ |
2599 | ++ if (CPU_IS_PA_RISC (cpu)) |
2600 | ++ { |
2601 | ++ switch (cpu) |
2602 | ++ { |
2603 | ++ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; |
2604 | ++ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; |
2605 | ++ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; |
2606 | ++ default: puts ("hppa-hitachi-hiuxwe2"); break; |
2607 | ++ } |
2608 | ++ } |
2609 | ++ else if (CPU_IS_HP_MC68K (cpu)) |
2610 | ++ puts ("m68k-hitachi-hiuxwe2"); |
2611 | ++ else puts ("unknown-hitachi-hiuxwe2"); |
2612 | ++ exit (0); |
2613 | ++ } |
2614 | ++EOF |
2615 | ++ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && |
2616 | ++ { echo "$SYSTEM_NAME"; exit; } |
2617 | ++ echo unknown-hitachi-hiuxwe2 |
2618 | ++ exit ;; |
2619 | ++ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) |
2620 | ++ echo hppa1.1-hp-bsd |
2621 | ++ exit ;; |
2622 | ++ 9000/8??:4.3bsd:*:*) |
2623 | ++ echo hppa1.0-hp-bsd |
2624 | ++ exit ;; |
2625 | ++ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) |
2626 | ++ echo hppa1.0-hp-mpeix |
2627 | ++ exit ;; |
2628 | ++ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) |
2629 | ++ echo hppa1.1-hp-osf |
2630 | ++ exit ;; |
2631 | ++ hp8??:OSF1:*:*) |
2632 | ++ echo hppa1.0-hp-osf |
2633 | ++ exit ;; |
2634 | ++ i*86:OSF1:*:*) |
2635 | ++ if [ -x /usr/sbin/sysversion ] ; then |
2636 | ++ echo ${UNAME_MACHINE}-unknown-osf1mk |
2637 | ++ else |
2638 | ++ echo ${UNAME_MACHINE}-unknown-osf1 |
2639 | ++ fi |
2640 | ++ exit ;; |
2641 | ++ parisc*:Lites*:*:*) |
2642 | ++ echo hppa1.1-hp-lites |
2643 | ++ exit ;; |
2644 | ++ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
2645 | ++ echo c1-convex-bsd |
2646 | ++ exit ;; |
2647 | ++ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
2648 | ++ if getsysinfo -f scalar_acc |
2649 | ++ then echo c32-convex-bsd |
2650 | ++ else echo c2-convex-bsd |
2651 | ++ fi |
2652 | ++ exit ;; |
2653 | ++ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
2654 | ++ echo c34-convex-bsd |
2655 | ++ exit ;; |
2656 | ++ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
2657 | ++ echo c38-convex-bsd |
2658 | ++ exit ;; |
2659 | ++ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
2660 | ++ echo c4-convex-bsd |
2661 | ++ exit ;; |
2662 | ++ CRAY*Y-MP:*:*:*) |
2663 | ++ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
2664 | ++ exit ;; |
2665 | ++ CRAY*[A-Z]90:*:*:*) |
2666 | ++ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
2667 | ++ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
2668 | ++ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ |
2669 | ++ -e 's/\.[^.]*$/.X/' |
2670 | ++ exit ;; |
2671 | ++ CRAY*TS:*:*:*) |
2672 | ++ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
2673 | ++ exit ;; |
2674 | ++ CRAY*T3E:*:*:*) |
2675 | ++ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
2676 | ++ exit ;; |
2677 | ++ CRAY*SV1:*:*:*) |
2678 | ++ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
2679 | ++ exit ;; |
2680 | ++ *:UNICOS/mp:*:*) |
2681 | ++ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
2682 | ++ exit ;; |
2683 | ++ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
2684 | ++ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
2685 | ++ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
2686 | ++ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
2687 | ++ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
2688 | ++ exit ;; |
2689 | ++ 5000:UNIX_System_V:4.*:*) |
2690 | ++ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
2691 | ++ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` |
2692 | ++ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
2693 | ++ exit ;; |
2694 | ++ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
2695 | ++ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
2696 | ++ exit ;; |
2697 | ++ sparc*:BSD/OS:*:*) |
2698 | ++ echo sparc-unknown-bsdi${UNAME_RELEASE} |
2699 | ++ exit ;; |
2700 | ++ *:BSD/OS:*:*) |
2701 | ++ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
2702 | ++ exit ;; |
2703 | ++ *:FreeBSD:*:*) |
2704 | ++ case ${UNAME_MACHINE} in |
2705 | ++ pc98) |
2706 | ++ echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
2707 | ++ amd64) |
2708 | ++ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
2709 | ++ *) |
2710 | ++ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
2711 | ++ esac |
2712 | ++ exit ;; |
2713 | ++ i*:CYGWIN*:*) |
2714 | ++ echo ${UNAME_MACHINE}-pc-cygwin |
2715 | ++ exit ;; |
2716 | ++ *:MINGW*:*) |
2717 | ++ echo ${UNAME_MACHINE}-pc-mingw32 |
2718 | ++ exit ;; |
2719 | ++ i*:windows32*:*) |
2720 | ++ # uname -m includes "-pc" on this system. |
2721 | ++ echo ${UNAME_MACHINE}-mingw32 |
2722 | ++ exit ;; |
2723 | ++ i*:PW*:*) |
2724 | ++ echo ${UNAME_MACHINE}-pc-pw32 |
2725 | ++ exit ;; |
2726 | ++ *:Interix*:[3456]*) |
2727 | ++ case ${UNAME_MACHINE} in |
2728 | ++ x86) |
2729 | ++ echo i586-pc-interix${UNAME_RELEASE} |
2730 | ++ exit ;; |
2731 | ++ EM64T | authenticamd | genuineintel) |
2732 | ++ echo x86_64-unknown-interix${UNAME_RELEASE} |
2733 | ++ exit ;; |
2734 | ++ IA64) |
2735 | ++ echo ia64-unknown-interix${UNAME_RELEASE} |
2736 | ++ exit ;; |
2737 | ++ esac ;; |
2738 | ++ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
2739 | ++ echo i${UNAME_MACHINE}-pc-mks |
2740 | ++ exit ;; |
2741 | ++ i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
2742 | ++ # How do we know it's Interix rather than the generic POSIX subsystem? |
2743 | ++ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
2744 | ++ # UNAME_MACHINE based on the output of uname instead of i386? |
2745 | ++ echo i586-pc-interix |
2746 | ++ exit ;; |
2747 | ++ i*:UWIN*:*) |
2748 | ++ echo ${UNAME_MACHINE}-pc-uwin |
2749 | ++ exit ;; |
2750 | ++ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) |
2751 | ++ echo x86_64-unknown-cygwin |
2752 | ++ exit ;; |
2753 | ++ p*:CYGWIN*:*) |
2754 | ++ echo powerpcle-unknown-cygwin |
2755 | ++ exit ;; |
2756 | ++ prep*:SunOS:5.*:*) |
2757 | ++ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
2758 | ++ exit ;; |
2759 | ++ *:GNU:*:*) |
2760 | ++ # the GNU system |
2761 | ++ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
2762 | ++ exit ;; |
2763 | ++ *:GNU/*:*:*) |
2764 | ++ # other systems with GNU libc and userland |
2765 | ++ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu |
2766 | ++ exit ;; |
2767 | ++ i*86:Minix:*:*) |
2768 | ++ echo ${UNAME_MACHINE}-pc-minix |
2769 | ++ exit ;; |
2770 | ++ arm*:Linux:*:*) |
2771 | ++ eval $set_cc_for_build |
2772 | ++ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
2773 | ++ | grep -q __ARM_EABI__ |
2774 | ++ then |
2775 | ++ echo ${UNAME_MACHINE}-unknown-linux-gnu |
2776 | ++ else |
2777 | ++ echo ${UNAME_MACHINE}-unknown-linux-gnueabi |
2778 | ++ fi |
2779 | ++ exit ;; |
2780 | ++ avr32*:Linux:*:*) |
2781 | ++ echo ${UNAME_MACHINE}-unknown-linux-gnu |
2782 | ++ exit ;; |
2783 | ++ cris:Linux:*:*) |
2784 | ++ echo cris-axis-linux-gnu |
2785 | ++ exit ;; |
2786 | ++ crisv32:Linux:*:*) |
2787 | ++ echo crisv32-axis-linux-gnu |
2788 | ++ exit ;; |
2789 | ++ frv:Linux:*:*) |
2790 | ++ echo frv-unknown-linux-gnu |
2791 | ++ exit ;; |
2792 | ++ ia64:Linux:*:*) |
2793 | ++ echo ${UNAME_MACHINE}-unknown-linux-gnu |
2794 | ++ exit ;; |
2795 | ++ m32r*:Linux:*:*) |
2796 | ++ echo ${UNAME_MACHINE}-unknown-linux-gnu |
2797 | ++ exit ;; |
2798 | ++ m68*:Linux:*:*) |
2799 | ++ echo ${UNAME_MACHINE}-unknown-linux-gnu |
2800 | ++ exit ;; |
2801 | ++ mips:Linux:*:*) |
2802 | ++ eval $set_cc_for_build |
2803 | ++ sed 's/^ //' << EOF >$dummy.c |
2804 | ++ #undef CPU |
2805 | ++ #undef mips |
2806 | ++ #undef mipsel |
2807 | ++ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
2808 | ++ CPU=mipsel |
2809 | ++ #else |
2810 | ++ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
2811 | ++ CPU=mips |
2812 | ++ #else |
2813 | ++ CPU= |
2814 | ++ #endif |
2815 | ++ #endif |
2816 | ++EOF |
2817 | ++ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' |
2818 | ++ /^CPU/{ |
2819 | ++ s: ::g |
2820 | ++ p |
2821 | ++ }'`" |
2822 | ++ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
2823 | ++ ;; |
2824 | ++ mips64:Linux:*:*) |
2825 | ++ eval $set_cc_for_build |
2826 | ++ sed 's/^ //' << EOF >$dummy.c |
2827 | ++ #undef CPU |
2828 | ++ #undef mips64 |
2829 | ++ #undef mips64el |
2830 | ++ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
2831 | ++ CPU=mips64el |
2832 | ++ #else |
2833 | ++ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
2834 | ++ CPU=mips64 |
2835 | ++ #else |
2836 | ++ CPU= |
2837 | ++ #endif |
2838 | ++ #endif |
2839 | ++EOF |
2840 | ++ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' |
2841 | ++ /^CPU/{ |
2842 | ++ s: ::g |
2843 | ++ p |
2844 | ++ }'`" |
2845 | ++ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
2846 | ++ ;; |
2847 | ++ or32:Linux:*:*) |
2848 | ++ echo or32-unknown-linux-gnu |
2849 | ++ exit ;; |
2850 | ++ ppc:Linux:*:*) |
2851 | ++ echo powerpc-unknown-linux-gnu |
2852 | ++ exit ;; |
2853 | ++ ppc64:Linux:*:*) |
2854 | ++ echo powerpc64-unknown-linux-gnu |
2855 | ++ exit ;; |
2856 | ++ alpha:Linux:*:*) |
2857 | ++ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
2858 | ++ EV5) UNAME_MACHINE=alphaev5 ;; |
2859 | ++ EV56) UNAME_MACHINE=alphaev56 ;; |
2860 | ++ PCA56) UNAME_MACHINE=alphapca56 ;; |
2861 | ++ PCA57) UNAME_MACHINE=alphapca56 ;; |
2862 | ++ EV6) UNAME_MACHINE=alphaev6 ;; |
2863 | ++ EV67) UNAME_MACHINE=alphaev67 ;; |
2864 | ++ EV68*) UNAME_MACHINE=alphaev68 ;; |
2865 | ++ esac |
2866 | ++ objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null |
2867 | ++ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
2868 | ++ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
2869 | ++ exit ;; |
2870 | ++ padre:Linux:*:*) |
2871 | ++ echo sparc-unknown-linux-gnu |
2872 | ++ exit ;; |
2873 | ++ parisc:Linux:*:* | hppa:Linux:*:*) |
2874 | ++ # Look for CPU level |
2875 | ++ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
2876 | ++ PA7*) echo hppa1.1-unknown-linux-gnu ;; |
2877 | ++ PA8*) echo hppa2.0-unknown-linux-gnu ;; |
2878 | ++ *) echo hppa-unknown-linux-gnu ;; |
2879 | ++ esac |
2880 | ++ exit ;; |
2881 | ++ parisc64:Linux:*:* | hppa64:Linux:*:*) |
2882 | ++ echo hppa64-unknown-linux-gnu |
2883 | ++ exit ;; |
2884 | ++ s390:Linux:*:* | s390x:Linux:*:*) |
2885 | ++ echo ${UNAME_MACHINE}-ibm-linux |
2886 | ++ exit ;; |
2887 | ++ sh64*:Linux:*:*) |
2888 | ++ echo ${UNAME_MACHINE}-unknown-linux-gnu |
2889 | ++ exit ;; |
2890 | ++ sh*:Linux:*:*) |
2891 | ++ echo ${UNAME_MACHINE}-unknown-linux-gnu |
2892 | ++ exit ;; |
2893 | ++ sparc:Linux:*:* | sparc64:Linux:*:*) |
2894 | ++ echo ${UNAME_MACHINE}-unknown-linux-gnu |
2895 | ++ exit ;; |
2896 | ++ vax:Linux:*:*) |
2897 | ++ echo ${UNAME_MACHINE}-dec-linux-gnu |
2898 | ++ exit ;; |
2899 | ++ x86_64:Linux:*:*) |
2900 | ++ echo x86_64-unknown-linux-gnu |
2901 | ++ exit ;; |
2902 | ++ xtensa*:Linux:*:*) |
2903 | ++ echo ${UNAME_MACHINE}-unknown-linux-gnu |
2904 | ++ exit ;; |
2905 | ++ i*86:Linux:*:*) |
2906 | ++ # The BFD linker knows what the default object file format is, so |
2907 | ++ # first see if it will tell us. cd to the root directory to prevent |
2908 | ++ # problems with other programs or directories called `ld' in the path. |
2909 | ++ # Set LC_ALL=C to ensure ld outputs messages in English. |
2910 | ++ ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ |
2911 | ++ | sed -ne '/supported targets:/!d |
2912 | ++ s/[ ][ ]*/ /g |
2913 | ++ s/.*supported targets: *// |
2914 | ++ s/ .*// |
2915 | ++ p'` |
2916 | ++ case "$ld_supported_targets" in |
2917 | ++ elf32-i386) |
2918 | ++ TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" |
2919 | ++ ;; |
2920 | ++ a.out-i386-linux) |
2921 | ++ echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
2922 | ++ exit ;; |
2923 | ++ "") |
2924 | ++ # Either a pre-BFD a.out linker (linux-gnuoldld) or |
2925 | ++ # one that does not give us useful --help. |
2926 | ++ echo "${UNAME_MACHINE}-pc-linux-gnuoldld" |
2927 | ++ exit ;; |
2928 | ++ esac |
2929 | ++ # Determine whether the default compiler is a.out or elf |
2930 | ++ eval $set_cc_for_build |
2931 | ++ sed 's/^ //' << EOF >$dummy.c |
2932 | ++ #include <features.h> |
2933 | ++ #ifdef __ELF__ |
2934 | ++ # ifdef __GLIBC__ |
2935 | ++ # if __GLIBC__ >= 2 |
2936 | ++ LIBC=gnu |
2937 | ++ # else |
2938 | ++ LIBC=gnulibc1 |
2939 | ++ # endif |
2940 | ++ # else |
2941 | ++ LIBC=gnulibc1 |
2942 | ++ # endif |
2943 | ++ #else |
2944 | ++ #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) |
2945 | ++ LIBC=gnu |
2946 | ++ #else |
2947 | ++ LIBC=gnuaout |
2948 | ++ #endif |
2949 | ++ #endif |
2950 | ++ #ifdef __dietlibc__ |
2951 | ++ LIBC=dietlibc |
2952 | ++ #endif |
2953 | ++EOF |
2954 | ++ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' |
2955 | ++ /^LIBC/{ |
2956 | ++ s: ::g |
2957 | ++ p |
2958 | ++ }'`" |
2959 | ++ test x"${LIBC}" != x && { |
2960 | ++ echo "${UNAME_MACHINE}-pc-linux-${LIBC}" |
2961 | ++ exit |
2962 | ++ } |
2963 | ++ test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } |
2964 | ++ ;; |
2965 | ++ i*86:DYNIX/ptx:4*:*) |
2966 | ++ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
2967 | ++ # earlier versions are messed up and put the nodename in both |
2968 | ++ # sysname and nodename. |
2969 | ++ echo i386-sequent-sysv4 |
2970 | ++ exit ;; |
2971 | ++ i*86:UNIX_SV:4.2MP:2.*) |
2972 | ++ # Unixware is an offshoot of SVR4, but it has its own version |
2973 | ++ # number series starting with 2... |
2974 | ++ # I am not positive that other SVR4 systems won't match this, |
2975 | ++ # I just have to hope. -- rms. |
2976 | ++ # Use sysv4.2uw... so that sysv4* matches it. |
2977 | ++ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
2978 | ++ exit ;; |
2979 | ++ i*86:OS/2:*:*) |
2980 | ++ # If we were able to find `uname', then EMX Unix compatibility |
2981 | ++ # is probably installed. |
2982 | ++ echo ${UNAME_MACHINE}-pc-os2-emx |
2983 | ++ exit ;; |
2984 | ++ i*86:XTS-300:*:STOP) |
2985 | ++ echo ${UNAME_MACHINE}-unknown-stop |
2986 | ++ exit ;; |
2987 | ++ i*86:atheos:*:*) |
2988 | ++ echo ${UNAME_MACHINE}-unknown-atheos |
2989 | ++ exit ;; |
2990 | ++ i*86:syllable:*:*) |
2991 | ++ echo ${UNAME_MACHINE}-pc-syllable |
2992 | ++ exit ;; |
2993 | ++ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) |
2994 | ++ echo i386-unknown-lynxos${UNAME_RELEASE} |
2995 | ++ exit ;; |
2996 | ++ i*86:*DOS:*:*) |
2997 | ++ echo ${UNAME_MACHINE}-pc-msdosdjgpp |
2998 | ++ exit ;; |
2999 | ++ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) |
3000 | ++ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` |
3001 | ++ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
3002 | ++ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} |
3003 | ++ else |
3004 | ++ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
3005 | ++ fi |
3006 | ++ exit ;; |
3007 | ++ i*86:*:5:[678]*) |
3008 | ++ # UnixWare 7.x, OpenUNIX and OpenServer 6. |
3009 | ++ case `/bin/uname -X | grep "^Machine"` in |
3010 | ++ *486*) UNAME_MACHINE=i486 ;; |
3011 | ++ *Pentium) UNAME_MACHINE=i586 ;; |
3012 | ++ *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
3013 | ++ esac |
3014 | ++ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} |
3015 | ++ exit ;; |
3016 | ++ i*86:*:3.2:*) |
3017 | ++ if test -f /usr/options/cb.name; then |
3018 | ++ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
3019 | ++ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL |
3020 | ++ elif /bin/uname -X 2>/dev/null >/dev/null ; then |
3021 | ++ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` |
3022 | ++ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 |
3023 | ++ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ |
3024 | ++ && UNAME_MACHINE=i586 |
3025 | ++ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ |
3026 | ++ && UNAME_MACHINE=i686 |
3027 | ++ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ |
3028 | ++ && UNAME_MACHINE=i686 |
3029 | ++ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL |
3030 | ++ else |
3031 | ++ echo ${UNAME_MACHINE}-pc-sysv32 |
3032 | ++ fi |
3033 | ++ exit ;; |
3034 | ++ pc:*:*:*) |
3035 | ++ # Left here for compatibility: |
3036 | ++ # uname -m prints for DJGPP always 'pc', but it prints nothing about |
3037 | ++ # the processor, so we play safe by assuming i586. |
3038 | ++ # Note: whatever this is, it MUST be the same as what config.sub |
3039 | ++ # prints for the "djgpp" host, or else GDB configury will decide that |
3040 | ++ # this is a cross-build. |
3041 | ++ echo i586-pc-msdosdjgpp |
3042 | ++ exit ;; |
3043 | ++ Intel:Mach:3*:*) |
3044 | ++ echo i386-pc-mach3 |
3045 | ++ exit ;; |
3046 | ++ paragon:*:*:*) |
3047 | ++ echo i860-intel-osf1 |
3048 | ++ exit ;; |
3049 | ++ i860:*:4.*:*) # i860-SVR4 |
3050 | ++ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then |
3051 | ++ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 |
3052 | ++ else # Add other i860-SVR4 vendors below as they are discovered. |
3053 | ++ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 |
3054 | ++ fi |
3055 | ++ exit ;; |
3056 | ++ mini*:CTIX:SYS*5:*) |
3057 | ++ # "miniframe" |
3058 | ++ echo m68010-convergent-sysv |
3059 | ++ exit ;; |
3060 | ++ mc68k:UNIX:SYSTEM5:3.51m) |
3061 | ++ echo m68k-convergent-sysv |
3062 | ++ exit ;; |
3063 | ++ M680?0:D-NIX:5.3:*) |
3064 | ++ echo m68k-diab-dnix |
3065 | ++ exit ;; |
3066 | ++ M68*:*:R3V[5678]*:*) |
3067 | ++ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; |
3068 | ++ 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) |
3069 | ++ OS_REL='' |
3070 | ++ test -r /etc/.relid \ |
3071 | ++ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
3072 | ++ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
3073 | ++ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
3074 | ++ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
3075 | ++ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
3076 | ++ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
3077 | ++ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
3078 | ++ && { echo i486-ncr-sysv4; exit; } ;; |
3079 | ++ NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
3080 | ++ OS_REL='.3' |
3081 | ++ test -r /etc/.relid \ |
3082 | ++ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
3083 | ++ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
3084 | ++ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
3085 | ++ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
3086 | ++ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } |
3087 | ++ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
3088 | ++ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
3089 | ++ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
3090 | ++ echo m68k-unknown-lynxos${UNAME_RELEASE} |
3091 | ++ exit ;; |
3092 | ++ mc68030:UNIX_System_V:4.*:*) |
3093 | ++ echo m68k-atari-sysv4 |
3094 | ++ exit ;; |
3095 | ++ TSUNAMI:LynxOS:2.*:*) |
3096 | ++ echo sparc-unknown-lynxos${UNAME_RELEASE} |
3097 | ++ exit ;; |
3098 | ++ rs6000:LynxOS:2.*:*) |
3099 | ++ echo rs6000-unknown-lynxos${UNAME_RELEASE} |
3100 | ++ exit ;; |
3101 | ++ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) |
3102 | ++ echo powerpc-unknown-lynxos${UNAME_RELEASE} |
3103 | ++ exit ;; |
3104 | ++ SM[BE]S:UNIX_SV:*:*) |
3105 | ++ echo mips-dde-sysv${UNAME_RELEASE} |
3106 | ++ exit ;; |
3107 | ++ RM*:ReliantUNIX-*:*:*) |
3108 | ++ echo mips-sni-sysv4 |
3109 | ++ exit ;; |
3110 | ++ RM*:SINIX-*:*:*) |
3111 | ++ echo mips-sni-sysv4 |
3112 | ++ exit ;; |
3113 | ++ *:SINIX-*:*:*) |
3114 | ++ if uname -p 2>/dev/null >/dev/null ; then |
3115 | ++ UNAME_MACHINE=`(uname -p) 2>/dev/null` |
3116 | ++ echo ${UNAME_MACHINE}-sni-sysv4 |
3117 | ++ else |
3118 | ++ echo ns32k-sni-sysv |
3119 | ++ fi |
3120 | ++ exit ;; |
3121 | ++ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
3122 | ++ # says <Richard.M.Bartel@ccMail.Census.GOV> |
3123 | ++ echo i586-unisys-sysv4 |
3124 | ++ exit ;; |
3125 | ++ *:UNIX_System_V:4*:FTX*) |
3126 | ++ # From Gerald Hewes <hewes@openmarket.com>. |
3127 | ++ # How about differentiating between stratus architectures? -djm |
3128 | ++ echo hppa1.1-stratus-sysv4 |
3129 | ++ exit ;; |
3130 | ++ *:*:*:FTX*) |
3131 | ++ # From seanf@swdc.stratus.com. |
3132 | ++ echo i860-stratus-sysv4 |
3133 | ++ exit ;; |
3134 | ++ i*86:VOS:*:*) |
3135 | ++ # From Paul.Green@stratus.com. |
3136 | ++ echo ${UNAME_MACHINE}-stratus-vos |
3137 | ++ exit ;; |
3138 | ++ *:VOS:*:*) |
3139 | ++ # From Paul.Green@stratus.com. |
3140 | ++ echo hppa1.1-stratus-vos |
3141 | ++ exit ;; |
3142 | ++ mc68*:A/UX:*:*) |
3143 | ++ echo m68k-apple-aux${UNAME_RELEASE} |
3144 | ++ exit ;; |
3145 | ++ news*:NEWS-OS:6*:*) |
3146 | ++ echo mips-sony-newsos6 |
3147 | ++ exit ;; |
3148 | ++ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
3149 | ++ if [ -d /usr/nec ]; then |
3150 | ++ echo mips-nec-sysv${UNAME_RELEASE} |
3151 | ++ else |
3152 | ++ echo mips-unknown-sysv${UNAME_RELEASE} |
3153 | ++ fi |
3154 | ++ exit ;; |
3155 | ++ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
3156 | ++ echo powerpc-be-beos |
3157 | ++ exit ;; |
3158 | ++ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
3159 | ++ echo powerpc-apple-beos |
3160 | ++ exit ;; |
3161 | ++ BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
3162 | ++ echo i586-pc-beos |
3163 | ++ exit ;; |
3164 | ++ BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
3165 | ++ echo i586-pc-haiku |
3166 | ++ exit ;; |
3167 | ++ SX-4:SUPER-UX:*:*) |
3168 | ++ echo sx4-nec-superux${UNAME_RELEASE} |
3169 | ++ exit ;; |
3170 | ++ SX-5:SUPER-UX:*:*) |
3171 | ++ echo sx5-nec-superux${UNAME_RELEASE} |
3172 | ++ exit ;; |
3173 | ++ SX-6:SUPER-UX:*:*) |
3174 | ++ echo sx6-nec-superux${UNAME_RELEASE} |
3175 | ++ exit ;; |
3176 | ++ SX-7:SUPER-UX:*:*) |
3177 | ++ echo sx7-nec-superux${UNAME_RELEASE} |
3178 | ++ exit ;; |
3179 | ++ SX-8:SUPER-UX:*:*) |
3180 | ++ echo sx8-nec-superux${UNAME_RELEASE} |
3181 | ++ exit ;; |
3182 | ++ SX-8R:SUPER-UX:*:*) |
3183 | ++ echo sx8r-nec-superux${UNAME_RELEASE} |
3184 | ++ exit ;; |
3185 | ++ Power*:Rhapsody:*:*) |
3186 | ++ echo powerpc-apple-rhapsody${UNAME_RELEASE} |
3187 | ++ exit ;; |
3188 | ++ *:Rhapsody:*:*) |
3189 | ++ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
3190 | ++ exit ;; |
3191 | ++ *:Darwin:*:*) |
3192 | ++ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
3193 | ++ case $UNAME_PROCESSOR in |
3194 | ++ unknown) UNAME_PROCESSOR=powerpc ;; |
3195 | ++ esac |
3196 | ++ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
3197 | ++ exit ;; |
3198 | ++ *:procnto*:*:* | *:QNX:[0123456789]*:*) |
3199 | ++ UNAME_PROCESSOR=`uname -p` |
3200 | ++ if test "$UNAME_PROCESSOR" = "x86"; then |
3201 | ++ UNAME_PROCESSOR=i386 |
3202 | ++ UNAME_MACHINE=pc |
3203 | ++ fi |
3204 | ++ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
3205 | ++ exit ;; |
3206 | ++ *:QNX:*:4*) |
3207 | ++ echo i386-pc-qnx |
3208 | ++ exit ;; |
3209 | ++ NSE-?:NONSTOP_KERNEL:*:*) |
3210 | ++ echo nse-tandem-nsk${UNAME_RELEASE} |
3211 | ++ exit ;; |
3212 | ++ NSR-?:NONSTOP_KERNEL:*:*) |
3213 | ++ echo nsr-tandem-nsk${UNAME_RELEASE} |
3214 | ++ exit ;; |
3215 | ++ *:NonStop-UX:*:*) |
3216 | ++ echo mips-compaq-nonstopux |
3217 | ++ exit ;; |
3218 | ++ BS2000:POSIX*:*:*) |
3219 | ++ echo bs2000-siemens-sysv |
3220 | ++ exit ;; |
3221 | ++ DS/*:UNIX_System_V:*:*) |
3222 | ++ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} |
3223 | ++ exit ;; |
3224 | ++ *:Plan9:*:*) |
3225 | ++ # "uname -m" is not consistent, so use $cputype instead. 386 |
3226 | ++ # is converted to i386 for consistency with other x86 |
3227 | ++ # operating systems. |
3228 | ++ if test "$cputype" = "386"; then |
3229 | ++ UNAME_MACHINE=i386 |
3230 | ++ else |
3231 | ++ UNAME_MACHINE="$cputype" |
3232 | ++ fi |
3233 | ++ echo ${UNAME_MACHINE}-unknown-plan9 |
3234 | ++ exit ;; |
3235 | ++ *:TOPS-10:*:*) |
3236 | ++ echo pdp10-unknown-tops10 |
3237 | ++ exit ;; |
3238 | ++ *:TENEX:*:*) |
3239 | ++ echo pdp10-unknown-tenex |
3240 | ++ exit ;; |
3241 | ++ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) |
3242 | ++ echo pdp10-dec-tops20 |
3243 | ++ exit ;; |
3244 | ++ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) |
3245 | ++ echo pdp10-xkl-tops20 |
3246 | ++ exit ;; |
3247 | ++ *:TOPS-20:*:*) |
3248 | ++ echo pdp10-unknown-tops20 |
3249 | ++ exit ;; |
3250 | ++ *:ITS:*:*) |
3251 | ++ echo pdp10-unknown-its |
3252 | ++ exit ;; |
3253 | ++ SEI:*:*:SEIUX) |
3254 | ++ echo mips-sei-seiux${UNAME_RELEASE} |
3255 | ++ exit ;; |
3256 | ++ *:DragonFly:*:*) |
3257 | ++ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
3258 | ++ exit ;; |
3259 | ++ *:*VMS:*:*) |
3260 | ++ UNAME_MACHINE=`(uname -p) 2>/dev/null` |
3261 | ++ case "${UNAME_MACHINE}" in |
3262 | ++ A*) echo alpha-dec-vms ; exit ;; |
3263 | ++ I*) echo ia64-dec-vms ; exit ;; |
3264 | ++ V*) echo vax-dec-vms ; exit ;; |
3265 | ++ esac ;; |
3266 | ++ *:XENIX:*:SysV) |
3267 | ++ echo i386-pc-xenix |
3268 | ++ exit ;; |
3269 | ++ i*86:skyos:*:*) |
3270 | ++ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' |
3271 | ++ exit ;; |
3272 | ++ i*86:rdos:*:*) |
3273 | ++ echo ${UNAME_MACHINE}-pc-rdos |
3274 | ++ exit ;; |
3275 | ++ i*86:AROS:*:*) |
3276 | ++ echo ${UNAME_MACHINE}-pc-aros |
3277 | ++ exit ;; |
3278 | ++esac |
3279 | ++ |
3280 | ++#echo '(No uname command or uname output not recognized.)' 1>&2 |
3281 | ++#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
3282 | ++ |
3283 | ++eval $set_cc_for_build |
3284 | ++cat >$dummy.c <<EOF |
3285 | ++#ifdef _SEQUENT_ |
3286 | ++# include <sys/types.h> |
3287 | ++# include <sys/utsname.h> |
3288 | ++#endif |
3289 | ++main () |
3290 | ++{ |
3291 | ++#if defined (sony) |
3292 | ++#if defined (MIPSEB) |
3293 | ++ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, |
3294 | ++ I don't know.... */ |
3295 | ++ printf ("mips-sony-bsd\n"); exit (0); |
3296 | ++#else |
3297 | ++#include <sys/param.h> |
3298 | ++ printf ("m68k-sony-newsos%s\n", |
3299 | ++#ifdef NEWSOS4 |
3300 | ++ "4" |
3301 | ++#else |
3302 | ++ "" |
3303 | ++#endif |
3304 | ++ ); exit (0); |
3305 | ++#endif |
3306 | ++#endif |
3307 | ++ |
3308 | ++#if defined (__arm) && defined (__acorn) && defined (__unix) |
3309 | ++ printf ("arm-acorn-riscix\n"); exit (0); |
3310 | ++#endif |
3311 | ++ |
3312 | ++#if defined (hp300) && !defined (hpux) |
3313 | ++ printf ("m68k-hp-bsd\n"); exit (0); |
3314 | ++#endif |
3315 | ++ |
3316 | ++#if defined (NeXT) |
3317 | ++#if !defined (__ARCHITECTURE__) |
3318 | ++#define __ARCHITECTURE__ "m68k" |
3319 | ++#endif |
3320 | ++ int version; |
3321 | ++ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; |
3322 | ++ if (version < 4) |
3323 | ++ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); |
3324 | ++ else |
3325 | ++ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); |
3326 | ++ exit (0); |
3327 | ++#endif |
3328 | ++ |
3329 | ++#if defined (MULTIMAX) || defined (n16) |
3330 | ++#if defined (UMAXV) |
3331 | ++ printf ("ns32k-encore-sysv\n"); exit (0); |
3332 | ++#else |
3333 | ++#if defined (CMU) |
3334 | ++ printf ("ns32k-encore-mach\n"); exit (0); |
3335 | ++#else |
3336 | ++ printf ("ns32k-encore-bsd\n"); exit (0); |
3337 | ++#endif |
3338 | ++#endif |
3339 | ++#endif |
3340 | ++ |
3341 | ++#if defined (__386BSD__) |
3342 | ++ printf ("i386-pc-bsd\n"); exit (0); |
3343 | ++#endif |
3344 | ++ |
3345 | ++#if defined (sequent) |
3346 | ++#if defined (i386) |
3347 | ++ printf ("i386-sequent-dynix\n"); exit (0); |
3348 | ++#endif |
3349 | ++#if defined (ns32000) |
3350 | ++ printf ("ns32k-sequent-dynix\n"); exit (0); |
3351 | ++#endif |
3352 | ++#endif |
3353 | ++ |
3354 | ++#if defined (_SEQUENT_) |
3355 | ++ struct utsname un; |
3356 | ++ |
3357 | ++ uname(&un); |
3358 | ++ |
3359 | ++ if (strncmp(un.version, "V2", 2) == 0) { |
3360 | ++ printf ("i386-sequent-ptx2\n"); exit (0); |
3361 | ++ } |
3362 | ++ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ |
3363 | ++ printf ("i386-sequent-ptx1\n"); exit (0); |
3364 | ++ } |
3365 | ++ printf ("i386-sequent-ptx\n"); exit (0); |
3366 | ++ |
3367 | ++#endif |
3368 | ++ |
3369 | ++#if defined (vax) |
3370 | ++# if !defined (ultrix) |
3371 | ++# include <sys/param.h> |
3372 | ++# if defined (BSD) |
3373 | ++# if BSD == 43 |
3374 | ++ printf ("vax-dec-bsd4.3\n"); exit (0); |
3375 | ++# else |
3376 | ++# if BSD == 199006 |
3377 | ++ printf ("vax-dec-bsd4.3reno\n"); exit (0); |
3378 | ++# else |
3379 | ++ printf ("vax-dec-bsd\n"); exit (0); |
3380 | ++# endif |
3381 | ++# endif |
3382 | ++# else |
3383 | ++ printf ("vax-dec-bsd\n"); exit (0); |
3384 | ++# endif |
3385 | ++# else |
3386 | ++ printf ("vax-dec-ultrix\n"); exit (0); |
3387 | ++# endif |
3388 | ++#endif |
3389 | ++ |
3390 | ++#if defined (alliant) && defined (i860) |
3391 | ++ printf ("i860-alliant-bsd\n"); exit (0); |
3392 | ++#endif |
3393 | ++ |
3394 | ++ exit (1); |
3395 | ++} |
3396 | ++EOF |
3397 | ++ |
3398 | ++$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && |
3399 | ++ { echo "$SYSTEM_NAME"; exit; } |
3400 | ++ |
3401 | ++# Apollos put the system type in the environment. |
3402 | ++ |
3403 | ++test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } |
3404 | ++ |
3405 | ++# Convex versions that predate uname can use getsysinfo(1) |
3406 | ++ |
3407 | ++if [ -x /usr/convex/getsysinfo ] |
3408 | ++then |
3409 | ++ case `getsysinfo -f cpu_type` in |
3410 | ++ c1*) |
3411 | ++ echo c1-convex-bsd |
3412 | ++ exit ;; |
3413 | ++ c2*) |
3414 | ++ if getsysinfo -f scalar_acc |
3415 | ++ then echo c32-convex-bsd |
3416 | ++ else echo c2-convex-bsd |
3417 | ++ fi |
3418 | ++ exit ;; |
3419 | ++ c34*) |
3420 | ++ echo c34-convex-bsd |
3421 | ++ exit ;; |
3422 | ++ c38*) |
3423 | ++ echo c38-convex-bsd |
3424 | ++ exit ;; |
3425 | ++ c4*) |
3426 | ++ echo c4-convex-bsd |
3427 | ++ exit ;; |
3428 | ++ esac |
3429 | ++fi |
3430 | ++ |
3431 | ++cat >&2 <<EOF |
3432 | ++$0: unable to guess system type |
3433 | ++ |
3434 | ++This script, last modified $timestamp, has failed to recognize |
3435 | ++the operating system you are using. It is advised that you |
3436 | ++download the most up to date version of the config scripts from |
3437 | ++ |
3438 | ++ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
3439 | ++and |
3440 | ++ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
3441 | ++ |
3442 | ++If the version you run ($0) is already up to date, please |
3443 | ++send the following data and any information you think might be |
3444 | ++pertinent to <config-patches@gnu.org> in order to provide the needed |
3445 | ++information to handle your system. |
3446 | ++ |
3447 | ++config.guess timestamp = $timestamp |
3448 | ++ |
3449 | ++uname -m = `(uname -m) 2>/dev/null || echo unknown` |
3450 | ++uname -r = `(uname -r) 2>/dev/null || echo unknown` |
3451 | ++uname -s = `(uname -s) 2>/dev/null || echo unknown` |
3452 | ++uname -v = `(uname -v) 2>/dev/null || echo unknown` |
3453 | ++ |
3454 | ++/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` |
3455 | ++/bin/uname -X = `(/bin/uname -X) 2>/dev/null` |
3456 | ++ |
3457 | ++hostinfo = `(hostinfo) 2>/dev/null` |
3458 | ++/bin/universe = `(/bin/universe) 2>/dev/null` |
3459 | ++/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` |
3460 | ++/bin/arch = `(/bin/arch) 2>/dev/null` |
3461 | ++/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` |
3462 | ++/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` |
3463 | ++ |
3464 | ++UNAME_MACHINE = ${UNAME_MACHINE} |
3465 | ++UNAME_RELEASE = ${UNAME_RELEASE} |
3466 | ++UNAME_SYSTEM = ${UNAME_SYSTEM} |
3467 | ++UNAME_VERSION = ${UNAME_VERSION} |
3468 | ++EOF |
3469 | ++ |
3470 | ++exit 1 |
3471 | ++ |
3472 | ++# Local variables: |
3473 | ++# eval: (add-hook 'write-file-hooks 'time-stamp) |
3474 | ++# time-stamp-start: "timestamp='" |
3475 | ++# time-stamp-format: "%:y-%02m-%02d" |
3476 | ++# time-stamp-end: "'" |
3477 | ++# End: |
3478 | +--- glew-1.5.1.orig/config/Makefile.kfreebsd |
3479 | ++++ glew-1.5.1/config/Makefile.kfreebsd |
3480 | +@@ -3,14 +3,16 @@ CC = cc |
3481 | + LD = cc |
3482 | + ifneq (undefined, $(origin GLEW_MX)) |
3483 | + CFLAGS.EXTRA = -DGLEW_MX |
3484 | ++NAME_SUF=mx |
3485 | + endif |
3486 | + PICFLAG = -fPIC |
3487 | +-LDFLAGS.SO = -shared -Wl,-soname $(LIB.SONAME) |
3488 | +-LDFLAGS.EXTRA = -L/usr/X11R6/lib |
3489 | ++LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) -Wl,-Bsymbolic-functions |
3490 | ++M_ARCH ?= $(shell arch) |
3491 | ++LIBDIR = $(GLEW_DEST)/lib |
3492 | + LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11 |
3493 | + LDFLAGS.STATIC = -Wl,-Bstatic |
3494 | + LDFLAGS.DYNAMIC = -Wl,-Bdynamic |
3495 | +-NAME = GLEW |
3496 | ++NAME = GLEW$(NAME_SUF) |
3497 | + WARN = -Wall -W |
3498 | + POPT = -O2 |
3499 | + BIN.SUFFIX = |
3500 | +--- glew-1.5.1.orig/config/Makefile.gnu |
3501 | ++++ glew-1.5.1/config/Makefile.gnu |
3502 | +@@ -3,14 +3,16 @@ CC = cc |
3503 | + LD = cc |
3504 | + ifneq (undefined, $(origin GLEW_MX)) |
3505 | + CFLAGS.EXTRA = -DGLEW_MX |
3506 | ++NAME_SUF=mx |
3507 | + endif |
3508 | + PICFLAG = -fPIC |
3509 | +-LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) |
3510 | +-LDFLAGS.EXTRA = -L/usr/X11R6/lib |
3511 | ++LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) -Wl,-Bsymbolic-functions |
3512 | ++M_ARCH ?= $(shell arch) |
3513 | ++LIBDIR = $(GLEW_DEST)/lib |
3514 | + LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11 |
3515 | + LDFLAGS.STATIC = -Wl,-Bstatic |
3516 | + LDFLAGS.DYNAMIC = -Wl,-Bdynamic |
3517 | +-NAME = GLEW |
3518 | ++NAME = GLEW$(NAME_SUF) |
3519 | + WARN = -Wall -W |
3520 | + POPT = -O2 |
3521 | + BIN.SUFFIX = |
3522 | +--- glew-1.5.1.orig/config/Makefile.linux |
3523 | ++++ glew-1.5.1/config/Makefile.linux |
3524 | +@@ -3,21 +3,16 @@ CC = cc |
3525 | + LD = cc |
3526 | + ifneq (undefined, $(origin GLEW_MX)) |
3527 | + CFLAGS.EXTRA = -DGLEW_MX |
3528 | ++NAME_SUF=mx |
3529 | + endif |
3530 | + PICFLAG = -fPIC |
3531 | +-LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) |
3532 | ++LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) -Wl,-Bsymbolic-functions |
3533 | + M_ARCH ?= $(shell arch) |
3534 | +-ifeq (x86_64,${M_ARCH}) |
3535 | +-LDFLAGS.EXTRA = -L/usr/X11R6/lib64 |
3536 | +-LIBDIR = $(GLEW_DEST)/lib64 |
3537 | +-else |
3538 | +-LDFLAGS.EXTRA = -L/usr/X11R6/lib |
3539 | + LIBDIR = $(GLEW_DEST)/lib |
3540 | +-endif |
3541 | + LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11 |
3542 | + LDFLAGS.STATIC = -Wl,-Bstatic |
3543 | + LDFLAGS.DYNAMIC = -Wl,-Bdynamic |
3544 | +-NAME = GLEW |
3545 | ++NAME = GLEW$(NAME_SUF) |
3546 | + WARN = -Wall -W |
3547 | + POPT = -O2 |
3548 | + BIN.SUFFIX = |
3549 | |
3550 | === modified file 'debian/patches/series' |
3551 | --- debian/patches/series 2010-01-17 01:00:53 +0000 |
3552 | +++ debian/patches/series 2010-02-13 00:02:19 +0000 |
3553 | @@ -1,1 +1,5 @@ |
3554 | +<<<<<<< TREE |
3555 | debian-changes-1.5.2-0ubuntu1 |
3556 | +======= |
3557 | +debian-changes-1.5.1-7 |
3558 | +>>>>>>> MERGE-SOURCE |
3559 | |
3560 | === modified file 'debian/rules' |
The package history in the archive and the history in the bzr branch differ. As the archive is authoritative the history of lp:ubuntu/lucid/glew now reflects that and the old bzr branch has been pushed to lp:~ubuntu-branches/ubuntu/lucid/glew/lucid-201002122355. A merge should be performed if necessary.