Package list virt-viewer / 7ef218a
Imported Upstream version 0.5.3 Laurent Léonard 9 years ago
120 changed file(s) with 25961 addition(s) and 17602 deletion(s). Raw diff Collapse all Expand all
2020 Richard W.M. Jones <rjones@redhat.com>
2121 Ronnie Sahlberg <ronniesahlberg@gmail.com>
2222 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
23 Yonit Halperin <yhalperi@redhat.com>
24 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
2325
2426 ...send patches to get your name here...
2527
0 2012-05-15 Daniel P. Berrange <berrange@redhat.com>
1
2 Avoid use of deprecated GTK3 pointer APIs
3 The gtk_widget_get_pointer() API is deprecated in GTK3 since it
4 is not aware of multiple pointers. Replace its usage in autoDrawer.c
5 with GdkDeviceManager and friends
6
7 Adapt to avoid use of deprecated GTK3 style & size APIs
8 The GtkStyle API has been deprecated in favour of GtkStyleContext.
9 Update ovBox.c to use the latter if building with GtK3. Also replace
10 use of the gtk_widget_size_request API with gtk_widget_get_preferred_size.
11
12 2012-05-15 Marc-André Lureau <marcandre.lureau@gmail.com>
13
14 Release v0.5.3
15
16 nsis: fix .nsis file paths
17 - look up for icons under the DESTDIR directory
18 - don't ship gstaudiofx, unneeded
19 - add missing libtasn
20
21 2012-05-14 Marc-André Lureau <marcandre.lureau@gmail.com>
22
23 dist: ship .ico in tarball
24 Some distros (a 4-letters) don't have icotool.
25 Let's ship the .ico in the tarball.
26
27 The build will fail if icoutil is not installed when
28 building from git or when the .ico is absent. The error
29 should be explicit.
30
31 nsis: IE policy to launch silentely remote-viewer
32 Add IE ElevationPolicy for the remote-viewer client.
33
34 http://msdn.microsoft.com/en-us/library/bb250462%28v=vs.85%29.aspx
35
36 nsis: fix removal of start menu directory
37
38 2012-05-08 Daniel P. Berrange <berrange@redhat.com>
39
40 Avoid race condition when disposing of app
41 When disposing of the VirtViewerApp, we free the hash table
42 containing the windows. This causes each window to be freed,
43 which in turn causes the visibility callback to be invoked.
44 This can then get NULL pointers from the self->priv->windows
45 usage.
46
47 Blank out priv->windows before unrefing the hashs and add
48 a check to ensure priv->windows is non-NULL.
49
50 2012-05-04 Daniel P. Berrange <berrange@redhat.com>
51
52 Ensure windows are destroyed when display closes
53 When running virt-viewer with the --reconnect argument, when
54 the session closes, the VirtViewerWindow instances were being
55 freed, but not the GtkWindow itself. So the orphaned window
56 stayed around doing nothing. The GtkBuilder instance was also
57 leaked.
58
59 Fix these two leaks & also add some debugging to help future
60 troubleshooting
61
62 2012-05-02 Daniel P. Berrange <berrange@redhat.com>
63
64 Change 'OK' button to 'Close' button in USB device selection
65 The USB device selection applies immediately, so the dialog
66 should be using 'Close' instead of 'OK' for its primary button
67
68 2012-04-27 Christophe Fergeau <cfergeau@redhat.com>
69
70 g_getenv returns a const string
71 When switching from getenv to g_getenv, 'doms' declaration
72 wasn't changed from char * to const char *, which causes
73 a gcc warning.
74
75 2012-04-26 Daniel P. Berrange <berrange@redhat.com>
76
77 Replace getenv/setenv with g_getenv/g_setenv for Win32 portability
78
79 2012-04-25 Daniel P. Berrange <berrange@redhat.com>
80
81 Add debugging when performing fullscreen auto-configuration
82
83 Refresh translations from transifex
84
85 Really fix debug output on glib >= 2.31
86
87 Fix debug output on glib >= 2.31
88
89 2012-04-23 Daniel P. Berrange <berrange@redhat.com>
90
91 Set the remote-viewer binary application name
92 Currently the window titles for remote-view have 'remote-viewer'
93 appended them. This is based off the argv[0] name. We should be
94 setting the GLib application name though, so we can get a localized
95 'Remote Viewer' string in the titlebar
96
97 Add support for raw IPv6 addresses in VNC & libvirt URIs
98 Support vnc://[x:y:z:]:5901/ for raw IPv6 addresses in URIs,
99 and qemu+ssh://root@[x:y:x:]:22/ for raw IPv6 addresses in
100 libvirt URIs
101
102 2012-04-19 Daniel P. Berrange <berrange@redhat.com>
103
104 Fix scaling of window to avoid integer truncation
105 Use round() instead of integer truncation when scaling the window,
106 to avoid floating point precision problems on i386
107
108 2012-04-18 Daniel P. Berrange <berrange@redhat.com>
109
110 Add a desktop file for launching remote-viewer
111 Enable automagic handling of spice:// URLs in firefox by
112 registering a desktop handler for remote-viewer with the
113 SPICE URI scheme
114
115 2012-04-17 Daniel P. Berrange <berrange@redhat.com>
116
117 Give remote-viewer priority over spicec for spice-xpi-client
118
119 Add manpage docs for the --attach option
120
121 Fix manpage to s/--fullscreen/--full-screen/
122
123 2012-04-17 Christophe Fergeau <cfergeau@redhat.com>
124
125 Fix automatic usb redir through controller
126 remote-viewer is currently trying to use
127 SpiceUsbDeviceManager::auto-connect to control whether USB devices
128 should be automatically connected or not. However, this property
129 is more or less an internal spice-gtk property which is toggled
130 by SpiceGtkSession when the SPICE widget gets/loses focus.
131
132 SpiceGtkSession has an "auto-usbredir" property which can be used
133 by applications to enable/disable automatic usb redirection through
134 SPICE. Since this property is helpfully bound to
135 VirtViewerSession::auto-usbredir, use this when the controller
136 is told to enable/disable USB redirection.
137
138 Without this change, automatic USB redirection will always get reenabled
139 as soon as there's a focus change since SpiceGtkSession::auto-usbredir
140 defaults to be enabled in spice-gtk.
141
142 2012-04-05 Daniel P. Berrange <berrange@redhat.com>
143
144 Ensure windres & icotool are present on Win32 builds
145 Builds are failing with an obscure error message
146
147 make[3]: Entering directory `/var/lib/builder/source-root/virt-viewer/build/icons'
148 GEN virt-viewer.ico
149 /bin/sh: -c: command not found
150 make[3]: *** [virt-viewer.ico] Error 127
151
152 This is because configure.ac does not enforce that icotool
153 is present on Win32.
154
155 * configure.ac: Mandate windres & icotool on Win32
156
157 Require F17 for spice in RPM builds
158
159 Exclude windows-cmdline-wrapper.c from some syntax check rules
160
161 Add Yonit to authors file
162
163 Fix some syntax violations in git.mk
164
165 2012-04-05 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
166
167 Minor simplification/optimization of VirtViewerDisplay
168
169 2012-04-04 Daniel P. Berrange <berrange@redhat.com>
170
171 Fix typo in variable names for Win32 command helper
172
173 Fix close of VNC displays
174 When clicking the close button on a virt-viewer window with
175 a VNC session open, while the VNC session terminates, the
176 window does not go away.
177
178 The problem is that the virt_viewer_session_vnc_disconnected
179 method never gets invoked. The close button triggers a call
180 to virt_viewer_session_clear_displays which unrefs the
181 VirtViewerDisplayVnc instance. This in turn triggers a call
182 to gtk_container_destroy, which destroys all widgets it
183 contains, ie the VncDisplay * object.
184
185 With the VncDisplay object in its dispose phase, no signals
186 will ever be emitted, thus the 'vnc-disconnected' signal
187 never gets seen.
188
189 The design issue is that VirtViewerDisplayVnc is assuming
190 it owns the VncDisplay, whereas in fact the real owner is
191 the VirtViewerSessionVnc object.
192
193 The solution is to introduce a new virt_viewer_display_close
194 method which can be used to de-parent the widget before
195 VirtViewerDisplay is unref'd.
196
197 The VirtViewerSessionVnc object also needs to hold a full ref
198 on the VncDisplay object, not merely a floating reference
199
200 * virt-viewer-display-spice.c, virt-viewer-display.c,
201 virt-viewer-display.h: Add virt_viewer_display_close
202 * virt-viewer-display-vnc.c: Deparent VNC widget in
203 virt_viewer_display_close impl
204 * virt-viewer-session-vnc.c: Improve logging
205 * virt-viewer-session.c: Call virt_viewer_display_close
206 before unrefing display
207 * virt-viewer-window.c: Improve logging
208
209 2012-04-04 Christophe Fergeau <cfergeau@redhat.com>
210
211 Propagate USB redirection controller messages
212
213 2012-04-03 Yonit Halperin <yhalperi@redhat.com>
214
215 Add support for the SPICE properties disable-effects & color-depth
216
217 2012-04-03 Christophe Fergeau <cfergeau@redhat.com>
218
219 build-sys: fix Windows specific LDFLAGS on non-mingw
220
221 2012-04-02 Marc-André Lureau <marcandre.lureau@gmail.com>
222
223 nsis: fix a few missing icons
224
225 nsis: add the remote-viewer cmdline wrapper
226
227 remote-viewer: make it a GUI/windows application with hybrid console
228 If the application can attach to its parent console, redirect
229 input/output. So that will work nicely with the command line wrapper.
230
231 Add a Windows command line wrapper
232 Add a small command line wrapper, to be able to call GUI/windows application from the console
233
234 2012-04-01 Marc-André Lureau <marcandre.lureau@gmail.com>
235
236 Disable mnemonics via gtk-enable-mnemonics settings
237 This has 2 advantages, and I can't figure any drawback:
238 - it fixes the issue of mnemonic hints being draw when pressing Alt
239 key (character underlined), even when they were disabled.
240 - it simplifies the code :)
241
242 Disable menu items that would fail when there is no display
243
244 build-sys: simplify autogen.sh
245 It should support NOCONFIGURE=1 ./autogen.sh && mingw32-configure
246
247 2012-03-30 Marc-André Lureau <marcandre.lureau@gmail.com>
248
249 build-sys: use git.mk to generate gitignore
250 This makefile is just fantastic, it forces you into good practices,
251 support various build targets (my windows builddir ignore the right
252 files etc..)
253
254 The more I use it, the more I like it.
255
256 win32: add a few Windows sepecific data
257 Add application icon and manifest
258
259 win32: clean-up the NSIS installer, allow user install
260
261 Fix recent --spice-controller regression, add error message
262 The current code will attempt to dereference args if
263 --spice-controller, even if args is NULL.
264
265 Let's not accept any extra argument/uri on the command line if using
266 the controller. Beside, the conditionnal block looks better outside of
267 the if condition.
268
269 2012-03-29 Hans de Goede <hdegoede@redhat.com>
270
271 usbredir: listen for device-error signal
272
273 2012-03-29 Marc-André Lureau <marcandre.lureau@gmail.com>
274
275 remote-viewer: press Enter to connect in dialog
276
277 Remove unused variable i
278
279 remote-viewer: add a simple connection dialog
280 If the user doesn't provide URI, let's show a simple dialog to enter it.
281
282 Also save & list recently used URLs in that dialog.
283
284 Fix g_thread_init deprecation warning
285 Although the doc says it is only deprecated since >2.32, it's actually
286 >2.31 according to glib git log.
287
288 2012-03-21 Marc-Andre Lureau <marcandre.lureau@redhat.com>
289
290 Do not warn if the display is shown and not ready
291 Lower warning message to debug level. There are various racy ways it
292 ends up calling show_display although the display is not yet
293 ready. This is not such a big problem, although it would be nice to
294 handle this case better
295
296 Notify focus state when the foreign menu title is set
297 The current code only inform of focus state when the listener is ready.
298 spice-gtk controller code lacks signal when a client connects, but a
299 client will set the title when connected and send a notify signal.
300 Use this event to notify of application focus state.
301
302 Do not try to unref NULL menu
303
304 Don't leak foreign menu
305 The RemoveViewer object will have its own ref.
306
307 2012-03-21 Marc-André Lureau <marcandre.lureau@gmail.com>
308
309 spice: handle switch-host event
310 Do not disconnect session when switching host (non-seamless migration
311 method).
312
313 Also, handle a bit better main channel events and do not disconnect on
314 unknown events, however raise unhandled event message to warning
315 level.
316
317 spice: remove usage of deprecated audio api
318
319 Display correct key bindings to release cursor
320 If the accels are enabled (with Spice controller custom bindings),
321 show the configured keybinding in the title bar.
322
323 spice: implement --fullscreen=auto-conf
324 - auto-conf is an optionnal argument to --fullscreen:
325 it will set the guest display configuration to match the client
326 display configuration, by sending the client monitors size and
327 position to capable guests.
328
329 2012-03-18 Marc-André Lureau <marcandre.lureau@gmail.com>
330
331 Fix indentation
332
333 2012-03-16 Marc-André Lureau <marcandre.lureau@gmail.com>
334
335 Do not crash so easily when given invalid uri
336 'remote-viewer foobar' shouldn't crash
337
338 2012-03-13 Daniel P. Berrange <berrange@redhat.com>
339
340 Updated translations
341
342 2012-03-09 Marc-André Lureau <marcandre.lureau@gmail.com>
343
344 Make sure we call g_thread_init()
345 GThread is needed by spice-gtk
346
347 Notify of focus state when a client connects
348 The current code notifies the controller when the remote-viewer
349 application starts, but not when the client is connected. We should do
350 the later instead
351
0352 2012-03-09 Daniel P. Berrange <berrange@redhat.com>
1353
2354 Update NEWS for 0.5.2 release
00 Installation Instructions
11 *************************
22
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
4 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
3 Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
4 Inc.
55
66 Copying and distribution of this file, with or without modification,
77 are permitted in any medium without royalty provided the copyright
225225
226226 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
227227
228 HP-UX `make' updates targets which have the same time stamps as
229 their prerequisites, which makes it generally unusable when shipped
230 generated files such as `configure' are involved. Use GNU `make'
231 instead.
232
228233 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
229234 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
230235 a workaround. If GNU CC is not installed, it is therefore recommended
11
22 ACLOCAL_AMFLAGS = -I m4
33
4 SUBDIRS = src man plugin po data icons
4 SUBDIRS = icons src man plugin po data
55
66 EXTRA_DIST = \
77 $(PACKAGE).spec \
2424 $(NULL)
2525
2626 MAINTAINERCLEANFILES = \
27 m4/libtool.m4 \
28 m4/ltoptions.m4 \
29 m4/ltsugar.m4 \
30 m4/ltversion.m4 \
31 m4/lt~obsolete.m4 \
27 $(srcdir)/INSTALL \
28 $(srcdir)/aclocal.m4 \
29 $(srcdir)/autoscan.log \
30 $(srcdir)/config.h.in \
31 $(srcdir)/build-aux/compile \
32 $(srcdir)/build-aux/config.guess \
33 $(srcdir)/build-aux/config.sub \
34 $(srcdir)/build-aux/depcomp \
35 $(srcdir)/build-aux/install-sh \
36 $(srcdir)/build-aux/ltmain.sh \
37 $(srcdir)/build-aux/missing \
38 $(srcdir)/m4/intltool.m4 \
39 $(srcdir)/m4/libtool.m4 \
40 $(srcdir)/m4/ltoptions.m4 \
41 $(srcdir)/m4/ltsugar.m4 \
42 $(srcdir)/m4/ltversion.m4 \
43 $(srcdir)/m4/lt~obsolete.m4 \
3244 $(NULL)
3345
3446 dist-hook: gen-ChangeLog
4355 rm -f $(distdir)/ChangeLog; \
4456 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
4557 fi
58
59 -include $(top_srcdir)/git.mk
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
66 # This Makefile.in is free software; the Free Software Foundation
77 # gives unlimited permission to copy and/or distribute it,
88 # with or without modifications, as long as this notice is preserved.
3737 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
3838 $(srcdir)/mingw32-virt-viewer.spec.in \
3939 $(srcdir)/virt-viewer.spec.in $(top_srcdir)/configure AUTHORS \
40 COPYING ChangeLog INSTALL NEWS compile config.guess config.sub \
41 depcomp install-sh ltmain.sh missing
40 COPYING ChangeLog INSTALL NEWS build-aux/compile \
41 build-aux/config.guess build-aux/config.sub build-aux/depcomp \
42 build-aux/install-sh build-aux/ltmain.sh build-aux/missing
4243 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4344 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
4445 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
5354 CONFIG_HEADER = config.h
5455 CONFIG_CLEAN_FILES = mingw32-virt-viewer.spec virt-viewer.spec
5556 CONFIG_CLEAN_VPATH_FILES =
56 AM_V_GEN = $(am__v_GEN_$(V))
57 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
57 AM_V_GEN = $(am__v_GEN_@AM_V@)
58 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
5859 am__v_GEN_0 = @echo " GEN " $@;
59 AM_V_at = $(am__v_at_$(V))
60 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
60 AM_V_at = $(am__v_at_@AM_V@)
61 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
6162 am__v_at_0 = @
6263 SOURCES =
6364 DIST_SOURCES =
8081 distdir = $(PACKAGE)-$(VERSION)
8182 top_distdir = $(distdir)
8283 am__remove_distdir = \
83 { test ! -d "$(distdir)" \
84 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
85 && rm -fr "$(distdir)"; }; }
84 if test -d "$(distdir)"; then \
85 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
86 && rm -rf "$(distdir)" \
87 || { sleep 5 && rm -rf "$(distdir)"; }; \
88 else :; fi
8689 am__relativize = \
8790 dir0=`pwd`; \
8891 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
111114 DIST_ARCHIVES = $(distdir).tar.gz
112115 GZIP_ENV = --best
113116 distuninstallcheck_listfiles = find . -type f -print
117 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
118 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
114119 distcleancheck_listfiles = find . -type f -print
115120 ACLOCAL = @ACLOCAL@
116121 ALL_LINGUAS = @ALL_LINGUAS@
144149 FIREFOX_PLUGIN_CFLAGS = @FIREFOX_PLUGIN_CFLAGS@
145150 FIREFOX_PLUGIN_LIBS = @FIREFOX_PLUGIN_LIBS@
146151 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
147 GMODULE2_CFLAGS = @GMODULE2_CFLAGS@
148 GMODULE2_LIBS = @GMODULE2_LIBS@
152 GLIB2_CFLAGS = @GLIB2_CFLAGS@
153 GLIB2_LIBS = @GLIB2_LIBS@
149154 GMOFILES = @GMOFILES@
150155 GMSGFMT = @GMSGFMT@
151156 GREP = @GREP@
156161 GTK_VNC_API_VERSION = @GTK_VNC_API_VERSION@
157162 GTK_VNC_CFLAGS = @GTK_VNC_CFLAGS@
158163 GTK_VNC_LIBS = @GTK_VNC_LIBS@
164 ICOTOOL = @ICOTOOL@
159165 INSTALL = @INSTALL@
160166 INSTALL_DATA = @INSTALL_DATA@
161167 INSTALL_PROGRAM = @INSTALL_PROGRAM@
167173 INTLTOOL_MERGE = @INTLTOOL_MERGE@
168174 INTLTOOL_PERL = @INTLTOOL_PERL@
169175 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
176 INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
177 INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
178 INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
179 INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
170180 LD = @LD@
171181 LDFLAGS = @LDFLAGS@
172182 LIBOBJS = @LIBOBJS@
225235 USE_NLS = @USE_NLS@
226236 VERSION = @VERSION@
227237 WARN_CFLAGS = @WARN_CFLAGS@
238 WINDRES = @WINDRES@
228239 XGETTEXT = @XGETTEXT@
229240 abs_builddir = @abs_builddir@
230241 abs_srcdir = @abs_srcdir@
259270 includedir = @includedir@
260271 infodir = @infodir@
261272 install_sh = @install_sh@
273 intltool__v_merge_options_ = @intltool__v_merge_options_@
274 intltool__v_merge_options_0 = @intltool__v_merge_options_0@
262275 libdir = @libdir@
263276 libexecdir = @libexecdir@
264277 localedir = @localedir@
280293 top_srcdir = @top_srcdir@
281294 NULL =
282295 ACLOCAL_AMFLAGS = -I m4
283 SUBDIRS = src man plugin po data icons
296 SUBDIRS = icons src man plugin po data
284297 EXTRA_DIST = \
285298 $(PACKAGE).spec \
286299 intltool-extract.in \
302315 $(NULL)
303316
304317 MAINTAINERCLEANFILES = \
305 m4/libtool.m4 \
306 m4/ltoptions.m4 \
307 m4/ltsugar.m4 \
308 m4/ltversion.m4 \
309 m4/lt~obsolete.m4 \
318 $(srcdir)/INSTALL \
319 $(srcdir)/aclocal.m4 \
320 $(srcdir)/autoscan.log \
321 $(srcdir)/config.h.in \
322 $(srcdir)/build-aux/compile \
323 $(srcdir)/build-aux/config.guess \
324 $(srcdir)/build-aux/config.sub \
325 $(srcdir)/build-aux/depcomp \
326 $(srcdir)/build-aux/install-sh \
327 $(srcdir)/build-aux/ltmain.sh \
328 $(srcdir)/build-aux/missing \
329 $(srcdir)/m4/intltool.m4 \
330 $(srcdir)/m4/libtool.m4 \
331 $(srcdir)/m4/ltoptions.m4 \
332 $(srcdir)/m4/ltsugar.m4 \
333 $(srcdir)/m4/ltversion.m4 \
334 $(srcdir)/m4/lt~obsolete.m4 \
310335 $(NULL)
311336
312337 all: config.h
313338 $(MAKE) $(AM_MAKEFLAGS) all-recursive
314339
315340 .SUFFIXES:
316 am--refresh:
341 am--refresh: Makefile
317342 @:
318343 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
319344 @for dep in $?; do \
349374 $(am__aclocal_m4_deps):
350375
351376 config.h: stamp-h1
352 @if test ! -f $@; then \
353 rm -f stamp-h1; \
354 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
355 else :; fi
377 @if test ! -f $@; then rm -f stamp-h1; else :; fi
378 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
356379
357380 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
358381 @rm -f stamp-h1
588611 $(am__remove_distdir)
589612
590613 dist-bzip2: distdir
591 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
614 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
615 $(am__remove_distdir)
616
617 dist-lzip: distdir
618 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
592619 $(am__remove_distdir)
593620
594621 dist-lzma: distdir
596623 $(am__remove_distdir)
597624
598625 dist-xz: distdir
599 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
626 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
600627 $(am__remove_distdir)
601628
602629 dist-tarZ: distdir
627654 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
628655 *.tar.lzma*) \
629656 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
657 *.tar.lz*) \
658 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
630659 *.tar.xz*) \
631660 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
632661 *.tar.Z*) \
646675 && am__cwd=`pwd` \
647676 && $(am__cd) $(distdir)/_build \
648677 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
678 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
649679 $(DISTCHECK_CONFIGURE_FLAGS) \
650680 && $(MAKE) $(AM_MAKEFLAGS) \
651681 && $(MAKE) $(AM_MAKEFLAGS) dvi \
674704 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
675705 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
676706 distuninstallcheck:
677 @$(am__cd) '$(distuninstallcheck_dir)' \
678 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
707 @test -n '$(distuninstallcheck_dir)' || { \
708 echo 'ERROR: trying to run $@ with an empty' \
709 '$$(distuninstallcheck_dir)' >&2; \
710 exit 1; \
711 }; \
712 $(am__cd) '$(distuninstallcheck_dir)' || { \
713 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
714 exit 1; \
715 }; \
716 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
679717 || { echo "ERROR: files left after uninstall:" ; \
680718 if test -n "$(DESTDIR)"; then \
681719 echo " (check DESTDIR support)"; \
706744
707745 installcheck: installcheck-recursive
708746 install-strip:
709 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
710 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
711 `test -z '$(STRIP)' || \
712 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
747 if test -z '$(STRIP)'; then \
748 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
749 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
750 install; \
751 else \
752 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
753 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
754 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
755 fi
713756 mostlyclean-generic:
714757
715758 clean-generic:
798841 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
799842 all all-am am--refresh check check-am clean clean-generic \
800843 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
801 dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \
802 dist-zip distcheck distclean distclean-generic distclean-hdr \
803 distclean-libtool distclean-tags distcleancheck distdir \
804 distuninstallcheck dvi dvi-am html html-am info info-am \
805 install install-am install-data install-data-am install-dvi \
806 install-dvi-am install-exec install-exec-am install-html \
807 install-html-am install-info install-info-am install-man \
808 install-pdf install-pdf-am install-ps install-ps-am \
809 install-strip installcheck installcheck-am installdirs \
810 installdirs-am maintainer-clean maintainer-clean-generic \
811 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
812 ps ps-am tags tags-recursive uninstall uninstall-am
844 dist-gzip dist-hook dist-lzip dist-lzma dist-shar dist-tarZ \
845 dist-xz dist-zip distcheck distclean distclean-generic \
846 distclean-hdr distclean-libtool distclean-tags distcleancheck \
847 distdir distuninstallcheck dvi dvi-am html html-am info \
848 info-am install install-am install-data install-data-am \
849 install-dvi install-dvi-am install-exec install-exec-am \
850 install-html install-html-am install-info install-info-am \
851 install-man install-pdf install-pdf-am install-ps \
852 install-ps-am install-strip installcheck installcheck-am \
853 installdirs installdirs-am maintainer-clean \
854 maintainer-clean-generic mostlyclean mostlyclean-generic \
855 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
856 uninstall uninstall-am
813857
814858
815859 dist-hook: gen-ChangeLog
825869 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
826870 fi
827871
872 -include $(top_srcdir)/git.mk
873
828874 # Tell versions [3.59,3.63) of GNU make to not export all variables.
829875 # Otherwise a system limit (for SysV at least) may be exceeded.
830876 .NOEXPORT:
00 Virt Viewer News
11 ================
2
3 0.5.3: May 14, 2012
4 -------------------
5
6 - Add support for raw IPv6 addresses
7 - Add a remote-viewer.desktop file and register spice:// handling
8 - Add a simple connection dialog to remote-viewer
9 - Add remote-viewer --fullscreen=auto-conf option, to update guest
10 monitors configuration to match client
11 - Spice controller support for disable-effects, color-depth and
12 usbredir
13 - Spice controller interaction fixes
14 - Windows version and nsis installer improvements
15 - Import newer translations from transifex
16 - Misc reference leak / crash bugs fixed
17
218
319 0.5.2: Mar 09, 2012
420 -------------------
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
0 # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
45 # This file is free software; the Free Software Foundation
56 # gives unlimited permission to copy and/or distribute it,
67 # with or without modifications, as long as this notice is preserved.
646647 fi[]dnl
647648 ])# PKG_CHECK_MODULES
648649
649 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
650 #
651 # This file is free software; the Free Software Foundation
652 # gives unlimited permission to copy and/or distribute it,
653 # with or without modifications, as long as this notice is preserved.
650 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
651 # Foundation, Inc.
652 #
653 # This file is free software; the Free Software Foundation
654 # gives unlimited permission to copy and/or distribute it,
655 # with or without modifications, as long as this notice is preserved.
656
657 # serial 1
654658
655659 # AM_AUTOMAKE_VERSION(VERSION)
656660 # ----------------------------
661665 [am__api_version='1.11'
662666 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
663667 dnl require some minimum version. Point them to the right macro.
664 m4_if([$1], [1.11.1], [],
668 m4_if([$1], [1.11.3], [],
665669 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
666670 ])
667671
677681 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
678682 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
679683 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
680 [AM_AUTOMAKE_VERSION([1.11.1])dnl
684 [AM_AUTOMAKE_VERSION([1.11.3])dnl
681685 m4_ifndef([AC_AUTOCONF_VERSION],
682686 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
683687 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
684688
685689 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
686690
687 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
688 #
689 # This file is free software; the Free Software Foundation
690 # gives unlimited permission to copy and/or distribute it,
691 # with or without modifications, as long as this notice is preserved.
691 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
692 #
693 # This file is free software; the Free Software Foundation
694 # gives unlimited permission to copy and/or distribute it,
695 # with or without modifications, as long as this notice is preserved.
696
697 # serial 1
692698
693699 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
694700 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
771777 Usually this means the macro was only invoked conditionally.]])
772778 fi])])
773779
774 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
775 # Free Software Foundation, Inc.
776 #
777 # This file is free software; the Free Software Foundation
778 # gives unlimited permission to copy and/or distribute it,
779 # with or without modifications, as long as this notice is preserved.
780
781 # serial 10
780 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
781 # 2010, 2011 Free Software Foundation, Inc.
782 #
783 # This file is free software; the Free Software Foundation
784 # gives unlimited permission to copy and/or distribute it,
785 # with or without modifications, as long as this notice is preserved.
786
787 # serial 12
782788
783789 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
784790 # written in clear, in which case automake, when reading aclocal.m4,
818824 # instance it was reported that on HP-UX the gcc test will end up
819825 # making a dummy file named `D' -- because `-MD' means `put the output
820826 # in D'.
827 rm -rf conftest.dir
821828 mkdir conftest.dir
822829 # Copy depcomp to subdir because otherwise we won't find it if we're
823830 # using a relative directory.
882889 break
883890 fi
884891 ;;
885 msvisualcpp | msvcmsys)
892 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
886893 # This compiler won't grok `-c -o', but also, the minuso test has
887894 # not run yet. These depmodes are late enough in the game, and
888895 # so weak that their functioning should not be impacted.
947954 if test "x$enable_dependency_tracking" != xno; then
948955 am_depcomp="$ac_aux_dir/depcomp"
949956 AMDEPBACKSLASH='\'
957 am__nodep='_no'
950958 fi
951959 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
952960 AC_SUBST([AMDEPBACKSLASH])dnl
953961 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
962 AC_SUBST([am__nodep])dnl
963 _AM_SUBST_NOTMAKE([am__nodep])dnl
954964 ])
955965
956966 # Generate code to set up dependency tracking. -*- Autoconf -*-
11841194 done
11851195 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
11861196
1187 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
1188 #
1189 # This file is free software; the Free Software Foundation
1190 # gives unlimited permission to copy and/or distribute it,
1191 # with or without modifications, as long as this notice is preserved.
1197 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
1198 # Inc.
1199 #
1200 # This file is free software; the Free Software Foundation
1201 # gives unlimited permission to copy and/or distribute it,
1202 # with or without modifications, as long as this notice is preserved.
1203
1204 # serial 1
11921205
11931206 # AM_PROG_INSTALL_SH
11941207 # ------------------
13561369 fi
13571370 ])
13581371
1359 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1360 #
1361 # This file is free software; the Free Software Foundation
1362 # gives unlimited permission to copy and/or distribute it,
1363 # with or without modifications, as long as this notice is preserved.
1372 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
1373 # Inc.
1374 #
1375 # This file is free software; the Free Software Foundation
1376 # gives unlimited permission to copy and/or distribute it,
1377 # with or without modifications, as long as this notice is preserved.
1378
1379 # serial 1
13641380
13651381 # AM_PROG_MKDIR_P
13661382 # ---------------
13841400
13851401 # Helper functions for option handling. -*- Autoconf -*-
13861402
1387 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
1388 #
1389 # This file is free software; the Free Software Foundation
1390 # gives unlimited permission to copy and/or distribute it,
1391 # with or without modifications, as long as this notice is preserved.
1392
1393 # serial 4
1403 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1404 # Foundation, Inc.
1405 #
1406 # This file is free software; the Free Software Foundation
1407 # gives unlimited permission to copy and/or distribute it,
1408 # with or without modifications, as long as this notice is preserved.
1409
1410 # serial 5
13941411
13951412 # _AM_MANGLE_OPTION(NAME)
13961413 # -----------------------
13981415 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
13991416
14001417 # _AM_SET_OPTION(NAME)
1401 # ------------------------------
1418 # --------------------
14021419 # Set option NAME. Presently that only means defining a flag for this option.
14031420 AC_DEFUN([_AM_SET_OPTION],
14041421 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
14051422
14061423 # _AM_SET_OPTIONS(OPTIONS)
1407 # ----------------------------------
1424 # ------------------------
14081425 # OPTIONS is a space-separated list of Automake options.
14091426 AC_DEFUN([_AM_SET_OPTIONS],
14101427 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
14801497 fi
14811498 AC_MSG_RESULT(yes)])
14821499
1483 # Copyright (C) 2009 Free Software Foundation, Inc.
1484 #
1485 # This file is free software; the Free Software Foundation
1486 # gives unlimited permission to copy and/or distribute it,
1487 # with or without modifications, as long as this notice is preserved.
1488
1489 # serial 1
1500 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1501 #
1502 # This file is free software; the Free Software Foundation
1503 # gives unlimited permission to copy and/or distribute it,
1504 # with or without modifications, as long as this notice is preserved.
1505
1506 # serial 2
14901507
14911508 # AM_SILENT_RULES([DEFAULT])
14921509 # --------------------------
15011518 no) AM_DEFAULT_VERBOSITY=1;;
15021519 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
15031520 esac
1521 dnl
1522 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1523 dnl do not support nested variable expansions.
1524 dnl See automake bug#9928 and bug#10237.
1525 am_make=${MAKE-make}
1526 AC_CACHE_CHECK([whether $am_make supports nested variables],
1527 [am_cv_make_support_nested_variables],
1528 [if AS_ECHO([['TRUE=$(BAR$(V))
1529 BAR0=false
1530 BAR1=true
1531 V=1
1532 am__doit:
1533 @$(TRUE)
1534 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1535 am_cv_make_support_nested_variables=yes
1536 else
1537 am_cv_make_support_nested_variables=no
1538 fi])
1539 if test $am_cv_make_support_nested_variables = yes; then
1540 dnl Using `$V' instead of `$(V)' breaks IRIX make.
1541 AM_V='$(V)'
1542 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1543 else
1544 AM_V=$AM_DEFAULT_VERBOSITY
1545 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1546 fi
1547 AC_SUBST([AM_V])dnl
1548 AM_SUBST_NOTMAKE([AM_V])dnl
1549 AC_SUBST([AM_DEFAULT_V])dnl
1550 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
15041551 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
15051552 AM_BACKSLASH='\'
15061553 AC_SUBST([AM_BACKSLASH])dnl
15071554 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
15081555 ])
15091556
1510 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1511 #
1512 # This file is free software; the Free Software Foundation
1513 # gives unlimited permission to copy and/or distribute it,
1514 # with or without modifications, as long as this notice is preserved.
1557 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1558 #
1559 # This file is free software; the Free Software Foundation
1560 # gives unlimited permission to copy and/or distribute it,
1561 # with or without modifications, as long as this notice is preserved.
1562
1563 # serial 1
15151564
15161565 # AM_PROG_INSTALL_STRIP
15171566 # ---------------------
15351584 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15361585 AC_SUBST([INSTALL_STRIP_PROGRAM])])
15371586
1538 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1539 #
1540 # This file is free software; the Free Software Foundation
1541 # gives unlimited permission to copy and/or distribute it,
1542 # with or without modifications, as long as this notice is preserved.
1543
1544 # serial 2
1587 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1588 #
1589 # This file is free software; the Free Software Foundation
1590 # gives unlimited permission to copy and/or distribute it,
1591 # with or without modifications, as long as this notice is preserved.
1592
1593 # serial 3
15451594
15461595 # _AM_SUBST_NOTMAKE(VARIABLE)
15471596 # ---------------------------
15501599 AC_DEFUN([_AM_SUBST_NOTMAKE])
15511600
15521601 # AM_SUBST_NOTMAKE(VARIABLE)
1553 # ---------------------------
1602 # --------------------------
15541603 # Public sister of _AM_SUBST_NOTMAKE.
15551604 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
15561605
15571606 # Check how to create a tarball. -*- Autoconf -*-
15581607
1559 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1608 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
15601609 #
15611610 # This file is free software; the Free Software Foundation
15621611 # gives unlimited permission to copy and/or distribute it,
15781627 # a tarball read from stdin.
15791628 # $(am__untar) < result.tar
15801629 AC_DEFUN([_AM_PROG_TAR],
1581 [# Always define AMTAR for backward compatibility.
1582 AM_MISSING_PROG([AMTAR], [tar])
1630 [# Always define AMTAR for backward compatibility. Yes, it's still used
1631 # in the wild :-( We should find a proper way to deprecate it ...
1632 AC_SUBST([AMTAR], ['$${TAR-tar}'])
15831633 m4_if([$1], [v7],
1584 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1634 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
15851635 [m4_case([$1], [ustar],, [pax],,
15861636 [m4_fatal([Unknown tar format])])
15871637 AC_MSG_CHECKING([how to create a $1 tar archive])
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2012-01-04.17; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free
6 # Software Foundation, Inc.
7 # Written by Tom Tromey <tromey@cygnus.com>.
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
12 # any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that program.
26
27 # This file is maintained in Automake, please report
28 # bugs to <bug-automake@gnu.org> or send patches to
29 # <automake-patches@gnu.org>.
30
31 nl='
32 '
33
34 # We need space, tab and new line, in precisely that order. Quoting is
35 # there to prevent tools from complaining about whitespace usage.
36 IFS=" "" $nl"
37
38 file_conv=
39
40 # func_file_conv build_file lazy
41 # Convert a $build file to $host form and store it in $file
42 # Currently only supports Windows hosts. If the determined conversion
43 # type is listed in (the comma separated) LAZY, no conversion will
44 # take place.
45 func_file_conv ()
46 {
47 file=$1
48 case $file in
49 / | /[!/]*) # absolute file, and not a UNC file
50 if test -z "$file_conv"; then
51 # lazily determine how to convert abs files
52 case `uname -s` in
53 MINGW*)
54 file_conv=mingw
55 ;;
56 CYGWIN*)
57 file_conv=cygwin
58 ;;
59 *)
60 file_conv=wine
61 ;;
62 esac
63 fi
64 case $file_conv/,$2, in
65 *,$file_conv,*)
66 ;;
67 mingw/*)
68 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
69 ;;
70 cygwin/*)
71 file=`cygpath -m "$file" || echo "$file"`
72 ;;
73 wine/*)
74 file=`winepath -w "$file" || echo "$file"`
75 ;;
76 esac
77 ;;
78 esac
79 }
80
81 # func_cl_wrapper cl arg...
82 # Adjust compile command to suit cl
83 func_cl_wrapper ()
84 {
85 # Assume a capable shell
86 lib_path=
87 shared=:
88 linker_opts=
89 for arg
90 do
91 if test -n "$eat"; then
92 eat=
93 else
94 case $1 in
95 -o)
96 # configure might choose to run compile as 'compile cc -o foo foo.c'.
97 eat=1
98 case $2 in
99 *.o | *.[oO][bB][jJ])
100 func_file_conv "$2"
101 set x "$@" -Fo"$file"
102 shift
103 ;;
104 *)
105 func_file_conv "$2"
106 set x "$@" -Fe"$file"
107 shift
108 ;;
109 esac
110 ;;
111 -I*)
112 func_file_conv "${1#-I}" mingw
113 set x "$@" -I"$file"
114 shift
115 ;;
116 -l*)
117 lib=${1#-l}
118 found=no
119 save_IFS=$IFS
120 IFS=';'
121 for dir in $lib_path $LIB
122 do
123 IFS=$save_IFS
124 if $shared && test -f "$dir/$lib.dll.lib"; then
125 found=yes
126 set x "$@" "$dir/$lib.dll.lib"
127 break
128 fi
129 if test -f "$dir/$lib.lib"; then
130 found=yes
131 set x "$@" "$dir/$lib.lib"
132 break
133 fi
134 done
135 IFS=$save_IFS
136
137 test "$found" != yes && set x "$@" "$lib.lib"
138 shift
139 ;;
140 -L*)
141 func_file_conv "${1#-L}"
142 if test -z "$lib_path"; then
143 lib_path=$file
144 else
145 lib_path="$lib_path;$file"
146 fi
147 linker_opts="$linker_opts -LIBPATH:$file"
148 ;;
149 -static)
150 shared=false
151 ;;
152 -Wl,*)
153 arg=${1#-Wl,}
154 save_ifs="$IFS"; IFS=','
155 for flag in $arg; do
156 IFS="$save_ifs"
157 linker_opts="$linker_opts $flag"
158 done
159 IFS="$save_ifs"
160 ;;
161 -Xlinker)
162 eat=1
163 linker_opts="$linker_opts $2"
164 ;;
165 -*)
166 set x "$@" "$1"
167 shift
168 ;;
169 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
170 func_file_conv "$1"
171 set x "$@" -Tp"$file"
172 shift
173 ;;
174 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
175 func_file_conv "$1" mingw
176 set x "$@" "$file"
177 shift
178 ;;
179 *)
180 set x "$@" "$1"
181 shift
182 ;;
183 esac
184 fi
185 shift
186 done
187 if test -n "$linker_opts"; then
188 linker_opts="-link$linker_opts"
189 fi
190 exec "$@" $linker_opts
191 exit 1
192 }
193
194 eat=
195
196 case $1 in
197 '')
198 echo "$0: No command. Try '$0 --help' for more information." 1>&2
199 exit 1;
200 ;;
201 -h | --h*)
202 cat <<\EOF
203 Usage: compile [--help] [--version] PROGRAM [ARGS]
204
205 Wrapper for compilers which do not understand '-c -o'.
206 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
207 arguments, and rename the output as expected.
208
209 If you are trying to build a whole package this is not the
210 right script to run: please start by reading the file 'INSTALL'.
211
212 Report bugs to <bug-automake@gnu.org>.
213 EOF
214 exit $?
215 ;;
216 -v | --v*)
217 echo "compile $scriptversion"
218 exit $?
219 ;;
220 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
221 func_cl_wrapper "$@" # Doesn't return...
222 ;;
223 esac
224
225 ofile=
226 cfile=
227
228 for arg
229 do
230 if test -n "$eat"; then
231 eat=
232 else
233 case $1 in
234 -o)
235 # configure might choose to run compile as 'compile cc -o foo foo.c'.
236 # So we strip '-o arg' only if arg is an object.
237 eat=1
238 case $2 in
239 *.o | *.obj)
240 ofile=$2
241 ;;
242 *)
243 set x "$@" -o "$2"
244 shift
245 ;;
246 esac
247 ;;
248 *.c)
249 cfile=$1
250 set x "$@" "$1"
251 shift
252 ;;
253 *)
254 set x "$@" "$1"
255 shift
256 ;;
257 esac
258 fi
259 shift
260 done
261
262 if test -z "$ofile" || test -z "$cfile"; then
263 # If no '-o' option was seen then we might have been invoked from a
264 # pattern rule where we don't need one. That is ok -- this is a
265 # normal compilation that the losing compiler can handle. If no
266 # '.c' file was seen then we are probably linking. That is also
267 # ok.
268 exec "$@"
269 fi
270
271 # Name of file we expect compiler to create.
272 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
273
274 # Create the lock directory.
275 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
276 # that we are using for the .o file. Also, base the name on the expected
277 # object file name, since that is what matters with a parallel build.
278 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
279 while true; do
280 if mkdir "$lockdir" >/dev/null 2>&1; then
281 break
282 fi
283 sleep 1
284 done
285 # FIXME: race condition here if user kills between mkdir and trap.
286 trap "rmdir '$lockdir'; exit 1" 1 2 15
287
288 # Run the compile.
289 "$@"
290 ret=$?
291
292 if test -f "$cofile"; then
293 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
294 elif test -f "${cofile}bj"; then
295 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
296 fi
297
298 rmdir "$lockdir"
299 exit $ret
300
301 # Local Variables:
302 # mode: shell-script
303 # sh-indentation: 2
304 # eval: (add-hook 'write-file-hooks 'time-stamp)
305 # time-stamp-start: "scriptversion="
306 # time-stamp-format: "%:y-%02m-%02d.%02H"
307 # time-stamp-time-zone: "UTC"
308 # time-stamp-end: "; # UTC"
309 # End:
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-01-01'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
22 #
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner. Please send patches (context
30 # diff format) to <config-patches@gnu.org> and include a ChangeLog
31 # entry.
32 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
36 #
37 # You can get the latest version of this script from:
38 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
39
40 me=`echo "$0" | sed -e 's,.*/,,'`
41
42 usage="\
43 Usage: $0 [OPTION]
44
45 Output the configuration name of the system \`$me' is run on.
46
47 Operation modes:
48 -h, --help print this help, then exit
49 -t, --time-stamp print date of last modification, then exit
50 -v, --version print version number, then exit
51
52 Report bugs and patches to <config-patches@gnu.org>."
53
54 version="\
55 GNU config.guess ($timestamp)
56
57 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
59 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
60 Free Software Foundation, Inc.
61
62 This is free software; see the source for copying conditions. There is NO
63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
64
65 help="
66 Try \`$me --help' for more information."
67
68 # Parse command line
69 while test $# -gt 0 ; do
70 case $1 in
71 --time-stamp | --time* | -t )
72 echo "$timestamp" ; exit ;;
73 --version | -v )
74 echo "$version" ; exit ;;
75 --help | --h* | -h )
76 echo "$usage"; exit ;;
77 -- ) # Stop option processing
78 shift; break ;;
79 - ) # Use stdin as input.
80 break ;;
81 -* )
82 echo "$me: invalid option $1$help" >&2
83 exit 1 ;;
84 * )
85 break ;;
86 esac
87 done
88
89 if test $# != 0; then
90 echo "$me: too many arguments$help" >&2
91 exit 1
92 fi
93
94 trap 'exit 1' 1 2 15
95
96 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
97 # compiler to aid in system detection is discouraged as it requires
98 # temporary files to be created and, as you can see below, it is a
99 # headache to deal with in a portable fashion.
100
101 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
102 # use `HOST_CC' if defined, but it is deprecated.
103
104 # Portable tmp directory creation inspired by the Autoconf team.
105
106 set_cc_for_build='
107 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
109 : ${TMPDIR=/tmp} ;
110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
113 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
114 dummy=$tmp/dummy ;
115 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
116 case $CC_FOR_BUILD,$HOST_CC,$CC in
117 ,,) echo "int x;" > $dummy.c ;
118 for c in cc gcc c89 c99 ; do
119 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
120 CC_FOR_BUILD="$c"; break ;
121 fi ;
122 done ;
123 if test x"$CC_FOR_BUILD" = x ; then
124 CC_FOR_BUILD=no_compiler_found ;
125 fi
126 ;;
127 ,,*) CC_FOR_BUILD=$CC ;;
128 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
129 esac ; set_cc_for_build= ;'
130
131 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
132 # (ghazi@noc.rutgers.edu 1994-08-24)
133 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
134 PATH=$PATH:/.attbin ; export PATH
135 fi
136
137 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
138 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
139 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
140 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141
142 # Note: order is significant - the case branches are not exclusive.
143
144 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
145 *:NetBSD:*:*)
146 # NetBSD (nbsd) targets should (where applicable) match one or
147 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
148 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
149 # switched to ELF, *-*-netbsd* would select the old
150 # object file format. This provides both forward
151 # compatibility and a consistent mechanism for selecting the
152 # object file format.
153 #
154 # Note: NetBSD doesn't particularly care about the vendor
155 # portion of the name. We always set it to "unknown".
156 sysctl="sysctl -n hw.machine_arch"
157 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
158 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
159 case "${UNAME_MACHINE_ARCH}" in
160 armeb) machine=armeb-unknown ;;
161 arm*) machine=arm-unknown ;;
162 sh3el) machine=shl-unknown ;;
163 sh3eb) machine=sh-unknown ;;
164 sh5el) machine=sh5le-unknown ;;
165 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
166 esac
167 # The Operating System including object format, if it has switched
168 # to ELF recently, or will in the future.
169 case "${UNAME_MACHINE_ARCH}" in
170 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
171 eval $set_cc_for_build
172 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
173 | grep -q __ELF__
174 then
175 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
176 # Return netbsd for either. FIX?
177 os=netbsd
178 else
179 os=netbsdelf
180 fi
181 ;;
182 *)
183 os=netbsd
184 ;;
185 esac
186 # The OS release
187 # Debian GNU/NetBSD machines have a different userland, and
188 # thus, need a distinct triplet. However, they do not need
189 # kernel version information, so it can be replaced with a
190 # suitable tag, in the style of linux-gnu.
191 case "${UNAME_VERSION}" in
192 Debian*)
193 release='-gnu'
194 ;;
195 *)
196 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
197 ;;
198 esac
199 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
200 # contains redundant information, the shorter form:
201 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
202 echo "${machine}-${os}${release}"
203 exit ;;
204 *:OpenBSD:*:*)
205 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
207 exit ;;
208 *:ekkoBSD:*:*)
209 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
210 exit ;;
211 *:SolidBSD:*:*)
212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
213 exit ;;
214 macppc:MirBSD:*:*)
215 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
216 exit ;;
217 *:MirBSD:*:*)
218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
219 exit ;;
220 alpha:OSF1:*:*)
221 case $UNAME_RELEASE in
222 *4.0)
223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
224 ;;
225 *5.*)
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
227 ;;
228 esac
229 # According to Compaq, /usr/sbin/psrinfo has been available on
230 # OSF/1 and Tru64 systems produced since 1995. I hope that
231 # covers most systems running today. This code pipes the CPU
232 # types through head -n 1, so we only detect the type of CPU 0.
233 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
234 case "$ALPHA_CPU_TYPE" in
235 "EV4 (21064)")
236 UNAME_MACHINE="alpha" ;;
237 "EV4.5 (21064)")
238 UNAME_MACHINE="alpha" ;;
239 "LCA4 (21066/21068)")
240 UNAME_MACHINE="alpha" ;;
241 "EV5 (21164)")
242 UNAME_MACHINE="alphaev5" ;;
243 "EV5.6 (21164A)")
244 UNAME_MACHINE="alphaev56" ;;
245 "EV5.6 (21164PC)")
246 UNAME_MACHINE="alphapca56" ;;
247 "EV5.7 (21164PC)")
248 UNAME_MACHINE="alphapca57" ;;
249 "EV6 (21264)")
250 UNAME_MACHINE="alphaev6" ;;
251 "EV6.7 (21264A)")
252 UNAME_MACHINE="alphaev67" ;;
253 "EV6.8CB (21264C)")
254 UNAME_MACHINE="alphaev68" ;;
255 "EV6.8AL (21264B)")
256 UNAME_MACHINE="alphaev68" ;;
257 "EV6.8CX (21264D)")
258 UNAME_MACHINE="alphaev68" ;;
259 "EV6.9A (21264/EV69A)")
260 UNAME_MACHINE="alphaev69" ;;
261 "EV7 (21364)")
262 UNAME_MACHINE="alphaev7" ;;
263 "EV7.9 (21364A)")
264 UNAME_MACHINE="alphaev79" ;;
265 esac
266 # A Pn.n version is a patched version.
267 # A Vn.n version is a released version.
268 # A Tn.n version is a released field test version.
269 # A Xn.n version is an unreleased experimental baselevel.
270 # 1.2 uses "1.2" for uname -r.
271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
272 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
273 exitcode=$?
274 trap '' 0
275 exit $exitcode ;;
276 Alpha\ *:Windows_NT*:*)
277 # How do we know it's Interix rather than the generic POSIX subsystem?
278 # Should we change UNAME_MACHINE based on the output of uname instead
279 # of the specific Alpha model?
280 echo alpha-pc-interix
281 exit ;;
282 21064:Windows_NT:50:3)
283 echo alpha-dec-winnt3.5
284 exit ;;
285 Amiga*:UNIX_System_V:4.0:*)
286 echo m68k-unknown-sysv4
287 exit ;;
288 *:[Aa]miga[Oo][Ss]:*:*)
289 echo ${UNAME_MACHINE}-unknown-amigaos
290 exit ;;
291 *:[Mm]orph[Oo][Ss]:*:*)
292 echo ${UNAME_MACHINE}-unknown-morphos
293 exit ;;
294 *:OS/390:*:*)
295 echo i370-ibm-openedition
296 exit ;;
297 *:z/VM:*:*)
298 echo s390-ibm-zvmoe
299 exit ;;
300 *:OS400:*:*)
301 echo powerpc-ibm-os400
302 exit ;;
303 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
304 echo arm-acorn-riscix${UNAME_RELEASE}
305 exit ;;
306 arm:riscos:*:*|arm:RISCOS:*:*)
307 echo arm-unknown-riscos
308 exit ;;
309 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
310 echo hppa1.1-hitachi-hiuxmpp
311 exit ;;
312 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
313 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
314 if test "`(/bin/universe) 2>/dev/null`" = att ; then
315 echo pyramid-pyramid-sysv3
316 else
317 echo pyramid-pyramid-bsd
318 fi
319 exit ;;
320 NILE*:*:*:dcosx)
321 echo pyramid-pyramid-svr4
322 exit ;;
323 DRS?6000:unix:4.0:6*)
324 echo sparc-icl-nx6
325 exit ;;
326 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
327 case `/usr/bin/uname -p` in
328 sparc) echo sparc-icl-nx7; exit ;;
329 esac ;;
330 s390x:SunOS:*:*)
331 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332 exit ;;
333 sun4H:SunOS:5.*:*)
334 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335 exit ;;
336 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
337 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
338 exit ;;
339 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
340 echo i386-pc-auroraux${UNAME_RELEASE}
341 exit ;;
342 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
343 eval $set_cc_for_build
344 SUN_ARCH="i386"
345 # If there is a compiler, see if it is configured for 64-bit objects.
346 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
347 # This test works for both compilers.
348 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
349 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
350 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
351 grep IS_64BIT_ARCH >/dev/null
352 then
353 SUN_ARCH="x86_64"
354 fi
355 fi
356 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
357 exit ;;
358 sun4*:SunOS:6*:*)
359 # According to config.sub, this is the proper way to canonicalize
360 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
361 # it's likely to be more like Solaris than SunOS4.
362 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
363 exit ;;
364 sun4*:SunOS:*:*)
365 case "`/usr/bin/arch -k`" in
366 Series*|S4*)
367 UNAME_RELEASE=`uname -v`
368 ;;
369 esac
370 # Japanese Language versions have a version number like `4.1.3-JL'.
371 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
372 exit ;;
373 sun3*:SunOS:*:*)
374 echo m68k-sun-sunos${UNAME_RELEASE}
375 exit ;;
376 sun*:*:4.2BSD:*)
377 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
378 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
379 case "`/bin/arch`" in
380 sun3)
381 echo m68k-sun-sunos${UNAME_RELEASE}
382 ;;
383 sun4)
384 echo sparc-sun-sunos${UNAME_RELEASE}
385 ;;
386 esac
387 exit ;;
388 aushp:SunOS:*:*)
389 echo sparc-auspex-sunos${UNAME_RELEASE}
390 exit ;;
391 # The situation for MiNT is a little confusing. The machine name
392 # can be virtually everything (everything which is not
393 # "atarist" or "atariste" at least should have a processor
394 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
395 # to the lowercase version "mint" (or "freemint"). Finally
396 # the system name "TOS" denotes a system which is actually not
397 # MiNT. But MiNT is downward compatible to TOS, so this should
398 # be no problem.
399 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
400 echo m68k-atari-mint${UNAME_RELEASE}
401 exit ;;
402 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
403 echo m68k-atari-mint${UNAME_RELEASE}
404 exit ;;
405 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
406 echo m68k-atari-mint${UNAME_RELEASE}
407 exit ;;
408 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
409 echo m68k-milan-mint${UNAME_RELEASE}
410 exit ;;
411 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
412 echo m68k-hades-mint${UNAME_RELEASE}
413 exit ;;
414 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
415 echo m68k-unknown-mint${UNAME_RELEASE}
416 exit ;;
417 m68k:machten:*:*)
418 echo m68k-apple-machten${UNAME_RELEASE}
419 exit ;;
420 powerpc:machten:*:*)
421 echo powerpc-apple-machten${UNAME_RELEASE}
422 exit ;;
423 RISC*:Mach:*:*)
424 echo mips-dec-mach_bsd4.3
425 exit ;;
426 RISC*:ULTRIX:*:*)
427 echo mips-dec-ultrix${UNAME_RELEASE}
428 exit ;;
429 VAX*:ULTRIX*:*:*)
430 echo vax-dec-ultrix${UNAME_RELEASE}
431 exit ;;
432 2020:CLIX:*:* | 2430:CLIX:*:*)
433 echo clipper-intergraph-clix${UNAME_RELEASE}
434 exit ;;
435 mips:*:*:UMIPS | mips:*:*:RISCos)
436 eval $set_cc_for_build
437 sed 's/^ //' << EOF >$dummy.c
438 #ifdef __cplusplus
439 #include <stdio.h> /* for printf() prototype */
440 int main (int argc, char *argv[]) {
441 #else
442 int main (argc, argv) int argc; char *argv[]; {
443 #endif
444 #if defined (host_mips) && defined (MIPSEB)
445 #if defined (SYSTYPE_SYSV)
446 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
447 #endif
448 #if defined (SYSTYPE_SVR4)
449 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
450 #endif
451 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
452 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
453 #endif
454 #endif
455 exit (-1);
456 }
457 EOF
458 $CC_FOR_BUILD -o $dummy $dummy.c &&
459 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
460 SYSTEM_NAME=`$dummy $dummyarg` &&
461 { echo "$SYSTEM_NAME"; exit; }
462 echo mips-mips-riscos${UNAME_RELEASE}
463 exit ;;
464 Motorola:PowerMAX_OS:*:*)
465 echo powerpc-motorola-powermax
466 exit ;;
467 Motorola:*:4.3:PL8-*)
468 echo powerpc-harris-powermax
469 exit ;;
470 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
471 echo powerpc-harris-powermax
472 exit ;;
473 Night_Hawk:Power_UNIX:*:*)
474 echo powerpc-harris-powerunix
475 exit ;;
476 m88k:CX/UX:7*:*)
477 echo m88k-harris-cxux7
478 exit ;;
479 m88k:*:4*:R4*)
480 echo m88k-motorola-sysv4
481 exit ;;
482 m88k:*:3*:R3*)
483 echo m88k-motorola-sysv3
484 exit ;;
485 AViiON:dgux:*:*)
486 # DG/UX returns AViiON for all architectures
487 UNAME_PROCESSOR=`/usr/bin/uname -p`
488 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
489 then
490 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
491 [ ${TARGET_BINARY_INTERFACE}x = x ]
492 then
493 echo m88k-dg-dgux${UNAME_RELEASE}
494 else
495 echo m88k-dg-dguxbcs${UNAME_RELEASE}
496 fi
497 else
498 echo i586-dg-dgux${UNAME_RELEASE}
499 fi
500 exit ;;
501 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
502 echo m88k-dolphin-sysv3
503 exit ;;
504 M88*:*:R3*:*)
505 # Delta 88k system running SVR3
506 echo m88k-motorola-sysv3
507 exit ;;
508 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
509 echo m88k-tektronix-sysv3
510 exit ;;
511 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
512 echo m68k-tektronix-bsd
513 exit ;;
514 *:IRIX*:*:*)
515 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
516 exit ;;
517 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
518 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
519 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
520 i*86:AIX:*:*)
521 echo i386-ibm-aix
522 exit ;;
523 ia64:AIX:*:*)
524 if [ -x /usr/bin/oslevel ] ; then
525 IBM_REV=`/usr/bin/oslevel`
526 else
527 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
528 fi
529 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
530 exit ;;
531 *:AIX:2:3)
532 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
533 eval $set_cc_for_build
534 sed 's/^ //' << EOF >$dummy.c
535 #include <sys/systemcfg.h>
536
537 main()
538 {
539 if (!__power_pc())
540 exit(1);
541 puts("powerpc-ibm-aix3.2.5");
542 exit(0);
543 }
544 EOF
545 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
546 then
547 echo "$SYSTEM_NAME"
548 else
549 echo rs6000-ibm-aix3.2.5
550 fi
551 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
552 echo rs6000-ibm-aix3.2.4
553 else
554 echo rs6000-ibm-aix3.2
555 fi
556 exit ;;
557 *:AIX:*:[4567])
558 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
559 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
560 IBM_ARCH=rs6000
561 else
562 IBM_ARCH=powerpc
563 fi
564 if [ -x /usr/bin/oslevel ] ; then
565 IBM_REV=`/usr/bin/oslevel`
566 else
567 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
568 fi
569 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
570 exit ;;
571 *:AIX:*:*)
572 echo rs6000-ibm-aix
573 exit ;;
574 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
575 echo romp-ibm-bsd4.4
576 exit ;;
577 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
578 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
579 exit ;; # report: romp-ibm BSD 4.3
580 *:BOSX:*:*)
581 echo rs6000-bull-bosx
582 exit ;;
583 DPX/2?00:B.O.S.:*:*)
584 echo m68k-bull-sysv3
585 exit ;;
586 9000/[34]??:4.3bsd:1.*:*)
587 echo m68k-hp-bsd
588 exit ;;
589 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
590 echo m68k-hp-bsd4.4
591 exit ;;
592 9000/[34678]??:HP-UX:*:*)
593 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
594 case "${UNAME_MACHINE}" in
595 9000/31? ) HP_ARCH=m68000 ;;
596 9000/[34]?? ) HP_ARCH=m68k ;;
597 9000/[678][0-9][0-9])
598 if [ -x /usr/bin/getconf ]; then
599 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
600 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
601 case "${sc_cpu_version}" in
602 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
603 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
604 532) # CPU_PA_RISC2_0
605 case "${sc_kernel_bits}" in
606 32) HP_ARCH="hppa2.0n" ;;
607 64) HP_ARCH="hppa2.0w" ;;
608 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
609 esac ;;
610 esac
611 fi
612 if [ "${HP_ARCH}" = "" ]; then
613 eval $set_cc_for_build
614 sed 's/^ //' << EOF >$dummy.c
615
616 #define _HPUX_SOURCE
617 #include <stdlib.h>
618 #include <unistd.h>
619
620 int main ()
621 {
622 #if defined(_SC_KERNEL_BITS)
623 long bits = sysconf(_SC_KERNEL_BITS);
624 #endif
625 long cpu = sysconf (_SC_CPU_VERSION);
626
627 switch (cpu)
628 {
629 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
630 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
631 case CPU_PA_RISC2_0:
632 #if defined(_SC_KERNEL_BITS)
633 switch (bits)
634 {
635 case 64: puts ("hppa2.0w"); break;
636 case 32: puts ("hppa2.0n"); break;
637 default: puts ("hppa2.0"); break;
638 } break;
639 #else /* !defined(_SC_KERNEL_BITS) */
640 puts ("hppa2.0"); break;
641 #endif
642 default: puts ("hppa1.0"); break;
643 }
644 exit (0);
645 }
646 EOF
647 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
648 test -z "$HP_ARCH" && HP_ARCH=hppa
649 fi ;;
650 esac
651 if [ ${HP_ARCH} = "hppa2.0w" ]
652 then
653 eval $set_cc_for_build
654
655 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
656 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
657 # generating 64-bit code. GNU and HP use different nomenclature:
658 #
659 # $ CC_FOR_BUILD=cc ./config.guess
660 # => hppa2.0w-hp-hpux11.23
661 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
662 # => hppa64-hp-hpux11.23
663
664 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
665 grep -q __LP64__
666 then
667 HP_ARCH="hppa2.0w"
668 else
669 HP_ARCH="hppa64"
670 fi
671 fi
672 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
673 exit ;;
674 ia64:HP-UX:*:*)
675 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
676 echo ia64-hp-hpux${HPUX_REV}
677 exit ;;
678 3050*:HI-UX:*:*)
679 eval $set_cc_for_build
680 sed 's/^ //' << EOF >$dummy.c
681 #include <unistd.h>
682 int
683 main ()
684 {
685 long cpu = sysconf (_SC_CPU_VERSION);
686 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
687 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
688 results, however. */
689 if (CPU_IS_PA_RISC (cpu))
690 {
691 switch (cpu)
692 {
693 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
694 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
695 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
696 default: puts ("hppa-hitachi-hiuxwe2"); break;
697 }
698 }
699 else if (CPU_IS_HP_MC68K (cpu))
700 puts ("m68k-hitachi-hiuxwe2");
701 else puts ("unknown-hitachi-hiuxwe2");
702 exit (0);
703 }
704 EOF
705 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
706 { echo "$SYSTEM_NAME"; exit; }
707 echo unknown-hitachi-hiuxwe2
708 exit ;;
709 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
710 echo hppa1.1-hp-bsd
711 exit ;;
712 9000/8??:4.3bsd:*:*)
713 echo hppa1.0-hp-bsd
714 exit ;;
715 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
716 echo hppa1.0-hp-mpeix
717 exit ;;
718 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
719 echo hppa1.1-hp-osf
720 exit ;;
721 hp8??:OSF1:*:*)
722 echo hppa1.0-hp-osf
723 exit ;;
724 i*86:OSF1:*:*)
725 if [ -x /usr/sbin/sysversion ] ; then
726 echo ${UNAME_MACHINE}-unknown-osf1mk
727 else
728 echo ${UNAME_MACHINE}-unknown-osf1
729 fi
730 exit ;;
731 parisc*:Lites*:*:*)
732 echo hppa1.1-hp-lites
733 exit ;;
734 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
735 echo c1-convex-bsd
736 exit ;;
737 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
738 if getsysinfo -f scalar_acc
739 then echo c32-convex-bsd
740 else echo c2-convex-bsd
741 fi
742 exit ;;
743 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
744 echo c34-convex-bsd
745 exit ;;
746 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
747 echo c38-convex-bsd
748 exit ;;
749 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
750 echo c4-convex-bsd
751 exit ;;
752 CRAY*Y-MP:*:*:*)
753 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
754 exit ;;
755 CRAY*[A-Z]90:*:*:*)
756 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
757 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
758 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
759 -e 's/\.[^.]*$/.X/'
760 exit ;;
761 CRAY*TS:*:*:*)
762 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
763 exit ;;
764 CRAY*T3E:*:*:*)
765 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
766 exit ;;
767 CRAY*SV1:*:*:*)
768 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
769 exit ;;
770 *:UNICOS/mp:*:*)
771 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
772 exit ;;
773 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
774 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
775 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
776 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
777 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
778 exit ;;
779 5000:UNIX_System_V:4.*:*)
780 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
781 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
782 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
783 exit ;;
784 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
785 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
786 exit ;;
787 sparc*:BSD/OS:*:*)
788 echo sparc-unknown-bsdi${UNAME_RELEASE}
789 exit ;;
790 *:BSD/OS:*:*)
791 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
792 exit ;;
793 *:FreeBSD:*:*)
794 UNAME_PROCESSOR=`/usr/bin/uname -p`
795 case ${UNAME_PROCESSOR} in
796 amd64)
797 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
798 *)
799 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
800 esac
801 exit ;;
802 i*:CYGWIN*:*)
803 echo ${UNAME_MACHINE}-pc-cygwin
804 exit ;;
805 *:MINGW*:*)
806 echo ${UNAME_MACHINE}-pc-mingw32
807 exit ;;
808 i*:MSYS*:*)
809 echo ${UNAME_MACHINE}-pc-msys
810 exit ;;
811 i*:windows32*:*)
812 # uname -m includes "-pc" on this system.
813 echo ${UNAME_MACHINE}-mingw32
814 exit ;;
815 i*:PW*:*)
816 echo ${UNAME_MACHINE}-pc-pw32
817 exit ;;
818 *:Interix*:*)
819 case ${UNAME_MACHINE} in
820 x86)
821 echo i586-pc-interix${UNAME_RELEASE}
822 exit ;;
823 authenticamd | genuineintel | EM64T)
824 echo x86_64-unknown-interix${UNAME_RELEASE}
825 exit ;;
826 IA64)
827 echo ia64-unknown-interix${UNAME_RELEASE}
828 exit ;;
829 esac ;;
830 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
831 echo i${UNAME_MACHINE}-pc-mks
832 exit ;;
833 8664:Windows_NT:*)
834 echo x86_64-pc-mks
835 exit ;;
836 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
837 # How do we know it's Interix rather than the generic POSIX subsystem?
838 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
839 # UNAME_MACHINE based on the output of uname instead of i386?
840 echo i586-pc-interix
841 exit ;;
842 i*:UWIN*:*)
843 echo ${UNAME_MACHINE}-pc-uwin
844 exit ;;
845 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
846 echo x86_64-unknown-cygwin
847 exit ;;
848 p*:CYGWIN*:*)
849 echo powerpcle-unknown-cygwin
850 exit ;;
851 prep*:SunOS:5.*:*)
852 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
853 exit ;;
854 *:GNU:*:*)
855 # the GNU system
856 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
857 exit ;;
858 *:GNU/*:*:*)
859 # other systems with GNU libc and userland
860 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
861 exit ;;
862 i*86:Minix:*:*)
863 echo ${UNAME_MACHINE}-pc-minix
864 exit ;;
865 alpha:Linux:*:*)
866 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
867 EV5) UNAME_MACHINE=alphaev5 ;;
868 EV56) UNAME_MACHINE=alphaev56 ;;
869 PCA56) UNAME_MACHINE=alphapca56 ;;
870 PCA57) UNAME_MACHINE=alphapca56 ;;
871 EV6) UNAME_MACHINE=alphaev6 ;;
872 EV67) UNAME_MACHINE=alphaev67 ;;
873 EV68*) UNAME_MACHINE=alphaev68 ;;
874 esac
875 objdump --private-headers /bin/sh | grep -q ld.so.1
876 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
877 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
878 exit ;;
879 arm*:Linux:*:*)
880 eval $set_cc_for_build
881 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
882 | grep -q __ARM_EABI__
883 then
884 echo ${UNAME_MACHINE}-unknown-linux-gnu
885 else
886 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
887 | grep -q __ARM_PCS_VFP
888 then
889 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
890 else
891 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
892 fi
893 fi
894 exit ;;
895 avr32*:Linux:*:*)
896 echo ${UNAME_MACHINE}-unknown-linux-gnu
897 exit ;;
898 cris:Linux:*:*)
899 echo ${UNAME_MACHINE}-axis-linux-gnu
900 exit ;;
901 crisv32:Linux:*:*)
902 echo ${UNAME_MACHINE}-axis-linux-gnu
903 exit ;;
904 frv:Linux:*:*)
905 echo ${UNAME_MACHINE}-unknown-linux-gnu
906 exit ;;
907 hexagon:Linux:*:*)
908 echo ${UNAME_MACHINE}-unknown-linux-gnu
909 exit ;;
910 i*86:Linux:*:*)
911 LIBC=gnu
912 eval $set_cc_for_build
913 sed 's/^ //' << EOF >$dummy.c
914 #ifdef __dietlibc__
915 LIBC=dietlibc
916 #endif
917 EOF
918 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
919 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
920 exit ;;
921 ia64:Linux:*:*)
922 echo ${UNAME_MACHINE}-unknown-linux-gnu
923 exit ;;
924 m32r*:Linux:*:*)
925 echo ${UNAME_MACHINE}-unknown-linux-gnu
926 exit ;;
927 m68*:Linux:*:*)
928 echo ${UNAME_MACHINE}-unknown-linux-gnu
929 exit ;;
930 mips:Linux:*:* | mips64:Linux:*:*)
931 eval $set_cc_for_build
932 sed 's/^ //' << EOF >$dummy.c
933 #undef CPU
934 #undef ${UNAME_MACHINE}
935 #undef ${UNAME_MACHINE}el
936 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
937 CPU=${UNAME_MACHINE}el
938 #else
939 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
940 CPU=${UNAME_MACHINE}
941 #else
942 CPU=
943 #endif
944 #endif
945 EOF
946 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
947 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
948 ;;
949 or32:Linux:*:*)
950 echo ${UNAME_MACHINE}-unknown-linux-gnu
951 exit ;;
952 padre:Linux:*:*)
953 echo sparc-unknown-linux-gnu
954 exit ;;
955 parisc64:Linux:*:* | hppa64:Linux:*:*)
956 echo hppa64-unknown-linux-gnu
957 exit ;;
958 parisc:Linux:*:* | hppa:Linux:*:*)
959 # Look for CPU level
960 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
961 PA7*) echo hppa1.1-unknown-linux-gnu ;;
962 PA8*) echo hppa2.0-unknown-linux-gnu ;;
963 *) echo hppa-unknown-linux-gnu ;;
964 esac
965 exit ;;
966 ppc64:Linux:*:*)
967 echo powerpc64-unknown-linux-gnu
968 exit ;;
969 ppc:Linux:*:*)
970 echo powerpc-unknown-linux-gnu
971 exit ;;
972 s390:Linux:*:* | s390x:Linux:*:*)
973 echo ${UNAME_MACHINE}-ibm-linux
974 exit ;;
975 sh64*:Linux:*:*)
976 echo ${UNAME_MACHINE}-unknown-linux-gnu
977 exit ;;
978 sh*:Linux:*:*)
979 echo ${UNAME_MACHINE}-unknown-linux-gnu
980 exit ;;
981 sparc:Linux:*:* | sparc64:Linux:*:*)
982 echo ${UNAME_MACHINE}-unknown-linux-gnu
983 exit ;;
984 tile*:Linux:*:*)
985 echo ${UNAME_MACHINE}-unknown-linux-gnu
986 exit ;;
987 vax:Linux:*:*)
988 echo ${UNAME_MACHINE}-dec-linux-gnu
989 exit ;;
990 x86_64:Linux:*:*)
991 echo ${UNAME_MACHINE}-unknown-linux-gnu
992 exit ;;
993 xtensa*:Linux:*:*)
994 echo ${UNAME_MACHINE}-unknown-linux-gnu
995 exit ;;
996 i*86:DYNIX/ptx:4*:*)
997 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
998 # earlier versions are messed up and put the nodename in both
999 # sysname and nodename.
1000 echo i386-sequent-sysv4
1001 exit ;;
1002 i*86:UNIX_SV:4.2MP:2.*)
1003 # Unixware is an offshoot of SVR4, but it has its own version
1004 # number series starting with 2...
1005 # I am not positive that other SVR4 systems won't match this,
1006 # I just have to hope. -- rms.
1007 # Use sysv4.2uw... so that sysv4* matches it.
1008 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1009 exit ;;
1010 i*86:OS/2:*:*)
1011 # If we were able to find `uname', then EMX Unix compatibility
1012 # is probably installed.
1013 echo ${UNAME_MACHINE}-pc-os2-emx
1014 exit ;;
1015 i*86:XTS-300:*:STOP)
1016 echo ${UNAME_MACHINE}-unknown-stop
1017 exit ;;
1018 i*86:atheos:*:*)
1019 echo ${UNAME_MACHINE}-unknown-atheos
1020 exit ;;
1021 i*86:syllable:*:*)
1022 echo ${UNAME_MACHINE}-pc-syllable
1023 exit ;;
1024 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1025 echo i386-unknown-lynxos${UNAME_RELEASE}
1026 exit ;;
1027 i*86:*DOS:*:*)
1028 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1029 exit ;;
1030 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1031 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1032 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1033 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1034 else
1035 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1036 fi
1037 exit ;;
1038 i*86:*:5:[678]*)
1039 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1040 case `/bin/uname -X | grep "^Machine"` in
1041 *486*) UNAME_MACHINE=i486 ;;
1042 *Pentium) UNAME_MACHINE=i586 ;;
1043 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1044 esac
1045 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1046 exit ;;
1047 i*86:*:3.2:*)
1048 if test -f /usr/options/cb.name; then
1049 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1050 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1051 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1052 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1053 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1054 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1055 && UNAME_MACHINE=i586
1056 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1057 && UNAME_MACHINE=i686
1058 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1059 && UNAME_MACHINE=i686
1060 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1061 else
1062 echo ${UNAME_MACHINE}-pc-sysv32
1063 fi
1064 exit ;;
1065 pc:*:*:*)
1066 # Left here for compatibility:
1067 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1068 # the processor, so we play safe by assuming i586.
1069 # Note: whatever this is, it MUST be the same as what config.sub
1070 # prints for the "djgpp" host, or else GDB configury will decide that
1071 # this is a cross-build.
1072 echo i586-pc-msdosdjgpp
1073 exit ;;
1074 Intel:Mach:3*:*)
1075 echo i386-pc-mach3
1076 exit ;;
1077 paragon:*:*:*)
1078 echo i860-intel-osf1
1079 exit ;;
1080 i860:*:4.*:*) # i860-SVR4
1081 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1082 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1083 else # Add other i860-SVR4 vendors below as they are discovered.
1084 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1085 fi
1086 exit ;;
1087 mini*:CTIX:SYS*5:*)
1088 # "miniframe"
1089 echo m68010-convergent-sysv
1090 exit ;;
1091 mc68k:UNIX:SYSTEM5:3.51m)
1092 echo m68k-convergent-sysv
1093 exit ;;
1094 M680?0:D-NIX:5.3:*)
1095 echo m68k-diab-dnix
1096 exit ;;
1097 M68*:*:R3V[5678]*:*)
1098 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1099 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)
1100 OS_REL=''
1101 test -r /etc/.relid \
1102 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1103 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1104 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1105 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1106 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1107 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1108 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1109 && { echo i486-ncr-sysv4; exit; } ;;
1110 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1111 OS_REL='.3'
1112 test -r /etc/.relid \
1113 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1114 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1115 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1116 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1117 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1118 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1119 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1120 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1121 echo m68k-unknown-lynxos${UNAME_RELEASE}
1122 exit ;;
1123 mc68030:UNIX_System_V:4.*:*)
1124 echo m68k-atari-sysv4
1125 exit ;;
1126 TSUNAMI:LynxOS:2.*:*)
1127 echo sparc-unknown-lynxos${UNAME_RELEASE}
1128 exit ;;
1129 rs6000:LynxOS:2.*:*)
1130 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1131 exit ;;
1132 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1133 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1134 exit ;;
1135 SM[BE]S:UNIX_SV:*:*)
1136 echo mips-dde-sysv${UNAME_RELEASE}
1137 exit ;;
1138 RM*:ReliantUNIX-*:*:*)
1139 echo mips-sni-sysv4
1140 exit ;;
1141 RM*:SINIX-*:*:*)
1142 echo mips-sni-sysv4
1143 exit ;;
1144 *:SINIX-*:*:*)
1145 if uname -p 2>/dev/null >/dev/null ; then
1146 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1147 echo ${UNAME_MACHINE}-sni-sysv4
1148 else
1149 echo ns32k-sni-sysv
1150 fi
1151 exit ;;
1152 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1153 # says <Richard.M.Bartel@ccMail.Census.GOV>
1154 echo i586-unisys-sysv4
1155 exit ;;
1156 *:UNIX_System_V:4*:FTX*)
1157 # From Gerald Hewes <hewes@openmarket.com>.
1158 # How about differentiating between stratus architectures? -djm
1159 echo hppa1.1-stratus-sysv4
1160 exit ;;
1161 *:*:*:FTX*)
1162 # From seanf@swdc.stratus.com.
1163 echo i860-stratus-sysv4
1164 exit ;;
1165 i*86:VOS:*:*)
1166 # From Paul.Green@stratus.com.
1167 echo ${UNAME_MACHINE}-stratus-vos
1168 exit ;;
1169 *:VOS:*:*)
1170 # From Paul.Green@stratus.com.
1171 echo hppa1.1-stratus-vos
1172 exit ;;
1173 mc68*:A/UX:*:*)
1174 echo m68k-apple-aux${UNAME_RELEASE}
1175 exit ;;
1176 news*:NEWS-OS:6*:*)
1177 echo mips-sony-newsos6
1178 exit ;;
1179 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1180 if [ -d /usr/nec ]; then
1181 echo mips-nec-sysv${UNAME_RELEASE}
1182 else
1183 echo mips-unknown-sysv${UNAME_RELEASE}
1184 fi
1185 exit ;;
1186 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1187 echo powerpc-be-beos
1188 exit ;;
1189 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1190 echo powerpc-apple-beos
1191 exit ;;
1192 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1193 echo i586-pc-beos
1194 exit ;;
1195 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1196 echo i586-pc-haiku
1197 exit ;;
1198 SX-4:SUPER-UX:*:*)
1199 echo sx4-nec-superux${UNAME_RELEASE}
1200 exit ;;
1201 SX-5:SUPER-UX:*:*)
1202 echo sx5-nec-superux${UNAME_RELEASE}
1203 exit ;;
1204 SX-6:SUPER-UX:*:*)
1205 echo sx6-nec-superux${UNAME_RELEASE}
1206 exit ;;
1207 SX-7:SUPER-UX:*:*)
1208 echo sx7-nec-superux${UNAME_RELEASE}
1209 exit ;;
1210 SX-8:SUPER-UX:*:*)
1211 echo sx8-nec-superux${UNAME_RELEASE}
1212 exit ;;
1213 SX-8R:SUPER-UX:*:*)
1214 echo sx8r-nec-superux${UNAME_RELEASE}
1215 exit ;;
1216 Power*:Rhapsody:*:*)
1217 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1218 exit ;;
1219 *:Rhapsody:*:*)
1220 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1221 exit ;;
1222 *:Darwin:*:*)
1223 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1224 case $UNAME_PROCESSOR in
1225 i386)
1226 eval $set_cc_for_build
1227 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1228 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1229 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1230 grep IS_64BIT_ARCH >/dev/null
1231 then
1232 UNAME_PROCESSOR="x86_64"
1233 fi
1234 fi ;;
1235 unknown) UNAME_PROCESSOR=powerpc ;;
1236 esac
1237 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1238 exit ;;
1239 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1240 UNAME_PROCESSOR=`uname -p`
1241 if test "$UNAME_PROCESSOR" = "x86"; then
1242 UNAME_PROCESSOR=i386
1243 UNAME_MACHINE=pc
1244 fi
1245 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1246 exit ;;
1247 *:QNX:*:4*)
1248 echo i386-pc-qnx
1249 exit ;;
1250 NEO-?:NONSTOP_KERNEL:*:*)
1251 echo neo-tandem-nsk${UNAME_RELEASE}
1252 exit ;;
1253 NSE-?:NONSTOP_KERNEL:*:*)
1254 echo nse-tandem-nsk${UNAME_RELEASE}
1255 exit ;;
1256 NSR-?:NONSTOP_KERNEL:*:*)
1257 echo nsr-tandem-nsk${UNAME_RELEASE}
1258 exit ;;
1259 *:NonStop-UX:*:*)
1260 echo mips-compaq-nonstopux
1261 exit ;;
1262 BS2000:POSIX*:*:*)
1263 echo bs2000-siemens-sysv
1264 exit ;;
1265 DS/*:UNIX_System_V:*:*)
1266 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1267 exit ;;
1268 *:Plan9:*:*)
1269 # "uname -m" is not consistent, so use $cputype instead. 386
1270 # is converted to i386 for consistency with other x86
1271 # operating systems.
1272 if test "$cputype" = "386"; then
1273 UNAME_MACHINE=i386
1274 else
1275 UNAME_MACHINE="$cputype"
1276 fi
1277 echo ${UNAME_MACHINE}-unknown-plan9
1278 exit ;;
1279 *:TOPS-10:*:*)
1280 echo pdp10-unknown-tops10
1281 exit ;;
1282 *:TENEX:*:*)
1283 echo pdp10-unknown-tenex
1284 exit ;;
1285 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1286 echo pdp10-dec-tops20
1287 exit ;;
1288 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1289 echo pdp10-xkl-tops20
1290 exit ;;
1291 *:TOPS-20:*:*)
1292 echo pdp10-unknown-tops20
1293 exit ;;
1294 *:ITS:*:*)
1295 echo pdp10-unknown-its
1296 exit ;;
1297 SEI:*:*:SEIUX)
1298 echo mips-sei-seiux${UNAME_RELEASE}
1299 exit ;;
1300 *:DragonFly:*:*)
1301 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1302 exit ;;
1303 *:*VMS:*:*)
1304 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1305 case "${UNAME_MACHINE}" in
1306 A*) echo alpha-dec-vms ; exit ;;
1307 I*) echo ia64-dec-vms ; exit ;;
1308 V*) echo vax-dec-vms ; exit ;;
1309 esac ;;
1310 *:XENIX:*:SysV)
1311 echo i386-pc-xenix
1312 exit ;;
1313 i*86:skyos:*:*)
1314 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1315 exit ;;
1316 i*86:rdos:*:*)
1317 echo ${UNAME_MACHINE}-pc-rdos
1318 exit ;;
1319 i*86:AROS:*:*)
1320 echo ${UNAME_MACHINE}-pc-aros
1321 exit ;;
1322 esac
1323
1324 #echo '(No uname command or uname output not recognized.)' 1>&2
1325 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1326
1327 eval $set_cc_for_build
1328 cat >$dummy.c <<EOF
1329 #ifdef _SEQUENT_
1330 # include <sys/types.h>
1331 # include <sys/utsname.h>
1332 #endif
1333 main ()
1334 {
1335 #if defined (sony)
1336 #if defined (MIPSEB)
1337 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1338 I don't know.... */
1339 printf ("mips-sony-bsd\n"); exit (0);
1340 #else
1341 #include <sys/param.h>
1342 printf ("m68k-sony-newsos%s\n",
1343 #ifdef NEWSOS4
1344 "4"
1345 #else
1346 ""
1347 #endif
1348 ); exit (0);
1349 #endif
1350 #endif
1351
1352 #if defined (__arm) && defined (__acorn) && defined (__unix)
1353 printf ("arm-acorn-riscix\n"); exit (0);
1354 #endif
1355
1356 #if defined (hp300) && !defined (hpux)
1357 printf ("m68k-hp-bsd\n"); exit (0);
1358 #endif
1359
1360 #if defined (NeXT)
1361 #if !defined (__ARCHITECTURE__)
1362 #define __ARCHITECTURE__ "m68k"
1363 #endif
1364 int version;
1365 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1366 if (version < 4)
1367 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1368 else
1369 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1370 exit (0);
1371 #endif
1372
1373 #if defined (MULTIMAX) || defined (n16)
1374 #if defined (UMAXV)
1375 printf ("ns32k-encore-sysv\n"); exit (0);
1376 #else
1377 #if defined (CMU)
1378 printf ("ns32k-encore-mach\n"); exit (0);
1379 #else
1380 printf ("ns32k-encore-bsd\n"); exit (0);
1381 #endif
1382 #endif
1383 #endif
1384
1385 #if defined (__386BSD__)
1386 printf ("i386-pc-bsd\n"); exit (0);
1387 #endif
1388
1389 #if defined (sequent)
1390 #if defined (i386)
1391 printf ("i386-sequent-dynix\n"); exit (0);
1392 #endif
1393 #if defined (ns32000)
1394 printf ("ns32k-sequent-dynix\n"); exit (0);
1395 #endif
1396 #endif
1397
1398 #if defined (_SEQUENT_)
1399 struct utsname un;
1400
1401 uname(&un);
1402
1403 if (strncmp(un.version, "V2", 2) == 0) {
1404 printf ("i386-sequent-ptx2\n"); exit (0);
1405 }
1406 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1407 printf ("i386-sequent-ptx1\n"); exit (0);
1408 }
1409 printf ("i386-sequent-ptx\n"); exit (0);
1410
1411 #endif
1412
1413 #if defined (vax)
1414 # if !defined (ultrix)
1415 # include <sys/param.h>
1416 # if defined (BSD)
1417 # if BSD == 43
1418 printf ("vax-dec-bsd4.3\n"); exit (0);
1419 # else
1420 # if BSD == 199006
1421 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1422 # else
1423 printf ("vax-dec-bsd\n"); exit (0);
1424 # endif
1425 # endif
1426 # else
1427 printf ("vax-dec-bsd\n"); exit (0);
1428 # endif
1429 # else
1430 printf ("vax-dec-ultrix\n"); exit (0);
1431 # endif
1432 #endif
1433
1434 #if defined (alliant) && defined (i860)
1435 printf ("i860-alliant-bsd\n"); exit (0);
1436 #endif
1437
1438 exit (1);
1439 }
1440 EOF
1441
1442 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1443 { echo "$SYSTEM_NAME"; exit; }
1444
1445 # Apollos put the system type in the environment.
1446
1447 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1448
1449 # Convex versions that predate uname can use getsysinfo(1)
1450
1451 if [ -x /usr/convex/getsysinfo ]
1452 then
1453 case `getsysinfo -f cpu_type` in
1454 c1*)
1455 echo c1-convex-bsd
1456 exit ;;
1457 c2*)
1458 if getsysinfo -f scalar_acc
1459 then echo c32-convex-bsd
1460 else echo c2-convex-bsd
1461 fi
1462 exit ;;
1463 c34*)
1464 echo c34-convex-bsd
1465 exit ;;
1466 c38*)
1467 echo c38-convex-bsd
1468 exit ;;
1469 c4*)
1470 echo c4-convex-bsd
1471 exit ;;
1472 esac
1473 fi
1474
1475 cat >&2 <<EOF
1476 $0: unable to guess system type
1477
1478 This script, last modified $timestamp, has failed to recognize
1479 the operating system you are using. It is advised that you
1480 download the most up to date version of the config scripts from
1481
1482 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1483 and
1484 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1485
1486 If the version you run ($0) is already up to date, please
1487 send the following data and any information you think might be
1488 pertinent to <config-patches@gnu.org> in order to provide the needed
1489 information to handle your system.
1490
1491 config.guess timestamp = $timestamp
1492
1493 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1494 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1495 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1496 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1497
1498 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1499 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1500
1501 hostinfo = `(hostinfo) 2>/dev/null`
1502 /bin/universe = `(/bin/universe) 2>/dev/null`
1503 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1504 /bin/arch = `(/bin/arch) 2>/dev/null`
1505 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1506 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1507
1508 UNAME_MACHINE = ${UNAME_MACHINE}
1509 UNAME_RELEASE = ${UNAME_RELEASE}
1510 UNAME_SYSTEM = ${UNAME_SYSTEM}
1511 UNAME_VERSION = ${UNAME_VERSION}
1512 EOF
1513
1514 exit 1
1515
1516 # Local variables:
1517 # eval: (add-hook 'write-file-hooks 'time-stamp)
1518 # time-stamp-start: "timestamp='"
1519 # time-stamp-format: "%:y-%02m-%02d"
1520 # time-stamp-end: "'"
1521 # End:
<
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-01-01'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
26 #
27 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted GNU ChangeLog entry.
35 #
36 # Configuration subroutine to validate and canonicalize a configuration type.
37 # Supply the specified configuration type as an argument.
38 # If it is invalid, we print an error message on stderr and exit with code 1.
39 # Otherwise, we print the canonical config type on stdout and succeed.
40
41 # You can get the latest version of this script from:
42 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
43
44 # This file is supposed to be the same for all GNU packages
45 # and recognize all the CPU types, system types and aliases
46 # that are meaningful with *any* GNU software.
47 # Each package is responsible for reporting which valid configurations
48 # it does not support. The user should be able to distinguish
49 # a failure to support a valid configuration from a meaningless
50 # configuration.
51
52 # The goal of this file is to map all the various variations of a given
53 # machine specification into a single specification in the form:
54 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
55 # or in some cases, the newer four-part form:
56 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
57 # It is wrong to echo any other type of specification.
58
59 me=`echo "$0" | sed -e 's,.*/,,'`
60
61 usage="\
62 Usage: $0 [OPTION] CPU-MFR-OPSYS
63 $0 [OPTION] ALIAS
64
65 Canonicalize a configuration name.
66
67 Operation modes:
68 -h, --help print this help, then exit
69 -t, --time-stamp print date of last modification, then exit
70 -v, --version print version number, then exit
71
72 Report bugs and patches to <config-patches@gnu.org>."
73
74 version="\
75 GNU config.sub ($timestamp)
76
77 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
79 Free Software Foundation, Inc.
80
81 This is free software; see the source for copying conditions. There is NO
82 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
83
84 help="
85 Try \`$me --help' for more information."
86
87 # Parse command line
88 while test $# -gt 0 ; do
89 case $1 in
90 --time-stamp | --time* | -t )
91 echo "$timestamp" ; exit ;;
92 --version | -v )
93 echo "$version" ; exit ;;
94 --help | --h* | -h )
95 echo "$usage"; exit ;;
96 -- ) # Stop option processing
97 shift; break ;;
98 - ) # Use stdin as input.
99 break ;;
100 -* )
101 echo "$me: invalid option $1$help"
102 exit 1 ;;
103
104 *local*)
105 # First pass through any local machine types.
106 echo $1
107 exit ;;
108
109 * )
110 break ;;
111 esac
112 done
113
114 case $# in
115 0) echo "$me: missing argument$help" >&2
116 exit 1;;
117 1) ;;
118 *) echo "$me: too many arguments$help" >&2
119 exit 1;;
120 esac
121
122 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
123 # Here we must recognize all the valid KERNEL-OS combinations.
124 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
125 case $maybe_os in
126 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
127 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
128 knetbsd*-gnu* | netbsd*-gnu* | \
129 kopensolaris*-gnu* | \
130 storm-chaos* | os2-emx* | rtmk-nova*)
131 os=-$maybe_os
132 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
133 ;;
134 *)
135 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
136 if [ $basic_machine != $1 ]
137 then os=`echo $1 | sed 's/.*-/-/'`
138 else os=; fi
139 ;;
140 esac
141
142 ### Let's recognize common machines as not being operating systems so
143 ### that things like config.sub decstation-3100 work. We also
144 ### recognize some manufacturers as not being operating systems, so we
145 ### can provide default operating systems below.
146 case $os in
147 -sun*os*)
148 # Prevent following clause from handling this invalid input.
149 ;;
150 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
151 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
152 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
153 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
154 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
155 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
156 -apple | -axis | -knuth | -cray | -microblaze)
157 os=
158 basic_machine=$1
159 ;;
160 -bluegene*)
161 os=-cnk
162 ;;
163 -sim | -cisco | -oki | -wec | -winbond)
164 os=
165 basic_machine=$1
166 ;;
167 -scout)
168 ;;
169 -wrs)
170 os=-vxworks
171 basic_machine=$1
172 ;;
173 -chorusos*)
174 os=-chorusos
175 basic_machine=$1
176 ;;
177 -chorusrdb)
178 os=-chorusrdb
179 basic_machine=$1
180 ;;
181 -hiux*)
182 os=-hiuxwe2
183 ;;
184 -sco6)
185 os=-sco5v6
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187 ;;
188 -sco5)
189 os=-sco3.2v5
190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
191 ;;
192 -sco4)
193 os=-sco3.2v4
194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195 ;;
196 -sco3.2.[4-9]*)
197 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
199 ;;
200 -sco3.2v[4-9]*)
201 # Don't forget version if it is 3.2v4 or newer.
202 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
203 ;;
204 -sco5v6*)
205 # Don't forget version if it is 3.2v4 or newer.
206 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
207 ;;
208 -sco*)
209 os=-sco3.2v2
210 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
211 ;;
212 -udk*)
213 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
214 ;;
215 -isc)
216 os=-isc2.2
217 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
218 ;;
219 -clix*)
220 basic_machine=clipper-intergraph
221 ;;
222 -isc*)
223 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
224 ;;
225 -lynx*)
226 os=-lynxos
227 ;;
228 -ptx*)
229 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
230 ;;
231 -windowsnt*)
232 os=`echo $os | sed -e 's/windowsnt/winnt/'`
233 ;;
234 -psos*)
235 os=-psos
236 ;;
237 -mint | -mint[0-9]*)
238 basic_machine=m68k-atari
239 os=-mint
240 ;;
241 esac
242
243 # Decode aliases for certain CPU-COMPANY combinations.
244 case $basic_machine in
245 # Recognize the basic CPU types without company name.
246 # Some are omitted here because they have special meanings below.
247 1750a | 580 \
248 | a29k \
249 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
250 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
251 | am33_2.0 \
252 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
253 | be32 | be64 \
254 | bfin \
255 | c4x | clipper \
256 | d10v | d30v | dlx | dsp16xx \
257 | epiphany \
258 | fido | fr30 | frv \
259 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
260 | hexagon \
261 | i370 | i860 | i960 | ia64 \
262 | ip2k | iq2000 \
263 | le32 | le64 \
264 | lm32 \
265 | m32c | m32r | m32rle | m68000 | m68k | m88k \
266 | maxq | mb | microblaze | mcore | mep | metag \
267 | mips | mipsbe | mipseb | mipsel | mipsle \
268 | mips16 \
269 | mips64 | mips64el \
270 | mips64octeon | mips64octeonel \
271 | mips64orion | mips64orionel \
272 | mips64r5900 | mips64r5900el \
273 | mips64vr | mips64vrel \
274 | mips64vr4100 | mips64vr4100el \
275 | mips64vr4300 | mips64vr4300el \
276 | mips64vr5000 | mips64vr5000el \
277 | mips64vr5900 | mips64vr5900el \
278 | mipsisa32 | mipsisa32el \
279 | mipsisa32r2 | mipsisa32r2el \
280 | mipsisa64 | mipsisa64el \
281 | mipsisa64r2 | mipsisa64r2el \
282 | mipsisa64sb1 | mipsisa64sb1el \
283 | mipsisa64sr71k | mipsisa64sr71kel \
284 | mipstx39 | mipstx39el \
285 | mn10200 | mn10300 \
286 | moxie \
287 | mt \
288 | msp430 \
289 | nds32 | nds32le | nds32be \
290 | nios | nios2 \
291 | ns16k | ns32k \
292 | open8 \
293 | or32 \
294 | pdp10 | pdp11 | pj | pjl \
295 | powerpc | powerpc64 | powerpc64le | powerpcle \
296 | pyramid \
297 | rl78 | rx \
298 | score \
299 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \