Codebase list virt-viewer / upstream/0.5.4
Imported Upstream version 0.5.4 Laurent Léonard 11 years ago
57 changed file(s) with 2585 addition(s) and 1020 deletion(s). Raw diff Collapse all Expand all
0 2012-09-17 Daniel P. Berrange <berrange@redhat.com>
1
2 Update for 0.5.4 releae
3
4 2012-09-14 Daniel P. Berrange <berrange@redhat.com>
5
6 Use a more specific regex to fix enum include paths
7 Simply doing a search replace on $(srcdir) doesn't work very
8 well in non-VPATH builds. Use a more specific regex that won't
9 generate false matches
10
11 Look in builddir for icons & strip build dir prefix from enum file includs
12
13 Don't include generated icons in tar.gz and clean them up
14
15 Convert to use Mingw64 toolchain for Windows biulds
16
17 2012-08-13 Christophe Fergeau <cfergeau@redhat.com>
18
19 Document -f=auto-conf in remote-viewer --help
20 virt-viewer does not support -f=auto-conf so this does not change the
21 option there.
22 Fixes rhbz#718001
23
24 2012-08-10 Christophe Fergeau <cfergeau@redhat.com>
25
26 Use real binary name in help message
27 Now that we have 2 distinct binaries, remote-viewer and virt-viewer,
28 'PACKAGE' can no longer be used in error messages as the name of the
29 binary. This causes a small inconsistency when running
30 'remote-viewer --foobar' as the error message would be:
31 'Unknown option --foobar
32 Run 'virt-viewer --help' to see a full list of available command line options'
33
34 This commit makes sure we use argv[0] for this message.
35 Fixes rhbz#814150
36
37 2012-07-23 Marc-André Lureau <marcandre.lureau@gmail.com>
38
39 Show status page by default if display not ready
40 Switch back to status page if display is not ready.
41
42 Make status widget visible immediately
43 GtkNotebook will use the currently visible widget as default page.
44 If we don't show status widget before we append the display, the
45 current page will be on display. Quoting Gtk+ documentation:
46
47 "Note that due to historical reasons, GtkNotebook refuses to switch to
48 a page unless the child widget is visible. Therefore, it is
49 recommended to show child widgets before adding them to a notebook."
50
51 vnc: when session is disconnected, make the display as non-ready
52
53 Simplify display flag handling
54
55 Add VirtViewerSession::session-display-updated
56 Rebuild menu when agent is connected. Only when the agent is running
57 may a display be enabled/disabled.
58
59 Make the display submenu insensitive if display can't be selected
60
61 spice: factor out main channel lookup code
62
63 Add VirtViewerDisplay::selectable property
64 This property will be set when the display can be selected to be
65 "enabled" and shown (this can involve creating/connecting an
66 additional guest monitor, and may need guest agent cooperation for
67 example).
68
69 Add virt_viewer_window_get_display()
70 Getter used in following changes.
71
72 Hook up handling of Monitors
73 Rely on spice-gtk display channel monitors property to manage
74 displays. The same display channel may now provide several monitors,
75 the SpiceDisplay widget must be told which monitor to display
76
77 Bump glib > 2.22, add compat file
78 We use API from 2.22, and some from further version. Add
79 virt-glib-compat.h fallback file for those.
80
81 Use SpiceDisplay:ready property instead of channel mark
82 The display can now check several conditions before the display can be
83 shown, use that instead of display mark, which was not high-level
84 enough.
85
86 Number display starting from 1
87
88 Prevent from adding the same display several time in the session
89 In virt_viewer_session_spice_display_monitors(), we (re)add the
90 display unconditionnaly every time we receive a new MonitorConfig.
91
92 Add a DISABLED display hint
93 This flag will help to track whether the display has been
94 removed/closed and whether it really has a valid display.
95
96 Ready in contrast, is used to "hide" temporarily the display (when
97 starting or redrawing the display, to avoid artifacts)
98
99 Use virt_viewer_connect_object() for display
100 When display is released, detach signal automatically.
101
102 Fix various crash related to not cleaning up signal handlers properly,
103 due to no longer 1-1 only relation between display widget and channel.
104
105 Rebuild display menu when a window is added or removed
106
107 Mark a menu string as translatable
108
109 Run-time check values before doing bad computation
110
111 Turn display:show-hint into flags type
112
113 Destroy dialog immediately after run
114 If the parent is already destroyed, it looks like the dialog is
115 destroyed too. This avoids a crash when calling app_quit().
116
117 build: generate enums type boilerplate
118
119 spice: disconnect signal handlers when either object is destroyed
120 Use virt_viewer_signal_connect_object(), a copy of telepathy
121 utility function tp_g_signal_connect_object(). This function
122 will take care of removing signal handler if any of emitter or
123 attached object are destroyed.
124
125 The following patches will have this condition met, since there is no
126 longer 1-1 relation between channel and display. The channels can
127 continue to be around when some of the display are removed.
128
129 spice: improve fullscreen=auto-conf
130 Do keep client monitor position, do not align monitors automatically.
131 The align property is only available since v0.12.101.
132
133 2012-07-03 Marc-André Lureau <marcandre.lureau@gmail.com>
134
135 build: allow building with newer glibc-headers and -O0
136 Fix copied from libvirt, commit by Eric Blake.
137
138 glibc 2.15 (on Fedora 17) coupled with explicit disabling of
139 optimization during development dies a painful death:
140
141 /usr/include/features.h:314:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
142
143 Work around this by only conditionally defining _FORTIFY_SOURCE,
144 in the case where glibc can actually use it. The trick is using
145 AH_VERBATIM instead of AC_DEFINE.
146
147 2012-06-15 Christophe Fergeau <cfergeau@redhat.com>
148
149 Revert "Fix virt_viewer_app_activate return value"
150 This reverts commit 3ce6df7c309068f36e2602692da809a153ed5688. This
151 commit broke virt-viewer which expects this function to return -1
152 or 0 on error, and a positive value on success in
153 virt_viewer_initial_connect.
154
155 2012-06-13 Christophe Fergeau <cfergeau@redhat.com>
156
157 Fix virt_viewer_app_activate return value
158 VirtViewerApp::activate is expected to return -1 on errors.
159 It calls the VirtViewerSession::open_* methods, which return FALSE
160 on error. However, VirtViewerApp::activate directly returns these
161 boolean instead of testing the returned value and properly returning
162 -1 on errors. This caused errors in these open methodes to be ignored.
163
164 Fix various memory leaks
165 ==25063== 59 bytes in 1 blocks are definitely lost in loss record 5,163 of 9,502
166 ==25063== at 0x4A0884D: malloc (vg_replace_malloc.c:263)
167 ==25063== by 0x3DE384D2BE: g_malloc (gmem.c:159)
168 ==25063== by 0x3DE3862D0B: g_strdup (gstrfuncs.c:356)
169 ==25063== by 0x41F40A: connected (remote-viewer-main.c:186)
170 ==25063== by 0x3DE400F663: g_closure_invoke (gclosure.c:777)
171 ==25063== by 0x3DE40206D7: signal_emit_unlocked_R (gsignal.c:3547)
172 ==25063== by 0x3DE402866C: g_signal_emit_valist (gsignal.c:3296)
173 ==25063== by 0x3DE4028CCF: g_signal_emit_by_name (gsignal.c:3389)
174 ==25063== by 0x41AA53: reemit_signal_VOID (virt-viewer-session-ovirt.c:211)
175 ==25063== by 0x3DE400F942: _g_closure_invoke_va (gclosure.c:840)
176 ==25063== by 0x3DE4027D87: g_signal_emit_valist (gsignal.c:3207)
177 ==25063== by 0x3DE4028CCF: g_signal_emit_by_name (gsignal.c:3389)
178
179 ==25063== 14 bytes in 1 blocks are definitely lost in loss record 623 of 9,502
180 ==25063== at 0x4A0884D: malloc (vg_replace_malloc.c:263)
181 ==25063== by 0x34561092F7: __vasprintf_chk (vasprintf_chk.c:82)
182 ==25063== by 0x3DE3882F1A: g_vasprintf (stdio2.h:199)
183 ==25063== by 0x3DE3862EDC: g_strdup_vprintf (gstrfuncs.c:509)
184 ==25063== by 0x3DE3862F7B: g_strdup_printf (gstrfuncs.c:535)
185 ==25063== by 0x40CBAE: virt_viewer_app_update_pretty_address (virt-viewer-app.c:1538)
186 ==25063== by 0x40FB55: virt_viewer_app_free_connect_info (virt-viewer-app.c:1707)
187 ==25063== by 0x40FBE9: virt_viewer_app_dispose (virt-viewer-app.c:1291)
188 ==25063== by 0x3DE40144F7: g_object_unref (gobject.c:2981)
189 ==25063== by 0x40C31A: main (remote-viewer-main.c:336)
190
191 ==25063== 10 bytes in 1 blocks are definitely lost in loss record 491 of 9,502
192 ==25063== at 0x4A0884D: malloc (vg_replace_malloc.c:263)
193 ==25063== by 0x34561092F7: __vasprintf_chk (vasprintf_chk.c:82)
194 ==25063== by 0x3DE3882F1A: g_vasprintf (stdio2.h:199)
195 ==25063== by 0x3DE3862EDC: g_strdup_vprintf (gstrfuncs.c:509)
196 ==25063== by 0x3DE3862F7B: g_strdup_printf (gstrfuncs.c:535)
197 ==25063== by 0x40DE36: window_update_menu_displays_cb (virt-viewer-app.c:1640)
198 ==25063== by 0x3DE383833F: g_hash_table_foreach (ghash.c:1524)
199 ==25063== by 0x3DE400F663: g_closure_invoke (gclosure.c:777)
200 ==25063== by 0x3DE40206D7: signal_emit_unlocked_R (gsignal.c:3547)
201 ==25063== by 0x3DE402866C: g_signal_emit_valist (gsignal.c:3296)
202 ==25063== by 0x3DE40287C1: g_signal_emit (gsignal.c:3352)
203 ==25063== by 0x5772F95: gtk_widget_show (gtkwidget.c:3225)
204
205 ==25063== 8,431 (72 direct, 8,359 indirect) bytes in 1 blocks are definitely lost in loss record 9,468 of 9,502
206 ==25063== at 0x4A0884D: malloc (vg_replace_malloc.c:263)
207 ==25063== by 0x3DE384D2BE: g_malloc (gmem.c:159)
208 ==25063== by 0x3DE38616B1: g_slice_alloc (gslice.c:1003)
209 ==25063== by 0x3DE3861C05: g_slice_alloc0 (gslice.c:1029)
210 ==25063== by 0x3DE402F96F: g_type_create_instance (gtype.c:1872)
211 ==25063== by 0x3DE40147A7: g_object_constructor (gobject.c:1849)
212 ==25063== by 0x3DE4016260: g_object_newv (gobject.c:1632)
213 ==25063== by 0x3DE40168AB: g_object_new (gobject.c:1542)
214 ==25063== by 0x40C4BD: virt_viewer_util_load_ui (virt-viewer-util.c:41)
215 ==25063== by 0x40C7EB: virt_viewer_auth_collect_credentials (virt-viewer-auth.c:43)
216 ==25063== by 0x41B391: authenticate_cb (virt-viewer-session-ovirt.c:430)
217 ==25063== by 0x3458C05E8F: ffi_call_unix64 (unix64.S:75)
218
219 ==25063== 32 (16 direct, 16 indirect) bytes in 1 blocks are definitely lost in loss record 3,962 of 9,502
220 ==25063== at 0x4A0884D: malloc (vg_replace_malloc.c:263)
221 ==25063== by 0x3DE384D2BE: g_malloc (gmem.c:159)
222 ==25063== by 0x3DE38616B1: g_slice_alloc (gslice.c:1003)
223 ==25063== by 0x3DE38629F2: g_slist_append (gslist.c:222)
224 ==25063== by 0x41483C: virt_viewer_window_init (virt-viewer-window.c:323)
225 ==25063== by 0x3DE402FA05: g_type_create_instance (gtype.c:1892)
226 ==25063== by 0x3DE40147A7: g_object_constructor (gobject.c:1849)
227 ==25063== by 0x3DE4015D70: g_object_newv (gobject.c:1713)
228 ==25063== by 0x3DE401655F: g_object_new_valist (gobject.c:1830)
229 ==25063== by 0x3DE4016893: g_object_new (gobject.c:1545)
230 ==25063== by 0x40DA34: virt_viewer_app_window_new (virt-viewer-app.c:590)
231 ==25063== by 0x40E300: virt_viewer_app_constructor (virt-viewer-app.c:1336)
232
233 ==30355== 4 bytes in 1 blocks are definitely lost in loss record 53 of 9,267
234 ==30355== at 0x4A0884D: malloc (vg_replace_malloc.c:263)
235 ==30355== by 0x3DE384D2BE: g_malloc (gmem.c:159)
236 ==30355== by 0x3DE3862D0B: g_strdup (gstrfuncs.c:356)
237 ==30355== by 0x3DE40360FC: value_copy_string (gvaluetypes.c:276)
238 ==30355== by 0x3DE40340CA: g_value_transform (gvalue.c:535)
239 ==30355== by 0x3FDAE621DD: gdk_screen_get_setting (gdkevents-x11.c:3022)
240 ==30355== by 0x3FDB3C7415: gtk_settings_get_property (gtksettings.c:1152)
241 ==30355== by 0x3DE4017A74: g_object_get_property (gobject.c:1289)
242 ==30355== by 0x414991: virt_viewer_window_disable_modifiers (virt-viewer-window.c:616)
243 ==30355== by 0x415922: virt_viewer_window_keyboard_grab (virt-viewer-window.c:931)
244 ==30355== by 0x3DE400F942: _g_closure_invoke_va (gclosure.c:840)
245 ==30355== by 0x3DE4027D87: g_signal_emit_valist (gsignal.c:3207)
246
247 Don't leak SPICE ticket
248
249 2012-05-17 Marc-André Lureau <marcandre.lureau@gmail.com>
250
251 spice: use weak references to display channel
252 Fix switch-host migration with Spice.
253
254 spice-gtk doesn't like channels staying around when they should be
255 destroyed/finalized, ie removed from session.
256
257 spice-gtk should probably learned to handle better the case of non
258 cooperating clients, and be able to dissociate a channel from a
259 session without waiting for it to be disposed, but for now, the
260 relation is quite tight.
261
0262 2012-05-15 Daniel P. Berrange <berrange@redhat.com>
1263
2264 Avoid use of deprecated GTK3 pointer APIs
00 Installation Instructions
11 *************************
22
3 Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
3 Copyright (C) 1994-1996, 1999-2002, 2004-2012 Free Software Foundation,
44 Inc.
55
66 Copying and distribution of this file, with or without modification,
308308 overridden in the site shell script).
309309
310310 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
311 an Autoconf bug. Until the bug is fixed you can use this workaround:
312
313 CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
311 an Autoconf limitation. Until the limitation is lifted, you can use
312 this workaround:
313
314 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
314315
315316 `configure' Invocation
316317 ======================
366367
367368 `configure' also accepts some other, not widely useful, options. Run
368369 `configure --help' for more details.
369
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1413
1514 @SET_MAKE@
1615 VPATH = @srcdir@
16 am__make_dryrun = \
17 { \
18 am__dry=no; \
19 case $$MAKEFLAGS in \
20 *\\[\ \ ]*) \
21 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
22 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
23 *) \
24 for am__flg in $$MAKEFLAGS; do \
25 case $$am__flg in \
26 *=*|--*) ;; \
27 *n*) am__dry=yes; break;; \
28 esac; \
29 done;; \
30 esac; \
31 test $$am__dry = yes; \
32 }
1733 pkgdatadir = $(datadir)/@PACKAGE@
1834 pkgincludedir = $(includedir)/@PACKAGE@
1935 pkglibdir = $(libdir)/@PACKAGE@
3551 subdir = .
3652 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
3753 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
38 $(srcdir)/mingw32-virt-viewer.spec.in \
39 $(srcdir)/virt-viewer.spec.in $(top_srcdir)/configure AUTHORS \
40 COPYING ChangeLog INSTALL NEWS build-aux/compile \
41 build-aux/config.guess build-aux/config.sub build-aux/depcomp \
54 $(srcdir)/mingw-virt-viewer.spec.in \
55 $(srcdir)/virt-viewer.spec.in $(top_srcdir)/build-aux/compile \
56 $(top_srcdir)/build-aux/config.guess \
57 $(top_srcdir)/build-aux/config.sub \
58 $(top_srcdir)/build-aux/install-sh \
59 $(top_srcdir)/build-aux/ltmain.sh \
60 $(top_srcdir)/build-aux/missing $(top_srcdir)/configure \
61 AUTHORS COPYING ChangeLog INSTALL NEWS build-aux/compile \
62 build-aux/config.guess build-aux/config.sub \
4263 build-aux/install-sh build-aux/ltmain.sh build-aux/missing
4364 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4465 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
5273 configure.lineno config.status.lineno
5374 mkinstalldirs = $(install_sh) -d
5475 CONFIG_HEADER = config.h
55 CONFIG_CLEAN_FILES = mingw32-virt-viewer.spec virt-viewer.spec
76 CONFIG_CLEAN_FILES = mingw-virt-viewer.spec virt-viewer.spec
5677 CONFIG_CLEAN_VPATH_FILES =
78 AM_V_P = $(am__v_P_@AM_V@)
79 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
80 am__v_P_0 = false
81 am__v_P_1 = :
5782 AM_V_GEN = $(am__v_GEN_@AM_V@)
5883 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
59 am__v_GEN_0 = @echo " GEN " $@;
84 am__v_GEN_0 = @echo " GEN " $@;
85 am__v_GEN_1 =
6086 AM_V_at = $(am__v_at_@AM_V@)
6187 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
6288 am__v_at_0 = @
89 am__v_at_1 =
6390 SOURCES =
6491 DIST_SOURCES =
6592 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
6996 install-pdf-recursive install-ps-recursive install-recursive \
7097 installcheck-recursive installdirs-recursive pdf-recursive \
7198 ps-recursive uninstall-recursive
99 am__can_run_installinfo = \
100 case $$AM_UPDATE_INFO_DIR in \
101 n|no|NO) false;; \
102 *) (install-info --version) >/dev/null 2>&1;; \
103 esac
72104 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
73105 distclean-recursive maintainer-clean-recursive
74106 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
75107 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
76 distdir dist dist-all distcheck
108 cscope distdir dist dist-all distcheck
77109 ETAGS = etags
78110 CTAGS = ctags
111 CSCOPE = cscope
79112 DIST_SUBDIRS = $(SUBDIRS)
80113 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
81114 distdir = $(PACKAGE)-$(VERSION)
86119 && rm -rf "$(distdir)" \
87120 || { sleep 5 && rm -rf "$(distdir)"; }; \
88121 else :; fi
122 am__post_remove_distdir = $(am__remove_distdir)
89123 am__relativize = \
90124 dir0=`pwd`; \
91125 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
113147 reldir="$$dir2"
114148 DIST_ARCHIVES = $(distdir).tar.gz
115149 GZIP_ENV = --best
150 DIST_TARGETS = dist-gzip
116151 distuninstallcheck_listfiles = find . -type f -print
117152 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
118153 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
151186 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
152187 GLIB2_CFLAGS = @GLIB2_CFLAGS@
153188 GLIB2_LIBS = @GLIB2_LIBS@
189 GLIB_MKENUMS = @GLIB_MKENUMS@
154190 GMOFILES = @GMOFILES@
155191 GMSGFMT = @GMSGFMT@
156192 GREP = @GREP@
387423
388424 distclean-hdr:
389425 -rm -f config.h stamp-h1
390 mingw32-virt-viewer.spec: $(top_builddir)/config.status $(srcdir)/mingw32-virt-viewer.spec.in
426 mingw-virt-viewer.spec: $(top_builddir)/config.status $(srcdir)/mingw-virt-viewer.spec.in
391427 cd $(top_builddir) && $(SHELL) ./config.status $@
392428 virt-viewer.spec: $(top_builddir)/config.status $(srcdir)/virt-viewer.spec.in
393429 cd $(top_builddir) && $(SHELL) ./config.status $@
402438 -rm -f libtool config.lt
403439
404440 # This directory's subdirectories are mostly independent; you can cd
405 # into them and run `make' without going through this Makefile.
406 # To change the values of `make' variables: instead of editing Makefiles,
407 # (1) if the variable is set in `config.status', edit `config.status'
408 # (which will cause the Makefiles to be regenerated when you run `make');
409 # (2) otherwise, pass the desired values on the `make' command line.
410 $(RECURSIVE_TARGETS):
441 # into them and run 'make' without going through this Makefile.
442 # To change the values of 'make' variables: instead of editing Makefiles,
443 # (1) if the variable is set in 'config.status', edit 'config.status'
444 # (which will cause the Makefiles to be regenerated when you run 'make');
445 # (2) otherwise, pass the desired values on the 'make' command line.
446 $(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS):
411447 @fail= failcom='exit 1'; \
412448 for f in x $$MAKEFLAGS; do \
413449 case $$f in \
417453 done; \
418454 dot_seen=no; \
419455 target=`echo $@ | sed s/-recursive//`; \
420 list='$(SUBDIRS)'; for subdir in $$list; do \
456 case "$@" in \
457 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
458 *) list='$(SUBDIRS)' ;; \
459 esac; \
460 for subdir in $$list; do \
421461 echo "Making $$target in $$subdir"; \
422462 if test "$$subdir" = "."; then \
423463 dot_seen=yes; \
431471 if test "$$dot_seen" = "no"; then \
432472 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
433473 fi; test -z "$$fail"
434
435 $(RECURSIVE_CLEAN_TARGETS):
436 @fail= failcom='exit 1'; \
437 for f in x $$MAKEFLAGS; do \
438 case $$f in \
439 *=* | --[!k]*);; \
440 *k*) failcom='fail=yes';; \
441 esac; \
442 done; \
443 dot_seen=no; \
444 case "$@" in \
445 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
446 *) list='$(SUBDIRS)' ;; \
447 esac; \
448 rev=''; for subdir in $$list; do \
449 if test "$$subdir" = "."; then :; else \
450 rev="$$subdir $$rev"; \
451 fi; \
452 done; \
453 rev="$$rev ."; \
454 target=`echo $@ | sed s/-recursive//`; \
455 for subdir in $$rev; do \
456 echo "Making $$target in $$subdir"; \
457 if test "$$subdir" = "."; then \
458 local_target="$$target-am"; \
459 else \
460 local_target="$$target"; \
461 fi; \
462 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
463 || eval $$failcom; \
464 done && test -z "$$fail"
465474 tags-recursive:
466475 list='$(SUBDIRS)'; for subdir in $$list; do \
467476 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
469478 ctags-recursive:
470479 list='$(SUBDIRS)'; for subdir in $$list; do \
471480 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
481 done
482 cscopelist-recursive:
483 list='$(SUBDIRS)'; for subdir in $$list; do \
484 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \
472485 done
473486
474487 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
533546 && $(am__cd) $(top_srcdir) \
534547 && gtags -i $(GTAGS_ARGS) "$$here"
535548
549 cscope: cscope.files
550 test ! -s cscope.files \
551 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
552
553 clean-cscope:
554 -rm -f cscope.files
555
556 cscope.files: clean-cscope cscopelist-recursive cscopelist
557
558 cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP)
559 list='$(SOURCES) $(HEADERS) $(LISP)'; \
560 case "$(srcdir)" in \
561 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
562 *) sdir=$(subdir)/$(srcdir) ;; \
563 esac; \
564 for i in $$list; do \
565 if test -f "$$i"; then \
566 echo "$(subdir)/$$i"; \
567 else \
568 echo "$$sdir/$$i"; \
569 fi; \
570 done >> $(top_builddir)/cscope.files
571
536572 distclean-tags:
537573 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
574 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
538575
539576 distdir: $(DISTFILES)
540577 $(am__remove_distdir)
570607 done
571608 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
572609 if test "$$subdir" = .; then :; else \
573 test -d "$(distdir)/$$subdir" \
574 || $(MKDIR_P) "$(distdir)/$$subdir" \
575 || exit 1; \
576 fi; \
577 done
578 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
579 if test "$$subdir" = .; then :; else \
610 $(am__make_dryrun) \
611 || test -d "$(distdir)/$$subdir" \
612 || $(MKDIR_P) "$(distdir)/$$subdir" \
613 || exit 1; \
580614 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
581615 $(am__relativize); \
582616 new_distdir=$$reldir; \
608642 || chmod -R a+r "$(distdir)"
609643 dist-gzip: distdir
610644 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
611 $(am__remove_distdir)
645 $(am__post_remove_distdir)
612646
613647 dist-bzip2: distdir
614648 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
615 $(am__remove_distdir)
649 $(am__post_remove_distdir)
616650
617651 dist-lzip: distdir
618652 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
619 $(am__remove_distdir)
620
621 dist-lzma: distdir
622 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
623 $(am__remove_distdir)
653 $(am__post_remove_distdir)
624654
625655 dist-xz: distdir
626656 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
627 $(am__remove_distdir)
657 $(am__post_remove_distdir)
628658
629659 dist-tarZ: distdir
630660 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
631 $(am__remove_distdir)
661 $(am__post_remove_distdir)
632662
633663 dist-shar: distdir
634664 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
635 $(am__remove_distdir)
665 $(am__post_remove_distdir)
636666
637667 dist-zip: distdir
638668 -rm -f $(distdir).zip
639669 zip -rq $(distdir).zip $(distdir)
640 $(am__remove_distdir)
641
642 dist dist-all: distdir
643 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
644 $(am__remove_distdir)
670 $(am__post_remove_distdir)
671
672 dist dist-all:
673 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
674 $(am__post_remove_distdir)
645675
646676 # This target untars the dist file and tries a VPATH configuration. Then
647677 # it guarantees that the distribution is self-contained by making another
652682 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
653683 *.tar.bz2*) \
654684 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
655 *.tar.lzma*) \
656 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
657685 *.tar.lz*) \
658686 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
659687 *.tar.xz*) \
665693 *.zip*) \
666694 unzip $(distdir).zip ;;\
667695 esac
668 chmod -R a-w $(distdir); chmod a+w $(distdir)
696 chmod -R a-w $(distdir); chmod u+w $(distdir)
669697 mkdir $(distdir)/_build
670698 mkdir $(distdir)/_inst
671699 chmod a-w $(distdir)
699727 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
700728 && cd "$$am__cwd" \
701729 || exit 1
702 $(am__remove_distdir)
730 $(am__post_remove_distdir)
703731 @(echo "$(distdir) archives ready for distribution: "; \
704732 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
705733 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
836864 uninstall-am:
837865
838866 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
839 ctags-recursive install-am install-strip tags-recursive
867 cscopelist-recursive ctags-recursive install-am install-strip \
868 tags-recursive
840869
841870 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
842 all all-am am--refresh check check-am clean clean-generic \
843 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
844 dist-gzip dist-hook dist-lzip dist-lzma dist-shar dist-tarZ \
871 all all-am am--refresh check check-am clean clean-cscope \
872 clean-generic clean-libtool cscope cscopelist \
873 cscopelist-recursive ctags ctags-recursive dist dist-all \
874 dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar dist-tarZ \
845875 dist-xz dist-zip distcheck distclean distclean-generic \
846876 distclean-hdr distclean-libtool distclean-tags distcleancheck \
847877 distdir distuninstallcheck dvi dvi-am html html-am info \
00 Virt Viewer News
11 ================
2
3 0.5.4: Sep 17, 2012
4 -------------------
5
6 - Fix host migration with Spice
7 - Fix misc memory leaks
8 - Fix build with newer glibc and -O0
9 - Improve automatic fullscreen Spice configuration
10 - Avoid crash when quiting application
11 - Rebuild display men whenever a window is added/removed
12 - Number displays starting from 1 instead of 0
13 - Add support for handling multiple monitors with Spice
14 - Menu display menu insensitive if no displays can be selected
15 - Use real binary name in remote-viewer help message
16 - Document -f=auto-conf in remote-viewer help
217
318 0.5.3: May 14, 2012
419 -------------------
1818
1919 http://gtk-vnc.sourceforge.net/
2020
21 Virt Viewer uses the SPICE-GTK (>= 0.11) widget to provide a
21 Virt Viewer uses the SPICE-GTK (>= 0.12.101) widget to provide a
2222 display of the SPICE protocol, which is available from:
2323
2424 http://spice-space.org/page/Spice-Gtk
1818
1919 warnCFLAGS=
2020
21 try_compiler_flags="-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables"
21 try_compiler_flags="-fexceptions -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables"
2222
2323 case "$enable_compile_warnings" in
2424 no)
4242 AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
4343 ;;
4444 esac
45
46 AH_VERBATIM([FORTIFY_SOURCE],
47 [/* Enable compile-time and run-time bounds-checking, and some warnings. */
48 #if defined __OPTIMIZE__ && __OPTIMIZE__
49 # define _FORTIFY_SOURCE 2
50 #endif
51 ])
4552
4653 compiler_flags=
4754 for option in $try_compiler_flags; do
0 # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
0 # generated automatically by aclocal 1.12.2 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
3
54 # This file is free software; the Free Software Foundation
65 # gives unlimited permission to copy and/or distribute it,
76 # with or without modifications, as long as this notice is preserved.
1716 [m4_warning([this file was generated for autoconf 2.68.
1817 You have another version of autoconf. It may work, but is not guaranteed to.
1918 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
19 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2120
2221 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
2322 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
647646 fi[]dnl
648647 ])# PKG_CHECK_MODULES
649648
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
649 # Copyright (C) 2002-2012 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.
654
655 # serial 8
658656
659657 # AM_AUTOMAKE_VERSION(VERSION)
660658 # ----------------------------
662660 # generated from the m4 files accompanying Automake X.Y.
663661 # (This private macro should not be called outside this file.)
664662 AC_DEFUN([AM_AUTOMAKE_VERSION],
665 [am__api_version='1.11'
663 [am__api_version='1.12'
666664 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
667665 dnl require some minimum version. Point them to the right macro.
668 m4_if([$1], [1.11.3], [],
666 m4_if([$1], [1.12.2], [],
669667 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
670668 ])
671669
681679 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
682680 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
683681 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
684 [AM_AUTOMAKE_VERSION([1.11.3])dnl
682 [AM_AUTOMAKE_VERSION([1.12.2])dnl
685683 m4_ifndef([AC_AUTOCONF_VERSION],
686684 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
687685 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
688686
689687 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
690688
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
689 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
690 #
691 # This file is free software; the Free Software Foundation
692 # gives unlimited permission to copy and/or distribute it,
693 # with or without modifications, as long as this notice is preserved.
694
695 # serial 2
698696
699697 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
700 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
701 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
698 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
699 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
702700 #
703701 # Of course, Automake must honor this variable whenever it calls a
704702 # tool from the auxiliary directory. The problem is that $srcdir (and
717715 #
718716 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
719717 # are both prefixed by $srcdir. In an in-source build this is usually
720 # harmless because $srcdir is `.', but things will broke when you
718 # harmless because $srcdir is '.', but things will broke when you
721719 # start a VPATH build or use an absolute $srcdir.
722720 #
723721 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
743741
744742 # AM_CONDITIONAL -*- Autoconf -*-
745743
746 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
747 # Free Software Foundation, Inc.
748 #
749 # This file is free software; the Free Software Foundation
750 # gives unlimited permission to copy and/or distribute it,
751 # with or without modifications, as long as this notice is preserved.
752
753 # serial 9
744 # Copyright (C) 1997-2012 Free Software Foundation, Inc.
745 #
746 # This file is free software; the Free Software Foundation
747 # gives unlimited permission to copy and/or distribute it,
748 # with or without modifications, as long as this notice is preserved.
749
750 # serial 10
754751
755752 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
756753 # -------------------------------------
757754 # Define a conditional.
758755 AC_DEFUN([AM_CONDITIONAL],
759 [AC_PREREQ(2.52)dnl
760 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
761 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
756 [AC_PREREQ([2.52])dnl
757 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
758 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
762759 AC_SUBST([$1_TRUE])dnl
763760 AC_SUBST([$1_FALSE])dnl
764761 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
777774 Usually this means the macro was only invoked conditionally.]])
778775 fi])])
779776
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
788
789 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
777 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
778 #
779 # This file is free software; the Free Software Foundation
780 # gives unlimited permission to copy and/or distribute it,
781 # with or without modifications, as long as this notice is preserved.
782
783 # serial 17
784
785 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
790786 # written in clear, in which case automake, when reading aclocal.m4,
791787 # will think it sees a *use*, and therefore will trigger all it's
792788 # C support machinery. Also note that it means that autoscan, seeing
796792 # _AM_DEPENDENCIES(NAME)
797793 # ----------------------
798794 # See how the compiler implements dependency checking.
799 # NAME is "CC", "CXX", "GCJ", or "OBJC".
795 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
800796 # We try a few techniques and use that to set a single cache variable.
801797 #
802798 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
809805 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
810806 AC_REQUIRE([AM_DEP_TRACK])dnl
811807
812 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
813 [$1], CXX, [depcc="$CXX" am_compiler_list=],
814 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
815 [$1], UPC, [depcc="$UPC" am_compiler_list=],
816 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
817 [depcc="$$1" am_compiler_list=])
808 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
809 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
810 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
811 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
812 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
813 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
814 [depcc="$$1" am_compiler_list=])
818815
819816 AC_CACHE_CHECK([dependency style of $depcc],
820817 [am_cv_$1_dependencies_compiler_type],
822819 # We make a subdir and do the tests there. Otherwise we can end up
823820 # making bogus files that we don't know about and never remove. For
824821 # instance it was reported that on HP-UX the gcc test will end up
825 # making a dummy file named `D' -- because `-MD' means `put the output
826 # in D'.
822 # making a dummy file named 'D' -- because '-MD' means "put the output
823 # in D".
827824 rm -rf conftest.dir
828825 mkdir conftest.dir
829826 # Copy depcomp to subdir because otherwise we won't find it if we're
863860 : > sub/conftest.c
864861 for i in 1 2 3 4 5 6; do
865862 echo '#include "conftst'$i'.h"' >> sub/conftest.c
866 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
867 # Solaris 8's {/usr,}/bin/sh.
868 touch sub/conftst$i.h
863 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
864 # Solaris 10 /bin/sh.
865 echo '/* dummy */' > sub/conftst$i.h
869866 done
870867 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
871868
872 # We check with `-c' and `-o' for the sake of the "dashmstdout"
869 # We check with '-c' and '-o' for the sake of the "dashmstdout"
873870 # mode. It turns out that the SunPro C++ compiler does not properly
874 # handle `-M -o', and we need to detect this. Also, some Intel
875 # versions had trouble with output in subdirs
871 # handle '-M -o', and we need to detect this. Also, some Intel
872 # versions had trouble with output in subdirs.
876873 am__obj=sub/conftest.${OBJEXT-o}
877874 am__minus_obj="-o $am__obj"
878875 case $depmode in
881878 test "$am__universal" = false || continue
882879 ;;
883880 nosideeffect)
884 # after this tag, mechanisms are not by side-effect, so they'll
885 # only be used when explicitly requested
881 # After this tag, mechanisms are not by side-effect, so they'll
882 # only be used when explicitly requested.
886883 if test "x$enable_dependency_tracking" = xyes; then
887884 continue
888885 else
890887 fi
891888 ;;
892889 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
893 # This compiler won't grok `-c -o', but also, the minuso test has
890 # This compiler won't grok '-c -o', but also, the minuso test has
894891 # not run yet. These depmodes are late enough in the game, and
895892 # so weak that their functioning should not be impacted.
896893 am__obj=conftest.${OBJEXT-o}
938935 # AM_SET_DEPDIR
939936 # -------------
940937 # Choose a directory name for dependency files.
941 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
938 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
942939 AC_DEFUN([AM_SET_DEPDIR],
943940 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
944941 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
948945 # AM_DEP_TRACK
949946 # ------------
950947 AC_DEFUN([AM_DEP_TRACK],
951 [AC_ARG_ENABLE(dependency-tracking,
952 [ --disable-dependency-tracking speeds up one-time build
953 --enable-dependency-tracking do not reject slow dependency extractors])
948 [AC_ARG_ENABLE([dependency-tracking], [dnl
949 AS_HELP_STRING(
950 [--enable-dependency-tracking],
951 [do not reject slow dependency extractors])
952 AS_HELP_STRING(
953 [--disable-dependency-tracking],
954 [speeds up one-time build])])
954955 if test "x$enable_dependency_tracking" != xno; then
955956 am_depcomp="$ac_aux_dir/depcomp"
956957 AMDEPBACKSLASH='\'
965966
966967 # Generate code to set up dependency tracking. -*- Autoconf -*-
967968
968 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
969 # Free Software Foundation, Inc.
970 #
971 # This file is free software; the Free Software Foundation
972 # gives unlimited permission to copy and/or distribute it,
973 # with or without modifications, as long as this notice is preserved.
974
975 #serial 5
969 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
970 #
971 # This file is free software; the Free Software Foundation
972 # gives unlimited permission to copy and/or distribute it,
973 # with or without modifications, as long as this notice is preserved.
974
975 # serial 6
976976
977977 # _AM_OUTPUT_DEPENDENCY_COMMANDS
978978 # ------------------------------
991991 # Strip MF so we end up with the name of the file.
992992 mf=`echo "$mf" | sed -e 's/:.*$//'`
993993 # Check whether this is an Automake generated Makefile or not.
994 # We used to match only the files named `Makefile.in', but
994 # We used to match only the files named 'Makefile.in', but
995995 # some people rename them; so instead we look at the file content.
996996 # Grep'ing the first line is not enough: some people post-process
997997 # each Makefile.in and add a new line on top of each file to say so.
10031003 continue
10041004 fi
10051005 # Extract the definition of DEPDIR, am__include, and am__quote
1006 # from the Makefile without running `make'.
1006 # from the Makefile without running 'make'.
10071007 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10081008 test -z "$DEPDIR" && continue
10091009 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10101010 test -z "am__include" && continue
10111011 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1012 # When using ansi2knr, U may be empty or an underscore; expand it
1013 U=`sed -n 's/^U = //p' < "$mf"`
10141012 # Find all dependency output files, they are included files with
10151013 # $(DEPDIR) in their names. We invoke sed twice because it is the
10161014 # simplest approach to changing $(DEPDIR) to its actual value in the
10171015 # expansion.
10181016 for file in `sed -n "
10191017 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1020 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1018 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10211019 # Make sure the directory exists.
10221020 test -f "$dirpart/$file" && continue
10231021 fdir=`AS_DIRNAME(["$file"])`
10351033 # This macro should only be invoked once -- use via AC_REQUIRE.
10361034 #
10371035 # This code is only required when automatic dependency tracking
1038 # is enabled. FIXME. This creates each `.P' file that we will
1036 # is enabled. FIXME. This creates each '.P' file that we will
10391037 # need in order to bootstrap the dependency handling code.
10401038 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
10411039 [AC_CONFIG_COMMANDS([depfiles],
10431041 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
10441042 ])
10451043
1046 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1047 # Free Software Foundation, Inc.
1044 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
10481045 #
10491046 # This file is free software; the Free Software Foundation
10501047 # gives unlimited permission to copy and/or distribute it,
10571054
10581055 # Do all the work for Automake. -*- Autoconf -*-
10591056
1060 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1061 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1062 #
1063 # This file is free software; the Free Software Foundation
1064 # gives unlimited permission to copy and/or distribute it,
1065 # with or without modifications, as long as this notice is preserved.
1066
1067 # serial 16
1057 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
1058 #
1059 # This file is free software; the Free Software Foundation
1060 # gives unlimited permission to copy and/or distribute it,
1061 # with or without modifications, as long as this notice is preserved.
1062
1063 # serial 19
10681064
10691065 # This macro actually does too much. Some checks are only needed if
10701066 # your package does certain things. But this isn't really a big deal.
11101106 # Define the identity of the package.
11111107 dnl Distinguish between old-style and new-style calls.
11121108 m4_ifval([$2],
1113 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1109 [AC_DIAGNOSE([obsolete],
1110 [$0: two- and three-arguments forms are deprecated. For more info, see:
1111 http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
1112 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
11141113 AC_SUBST([PACKAGE], [$1])dnl
11151114 AC_SUBST([VERSION], [$2])],
11161115 [_AM_SET_OPTIONS([$1])dnl
11171116 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1118 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1117 m4_if(
1118 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
1119 [ok:ok],,
11191120 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
11201121 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
11211122 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
11221123
11231124 _AM_IF_OPTION([no-define],,
1124 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1125 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1125 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
1126 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
11261127
11271128 # Some tools Automake needs.
11281129 AC_REQUIRE([AM_SANITY_CHECK])dnl
11291130 AC_REQUIRE([AC_ARG_PROGRAM])dnl
1130 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1131 AM_MISSING_PROG(AUTOCONF, autoconf)
1132 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1133 AM_MISSING_PROG(AUTOHEADER, autoheader)
1134 AM_MISSING_PROG(MAKEINFO, makeinfo)
1131 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
1132 AM_MISSING_PROG([AUTOCONF], [autoconf])
1133 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
1134 AM_MISSING_PROG([AUTOHEADER], [autoheader])
1135 AM_MISSING_PROG([MAKEINFO], [makeinfo])
11351136 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
11361137 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1137 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1138 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1139 # For better backward compatibility. To be removed once Automake 1.9.x
1140 # dies out for good. For more background, see:
1141 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
1142 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1143 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
11381144 # We need awk for the "check" target. The system "awk" is bad on
11391145 # some platforms.
11401146 AC_REQUIRE([AC_PROG_AWK])dnl
11451151 [_AM_PROG_TAR([v7])])])
11461152 _AM_IF_OPTION([no-dependencies],,
11471153 [AC_PROVIDE_IFELSE([AC_PROG_CC],
1148 [_AM_DEPENDENCIES(CC)],
1149 [define([AC_PROG_CC],
1150 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1154 [_AM_DEPENDENCIES([CC])],
1155 [m4_define([AC_PROG_CC],
1156 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
11511157 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1152 [_AM_DEPENDENCIES(CXX)],
1153 [define([AC_PROG_CXX],
1154 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1158 [_AM_DEPENDENCIES([CXX])],
1159 [m4_define([AC_PROG_CXX],
1160 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
11551161 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1156 [_AM_DEPENDENCIES(OBJC)],
1157 [define([AC_PROG_OBJC],
1158 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1162 [_AM_DEPENDENCIES([OBJC])],
1163 [m4_define([AC_PROG_OBJC],
1164 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
1165 dnl Support for Objective C++ was only introduced in Autoconf 2.65,
1166 dnl but we still cater to Autoconf 2.62.
1167 m4_ifdef([AC_PROG_OBJCXX],
1168 [AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
1169 [_AM_DEPENDENCIES([OBJCXX])],
1170 [m4_define([AC_PROG_OBJCXX],
1171 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
11591172 ])
11601173 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1161 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1162 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
1174 dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
1175 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
11631176 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
11641177 AC_CONFIG_COMMANDS_PRE(dnl
11651178 [m4_provide_if([_AM_COMPILER_EXEEXT],
11661179 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
11671180 ])
11681181
1169 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1182 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
11701183 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
11711184 dnl mangled by Autoconf and run in a shell conditional statement.
11721185 m4_define([_AC_COMPILER_EXEEXT],
11941207 done
11951208 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
11961209
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
1210 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
1211 #
1212 # This file is free software; the Free Software Foundation
1213 # gives unlimited permission to copy and/or distribute it,
1214 # with or without modifications, as long as this notice is preserved.
1215
1216 # serial 8
12051217
12061218 # AM_PROG_INSTALL_SH
12071219 # ------------------
12161228 install_sh="\${SHELL} $am_aux_dir/install-sh"
12171229 esac
12181230 fi
1219 AC_SUBST(install_sh)])
1220
1221 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1231 AC_SUBST([install_sh])])
1232
1233 # Copyright (C) 2003-2012 Free Software Foundation, Inc.
12221234 #
12231235 # This file is free software; the Free Software Foundation
12241236 # gives unlimited permission to copy and/or distribute it,
12411253
12421254 # Check to see how 'make' treats includes. -*- Autoconf -*-
12431255
1244 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
1245 #
1246 # This file is free software; the Free Software Foundation
1247 # gives unlimited permission to copy and/or distribute it,
1248 # with or without modifications, as long as this notice is preserved.
1249
1250 # serial 4
1256 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
1257 #
1258 # This file is free software; the Free Software Foundation
1259 # gives unlimited permission to copy and/or distribute it,
1260 # with or without modifications, as long as this notice is preserved.
1261
1262 # serial 5
12511263
12521264 # AM_MAKE_INCLUDE()
12531265 # -----------------
12661278 _am_result=none
12671279 # First try GNU make style include.
12681280 echo "include confinc" > confmf
1269 # Ignore all kinds of additional output from `make'.
1281 # Ignore all kinds of additional output from 'make'.
12701282 case `$am_make -s -f confmf 2> /dev/null` in #(
12711283 *the\ am__doit\ target*)
12721284 am__include=include
12911303 rm -f confinc confmf
12921304 ])
12931305
1294 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
1295 # Free Software Foundation, Inc.
1306 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
12961307 #
12971308 # This file is free software; the Free Software Foundation
12981309 # gives unlimited permission to copy and/or distribute it,
13281339
13291340 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
13301341
1331 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1332 # Free Software Foundation, Inc.
1333 #
1334 # This file is free software; the Free Software Foundation
1335 # gives unlimited permission to copy and/or distribute it,
1336 # with or without modifications, as long as this notice is preserved.
1337
1338 # serial 6
1342 # Copyright (C) 1997-2012 Free Software Foundation, Inc.
1343 #
1344 # This file is free software; the Free Software Foundation
1345 # gives unlimited permission to copy and/or distribute it,
1346 # with or without modifications, as long as this notice is preserved.
1347
1348 # serial 7
13391349
13401350 # AM_MISSING_PROG(NAME, PROGRAM)
13411351 # ------------------------------
13651375 am_missing_run="$MISSING --run "
13661376 else
13671377 am_missing_run=
1368 AC_MSG_WARN([`missing' script is too old or missing])
1378 AC_MSG_WARN(['missing' script is too old or missing])
13691379 fi
13701380 ])
13711381
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
1380
1381 # AM_PROG_MKDIR_P
1382 # ---------------
1383 # Check for `mkdir -p'.
1384 AC_DEFUN([AM_PROG_MKDIR_P],
1385 [AC_PREREQ([2.60])dnl
1386 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1387 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1388 dnl while keeping a definition of mkdir_p for backward compatibility.
1389 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1390 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1391 dnl Makefile.ins that do not define MKDIR_P, so we do our own
1392 dnl adjustment using top_builddir (which is defined more often than
1393 dnl MKDIR_P).
1394 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1395 case $mkdir_p in
1396 [[\\/$]]* | ?:[[\\/]]*) ;;
1397 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1398 esac
1399 ])
1400
14011382 # Helper functions for option handling. -*- Autoconf -*-
14021383
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
1384 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
1385 #
1386 # This file is free software; the Free Software Foundation
1387 # gives unlimited permission to copy and/or distribute it,
1388 # with or without modifications, as long as this notice is preserved.
1389
1390 # serial 6
14111391
14121392 # _AM_MANGLE_OPTION(NAME)
14131393 # -----------------------
14181398 # --------------------
14191399 # Set option NAME. Presently that only means defining a flag for this option.
14201400 AC_DEFUN([_AM_SET_OPTION],
1421 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1401 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
14221402
14231403 # _AM_SET_OPTIONS(OPTIONS)
14241404 # ------------------------
14341414
14351415 # Check to make sure that the build environment is sane. -*- Autoconf -*-
14361416
1437 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1438 # Free Software Foundation, Inc.
1439 #
1440 # This file is free software; the Free Software Foundation
1441 # gives unlimited permission to copy and/or distribute it,
1442 # with or without modifications, as long as this notice is preserved.
1443
1444 # serial 5
1417 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
1418 #
1419 # This file is free software; the Free Software Foundation
1420 # gives unlimited permission to copy and/or distribute it,
1421 # with or without modifications, as long as this notice is preserved.
1422
1423 # serial 9
14451424
14461425 # AM_SANITY_CHECK
14471426 # ---------------
14481427 AC_DEFUN([AM_SANITY_CHECK],
14491428 [AC_MSG_CHECKING([whether build environment is sane])
1450 # Just in case
1451 sleep 1
1452 echo timestamp > conftest.file
14531429 # Reject unsafe characters in $srcdir or the absolute working directory
14541430 # name. Accept space and tab only in the latter.
14551431 am_lf='
14601436 esac
14611437 case $srcdir in
14621438 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1463 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1439 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
14641440 esac
14651441
1466 # Do `set' in a subshell so we don't clobber the current shell's
1442 # Do 'set' in a subshell so we don't clobber the current shell's
14671443 # arguments. Must try -L first in case configure is actually a
14681444 # symlink; some systems play weird games with the mod time of symlinks
14691445 # (eg FreeBSD returns the mod time of the symlink's containing
14701446 # directory).
14711447 if (
1472 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1473 if test "$[*]" = "X"; then
1474 # -L didn't work.
1475 set X `ls -t "$srcdir/configure" conftest.file`
1476 fi
1477 rm -f conftest.file
1478 if test "$[*]" != "X $srcdir/configure conftest.file" \
1479 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1480
1481 # If neither matched, then we have a broken ls. This can happen
1482 # if, for instance, CONFIG_SHELL is bash and it inherits a
1483 # broken ls alias from the environment. This has actually
1484 # happened. Such a system could not be considered "sane".
1485 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1486 alias in your environment])
1487 fi
1488
1448 am_has_slept=no
1449 for am_try in 1 2; do
1450 echo "timestamp, slept: $am_has_slept" > conftest.file
1451 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1452 if test "$[*]" = "X"; then
1453 # -L didn't work.
1454 set X `ls -t "$srcdir/configure" conftest.file`
1455 fi
1456 if test "$[*]" != "X $srcdir/configure conftest.file" \
1457 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1458
1459 # If neither matched, then we have a broken ls. This can happen
1460 # if, for instance, CONFIG_SHELL is bash and it inherits a
1461 # broken ls alias from the environment. This has actually
1462 # happened. Such a system could not be considered "sane".
1463 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1464 alias in your environment])
1465 fi
1466 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1467 break
1468 fi
1469 # Just in case.
1470 sleep 1
1471 am_has_slept=yes
1472 done
14891473 test "$[2]" = conftest.file
14901474 )
14911475 then
14951479 AC_MSG_ERROR([newly created file is older than distributed files!
14961480 Check your system clock])
14971481 fi
1498 AC_MSG_RESULT(yes)])
1499
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
1482 AC_MSG_RESULT([yes])
1483 # If we didn't sleep, we still need to ensure time stamps of config.status and
1484 # generated files are strictly newer.
1485 am_sleep_pid=
1486 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1487 ( sleep 1 ) &
1488 am_sleep_pid=$!
1489 fi
1490 AC_CONFIG_COMMANDS_PRE(
1491 [AC_MSG_CHECKING([that generated files are newer than configure])
1492 if test -n "$am_sleep_pid"; then
1493 # Hide warnings about reused PIDs.
1494 wait $am_sleep_pid 2>/dev/null
1495 fi
1496 AC_MSG_RESULT([done])])
1497 rm -f conftest.file
1498 ])
1499
1500 # Copyright (C) 2009-2012 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 3
15071507
15081508 # AM_SILENT_RULES([DEFAULT])
15091509 # --------------------------
15101510 # Enable less verbose build rules; with the default set to DEFAULT
1511 # (`yes' being less verbose, `no' or empty being verbose).
1511 # ("yes" being less verbose, "no" or empty being verbose).
15121512 AC_DEFUN([AM_SILENT_RULES],
1513 [AC_ARG_ENABLE([silent-rules],
1514 [ --enable-silent-rules less verbose build output (undo: `make V=1')
1515 --disable-silent-rules verbose build output (undo: `make V=0')])
1516 case $enable_silent_rules in
1517 yes) AM_DEFAULT_VERBOSITY=0;;
1518 no) AM_DEFAULT_VERBOSITY=1;;
1519 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1513 [AC_ARG_ENABLE([silent-rules], [dnl
1514 AS_HELP_STRING(
1515 [--enable-silent-rules],
1516 [less verbose build output (undo: "make V=1")])
1517 AS_HELP_STRING(
1518 [--disable-silent-rules],
1519 [verbose build output (undo: "make V=0")])dnl
1520 ])
1521 case $enable_silent_rules in @%:@ (((
1522 yes) AM_DEFAULT_VERBOSITY=0;;
1523 no) AM_DEFAULT_VERBOSITY=1;;
1524 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
15201525 esac
15211526 dnl
1522 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1527 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
15231528 dnl do not support nested variable expansions.
15241529 dnl See automake bug#9928 and bug#10237.
15251530 am_make=${MAKE-make}
15371542 am_cv_make_support_nested_variables=no
15381543 fi])
15391544 if test $am_cv_make_support_nested_variables = yes; then
1540 dnl Using `$V' instead of `$(V)' breaks IRIX make.
1545 dnl Using '$V' instead of '$(V)' breaks IRIX make.
15411546 AM_V='$(V)'
15421547 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15431548 else
15541559 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
15551560 ])
15561561
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
1562 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
1563 #
1564 # This file is free software; the Free Software Foundation
1565 # gives unlimited permission to copy and/or distribute it,
1566 # with or without modifications, as long as this notice is preserved.
1567
1568 # serial 2
15641569
15651570 # AM_PROG_INSTALL_STRIP
15661571 # ---------------------
1567 # One issue with vendor `install' (even GNU) is that you can't
1572 # One issue with vendor 'install' (even GNU) is that you can't
15681573 # specify the program used to strip binaries. This is especially
15691574 # annoying in cross-compiling environments, where the build's strip
15701575 # is unlikely to handle the host's binaries.
15711576 # Fortunately install-sh will honor a STRIPPROG variable, so we
1572 # always use install-sh in `make install-strip', and initialize
1577 # always use install-sh in "make install-strip", and initialize
15731578 # STRIPPROG with the value of the STRIP variable (set by the user).
15741579 AC_DEFUN([AM_PROG_INSTALL_STRIP],
15751580 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1576 # Installed binaries are usually stripped using `strip' when the user
1577 # run `make install-strip'. However `strip' might not be the right
1581 # Installed binaries are usually stripped using 'strip' when the user
1582 # run "make install-strip". However 'strip' might not be the right
15781583 # tool to use in cross-compilation environments, therefore Automake
1579 # will honor the `STRIP' environment variable to overrule this program.
1580 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1584 # will honor the 'STRIP' environment variable to overrule this program.
1585 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
15811586 if test "$cross_compiling" != no; then
15821587 AC_CHECK_TOOL([STRIP], [strip], :)
15831588 fi
15841589 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15851590 AC_SUBST([INSTALL_STRIP_PROGRAM])])
15861591
1587 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1592 # Copyright (C) 2006-2012 Free Software Foundation, Inc.
15881593 #
15891594 # This file is free software; the Free Software Foundation
15901595 # gives unlimited permission to copy and/or distribute it,
16051610
16061611 # Check how to create a tarball. -*- Autoconf -*-
16071612
1608 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1609 #
1610 # This file is free software; the Free Software Foundation
1611 # gives unlimited permission to copy and/or distribute it,
1612 # with or without modifications, as long as this notice is preserved.
1613
1614 # serial 2
1613 # Copyright (C) 2004-2012 Free Software Foundation, Inc.
1614 #
1615 # This file is free software; the Free Software Foundation
1616 # gives unlimited permission to copy and/or distribute it,
1617 # with or without modifications, as long as this notice is preserved.
1618
1619 # serial 3
16151620
16161621 # _AM_PROG_TAR(FORMAT)
16171622 # --------------------
16181623 # Check how to create a tarball in format FORMAT.
1619 # FORMAT should be one of `v7', `ustar', or `pax'.
1624 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
16201625 #
16211626 # Substitute a variable $(am__tar) that is a command
16221627 # writing to stdout a FORMAT-tarball containing the directory
16391644 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
16401645 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
16411646 # Do not fold the above two line into one, because Tru64 sh and
1642 # Solaris sh will not grok spaces in the rhs of `-'.
1647 # Solaris sh will not grok spaces in the rhs of '-'.
16431648 for _am_tool in $_am_tools
16441649 do
16451650 case $_am_tool in
00 #! /bin/sh
11 # Wrapper for compilers which do not understand '-c -o'.
22
3 scriptversion=2012-01-04.17; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free
6 # Software Foundation, Inc.
3 scriptversion=2012-03-05.13; # UTC
4
5 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
76 # Written by Tom Tromey <tromey@cygnus.com>.
87 #
98 # This program is free software; you can redistribute it and/or modify
7675 esac
7776 ;;
7877 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 done
115 IFS=$save_IFS
116
117 if test "$found" != yes; then
118 lib=$lib.lib
119 fi
79120 }
80121
81122 # func_cl_wrapper cl arg...
108149 ;;
109150 esac
110151 ;;
152 -I)
153 eat=1
154 func_file_conv "$2" mingw
155 set x "$@" -I"$file"
156 shift
157 ;;
111158 -I*)
112159 func_file_conv "${1#-I}" mingw
113160 set x "$@" -I"$file"
114161 shift
115162 ;;
163 -l)
164 eat=1
165 func_cl_dashl "$2"
166 set x "$@" "$lib"
167 shift
168 ;;
116169 -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
170 func_cl_dashl "${1#-l}"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -L)
175 eat=1
176 func_cl_dashL "$2"
139177 ;;
140178 -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"
179 func_cl_dashL "${1#-L}"
148180 ;;
149181 -static)
150182 shared=false
33 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
44 # 2011, 2012 Free Software Foundation, Inc.
55
6 timestamp='2012-01-01'
6 timestamp='2012-06-10'
77
88 # This file is free software; you can redistribute it and/or modify it
99 # under the terms of the GNU General Public License as published by
1616 # General Public License for more details.
1717 #
1818 # 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.
19 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2220 #
2321 # As a special exception to the GNU General Public License, if you
2422 # distribute this file as part of a program that contains a
862860 i*86:Minix:*:*)
863861 echo ${UNAME_MACHINE}-pc-minix
864862 exit ;;
863 aarch64:Linux:*:*)
864 echo ${UNAME_MACHINE}-unknown-linux-gnu
865 exit ;;
866 aarch64_be:Linux:*:*)
867 UNAME_MACHINE=aarch64_be
868 echo ${UNAME_MACHINE}-unknown-linux-gnu
869 exit ;;
865870 alpha:Linux:*:*)
866871 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
867872 EV5) UNAME_MACHINE=alphaev5 ;;
12501255 NEO-?:NONSTOP_KERNEL:*:*)
12511256 echo neo-tandem-nsk${UNAME_RELEASE}
12521257 exit ;;
1253 NSE-?:NONSTOP_KERNEL:*:*)
1258 NSE-*:NONSTOP_KERNEL:*:*)
12541259 echo nse-tandem-nsk${UNAME_RELEASE}
12551260 exit ;;
12561261 NSR-?:NONSTOP_KERNEL:*:*)
13181323 exit ;;
13191324 i*86:AROS:*:*)
13201325 echo ${UNAME_MACHINE}-pc-aros
1326 exit ;;
1327 x86_64:VMkernel:*:*)
1328 echo ${UNAME_MACHINE}-unknown-esx
13211329 exit ;;
13221330 esac
13231331
33 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
44 # 2011, 2012 Free Software Foundation, Inc.
55
6 timestamp='2012-01-01'
6 timestamp='2012-04-18'
77
88 # This file is (in principle) common to ALL GNU software.
99 # The presence of a machine in this file suggests that SOME GNU software
2020 # GNU General Public License for more details.
2121 #
2222 # 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.
23 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2624 #
2725 # As a special exception to the GNU General Public License, if you
2826 # distribute this file as part of a program that contains a
131129 os=-$maybe_os
132130 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
133131 ;;
132 android-linux)
133 os=-linux-android
134 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
135 ;;
134136 *)
135137 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
136138 if [ $basic_machine != $1 ]
222224 -isc*)
223225 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
224226 ;;
227 -lynx*178)
228 os=-lynxos178
229 ;;
230 -lynx*5)
231 os=-lynxos5
232 ;;
225233 -lynx*)
226234 os=-lynxos
227235 ;;
246254 # Some are omitted here because they have special meanings below.
247255 1750a | 580 \
248256 | a29k \
257 | aarch64 | aarch64_be \
249258 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
250259 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
251260 | am33_2.0 \
318327 c6x)
319328 basic_machine=tic6x-unknown
320329 ;;
321 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
330 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
322331 basic_machine=$basic_machine-unknown
323332 os=-none
324333 ;;
331340 strongarm | thumb | xscale)
332341 basic_machine=arm-unknown
333342 ;;
334
343 xgate)
344 basic_machine=$basic_machine-unknown
345 os=-none
346 ;;
335347 xscaleeb)
336348 basic_machine=armeb-unknown
337349 ;;
354366 # Recognize the basic CPU types with company name.
355367 580-* \
356368 | a29k-* \
369 | aarch64-* | aarch64_be-* \
357370 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
358371 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
359372 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
15291542 c4x-* | tic4x-*)
15301543 os=-coff
15311544 ;;
1545 hexagon-*)
1546 os=-elf
1547 ;;
15321548 tic54x-*)
15331549 os=-coff
15341550 ;;
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2011-12-04.11; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
6 # 2011 Free Software Foundation, Inc.
3 scriptversion=2012-03-27.16; # UTC
4
5 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
76
87 # This program is free software; you can redistribute it and/or modify
98 # it under the terms of the GNU General Public License as published by
2726
2827 case $1 in
2928 '')
30 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
3130 exit 1;
3231 ;;
3332 -h | --h*)
3938
4039 Environment variables:
4140 depmode Dependency tracking mode.
42 source Source file read by `PROGRAMS ARGS'.
43 object Object file output by `PROGRAMS ARGS'.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
4443 DEPDIR directory where to store dependencies.
4544 depfile Dependency file to output.
4645 tmpdepfile Temporary file to use when outputting dependencies.
5655 ;;
5756 esac
5857
58 # A tabulation character.
59 tab=' '
60 # A newline character.
61 nl='
62 '
63
5964 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
6065 echo "depcomp: Variables source, object and depmode must be set" 1>&2
6166 exit 1
99104 # slashes to satisfy depend.m4
100105 cygpath_u='sed s,\\\\,/,g'
101106 depmode=msvc7
107 fi
108
109 if test "$depmode" = xlc; then
110 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations.
111 gccflag=-qmakedep=gcc,-MF
112 depmode=gcc
102113 fi
103114
104115 case "$depmode" in
155166 ## The second -e expression handles DOS-style file names with drive letters.
156167 sed -e 's/^[^:]*: / /' \
157168 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
158 ## This next piece of magic avoids the `deleted header file' problem.
169 ## This next piece of magic avoids the "deleted header file" problem.
159170 ## The problem is that when a header file which appears in a .P file
160171 ## is deleted, the dependency causes make to die (because there is
161172 ## typically no way to rebuild the header). We avoid this by adding
162173 ## dummy dependencies for each header file. Too bad gcc doesn't do
163174 ## this for us directly.
164 tr ' ' '
165 ' < "$tmpdepfile" |
166 ## Some versions of gcc put a space before the `:'. On the theory
175 tr ' ' "$nl" < "$tmpdepfile" |
176 ## Some versions of gcc put a space before the ':'. On the theory
167177 ## that the space means something, we add a space to the output as
168178 ## well. hp depmode also adds that space, but also prefixes the VPATH
169179 ## to the object. Take care to not repeat it in the output.
202212 # clever and replace this with sed code, as IRIX sed won't handle
203213 # lines with more than a fixed number of characters (4096 in
204214 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
205 # the IRIX cc adds comments like `#:fec' to the end of the
215 # the IRIX cc adds comments like '#:fec' to the end of the
206216 # dependency line.
207 tr ' ' '
208 ' < "$tmpdepfile" \
217 tr ' ' "$nl" < "$tmpdepfile" \
209218 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
210 tr '
211 ' ' ' >> "$depfile"
219 tr "$nl" ' ' >> "$depfile"
212220 echo >> "$depfile"
213221
214222 # The second pass generates a dummy entry for each header file.
215 tr ' ' '
216 ' < "$tmpdepfile" \
223 tr ' ' "$nl" < "$tmpdepfile" \
217224 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
218225 >> "$depfile"
219226 else
225232 rm -f "$tmpdepfile"
226233 ;;
227234
235 xlc)
236 # This case exists only to let depend.m4 do its work. It works by
237 # looking at the text of this script. This case will never be run,
238 # since it is checked for above.
239 exit 1
240 ;;
241
228242 aix)
229243 # The C for AIX Compiler uses -M and outputs the dependencies
230244 # in a .u file. In older versions, this file always lives in the
231 # current directory. Also, the AIX compiler puts `$object:' at the
245 # current directory. Also, the AIX compiler puts '$object:' at the
232246 # start of each line; $object doesn't have directory information.
233247 # Version 6 uses the directory in both cases.
234248 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
258272 test -f "$tmpdepfile" && break
259273 done
260274 if test -f "$tmpdepfile"; then
261 # Each line is of the form `foo.o: dependent.h'.
275 # Each line is of the form 'foo.o: dependent.h'.
262276 # Do two passes, one to just change these to
263 # `$object: dependent.h' and one to simply `dependent.h:'.
277 # '$object: dependent.h' and one to simply 'dependent.h:'.
264278 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
265 # That's a tab and a space in the [].
266 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
279 sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
267280 else
268281 # The sourcefile does not contain any dependencies, so just
269282 # store a dummy comment line, to avoid errors with the Makefile
274287 ;;
275288
276289 icc)
277 # Intel's C compiler understands `-MD -MF file'. However on
278 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
290 # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'.
291 # However on
292 # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c
279293 # ICC 7.0 will fill foo.d with something like
280294 # foo.o: sub/foo.c
281295 # foo.o: sub/foo.h
282 # which is wrong. We want:
296 # which is wrong. We want
283297 # sub/foo.o: sub/foo.c
284298 # sub/foo.o: sub/foo.h
285299 # sub/foo.c:
286300 # sub/foo.h:
287301 # ICC 7.1 will output
288302 # foo.o: sub/foo.c sub/foo.h
289 # and will wrap long lines using \ :
303 # and will wrap long lines using '\':
290304 # foo.o: sub/foo.c ... \
291305 # sub/foo.h ... \
292306 # ...
293
307 # tcc 0.9.26 (FIXME still under development at the moment of writing)
308 # will emit a similar output, but also prepend the continuation lines
309 # with horizontal tabulation characters.
294310 "$@" -MD -MF "$tmpdepfile"
295311 stat=$?
296312 if test $stat -eq 0; then :
299315 exit $stat
300316 fi
301317 rm -f "$depfile"
302 # Each line is of the form `foo.o: dependent.h',
303 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
318 # Each line is of the form 'foo.o: dependent.h',
319 # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'.
304320 # Do two passes, one to just change these to
305 # `$object: dependent.h' and one to simply `dependent.h:'.
306 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
307 # Some versions of the HPUX 10.20 sed can't process this invocation
308 # correctly. Breaking it into two sed invocations is a workaround.
309 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
310 sed -e 's/$/ :/' >> "$depfile"
321 # '$object: dependent.h' and one to simply 'dependent.h:'.
322 sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \
323 < "$tmpdepfile" > "$depfile"
324 sed '
325 s/[ '"$tab"'][ '"$tab"']*/ /g
326 s/^ *//
327 s/ *\\*$//
328 s/^[^:]*: *//
329 /^$/d
330 /:$/d
331 s/$/ :/
332 ' < "$tmpdepfile" >> "$depfile"
311333 rm -f "$tmpdepfile"
312334 ;;
313335
343365 done
344366 if test -f "$tmpdepfile"; then
345367 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
346 # Add `dependent.h:' lines.
368 # Add 'dependent.h:' lines.
347369 sed -ne '2,${
348370 s/^ *//
349371 s/ \\*$//
358380
359381 tru64)
360382 # The Tru64 compiler uses -MD to generate dependencies as a side
361 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
383 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
362384 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
363 # dependencies in `foo.d' instead, so we check for that too.
385 # dependencies in 'foo.d' instead, so we check for that too.
364386 # Subdirectories are respected.
365387 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
366388 test "x$dir" = "x$object" && dir=
406428 done
407429 if test -f "$tmpdepfile"; then
408430 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
409 # That's a tab and a space in the [].
410 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
431 sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
411432 else
412433 echo "#dummy" > "$depfile"
413434 fi
442463 p
443464 }' | $cygpath_u | sort -u | sed -n '
444465 s/ /\\ /g
445 s/\(.*\)/ \1 \\/p
466 s/\(.*\)/'"$tab"'\1 \\/p
446467 s/.\(.*\) \\/\1:/
447468 H
448469 $ {
449 s/.*/ /
470 s/.*/'"$tab"'/
450471 G
451472 p
452473 }' >> "$depfile"
477498 shift
478499 fi
479500
480 # Remove `-o $object'.
501 # Remove '-o $object'.
481502 IFS=" "
482503 for arg
483504 do
497518 done
498519
499520 test -z "$dashmflag" && dashmflag=-M
500 # Require at least two characters before searching for `:'
521 # Require at least two characters before searching for ':'
501522 # in the target name. This is to cope with DOS-style filenames:
502 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
523 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
503524 "$@" $dashmflag |
504 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
525 sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile"
505526 rm -f "$depfile"
506527 cat < "$tmpdepfile" > "$depfile"
507 tr ' ' '
508 ' < "$tmpdepfile" | \
528 tr ' ' "$nl" < "$tmpdepfile" | \
509529 ## Some versions of the HPUX 10.20 sed can't process this invocation
510530 ## correctly. Breaking it into two sed invocations is a workaround.
511531 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
561581 # makedepend may prepend the VPATH from the source file name to the object.
562582 # No need to regex-escape $object, excess matching of '.' is harmless.
563583 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
564 sed '1,2d' "$tmpdepfile" | tr ' ' '
565 ' | \
584 sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \
566585 ## Some versions of the HPUX 10.20 sed can't process this invocation
567586 ## correctly. Breaking it into two sed invocations is a workaround.
568587 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
582601 shift
583602 fi
584603
585 # Remove `-o $object'.
604 # Remove '-o $object'.
586605 IFS=" "
587606 for arg
588607 do
651670 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
652671 rm -f "$depfile"
653672 echo "$object : \\" > "$depfile"
654 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
655 echo " " >> "$depfile"
673 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
674 echo "$tab" >> "$depfile"
656675 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
657676 rm -f "$tmpdepfile"
658677 ;;
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2011-01-19.21; # UTC
3 scriptversion=2011-11-20.07; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
3434 # FSF changes to this file are in the public domain.
3535 #
3636 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
37 # 'make' implicit rules from creating a file called install from it
3838 # when there is no Makefile.
3939 #
4040 # This script is compatible with the BSD install script, but was written
155155 -s) stripcmd=$stripprog;;
156156
157157 -t) dst_arg=$2
158 # Protect names problematic for `test' and other utilities.
158 # Protect names problematic for 'test' and other utilities.
159159 case $dst_arg in
160160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161161 esac
189189 fi
190190 shift # arg
191191 dst_arg=$arg
192 # Protect names problematic for `test' and other utilities.
192 # Protect names problematic for 'test' and other utilities.
193193 case $dst_arg in
194194 -* | [=\(\)!]) dst_arg=./$dst_arg;;
195195 esac
201201 echo "$0: no input file specified." >&2
202202 exit 1
203203 fi
204 # It's OK to call `install-sh -d' without argument.
204 # It's OK to call 'install-sh -d' without argument.
205205 # This can happen when creating conditional directories.
206206 exit 0
207207 fi
239239
240240 for src
241241 do
242 # Protect names problematic for `test' and other utilities.
242 # Protect names problematic for 'test' and other utilities.
243243 case $src in
244244 -* | [=\(\)!]) src=./$src;;
245245 esac
353353 if test -z "$dir_arg" || {
354354 # Check for POSIX incompatibilities with -m.
355355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
356 # other-writeable bit of parent directory when it shouldn't.
356 # other-writable bit of parent directory when it shouldn't.
357357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
358358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
359359 case $ls_ld_tmpdir in
00 #! /bin/sh
11 # Common stub for a few missing GNU programs while installing.
22
3 scriptversion=2012-01-06.13; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
3 scriptversion=2012-01-06.18; # UTC
4
5 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
76 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
87
98 # This program is free software; you can redistribute it and/or modify
2524 # the same distribution terms that you use for the rest of that program.
2625
2726 if test $# -eq 0; then
28 echo 1>&2 "Try \`$0 --help' for more information"
27 echo 1>&2 "Try '$0 --help' for more information"
2928 exit 1
3029 fi
3130
3332 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
3433 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
3534
36 # In the cases where this matters, `missing' is being run in the
35 # In the cases where this matters, 'missing' is being run in the
3736 # srcdir already.
3837 if test -f configure.ac; then
3938 configure_ac=configure.ac
6463 echo "\
6564 $0 [OPTION]... PROGRAM [ARGUMENT]...
6665
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
66 Handle 'PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
6867 error status if there is no known handling for PROGRAM.
6968
7069 Options:
7372 --run try to run the given command, and emulate it if it fails
7473
7574 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
75 aclocal touch file 'aclocal.m4'
76 autoconf touch file 'configure'
77 autoheader touch file 'config.h.in'
7978 autom4te touch the output file, or create a stub one
80 automake touch all \`Makefile.in' files
81 bison create \`y.tab.[ch]', if possible, from existing .[ch]
82 flex create \`lex.yy.c', if possible, from existing .c
79 automake touch all 'Makefile.in' files
80 bison create 'y.tab.[ch]', if possible, from existing .[ch]
81 flex create 'lex.yy.c', if possible, from existing .c
8382 help2man touch the output file
84 lex create \`lex.yy.c', if possible, from existing .c
83 lex create 'lex.yy.c', if possible, from existing .c
8584 makeinfo touch the output file
86 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
87
88 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
89 \`g' are ignored when checking the name.
85 yacc create 'y.tab.[ch]', if possible, from existing .[ch]
86
87 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
88 'g' are ignored when checking the name.
9089
9190 Send bug reports to <bug-automake@gnu.org>."
9291 exit $?
9897 ;;
9998
10099 -*)
101 echo 1>&2 "$0: Unknown \`$1' option"
102 echo 1>&2 "Try \`$0 --help' for more information"
100 echo 1>&2 "$0: Unknown '$1' option"
101 echo 1>&2 "Try '$0 --help' for more information"
103102 exit 1
104103 ;;
105104
126125 exit 1
127126 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
128127 # Could not run --version or --help. This is probably someone
129 # running `$TOOL --version' or `$TOOL --help' to check whether
128 # running '$TOOL --version' or '$TOOL --help' to check whether
130129 # $TOOL exists and not knowing $TOOL uses missing.
131130 exit 1
132131 fi
138137 case $program in
139138 aclocal*)
140139 echo 1>&2 "\
141 WARNING: \`$1' is $msg. You should only need it if
142 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
143 to install the \`Automake' and \`Perl' packages. Grab them from
140 WARNING: '$1' is $msg. You should only need it if
141 you modified 'acinclude.m4' or '${configure_ac}'. You might want
142 to install the Automake and Perl packages. Grab them from
144143 any GNU archive site."
145144 touch aclocal.m4
146145 ;;
147146
148147 autoconf*)
149148 echo 1>&2 "\
150 WARNING: \`$1' is $msg. You should only need it if
151 you modified \`${configure_ac}'. You might want to install the
152 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
149 WARNING: '$1' is $msg. You should only need it if
150 you modified '${configure_ac}'. You might want to install the
151 Autoconf and GNU m4 packages. Grab them from any GNU
153152 archive site."
154153 touch configure
155154 ;;
156155
157156 autoheader*)
158157 echo 1>&2 "\
159 WARNING: \`$1' is $msg. You should only need it if
160 you modified \`acconfig.h' or \`${configure_ac}'. You might want
161 to install the \`Autoconf' and \`GNU m4' packages. Grab them
158 WARNING: '$1' is $msg. You should only need it if
159 you modified 'acconfig.h' or '${configure_ac}'. You might want
160 to install the Autoconf and GNU m4 packages. Grab them
162161 from any GNU archive site."
163162 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
164163 test -z "$files" && files="config.h"
175174
176175 automake*)
177176 echo 1>&2 "\
178 WARNING: \`$1' is $msg. You should only need it if
179 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
180 You might want to install the \`Automake' and \`Perl' packages.
177 WARNING: '$1' is $msg. You should only need it if
178 you modified 'Makefile.am', 'acinclude.m4' or '${configure_ac}'.
179 You might want to install the Automake and Perl packages.
181180 Grab them from any GNU archive site."
182181 find . -type f -name Makefile.am -print |
183182 sed 's/\.am$/.in/' |
186185
187186 autom4te*)
188187 echo 1>&2 "\
189 WARNING: \`$1' is needed, but is $msg.
188 WARNING: '$1' is needed, but is $msg.
190189 You might have modified some files without having the
191190 proper tools for further handling them.
192 You can get \`$1' as part of \`Autoconf' from any GNU
191 You can get '$1' as part of Autoconf from any GNU
193192 archive site."
194193
195194 file=`echo "$*" | sed -n "$sed_output"`
209208
210209 bison*|yacc*)
211210 echo 1>&2 "\
212 WARNING: \`$1' $msg. You should only need it if
213 you modified a \`.y' file. You may need the \`Bison' package
211 WARNING: '$1' $msg. You should only need it if
212 you modified a '.y' file. You may need the Bison package
214213 in order for those modifications to take effect. You can get
215 \`Bison' from any GNU archive site."
214 Bison from any GNU archive site."
216215 rm -f y.tab.c y.tab.h
217216 if test $# -ne 1; then
218217 eval LASTARG=\${$#}
239238
240239 lex*|flex*)
241240 echo 1>&2 "\
242 WARNING: \`$1' is $msg. You should only need it if
243 you modified a \`.l' file. You may need the \`Flex' package
241 WARNING: '$1' is $msg. You should only need it if
242 you modified a '.l' file. You may need the Flex package
244243 in order for those modifications to take effect. You can get
245 \`Flex' from any GNU archive site."
244 Flex from any GNU archive site."
246245 rm -f lex.yy.c
247246 if test $# -ne 1; then
248247 eval LASTARG=\${$#}
262261
263262 help2man*)
264263 echo 1>&2 "\
265 WARNING: \`$1' is $msg. You should only need it if
264 WARNING: '$1' is $msg. You should only need it if
266265 you modified a dependency of a manual page. You may need the
267 \`Help2man' package in order for those modifications to take
268 effect. You can get \`Help2man' from any GNU archive site."
266 Help2man package in order for those modifications to take
267 effect. You can get Help2man from any GNU archive site."
269268
270269 file=`echo "$*" | sed -n "$sed_output"`
271270 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
280279
281280 makeinfo*)
282281 echo 1>&2 "\
283 WARNING: \`$1' is $msg. You should only need it if
284 you modified a \`.texi' or \`.texinfo' file, or any other file
282 WARNING: '$1' is $msg. You should only need it if
283 you modified a '.texi' or '.texinfo' file, or any other file
285284 indirectly affecting the aspect of the manual. The spurious
286 call might also be the consequence of using a buggy \`make' (AIX,
287 DU, IRIX). You might want to install the \`Texinfo' package or
288 the \`GNU make' package. Grab either from any GNU archive site."
285 call might also be the consequence of using a buggy 'make' (AIX,
286 DU, IRIX). You might want to install the Texinfo package or
287 the GNU make package. Grab either from any GNU archive site."
289288 # The file to touch is that specified with -o ...
290289 file=`echo "$*" | sed -n "$sed_output"`
291290 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
309308
310309 *)
311310 echo 1>&2 "\
312 WARNING: \`$1' is needed, and is $msg.
311 WARNING: '$1' is needed, and is $msg.
313312 You might have modified some files without having the
314 proper tools for further handling them. Check the \`README' file,
313 proper tools for further handling them. Check the 'README' file,
315314 it often tells you about the needed prerequisites for installing
316315 this package. You may also peek at any GNU archive site, in case
317 some other package would contain this missing \`$1' program."
316 some other package would contain this missing '$1' program."
318317 exit 1
319318 ;;
320319 esac
11
22 /* always defined to indicate that i18n is enabled */
33 #undef ENABLE_NLS
4
5 /* Enable compile-time and run-time bounds-checking, and some warnings. */
6 #if defined __OPTIMIZE__ && __OPTIMIZE__
7 # define _FORTIFY_SOURCE 2
8 #endif
9
410
511 /* GETTEXT package name */
612 #undef GETTEXT_PACKAGE
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for virt-viewer 0.5.3.
2 # Generated by GNU Autoconf 2.68 for virt-viewer 0.5.4.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='virt-viewer'
568568 PACKAGE_TARNAME='virt-viewer'
569 PACKAGE_VERSION='0.5.3'
570 PACKAGE_STRING='virt-viewer 0.5.3'
569 PACKAGE_VERSION='0.5.4'
570 PACKAGE_STRING='virt-viewer 0.5.4'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
650650 LIBXML2_CFLAGS
651651 GLIB2_LIBS
652652 GLIB2_CFLAGS
653 GLIB_MKENUMS
653654 PKG_CONFIG_LIBDIR
654655 PKG_CONFIG_PATH
655656 PKG_CONFIG
14151416 # Omit some internal or obsolete options to make the list less imposing.
14161417 # This message is too long to be a string in the A/UX 3.1 sh.
14171418 cat <<_ACEOF
1418 \`configure' configures virt-viewer 0.5.3 to adapt to many kinds of systems.
1419 \`configure' configures virt-viewer 0.5.4 to adapt to many kinds of systems.
14191420
14201421 Usage: $0 [OPTION]... [VAR=VALUE]...
14211422
14851486
14861487 if test -n "$ac_init_help"; then
14871488 case $ac_init_help in
1488 short | recursive ) echo "Configuration of virt-viewer 0.5.3:";;
1489 short | recursive ) echo "Configuration of virt-viewer 0.5.4:";;
14891490 esac
14901491 cat <<\_ACEOF
14911492
14931494 --disable-option-checking ignore unrecognized --enable/--with options
14941495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
14951496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1496 --enable-silent-rules less verbose build output (undo: `make V=1')
1497 --disable-silent-rules verbose build output (undo: `make V=0')
1498 --disable-dependency-tracking speeds up one-time build
1499 --enable-dependency-tracking do not reject slow dependency extractors
1497 --enable-silent-rules less verbose build output (undo: "make V=1")
1498 --disable-silent-rules verbose build output (undo: "make V=0")
1499 --enable-dependency-tracking
1500 do not reject slow dependency extractors
1501 --disable-dependency-tracking
1502 speeds up one-time build
15001503 --enable-shared[=PKGS] build shared libraries [default=yes]
15011504 --enable-static[=PKGS] build static libraries [default=yes]
15021505 --enable-fast-install[=PKGS]
16411644 test -n "$ac_init_help" && exit $ac_status
16421645 if $ac_init_version; then
16431646 cat <<\_ACEOF
1644 virt-viewer configure 0.5.3
1647 virt-viewer configure 0.5.4
16451648 generated by GNU Autoconf 2.68
16461649
16471650 Copyright (C) 2010 Free Software Foundation, Inc.
20062009 This file contains any messages produced by compilers while
20072010 running configure, to aid debugging if configure makes a mistake.
20082011
2009 It was created by virt-viewer $as_me 0.5.3, which was
2012 It was created by virt-viewer $as_me 0.5.4, which was
20102013 generated by GNU Autoconf 2.68. Invocation command line was
20112014
20122015 $ $0 $@
23872390
23882391 ac_config_headers="$ac_config_headers config.h"
23892392
2390 am__api_version='1.11'
2393 am__api_version='1.12'
23912394
23922395 # Find a good install program. We prefer a C program (faster),
23932396 # so one script is as good as another. But avoid the broken or
24842487
24852488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
24862489 $as_echo_n "checking whether build environment is sane... " >&6; }
2487 # Just in case
2488 sleep 1
2489 echo timestamp > conftest.file
24902490 # Reject unsafe characters in $srcdir or the absolute working directory
24912491 # name. Accept space and tab only in the latter.
24922492 am_lf='
24972497 esac
24982498 case $srcdir in
24992499 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2500 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2500 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
25012501 esac
25022502
2503 # Do `set' in a subshell so we don't clobber the current shell's
2503 # Do 'set' in a subshell so we don't clobber the current shell's
25042504 # arguments. Must try -L first in case configure is actually a
25052505 # symlink; some systems play weird games with the mod time of symlinks
25062506 # (eg FreeBSD returns the mod time of the symlink's containing
25072507 # directory).
25082508 if (
2509 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2510 if test "$*" = "X"; then
2511 # -L didn't work.
2512 set X `ls -t "$srcdir/configure" conftest.file`
2513 fi
2514 rm -f conftest.file
2515 if test "$*" != "X $srcdir/configure conftest.file" \
2516 && test "$*" != "X conftest.file $srcdir/configure"; then
2517
2518 # If neither matched, then we have a broken ls. This can happen
2519 # if, for instance, CONFIG_SHELL is bash and it inherits a
2520 # broken ls alias from the environment. This has actually
2521 # happened. Such a system could not be considered "sane".
2522 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2523 alias in your environment" "$LINENO" 5
2524 fi
2525
2509 am_has_slept=no
2510 for am_try in 1 2; do
2511 echo "timestamp, slept: $am_has_slept" > conftest.file
2512 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2513 if test "$*" = "X"; then
2514 # -L didn't work.
2515 set X `ls -t "$srcdir/configure" conftest.file`
2516 fi
2517 if test "$*" != "X $srcdir/configure conftest.file" \
2518 && test "$*" != "X conftest.file $srcdir/configure"; then
2519
2520 # If neither matched, then we have a broken ls. This can happen
2521 # if, for instance, CONFIG_SHELL is bash and it inherits a
2522 # broken ls alias from the environment. This has actually
2523 # happened. Such a system could not be considered "sane".
2524 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2525 alias in your environment" "$LINENO" 5
2526 fi
2527 if test "$2" = conftest.file || test $am_try -eq 2; then
2528 break
2529 fi
2530 # Just in case.
2531 sleep 1
2532 am_has_slept=yes
2533 done
25262534 test "$2" = conftest.file
25272535 )
25282536 then
25342542 fi
25352543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25362544 $as_echo "yes" >&6; }
2545 # If we didn't sleep, we still need to ensure time stamps of config.status and
2546 # generated files are strictly newer.
2547 am_sleep_pid=
2548 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2549 ( sleep 1 ) &
2550 am_sleep_pid=$!
2551 fi
2552
2553 rm -f conftest.file
2554
25372555 test "$program_prefix" != NONE &&
25382556 program_transform_name="s&^&$program_prefix&;$program_transform_name"
25392557 # Use a double $ so make ignores it.
25602578 am_missing_run="$MISSING --run "
25612579 else
25622580 am_missing_run=
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2564 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2582 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
25652583 fi
25662584
25672585 if test x"${install_sh}" != xset; then
25732591 esac
25742592 fi
25752593
2576 # Installed binaries are usually stripped using `strip' when the user
2577 # run `make install-strip'. However `strip' might not be the right
2594 # Installed binaries are usually stripped using 'strip' when the user
2595 # run "make install-strip". However 'strip' might not be the right
25782596 # tool to use in cross-compilation environments, therefore Automake
2579 # will honor the `STRIP' environment variable to overrule this program.
2597 # will honor the 'STRIP' environment variable to overrule this program.
25802598 if test "$cross_compiling" != no; then
25812599 if test -n "$ac_tool_prefix"; then
25822600 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
27152733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
27162734 $as_echo "$MKDIR_P" >&6; }
27172735
2718 mkdir_p="$MKDIR_P"
2719 case $mkdir_p in
2720 [\\/$]* | ?:[\\/]*) ;;
2721 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2722 esac
2723
27242736 for ac_prog in gawk mawk nawk awk
27252737 do
27262738 # Extract the first word of "$ac_prog", so it can be a program name with args.
28252837
28262838 # Define the identity of the package.
28272839 PACKAGE='virt-viewer'
2828 VERSION='0.5.3'
2840 VERSION='0.5.4'
28292841
28302842
28312843 cat >>confdefs.h <<_ACEOF
28522864
28532865
28542866 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2867
2868 # For better backward compatibility. To be removed once Automake 1.9.x
2869 # dies out for good. For more background, see:
2870 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2871 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2872 mkdir_p='$(MKDIR_P)'
28552873
28562874 # We need awk for the "check" target. The system "awk" is bad on
28572875 # some platforms.
29442962 enableval=$enable_silent_rules;
29452963 fi
29462964
2947 case $enable_silent_rules in
2948 yes) AM_DEFAULT_VERBOSITY=0;;
2949 no) AM_DEFAULT_VERBOSITY=1;;
2950 *) AM_DEFAULT_VERBOSITY=0;;
2965 case $enable_silent_rules in # (((
2966 yes) AM_DEFAULT_VERBOSITY=0;;
2967 no) AM_DEFAULT_VERBOSITY=1;;
2968 *) AM_DEFAULT_VERBOSITY=0;;
29512969 esac
29522970 am_make=${MAKE-make}
29532971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
29792997 AM_BACKSLASH='\'
29802998
29812999
2982 GLIB2_REQUIRED=2.12.0
3000 GLIB2_REQUIRED=2.22.0
29833001 LIBXML2_REQUIRED="2.6.0"
29843002 LIBVIRT_REQUIRED="0.9.7"
29853003 GTK2_REQUIRED="2.18.0"
29863004 GTK3_REQUIRED="3.0"
29873005 GTK_VNC1_REQUIRED="0.3.8"
29883006 GTK_VNC2_REQUIRED="0.4.0"
2989 SPICE_GTK_REQUIRED="0.11"
3007 SPICE_GTK_REQUIRED="0.12.101"
29903008 SPICE_PROTOCOL_REQUIRED="0.10.1"
29913009
29923010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
38183836 _am_result=none
38193837 # First try GNU make style include.
38203838 echo "include confinc" > confmf
3821 # Ignore all kinds of additional output from `make'.
3839 # Ignore all kinds of additional output from 'make'.
38223840 case `$am_make -s -f confmf 2> /dev/null` in #(
38233841 *the\ am__doit\ target*)
38243842 am__include=include
38743892 # We make a subdir and do the tests there. Otherwise we can end up
38753893 # making bogus files that we don't know about and never remove. For
38763894 # instance it was reported that on HP-UX the gcc test will end up
3877 # making a dummy file named `D' -- because `-MD' means `put the output
3878 # in D'.
3895 # making a dummy file named 'D' -- because '-MD' means "put the output
3896 # in D".
38793897 rm -rf conftest.dir
38803898 mkdir conftest.dir
38813899 # Copy depcomp to subdir because otherwise we won't find it if we're
39103928 : > sub/conftest.c
39113929 for i in 1 2 3 4 5 6; do
39123930 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3913 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3914 # Solaris 8's {/usr,}/bin/sh.
3915 touch sub/conftst$i.h
3931 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3932 # Solaris 10 /bin/sh.
3933 echo '/* dummy */' > sub/conftst$i.h
39163934 done
39173935 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
39183936
3919 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3937 # We check with '-c' and '-o' for the sake of the "dashmstdout"
39203938 # mode. It turns out that the SunPro C++ compiler does not properly
3921 # handle `-M -o', and we need to detect this. Also, some Intel
3922 # versions had trouble with output in subdirs
3939 # handle '-M -o', and we need to detect this. Also, some Intel
3940 # versions had trouble with output in subdirs.
39233941 am__obj=sub/conftest.${OBJEXT-o}
39243942 am__minus_obj="-o $am__obj"
39253943 case $depmode in
39283946 test "$am__universal" = false || continue
39293947 ;;
39303948 nosideeffect)
3931 # after this tag, mechanisms are not by side-effect, so they'll
3932 # only be used when explicitly requested
3949 # After this tag, mechanisms are not by side-effect, so they'll
3950 # only be used when explicitly requested.
39333951 if test "x$enable_dependency_tracking" = xyes; then
39343952 continue
39353953 else
39373955 fi
39383956 ;;
39393957 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3940 # This compiler won't grok `-c -o', but also, the minuso test has
3958 # This compiler won't grok '-c -o', but also, the minuso test has
39413959 # not run yet. These depmodes are late enough in the game, and
39423960 # so weak that their functioning should not be impacted.
39433961 am__obj=conftest.${OBJEXT-o}
1180511823
1180611824 warnCFLAGS=
1180711825
11808 try_compiler_flags="-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables"
11826 try_compiler_flags="-fexceptions -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables"
1180911827
1181011828 case "$enable_compile_warnings" in
1181111829 no)
1182911847 as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
1183011848 ;;
1183111849 esac
11850
11851
1183211852
1183311853 compiler_flags=
1183411854 for option in $try_compiler_flags; do
1319713217
1319813218
1319913219
13200
1320113220 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1320213221 if test -n "$ac_tool_prefix"; then
1320313222 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
1331113330 PKG_CONFIG=""
1331213331 fi
1331313332 fi
13333 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13334
13335
1331413336
1331513337 pkg_failed=no
1331613338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5
1451914541 fi
1452014542
1452114543
14522 ac_config_files="$ac_config_files Makefile data/Makefile data/virt-viewer.nsis icons/Makefile icons/16x16/Makefile icons/22x22/Makefile icons/24x24/Makefile icons/32x32/Makefile icons/48x48/Makefile icons/256x256/Makefile man/Makefile mingw32-virt-viewer.spec plugin/Makefile po/Makefile.in src/Makefile src/virt-viewer.rc virt-viewer.spec"
14544 ac_config_files="$ac_config_files Makefile data/Makefile data/virt-viewer.nsis icons/Makefile icons/16x16/Makefile icons/22x22/Makefile icons/24x24/Makefile icons/32x32/Makefile icons/48x48/Makefile icons/256x256/Makefile man/Makefile mingw-virt-viewer.spec plugin/Makefile po/Makefile.in src/Makefile src/virt-viewer.rc virt-viewer.spec"
1452314545
1452414546 cat >confcache <<\_ACEOF
1452514547 # This file is a shell script that caches the results of configure
1463014652 LTLIBOBJS=$ac_ltlibobjs
1463114653
1463214654
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14656 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14657 if test -n "$am_sleep_pid"; then
14658 # Hide warnings about reused PIDs.
14659 wait $am_sleep_pid 2>/dev/null
14660 fi
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14662 $as_echo "done" >&6; }
1463314663 if test -n "$EXEEXT"; then
1463414664 am__EXEEXT_TRUE=
1463514665 am__EXEEXT_FALSE='#'
1508715117 # report actual input values of CONFIG_FILES etc. instead of their
1508815118 # values after options handling.
1508915119 ac_log="
15090 This file was extended by virt-viewer $as_me 0.5.3, which was
15120 This file was extended by virt-viewer $as_me 0.5.4, which was
1509115121 generated by GNU Autoconf 2.68. Invocation command line was
1509215122
1509315123 CONFIG_FILES = $CONFIG_FILES
1515715187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1515815188 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1515915189 ac_cs_version="\\
15160 virt-viewer config.status 0.5.3
15190 virt-viewer config.status 0.5.4
1516115191 configured by $0, generated by GNU Autoconf 2.68,
1516215192 with options \\"\$ac_cs_config\\"
1516315193
1558115611 "icons/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/48x48/Makefile" ;;
1558215612 "icons/256x256/Makefile") CONFIG_FILES="$CONFIG_FILES icons/256x256/Makefile" ;;
1558315613 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15584 "mingw32-virt-viewer.spec") CONFIG_FILES="$CONFIG_FILES mingw32-virt-viewer.spec" ;;
15614 "mingw-virt-viewer.spec") CONFIG_FILES="$CONFIG_FILES mingw-virt-viewer.spec" ;;
1558515615 "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
1558615616 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
1558715617 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
1622916259 # Strip MF so we end up with the name of the file.
1623016260 mf=`echo "$mf" | sed -e 's/:.*$//'`
1623116261 # Check whether this is an Automake generated Makefile or not.
16232 # We used to match only the files named `Makefile.in', but
16262 # We used to match only the files named 'Makefile.in', but
1623316263 # some people rename them; so instead we look at the file content.
1623416264 # Grep'ing the first line is not enough: some people post-process
1623516265 # each Makefile.in and add a new line on top of each file to say so.
1626316293 continue
1626416294 fi
1626516295 # Extract the definition of DEPDIR, am__include, and am__quote
16266 # from the Makefile without running `make'.
16296 # from the Makefile without running 'make'.
1626716297 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1626816298 test -z "$DEPDIR" && continue
1626916299 am__include=`sed -n 's/^am__include = //p' < "$mf"`
1627016300 test -z "am__include" && continue
1627116301 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16272 # When using ansi2knr, U may be empty or an underscore; expand it
16273 U=`sed -n 's/^U = //p' < "$mf"`
1627416302 # Find all dependency output files, they are included files with
1627516303 # $(DEPDIR) in their names. We invoke sed twice because it is the
1627616304 # simplest approach to changing $(DEPDIR) to its actual value in the
1627716305 # expansion.
1627816306 for file in `sed -n "
1627916307 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16280 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16308 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1628116309 # Make sure the directory exists.
1628216310 test -f "$dirpart/$file" && continue
1628316311 fdir=`$as_dirname -- "$file" ||
00
1 AC_INIT(virt-viewer, 0.5.3)
1 AC_INIT(virt-viewer, 0.5.4)
22 AC_CONFIG_SRCDIR(src/virt-viewer-main.c)
33 AC_CONFIG_MACRO_DIR([m4])
44 AC_CONFIG_AUX_DIR([build-aux])
1111 m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])
1212 AM_SILENT_RULES([yes])
1313
14 GLIB2_REQUIRED=2.12.0
14 GLIB2_REQUIRED=2.22.0
1515 LIBXML2_REQUIRED="2.6.0"
1616 LIBVIRT_REQUIRED="0.9.7"
1717 GTK2_REQUIRED="2.18.0"
1818 GTK3_REQUIRED="3.0"
1919 GTK_VNC1_REQUIRED="0.3.8"
2020 GTK_VNC2_REQUIRED="0.4.0"
21 SPICE_GTK_REQUIRED="0.11"
21 SPICE_GTK_REQUIRED="0.12.101"
2222 SPICE_PROTOCOL_REQUIRED="0.10.1"
2323
2424 AC_MSG_CHECKING([for native Win32])
7171 AM_GLIB_GNU_GETTEXT
7272 IT_PROG_INTLTOOL([0.35.0])
7373
74 PKG_PROG_PKG_CONFIG
75 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
76 AC_SUBST(GLIB_MKENUMS)
7477
7578 PKG_CHECK_MODULES(GLIB2, glib-2.0 >= $GLIB2_REQUIRED gthread-2.0 gmodule-export-2.0)
7679 PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= $LIBXML2_REQUIRED)
200203 icons/48x48/Makefile
201204 icons/256x256/Makefile
202205 man/Makefile
203 mingw32-virt-viewer.spec
206 mingw-virt-viewer.spec
204207 plugin/Makefile
205208 po/Makefile.in
206209 src/Makefile
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1413
1514 @SET_MAKE@
1615 VPATH = @srcdir@
16 am__make_dryrun = \
17 { \
18 am__dry=no; \
19 case $$MAKEFLAGS in \
20 *\\[\ \ ]*) \
21 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
22 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
23 *) \
24 for am__flg in $$MAKEFLAGS; do \
25 case $$am__flg in \
26 *=*|--*) ;; \
27 *n*) am__dry=yes; break;; \
28 esac; \
29 done;; \
30 esac; \
31 test $$am__dry = yes; \
32 }
1733 pkgdatadir = $(datadir)/@PACKAGE@
1834 pkgincludedir = $(includedir)/@PACKAGE@
1935 pkglibdir = $(libdir)/@PACKAGE@
4763 CONFIG_HEADER = $(top_builddir)/config.h
4864 CONFIG_CLEAN_FILES = virt-viewer.nsis
4965 CONFIG_CLEAN_VPATH_FILES =
66 AM_V_P = $(am__v_P_@AM_V@)
67 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
68 am__v_P_0 = false
69 am__v_P_1 = :
5070 AM_V_GEN = $(am__v_GEN_@AM_V@)
5171 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
52 am__v_GEN_0 = @echo " GEN " $@;
72 am__v_GEN_0 = @echo " GEN " $@;
73 am__v_GEN_1 =
5374 AM_V_at = $(am__v_at_@AM_V@)
5475 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
5576 am__v_at_0 = @
77 am__v_at_1 =
5678 SOURCES =
5779 DIST_SOURCES =
80 am__can_run_installinfo = \
81 case $$AM_UPDATE_INFO_DIR in \
82 n|no|NO) false;; \
83 *) (install-info --version) >/dev/null 2>&1;; \
84 esac
5885 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
5986 ACLOCAL = @ACLOCAL@
6087 ALL_LINGUAS = @ALL_LINGUAS@
90117 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
91118 GLIB2_CFLAGS = @GLIB2_CFLAGS@
92119 GLIB2_LIBS = @GLIB2_LIBS@
120 GLIB_MKENUMS = @GLIB_MKENUMS@
93121 GMOFILES = @GMOFILES@
94122 GMSGFMT = @GMSGFMT@
95123 GREP = @GREP@
283311 ctags: CTAGS
284312 CTAGS:
285313
314 cscope cscopelist:
315
286316
287317 distdir: $(DISTFILES)
288318 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__make_dryrun = \
18 { \
19 am__dry=no; \
20 case $$MAKEFLAGS in \
21 *\\[\ \ ]*) \
22 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
23 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
24 *) \
25 for am__flg in $$MAKEFLAGS; do \
26 case $$am__flg in \
27 *=*|--*) ;; \
28 *n*) am__dry=yes; break;; \
29 esac; \
30 done;; \
31 esac; \
32 test $$am__dry = yes; \
33 }
1834 pkgdatadir = $(datadir)/@PACKAGE@
1935 pkgincludedir = $(includedir)/@PACKAGE@
2036 pkglibdir = $(libdir)/@PACKAGE@
4763 CONFIG_HEADER = $(top_builddir)/config.h
4864 CONFIG_CLEAN_FILES =
4965 CONFIG_CLEAN_VPATH_FILES =
66 AM_V_P = $(am__v_P_@AM_V@)
67 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
68 am__v_P_0 = false
69 am__v_P_1 = :
5070 AM_V_GEN = $(am__v_GEN_@AM_V@)
5171 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
52 am__v_GEN_0 = @echo " GEN " $@;
72 am__v_GEN_0 = @echo " GEN " $@;
73 am__v_GEN_1 =
5374 AM_V_at = $(am__v_at_@AM_V@)
5475 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
5576 am__v_at_0 = @
77 am__v_at_1 =
5678 SOURCES =
5779 DIST_SOURCES =
80 am__can_run_installinfo = \
81 case $$AM_UPDATE_INFO_DIR in \
82 n|no|NO) false;; \
83 *) (install-info --version) >/dev/null 2>&1;; \
84 esac
5885 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
5986 am__vpath_adj = case $$p in \
6087 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
119146 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
120147 GLIB2_CFLAGS = @GLIB2_CFLAGS@
121148 GLIB2_LIBS = @GLIB2_LIBS@
149 GLIB_MKENUMS = @GLIB_MKENUMS@
122150 GMOFILES = @GMOFILES@
123151 GMSGFMT = @GMSGFMT@
124152 GREP = @GREP@
304332 -rm -rf .libs _libs
305333 install-iconDATA: $(icon_DATA)
306334 @$(NORMAL_INSTALL)
307 test -z "$(icondir)" || $(MKDIR_P) "$(DESTDIR)$(icondir)"
308335 @list='$(icon_DATA)'; test -n "$(icondir)" || list=; \
336 if test -n "$$list"; then \
337 echo " $(MKDIR_P) '$(DESTDIR)$(icondir)'"; \
338 $(MKDIR_P) "$(DESTDIR)$(icondir)" || exit 1; \
339 fi; \
309340 for p in $$list; do \
310341 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
311342 echo "$$d$$p"; \
325356
326357 ctags: CTAGS
327358 CTAGS:
359
360 cscope cscopelist:
328361
329362
330363 distdir: $(DISTFILES)
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__make_dryrun = \
18 { \
19 am__dry=no; \
20 case $$MAKEFLAGS in \
21 *\\[\ \ ]*) \
22 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
23 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
24 *) \
25 for am__flg in $$MAKEFLAGS; do \
26 case $$am__flg in \
27 *=*|--*) ;; \
28 *n*) am__dry=yes; break;; \
29 esac; \
30 done;; \
31 esac; \
32 test $$am__dry = yes; \
33 }
1834 pkgdatadir = $(datadir)/@PACKAGE@
1935 pkgincludedir = $(includedir)/@PACKAGE@
2036 pkglibdir = $(libdir)/@PACKAGE@
4763 CONFIG_HEADER = $(top_builddir)/config.h
4864 CONFIG_CLEAN_FILES =
4965 CONFIG_CLEAN_VPATH_FILES =
66 AM_V_P = $(am__v_P_@AM_V@)
67 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
68 am__v_P_0 = false
69 am__v_P_1 = :
5070 AM_V_GEN = $(am__v_GEN_@AM_V@)
5171 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
52 am__v_GEN_0 = @echo " GEN " $@;
72 am__v_GEN_0 = @echo " GEN " $@;
73 am__v_GEN_1 =
5374 AM_V_at = $(am__v_at_@AM_V@)
5475 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
5576 am__v_at_0 = @
77 am__v_at_1 =
5678 SOURCES =
5779 DIST_SOURCES =
80 am__can_run_installinfo = \
81 case $$AM_UPDATE_INFO_DIR in \
82 n|no|NO) false;; \
83 *) (install-info --version) >/dev/null 2>&1;; \
84 esac
5885 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
5986 am__vpath_adj = case $$p in \
6087 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
119146 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
120147 GLIB2_CFLAGS = @GLIB2_CFLAGS@
121148 GLIB2_LIBS = @GLIB2_LIBS@
149 GLIB_MKENUMS = @GLIB_MKENUMS@
122150 GMOFILES = @GMOFILES@
123151 GMSGFMT = @GMSGFMT@
124152 GREP = @GREP@
304332 -rm -rf .libs _libs
305333 install-iconDATA: $(icon_DATA)
306334 @$(NORMAL_INSTALL)
307 test -z "$(icondir)" || $(MKDIR_P) "$(DESTDIR)$(icondir)"
308335 @list='$(icon_DATA)'; test -n "$(icondir)" || list=; \
336 if test -n "$$list"; then \
337 echo " $(MKDIR_P) '$(DESTDIR)$(icondir)'"; \
338 $(MKDIR_P) "$(DESTDIR)$(icondir)" || exit 1; \
339 fi; \
309340 for p in $$list; do \
310341 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
311342 echo "$$d$$p"; \
325356
326357 ctags: CTAGS
327358 CTAGS:
359
360 cscope cscopelist:
328361
329362
330363 distdir: $(DISTFILES)
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__make_dryrun = \
18 { \
19 am__dry=no; \
20 case $$MAKEFLAGS in \
21 *\\[\ \ ]*) \
22 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
23 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
24 *) \
25 for am__flg in $$MAKEFLAGS; do \
26 case $$am__flg in \
27 *=*|--*) ;; \
28 *n*) am__dry=yes; break;; \
29 esac; \
30 done;; \
31 esac; \
32 test $$am__dry = yes; \
33 }
1834 pkgdatadir = $(datadir)/@PACKAGE@
1935 pkgincludedir = $(includedir)/@PACKAGE@
2036 pkglibdir = $(libdir)/@PACKAGE@
4763 CONFIG_HEADER = $(top_builddir)/config.h
4864 CONFIG_CLEAN_FILES =
4965 CONFIG_CLEAN_VPATH_FILES =
66 AM_V_P = $(am__v_P_@AM_V@)
67 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
68 am__v_P_0 = false
69 am__v_P_1 = :
5070 AM_V_GEN = $(am__v_GEN_@AM_V@)
5171 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
52 am__v_GEN_0 = @echo " GEN " $@;
72 am__v_GEN_0 = @echo " GEN " $@;
73 am__v_GEN_1 =
5374 AM_V_at = $(am__v_at_@AM_V@)
5475 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
5576 am__v_at_0 = @
77 am__v_at_1 =
5678 SOURCES =
5779 DIST_SOURCES =
80 am__can_run_installinfo = \
81 case $$AM_UPDATE_INFO_DIR in \
82 n|no|NO) false;; \
83 *) (install-info --version) >/dev/null 2>&1;; \
84 esac
5885 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
5986 am__vpath_adj = case $$p in \
6087 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
119146 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
120147 GLIB2_CFLAGS = @GLIB2_CFLAGS@
121148 GLIB2_LIBS = @GLIB2_LIBS@
149 GLIB_MKENUMS = @GLIB_MKENUMS@
122150 GMOFILES = @GMOFILES@
123151 GMSGFMT = @GMSGFMT@
124152 GREP = @GREP@
304332 -rm -rf .libs _libs
305333 install-iconDATA: $(icon_DATA)
306334 @$(NORMAL_INSTALL)
307 test -z "$(icondir)" || $(MKDIR_P) "$(DESTDIR)$(icondir)"
308335 @list='$(icon_DATA)'; test -n "$(icondir)" || list=; \
336 if test -n "$$list"; then \
337 echo " $(MKDIR_P) '$(DESTDIR)$(icondir)'"; \
338 $(MKDIR_P) "$(DESTDIR)$(icondir)" || exit 1; \
339 fi; \
309340 for p in $$list; do \
310341 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
311342 echo "$$d$$p"; \
325356
326357 ctags: CTAGS
327358 CTAGS:
359
360 cscope cscopelist:
328361
329362
330363 distdir: $(DISTFILES)
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__make_dryrun = \
18 { \
19 am__dry=no; \
20 case $$MAKEFLAGS in \
21 *\\[\ \ ]*) \
22 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
23 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
24 *) \
25 for am__flg in $$MAKEFLAGS; do \
26 case $$am__flg in \
27 *=*|--*) ;; \
28 *n*) am__dry=yes; break;; \
29 esac; \
30 done;; \
31 esac; \
32 test $$am__dry = yes; \
33 }
1834 pkgdatadir = $(datadir)/@PACKAGE@
1935 pkgincludedir = $(includedir)/@PACKAGE@
2036 pkglibdir = $(libdir)/@PACKAGE@
4763 CONFIG_HEADER = $(top_builddir)/config.h
4864 CONFIG_CLEAN_FILES =
4965 CONFIG_CLEAN_VPATH_FILES =
66 AM_V_P = $(am__v_P_@AM_V@)
67 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
68 am__v_P_0 = false
69 am__v_P_1 = :
5070 AM_V_GEN = $(am__v_GEN_@AM_V@)
5171 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
52 am__v_GEN_0 = @echo " GEN " $@;
72 am__v_GEN_0 = @echo " GEN " $@;
73 am__v_GEN_1 =
5374 AM_V_at = $(am__v_at_@AM_V@)
5475 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
5576 am__v_at_0 = @
77 am__v_at_1 =
5678 SOURCES =
5779 DIST_SOURCES =
80 am__can_run_installinfo = \
81 case $$AM_UPDATE_INFO_DIR in \
82 n|no|NO) false;; \
83 *) (install-info --version) >/dev/null 2>&1;; \
84 esac
5885 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
5986 am__vpath_adj = case $$p in \
6087 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
119146 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
120147 GLIB2_CFLAGS = @GLIB2_CFLAGS@
121148 GLIB2_LIBS = @GLIB2_LIBS@
149 GLIB_MKENUMS = @GLIB_MKENUMS@
122150 GMOFILES = @GMOFILES@
123151 GMSGFMT = @GMSGFMT@
124152 GREP = @GREP@
304332 -rm -rf .libs _libs
305333 install-iconDATA: $(icon_DATA)
306334 @$(NORMAL_INSTALL)
307 test -z "$(icondir)" || $(MKDIR_P) "$(DESTDIR)$(icondir)"
308335 @list='$(icon_DATA)'; test -n "$(icondir)" || list=; \
336 if test -n "$$list"; then \
337 echo " $(MKDIR_P) '$(DESTDIR)$(icondir)'"; \
338 $(MKDIR_P) "$(DESTDIR)$(icondir)" || exit 1; \
339 fi; \
309340 for p in $$list; do \
310341 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
311342 echo "$$d$$p"; \
325356
326357 ctags: CTAGS
327358 CTAGS:
359
360 cscope cscopelist:
328361
329362
330363 distdir: $(DISTFILES)
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__make_dryrun = \
18 { \
19 am__dry=no; \
20 case $$MAKEFLAGS in \
21 *\\[\ \ ]*) \
22 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
23 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
24 *) \
25 for am__flg in $$MAKEFLAGS; do \
26 case $$am__flg in \
27 *=*|--*) ;; \
28 *n*) am__dry=yes; break;; \
29 esac; \
30 done;; \
31 esac; \
32 test $$am__dry = yes; \
33 }
1834 pkgdatadir = $(datadir)/@PACKAGE@
1935 pkgincludedir = $(includedir)/@PACKAGE@
2036 pkglibdir = $(libdir)/@PACKAGE@
4763 CONFIG_HEADER = $(top_builddir)/config.h
4864 CONFIG_CLEAN_FILES =
4965 CONFIG_CLEAN_VPATH_FILES =
66 AM_V_P = $(am__v_P_@AM_V@)
67 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
68 am__v_P_0 = false
69 am__v_P_1 = :
5070 AM_V_GEN = $(am__v_GEN_@AM_V@)
5171 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
52 am__v_GEN_0 = @echo " GEN " $@;
72 am__v_GEN_0 = @echo " GEN " $@;
73 am__v_GEN_1 =
5374 AM_V_at = $(am__v_at_@AM_V@)
5475 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
5576 am__v_at_0 = @
77 am__v_at_1 =
5678 SOURCES =
5779 DIST_SOURCES =
80 am__can_run_installinfo = \
81 case $$AM_UPDATE_INFO_DIR in \
82 n|no|NO) false;; \
83 *) (install-info --version) >/dev/null 2>&1;; \
84 esac
5885 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
5986 am__vpath_adj = case $$p in \
6087 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
119146 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
120147 GLIB2_CFLAGS = @GLIB2_CFLAGS@
121148 GLIB2_LIBS = @GLIB2_LIBS@
149 GLIB_MKENUMS = @GLIB_MKENUMS@
122150 GMOFILES = @GMOFILES@
123151 GMSGFMT = @GMSGFMT@
124152 GREP = @GREP@
304332 -rm -rf .libs _libs
305333 install-iconDATA: $(icon_DATA)
306334 @$(NORMAL_INSTALL)
307 test -z "$(icondir)" || $(MKDIR_P) "$(DESTDIR)$(icondir)"
308335 @list='$(icon_DATA)'; test -n "$(icondir)" || list=; \
336 if test -n "$$list"; then \
337 echo " $(MKDIR_P) '$(DESTDIR)$(icondir)'"; \
338 $(MKDIR_P) "$(DESTDIR)$(icondir)" || exit 1; \
339 fi; \
309340 for p in $$list; do \
310341 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
311342 echo "$$d$$p"; \
325356
326357 ctags: CTAGS
327358 CTAGS:
359
360 cscope cscopelist:
328361
329362
330363 distdir: $(DISTFILES)
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__make_dryrun = \
18 { \
19 am__dry=no; \
20 case $$MAKEFLAGS in \
21 *\\[\ \ ]*) \
22 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
23 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
24 *) \
25 for am__flg in $$MAKEFLAGS; do \
26 case $$am__flg in \
27 *=*|--*) ;; \
28 *n*) am__dry=yes; break;; \
29 esac; \
30 done;; \
31 esac; \
32 test $$am__dry = yes; \
33 }
1834 pkgdatadir = $(datadir)/@PACKAGE@
1935 pkgincludedir = $(includedir)/@PACKAGE@
2036 pkglibdir = $(libdir)/@PACKAGE@
4763 CONFIG_HEADER = $(top_builddir)/config.h
4864 CONFIG_CLEAN_FILES =
4965 CONFIG_CLEAN_VPATH_FILES =
66 AM_V_P = $(am__v_P_@AM_V@)
67 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
68 am__v_P_0 = false
69 am__v_P_1 = :
5070 AM_V_GEN = $(am__v_GEN_@AM_V@)
5171 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
52 am__v_GEN_0 = @echo " GEN " $@;
72 am__v_GEN_0 = @echo " GEN " $@;
73 am__v_GEN_1 =
5374 AM_V_at = $(am__v_at_@AM_V@)
5475 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
5576 am__v_at_0 = @
77 am__v_at_1 =
5678 SOURCES =
5779 DIST_SOURCES =
80 am__can_run_installinfo = \
81 case $$AM_UPDATE_INFO_DIR in \
82 n|no|NO) false;; \
83 *) (install-info --version) >/dev/null 2>&1;; \
84 esac
5885 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
5986 am__vpath_adj = case $$p in \
6087 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
119146 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
120147 GLIB2_CFLAGS = @GLIB2_CFLAGS@
121148 GLIB2_LIBS = @GLIB2_LIBS@
149 GLIB_MKENUMS = @GLIB_MKENUMS@
122150 GMOFILES = @GMOFILES@
123151 GMSGFMT = @GMSGFMT@
124152 GREP = @GREP@
304332 -rm -rf .libs _libs
305333 install-iconDATA: $(icon_DATA)
306334 @$(NORMAL_INSTALL)
307 test -z "$(icondir)" || $(MKDIR_P) "$(DESTDIR)$(icondir)"
308335 @list='$(icon_DATA)'; test -n "$(icondir)" || list=; \
336 if test -n "$$list"; then \
337 echo " $(MKDIR_P) '$(DESTDIR)$(icondir)'"; \
338 $(MKDIR_P) "$(DESTDIR)$(icondir)" || exit 1; \
339 fi; \
309340 for p in $$list; do \
310341 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
311342 echo "$$d$$p"; \
325356
326357 ctags: CTAGS
327358 CTAGS:
359
360 cscope cscopelist:
328361
329362
330363 distdir: $(DISTFILES)
11
22 if OS_WIN32
33 noinst_DATA = virt-viewer.ico
4 CLEANFILES = $(noinst_DATA)
45 endif
56
67 # http://stackoverflow.com/questions/3236115/which-icon-sizes-should-my-windows-applications-icon-include
89 %.ico: $(foreach s,$(ico_sizes),$(s)x$(s)/%.png)
910 $(AM_V_GEN)$(ICOTOOL) -c -o $@ $^
1011
11 EXTRA_DIST = virt-viewer.ico
12
1312 -include $(top_srcdir)/git.mk
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__make_dryrun = \
18 { \
19 am__dry=no; \
20 case $$MAKEFLAGS in \
21 *\\[\ \ ]*) \
22 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
23 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
24 *) \
25 for am__flg in $$MAKEFLAGS; do \
26 case $$am__flg in \
27 *=*|--*) ;; \
28 *n*) am__dry=yes; break;; \
29 esac; \
30 done;; \
31 esac; \
32 test $$am__dry = yes; \
33 }
1834 pkgdatadir = $(datadir)/@PACKAGE@
1935 pkgincludedir = $(includedir)/@PACKAGE@
2036 pkglibdir = $(libdir)/@PACKAGE@
4763 CONFIG_HEADER = $(top_builddir)/config.h
4864 CONFIG_CLEAN_FILES =
4965 CONFIG_CLEAN_VPATH_FILES =
66 AM_V_P = $(am__v_P_@AM_V@)
67 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
68 am__v_P_0 = false
69 am__v_P_1 = :
5070 AM_V_GEN = $(am__v_GEN_@AM_V@)
5171 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
52 am__v_GEN_0 = @echo " GEN " $@;
72 am__v_GEN_0 = @echo " GEN " $@;
73 am__v_GEN_1 =
5374 AM_V_at = $(am__v_at_@AM_V@)
5475 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
5576 am__v_at_0 = @
77 am__v_at_1 =
5678 SOURCES =
5779 DIST_SOURCES =
5880 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
6284 install-pdf-recursive install-ps-recursive install-recursive \
6385 installcheck-recursive installdirs-recursive pdf-recursive \
6486 ps-recursive uninstall-recursive
87 am__can_run_installinfo = \
88 case $$AM_UPDATE_INFO_DIR in \
89 n|no|NO) false;; \
90 *) (install-info --version) >/dev/null 2>&1;; \
91 esac
6592 DATA = $(noinst_DATA)
6693 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
6794 distclean-recursive maintainer-clean-recursive
131158 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
132159 GLIB2_CFLAGS = @GLIB2_CFLAGS@
133160 GLIB2_LIBS = @GLIB2_LIBS@
161 GLIB_MKENUMS = @GLIB_MKENUMS@
134162 GMOFILES = @GMOFILES@
135163 GMSGFMT = @GMSGFMT@
136164 GREP = @GREP@
273301 top_srcdir = @top_srcdir@
274302 SUBDIRS = 16x16 22x22 24x24 32x32 48x48 256x256
275303 @OS_WIN32_TRUE@noinst_DATA = virt-viewer.ico
304 @OS_WIN32_TRUE@CLEANFILES = $(noinst_DATA)
276305
277306 # http://stackoverflow.com/questions/3236115/which-icon-sizes-should-my-windows-applications-icon-include
278307 ico_sizes = 16 32 48 256
279 EXTRA_DIST = virt-viewer.ico
280308 all: all-recursive
281309
282310 .SUFFIXES:
318346 -rm -rf .libs _libs
319347
320348 # This directory's subdirectories are mostly independent; you can cd
321 # into them and run `make' without going through this Makefile.
322 # To change the values of `make' variables: instead of editing Makefiles,
323 # (1) if the variable is set in `config.status', edit `config.status'
324 # (which will cause the Makefiles to be regenerated when you run `make');
325 # (2) otherwise, pass the desired values on the `make' command line.
326 $(RECURSIVE_TARGETS):
349 # into them and run 'make' without going through this Makefile.
350 # To change the values of 'make' variables: instead of editing Makefiles,
351 # (1) if the variable is set in 'config.status', edit 'config.status'
352 # (which will cause the Makefiles to be regenerated when you run 'make');
353 # (2) otherwise, pass the desired values on the 'make' command line.
354 $(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS):
327355 @fail= failcom='exit 1'; \
328356 for f in x $$MAKEFLAGS; do \
329357 case $$f in \
333361 done; \
334362 dot_seen=no; \
335363 target=`echo $@ | sed s/-recursive//`; \
336 list='$(SUBDIRS)'; for subdir in $$list; do \
364 case "$@" in \
365 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
366 *) list='$(SUBDIRS)' ;; \
367 esac; \
368 for subdir in $$list; do \
337369 echo "Making $$target in $$subdir"; \
338370 if test "$$subdir" = "."; then \
339371 dot_seen=yes; \
347379 if test "$$dot_seen" = "no"; then \
348380 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
349381 fi; test -z "$$fail"
350
351 $(RECURSIVE_CLEAN_TARGETS):
352 @fail= failcom='exit 1'; \
353 for f in x $$MAKEFLAGS; do \
354 case $$f in \
355 *=* | --[!k]*);; \
356 *k*) failcom='fail=yes';; \
357 esac; \
358 done; \
359 dot_seen=no; \
360 case "$@" in \
361 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
362 *) list='$(SUBDIRS)' ;; \
363 esac; \
364 rev=''; for subdir in $$list; do \
365 if test "$$subdir" = "."; then :; else \
366 rev="$$subdir $$rev"; \
367 fi; \
368 done; \
369 rev="$$rev ."; \
370 target=`echo $@ | sed s/-recursive//`; \
371 for subdir in $$rev; do \
372 echo "Making $$target in $$subdir"; \
373 if test "$$subdir" = "."; then \
374 local_target="$$target-am"; \
375 else \
376 local_target="$$target"; \
377 fi; \
378 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
379 || eval $$failcom; \
380 done && test -z "$$fail"
381382 tags-recursive:
382383 list='$(SUBDIRS)'; for subdir in $$list; do \
383384 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
385386 ctags-recursive:
386387 list='$(SUBDIRS)'; for subdir in $$list; do \
387388 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
389 done
390 cscopelist-recursive:
391 list='$(SUBDIRS)'; for subdir in $$list; do \
392 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \
388393 done
389394
390395 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
449454 && $(am__cd) $(top_srcdir) \
450455 && gtags -i $(GTAGS_ARGS) "$$here"
451456
457 cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP)
458 list='$(SOURCES) $(HEADERS) $(LISP)'; \
459 case "$(srcdir)" in \
460 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
461 *) sdir=$(subdir)/$(srcdir) ;; \
462 esac; \
463 for i in $$list; do \
464 if test -f "$$i"; then \
465 echo "$(subdir)/$$i"; \
466 else \
467 echo "$$sdir/$$i"; \
468 fi; \
469 done >> $(top_builddir)/cscope.files
470
452471 distclean-tags:
453472 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
454473
484503 done
485504 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
486505 if test "$$subdir" = .; then :; else \
487 test -d "$(distdir)/$$subdir" \
488 || $(MKDIR_P) "$(distdir)/$$subdir" \
489 || exit 1; \
490 fi; \
491 done
492 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
493 if test "$$subdir" = .; then :; else \
506 $(am__make_dryrun) \
507 || test -d "$(distdir)/$$subdir" \
508 || $(MKDIR_P) "$(distdir)/$$subdir" \
509 || exit 1; \
494510 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
495511 $(am__relativize); \
496512 new_distdir=$$reldir; \
537553 mostlyclean-generic:
538554
539555 clean-generic:
556 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
540557
541558 distclean-generic:
542559 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
611628
612629 uninstall-am:
613630
614 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
615 install-am install-strip tags-recursive
631 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) \
632 cscopelist-recursive ctags-recursive install-am install-strip \
633 tags-recursive
616634
617635 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
618636 all all-am check check-am clean clean-generic clean-libtool \
619 ctags ctags-recursive distclean distclean-generic \
620 distclean-libtool distclean-tags distdir dvi dvi-am html \
621 html-am info info-am install install-am install-data \
622 install-data-am install-dvi install-dvi-am install-exec \
623 install-exec-am install-html install-html-am install-info \
624 install-info-am install-man install-pdf install-pdf-am \
625 install-ps install-ps-am install-strip installcheck \
626 installcheck-am installdirs installdirs-am maintainer-clean \
627 maintainer-clean-generic mostlyclean mostlyclean-generic \
628 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
629 uninstall uninstall-am
637 cscopelist cscopelist-recursive ctags ctags-recursive \
638 distclean distclean-generic distclean-libtool distclean-tags \
639 distdir dvi dvi-am html html-am info info-am install \
640 install-am install-data install-data-am install-dvi \
641 install-dvi-am install-exec install-exec-am install-html \
642 install-html-am install-info install-info-am install-man \
643 install-pdf install-pdf-am install-ps install-ps-am \
644 install-strip installcheck installcheck-am installdirs \
645 installdirs-am maintainer-clean maintainer-clean-generic \
646 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
647 ps ps-am tags tags-recursive uninstall uninstall-am
630648
631649 %.ico: $(foreach s,$(ico_sizes),$(s)x$(s)/%.png)
632650 $(AM_V_GEN)$(ICOTOOL) -c -o $@ $^
icons/virt-viewer.ico less more
Binary diff not shown
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1413
1514 @SET_MAKE@
1615 VPATH = @srcdir@
16 am__make_dryrun = \
17 { \
18 am__dry=no; \
19 case $$MAKEFLAGS in \
20 *\\[\ \ ]*) \
21 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
22 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
23 *) \
24 for am__flg in $$MAKEFLAGS; do \
25 case $$am__flg in \
26 *=*|--*) ;; \
27 *n*) am__dry=yes; break;; \
28 esac; \
29 done;; \
30 esac; \
31 test $$am__dry = yes; \
32 }
1733 pkgdatadir = $(datadir)/@PACKAGE@
1834 pkgincludedir = $(includedir)/@PACKAGE@
1935 pkglibdir = $(libdir)/@PACKAGE@
4662 CONFIG_HEADER = $(top_builddir)/config.h
4763 CONFIG_CLEAN_FILES =
4864 CONFIG_CLEAN_VPATH_FILES =
65 AM_V_P = $(am__v_P_@AM_V@)
66 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
67 am__v_P_0 = false
68 am__v_P_1 = :
4969 AM_V_GEN = $(am__v_GEN_@AM_V@)
5070 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
51 am__v_GEN_0 = @echo " GEN " $@;
71 am__v_GEN_0 = @echo " GEN " $@;
72 am__v_GEN_1 =
5273 AM_V_at = $(am__v_at_@AM_V@)
5374 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
5475 am__v_at_0 = @
76 am__v_at_1 =
5577 SOURCES =
5678 DIST_SOURCES =
79 am__can_run_installinfo = \
80 case $$AM_UPDATE_INFO_DIR in \
81 n|no|NO) false;; \
82 *) (install-info --version) >/dev/null 2>&1;; \
83 esac
5784 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
5885 am__vpath_adj = case $$p in \
5986 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
120147 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
121148 GLIB2_CFLAGS = @GLIB2_CFLAGS@
122149 GLIB2_LIBS = @GLIB2_LIBS@
150 GLIB_MKENUMS = @GLIB_MKENUMS@
123151 GMOFILES = @GMOFILES@
124152 GMSGFMT = @GMSGFMT@
125153 GREP = @GREP@
313341 -rm -rf .libs _libs
314342 install-man1: $(man_MANS)
315343 @$(NORMAL_INSTALL)
316 test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
317 @list=''; test -n "$(man1dir)" || exit 0; \
318 { for i in $$list; do echo "$$i"; done; \
319 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
320 sed -n '/\.1[a-z]*$$/p'; \
344 @list1=''; \
345 list2='$(man_MANS)'; \
346 test -n "$(man1dir)" \
347 && test -n "`echo $$list1$$list2`" \
348 || exit 0; \
349 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
350 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
351 { for i in $$list1; do echo "$$i"; done; \
352 if test -n "$$list2"; then \
353 for i in $$list2; do echo "$$i"; done \
354 | sed -n '/\.1[a-z]*$$/p'; \
355 fi; \
321356 } | while read p; do \
322357 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
323358 echo "$$d$$p"; echo "$$p"; \
353388 ctags: CTAGS
354389 CTAGS:
355390
391 cscope cscopelist:
392
356393
357394 distdir: $(DISTFILES)
358395 @list='$(MANS)'; if test -n "$$list"; then \
361398 if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
362399 if test -n "$$list" && \
363400 grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
364 echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
401 echo "error: found man pages containing the 'missing help2man' replacement text:" >&2; \
365402 grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
366403 echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
367 echo " typically \`make maintainer-clean' will remove them" >&2; \
404 echo " typically 'make maintainer-clean' will remove them" >&2; \
368405 exit 1; \
369406 else :; fi; \
370407 else :; fi
0 %{?mingw_package_hedder}
1
2 Name: mingw-virt-viewer
3 Version: @VERSION@
4 Release: 1%{?dist}%{?extra_release}
5 Summary: MinGW Windows virt-viewer console application
6
7 License: GPLv2+
8 Group: Applications/Internet
9 URL: http://virt-manager.org/
10 Source0: ftp://virt-manager.org/downloads/virt-viewer/virt-viewer-%{version}.tar.gz
11
12 BuildRequires: mingw32-filesystem >= 23
13 BuildRequires: mingw64-filesystem >= 23
14 BuildRequires: mingw32-glib2 >= 2.22
15 BuildRequires: mingw64-glib2 >= 2.22
16 BuildRequires: mingw32-gtk3 >= 3.0.0
17 BuildRequires: mingw64-gtk3 >= 3.0.0
18 BuildRequires: mingw32-libvirt >= 0.9.7
19 BuildRequires: mingw64-libvirt >= 0.9.7
20 BuildRequires: mingw32-libxml2
21 BuildRequires: mingw64-libxml2
22 BuildRequires: mingw32-gtk-vnc2 >= 0.4.3
23 BuildRequires: mingw64-gtk-vnc2 >= 0.4.3
24 BuildRequires: pkgconfig
25
26 BuildArch: noarch
27
28 %package -n mingw32-virt-viewer
29 Summary: MinGW Windows virt-viewer console application
30 Group: Applications/Internet
31
32 %package -n mingw64-virt-viewer
33 Summary: MinGW Windows virt-viewer console application
34 Group: Applications/Internet
35
36 %description
37 MinGW Windows virt-viewer console application
38
39 %description -n mingw32-virt-viewer
40 MinGW Windows virt-viewer console application
41
42 %description -n mingw64-virt-viewer
43 MinGW Windows virt-viewer console application
44
45 %prep
46 %setup -q -n virt-viewer-%{version}
47
48
49 %build
50 %mingw_configure --with-gtk=3.0
51 %mingw_make %{?_smp_mflags} V=1
52
53
54 %install
55 %mingw_make_install DESTDIR=$RPM_BUILD_ROOT
56
57 %find_lang virt-viewer
58
59 # Don't need the XDG desktop files on Windows
60 find $RPM_BUILD_ROOT -name "*.desktop" -delete
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65
66 %files -n mingw32-virt-viewer -f virt-viewer.lang
67 %defattr(-,root,root)
68 %{mingw32_bindir}/virt-viewer.exe
69 %{mingw32_bindir}/remote-viewer.exe
70 %{mingw32_bindir}/windows-cmdline-wrapper.exe
71
72 %dir %{mingw32_datadir}/virt-viewer/
73 %dir %{mingw32_datadir}/virt-viewer/ui/
74 %{mingw32_datadir}/virt-viewer/ui/virt-viewer.xml
75 %{mingw32_datadir}/virt-viewer/ui/virt-viewer-about.xml
76 %{mingw32_datadir}/virt-viewer/ui/virt-viewer-auth.xml
77 %{mingw32_datadir}/icons/hicolor/*/apps/*
78
79 %{mingw32_mandir}/man1/virt-viewer.1*
80 %{mingw32_mandir}/man1/remote-viewer.1*
81
82 %files -n mingw64-virt-viewer -f virt-viewer.lang
83 %defattr(-,root,root)
84 %{mingw64_bindir}/virt-viewer.exe
85 %{mingw64_bindir}/remote-viewer.exe
86 %{mingw64_bindir}/windows-cmdline-wrapper.exe
87
88 %dir %{mingw64_datadir}/virt-viewer/
89 %dir %{mingw64_datadir}/virt-viewer/ui/
90 %{mingw64_datadir}/virt-viewer/ui/virt-viewer.xml
91 %{mingw64_datadir}/virt-viewer/ui/virt-viewer-about.xml
92 %{mingw64_datadir}/virt-viewer/ui/virt-viewer-auth.xml
93 %{mingw64_datadir}/icons/hicolor/*/apps/*
94
95 %{mingw64_mandir}/man1/virt-viewer.1*
96 %{mingw64_mandir}/man1/remote-viewer.1*
97
98 %changelog
+0
-84
mingw32-virt-viewer.spec.in less more
0 %define __strip %{_mingw32_strip}
1 %define __objdump %{_mingw32_objdump}
2 %define _use_internal_dependency_generator 0
3 %define __find_requires %{_mingw32_findrequires}
4 %define __find_provides %{_mingw32_findprovides}
5
6 %define with_gtk3 0
7 %if 0%{?fedora} >= 15
8 %define with_gtk3 1
9 %endif
10
11 Name: mingw32-virt-viewer
12 Version: @VERSION@
13 Release: 1%{?dist}%{?extra_release}
14 Summary: MinGW Windows virt-viewer console application
15
16 License: LGPLv2+
17 Group: Development/Libraries
18 URL: http://virt-manager.org/
19 Source0: ftp://virt-manager.org/downloads/virt-viewer/virt-viewer-%{version}.tar.gz
20 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
21
22 BuildRequires: mingw32-filesystem >= 23
23 %if %{with_gtk3}
24 BuildRequires: mingw32-gtk3 >= 3.0.0
25 %else
26 BuildRequires: mingw32-gtk2 >= 2.12.0
27 %endif
28 BuildRequires: mingw32-libvirt >= 0.9.7
29 BuildRequires: mingw32-libxml2
30 %if %{with_gtk3}
31 BuildRequires: mingw32-gtk-vnc >= 0.4.3
32 %else
33 BuildRequires: mingw32-gtk-vnc2 >= 0.4.3
34 %endif
35 BuildRequires: pkgconfig
36
37 BuildArch: noarch
38
39
40 %description
41 MinGW Windows virt-viewer console application
42
43
44 %prep
45 %setup -q -n virt-viewer-%{version}
46
47
48 %build
49 %if %{with_gtk3}
50 %{_mingw32_configure} --with-gtk=3.0
51 %else
52 %{_mingw32_configure} --with-gtk=2.0
53 %endif
54 make
55
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 make DESTDIR=$RPM_BUILD_ROOT install
61
62 %find_lang virt-viewer
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67
68 %files -f virt-viewer.lang
69 %defattr(-,root,root)
70 %{_mingw32_bindir}/virt-viewer.exe
71 %{_mingw32_bindir}/remote-viewer.exe
72
73 %dir %{_mingw32_datadir}/virt-viewer/
74 %dir %{_mingw32_datadir}/virt-viewer/ui/
75 %{_mingw32_datadir}/virt-viewer/ui/virt-viewer.xml
76 %{_mingw32_datadir}/virt-viewer/ui/virt-viewer-about.xml
77 %{_mingw32_datadir}/virt-viewer/ui/virt-viewer-auth.xml
78 %{_mingw32_datadir}/icons/hicolor/*/apps/*
79
80 %{_mingw32_mandir}/man1/virt-viewer.1*
81 %{_mingw32_mandir}/man1/remote-viewer.1*
82
83 %changelog
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__make_dryrun = \
18 { \
19 am__dry=no; \
20 case $$MAKEFLAGS in \
21 *\\[\ \ ]*) \
22 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
23 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
24 *) \
25 for am__flg in $$MAKEFLAGS; do \
26 case $$am__flg in \
27 *=*|--*) ;; \
28 *n*) am__dry=yes; break;; \
29 esac; \
30 done;; \
31 esac; \
32 test $$am__dry = yes; \
33 }
1834 pkgdatadir = $(datadir)/@PACKAGE@
1935 pkgincludedir = $(includedir)/@PACKAGE@
2036 pkglibdir = $(libdir)/@PACKAGE@
3450 build_triplet = @build@
3551 host_triplet = @host@
3652 subdir = plugin
37 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
53 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
54 $(top_srcdir)/build-aux/depcomp
3855 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3956 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
4057 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
101118 AM_V_lt = $(am__v_lt_@AM_V@)
102119 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
103120 am__v_lt_0 = --silent
121 am__v_lt_1 =
104122 virt_viewer_plugin_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
105123 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
106124 $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) \
107125 $(virt_viewer_plugin_la_LDFLAGS) $(LDFLAGS) -o $@
108126 @ENABLE_PLUGIN_TRUE@am_virt_viewer_plugin_la_rpath = -rpath \
109127 @ENABLE_PLUGIN_TRUE@ $(plugindir)
128 AM_V_P = $(am__v_P_@AM_V@)
129 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
130 am__v_P_0 = false
131 am__v_P_1 = :
132 AM_V_GEN = $(am__v_GEN_@AM_V@)
133 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
134 am__v_GEN_0 = @echo " GEN " $@;
135 am__v_GEN_1 =
136 AM_V_at = $(am__v_at_@AM_V@)
137 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
138 am__v_at_0 = @
139 am__v_at_1 =
110140 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
111141 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
112142 am__depfiles_maybe = depfiles
119149 $(AM_CFLAGS) $(CFLAGS)
120150 AM_V_CC = $(am__v_CC_@AM_V@)
121151 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
122 am__v_CC_0 = @echo " CC " $@;
123 AM_V_at = $(am__v_at_@AM_V@)
124 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
125 am__v_at_0 = @
152 am__v_CC_0 = @echo " CC " $@;
153 am__v_CC_1 =
126154 CCLD = $(CC)
127155 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
128156 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
129157 $(AM_LDFLAGS) $(LDFLAGS) -o $@
130158 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
131159 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
132 am__v_CCLD_0 = @echo " CCLD " $@;
133 AM_V_GEN = $(am__v_GEN_@AM_V@)
134 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
135 am__v_GEN_0 = @echo " GEN " $@;
160 am__v_CCLD_0 = @echo " CCLD " $@;
161 am__v_CCLD_1 =
136162 SOURCES = $(virt_viewer_plugin_la_SOURCES)
137163 DIST_SOURCES = $(am__virt_viewer_plugin_la_SOURCES_DIST)
164 am__can_run_installinfo = \
165 case $$AM_UPDATE_INFO_DIR in \
166 n|no|NO) false;; \
167 *) (install-info --version) >/dev/null 2>&1;; \
168 esac
138169 ETAGS = etags
139170 CTAGS = ctags
140171 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
172203 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
173204 GLIB2_CFLAGS = @GLIB2_CFLAGS@
174205 GLIB2_LIBS = @GLIB2_LIBS@
206 GLIB_MKENUMS = @GLIB_MKENUMS@
175207 GMOFILES = @GMOFILES@
176208 GMSGFMT = @GMSGFMT@
177209 GREP = @GREP@
379411 $(am__aclocal_m4_deps):
380412 install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES)
381413 @$(NORMAL_INSTALL)
382 test -z "$(plugindir)" || $(MKDIR_P) "$(DESTDIR)$(plugindir)"
383414 @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \
384415 list2=; for p in $$list; do \
385416 if test -f $$p; then \
387418 else :; fi; \
388419 done; \
389420 test -z "$$list2" || { \
421 echo " $(MKDIR_P) '$(DESTDIR)$(plugindir)'"; \
422 $(MKDIR_P) "$(DESTDIR)$(plugindir)" || exit 1; \
390423 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \
391424 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \
392425 }
402435
403436 clean-pluginLTLIBRARIES:
404437 -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES)
405 @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
406 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
407 test "$$dir" != "$$p" || dir=.; \
408 echo "rm -f \"$${dir}/so_locations\""; \
409 rm -f "$${dir}/so_locations"; \
410 done
438 @list='$(plugin_LTLIBRARIES)'; \
439 locs=`for p in $$list; do echo $$p; done | \
440 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
441 sort -u`; \
442 test -z "$$locs" || { \
443 echo rm -f $${locs}; \
444 rm -f $${locs}; \
445 }
411446 virt-viewer-plugin.la: $(virt_viewer_plugin_la_OBJECTS) $(virt_viewer_plugin_la_DEPENDENCIES) $(EXTRA_virt_viewer_plugin_la_DEPENDENCIES)
412447 $(AM_V_CCLD)$(virt_viewer_plugin_la_LINK) $(am_virt_viewer_plugin_la_rpath) $(virt_viewer_plugin_la_OBJECTS) $(virt_viewer_plugin_la_LIBADD) $(LIBS)
413448
549584 here=`$(am__cd) $(top_builddir) && pwd` \
550585 && $(am__cd) $(top_srcdir) \
551586 && gtags -i $(GTAGS_ARGS) "$$here"
587
588 cscopelist: $(HEADERS) $(SOURCES) $(LISP)
589 list='$(SOURCES) $(HEADERS) $(LISP)'; \
590 case "$(srcdir)" in \
591 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
592 *) sdir=$(subdir)/$(srcdir) ;; \
593 esac; \
594 for i in $$list; do \
595 if test -f "$$i"; then \
596 echo "$(subdir)/$$i"; \
597 else \
598 echo "$$sdir/$$i"; \
599 fi; \
600 done >> $(top_builddir)/cscope.files
552601
553602 distclean-tags:
554603 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
698747 .MAKE: install-am install-data-am install-strip
699748
700749 .PHONY: CTAGS GTAGS all all-am all-local check check-am clean \
701 clean-generic clean-libtool clean-pluginLTLIBRARIES ctags \
702 distclean distclean-compile distclean-generic \
750 clean-generic clean-libtool clean-pluginLTLIBRARIES cscopelist \
751 ctags distclean distclean-compile distclean-generic \
703752 distclean-libtool distclean-tags distdir dvi dvi-am html \
704753 html-am info info-am install install-am install-data \
705754 install-data-am install-data-hook install-dvi install-dvi-am \
99 virt-viewer-auth.xml \
1010 $(NULL)
1111
12 EXTRA_DIST = $(builderxml_DATA) \
13 gbinding.c \
14 gbinding.h
12 EXTRA_DIST = \
13 $(builderxml_DATA) \
14 virt-viewer-enums.c.etemplate \
15 virt-viewer-enums.h.etemplate \
16 gbinding.c \
17 gbinding.h \
18 $(NULL)
19
20 ENUMS_FILES = \
21 virt-viewer-display.h \
22 $(NULL)
23
24 BUILT_SOURCES = \
25 virt-viewer-enums.h \
26 virt-viewer-enums.c \
27 $(NULL)
28
29 $(BUILT_SOURCES): %: %.etemplate $(ENUMS_FILES)
30 $(AM_V_GEN)$(GLIB_MKENUMS) --template $^ | \
31 sed -e 's/VIRT_TYPE_VIEWER/VIRT_VIEWER_TYPE/' \
32 -e 's,#include "$(srcdir)/,#include ",' > $@
1533
1634 COMMON_SOURCES = \
35 $(BUILT_SOURCES) \
36 virt-glib-compat.h \
1737 virt-gtk-compat.h \
1838 virt-viewer-util.h virt-viewer-util.c \
1939 virt-viewer-auth.h virt-viewer-auth.c \
120140 EXTRA_DIST += $(desktop_DATA)
121141
122142 VIRT_VIEWER_RES = virt-viewer.rc virt-viewer.manifest
123 ICONDIR = $(top_srcdir)/icons
143 ICONDIR = $(top_builddir)/icons
124144 MANIFESTDIR = $(srcdir)
125145 EXTRA_DIST += $(VIRT_VIEWER_RES)
126146
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1615
1716
1817 VPATH = @srcdir@
18 am__make_dryrun = \
19 { \
20 am__dry=no; \
21 case $$MAKEFLAGS in \
22 *\\[\ \ ]*) \
23 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
24 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
25 *) \
26 for am__flg in $$MAKEFLAGS; do \
27 case $$am__flg in \
28 *=*|--*) ;; \
29 *n*) am__dry=yes; break;; \
30 esac; \
31 done;; \
32 esac; \
33 test $$am__dry = yes; \
34 }
1935 pkgdatadir = $(datadir)/@PACKAGE@
2036 pkgincludedir = $(includedir)/@PACKAGE@
2137 pkglibdir = $(libdir)/@PACKAGE@
6076 @OS_WIN32_TRUE@am__append_15 = virt-viewer_rc.$(OBJEXT)
6177 subdir = src
6278 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
63 $(srcdir)/virt-viewer.rc.in
79 $(srcdir)/virt-viewer.rc.in $(top_srcdir)/build-aux/depcomp
6480 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
6581 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
6682 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
7894 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(builderxmldir)" \
7995 "$(DESTDIR)$(desktopdir)"
8096 PROGRAMS = $(bin_PROGRAMS)
81 am__remote_viewer_SOURCES_DIST = virt-gtk-compat.h virt-viewer-util.h \
82 virt-viewer-util.c virt-viewer-auth.h virt-viewer-auth.c \
83 virt-viewer-app.h virt-viewer-app.c virt-viewer-session.h \
84 virt-viewer-session.c virt-viewer-display.h \
85 virt-viewer-display.c virt-viewer-notebook.h \
86 virt-viewer-notebook.c virt-viewer-window.h \
87 virt-viewer-window.c view/autoDrawer.c view/autoDrawer.h \
88 view/drawer.c view/drawer.h view/ovBox.c view/ovBox.h \
89 virt-viewer-session-vnc.h virt-viewer-session-vnc.c \
90 virt-viewer-display-vnc.h virt-viewer-display-vnc.c \
91 virt-viewer-session-spice.h virt-viewer-session-spice.c \
92 virt-viewer-display-spice.h virt-viewer-display-spice.c \
93 remote-viewer.h remote-viewer.c remote-viewer-main.c
97 am__remote_viewer_SOURCES_DIST = virt-viewer-enums.h \
98 virt-viewer-enums.c virt-glib-compat.h virt-gtk-compat.h \
99 virt-viewer-util.h virt-viewer-util.c virt-viewer-auth.h \
100 virt-viewer-auth.c virt-viewer-app.h virt-viewer-app.c \
101 virt-viewer-session.h virt-viewer-session.c \
102 virt-viewer-display.h virt-viewer-display.c \
103 virt-viewer-notebook.h virt-viewer-notebook.c \
104 virt-viewer-window.h virt-viewer-window.c view/autoDrawer.c \
105 view/autoDrawer.h view/drawer.c view/drawer.h view/ovBox.c \
106 view/ovBox.h virt-viewer-session-vnc.h \
107 virt-viewer-session-vnc.c virt-viewer-display-vnc.h \
108 virt-viewer-display-vnc.c virt-viewer-session-spice.h \
109 virt-viewer-session-spice.c virt-viewer-display-spice.h \
110 virt-viewer-display-spice.c remote-viewer.h remote-viewer.c \
111 remote-viewer-main.c
94112 am__objects_1 =
95 @HAVE_GTK_VNC_TRUE@am__objects_2 = remote_viewer-virt-viewer-session-vnc.$(OBJEXT) \
113 am__objects_2 = remote_viewer-virt-viewer-enums.$(OBJEXT) \
114 $(am__objects_1)
115 @HAVE_GTK_VNC_TRUE@am__objects_3 = remote_viewer-virt-viewer-session-vnc.$(OBJEXT) \
96116 @HAVE_GTK_VNC_TRUE@ remote_viewer-virt-viewer-display-vnc.$(OBJEXT) \
97117 @HAVE_GTK_VNC_TRUE@ $(am__objects_1)
98 @HAVE_SPICE_GTK_TRUE@am__objects_3 = remote_viewer-virt-viewer-session-spice.$(OBJEXT) \
118 @HAVE_SPICE_GTK_TRUE@am__objects_4 = remote_viewer-virt-viewer-session-spice.$(OBJEXT) \
99119 @HAVE_SPICE_GTK_TRUE@ remote_viewer-virt-viewer-display-spice.$(OBJEXT) \
100120 @HAVE_SPICE_GTK_TRUE@ $(am__objects_1)
101 am__objects_4 = remote_viewer-virt-viewer-util.$(OBJEXT) \
121 am__objects_5 = $(am__objects_2) \
122 remote_viewer-virt-viewer-util.$(OBJEXT) \
102123 remote_viewer-virt-viewer-auth.$(OBJEXT) \
103124 remote_viewer-virt-viewer-app.$(OBJEXT) \
104125 remote_viewer-virt-viewer-session.$(OBJEXT) \
107128 remote_viewer-virt-viewer-window.$(OBJEXT) \
108129 remote_viewer-autoDrawer.$(OBJEXT) \
109130 remote_viewer-drawer.$(OBJEXT) remote_viewer-ovBox.$(OBJEXT) \
110 $(am__objects_1) $(am__objects_2) $(am__objects_3)
111 am_remote_viewer_OBJECTS = $(am__objects_4) \
131 $(am__objects_1) $(am__objects_3) $(am__objects_4)
132 am_remote_viewer_OBJECTS = $(am__objects_5) \
112133 remote_viewer-remote-viewer.$(OBJEXT) \
113134 remote_viewer-remote-viewer-main.$(OBJEXT) $(am__objects_1)
114135 remote_viewer_OBJECTS = $(am_remote_viewer_OBJECTS)
117138 AM_V_lt = $(am__v_lt_@AM_V@)
118139 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
119140 am__v_lt_0 = --silent
141 am__v_lt_1 =
120142 remote_viewer_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
121143 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(remote_viewer_CFLAGS) \
122144 $(CFLAGS) $(remote_viewer_LDFLAGS) $(LDFLAGS) -o $@
123 am__virt_viewer_SOURCES_DIST = virt-gtk-compat.h virt-viewer-util.h \
145 am__virt_viewer_SOURCES_DIST = virt-viewer-enums.h virt-viewer-enums.c \
146 virt-glib-compat.h virt-gtk-compat.h virt-viewer-util.h \
124147 virt-viewer-util.c virt-viewer-auth.h virt-viewer-auth.c \
125148 virt-viewer-app.h virt-viewer-app.c virt-viewer-session.h \
126149 virt-viewer-session.c virt-viewer-display.h \
134157 virt-viewer-display-spice.h virt-viewer-display-spice.c \
135158 virt-viewer-events.h virt-viewer-events.c virt-viewer.h \
136159 virt-viewer.c virt-viewer-main.c
137 @HAVE_GTK_VNC_TRUE@am__objects_5 = virt_viewer-virt-viewer-session-vnc.$(OBJEXT) \
160 am__objects_6 = virt_viewer-virt-viewer-enums.$(OBJEXT) \
161 $(am__objects_1)
162 @HAVE_GTK_VNC_TRUE@am__objects_7 = virt_viewer-virt-viewer-session-vnc.$(OBJEXT) \
138163 @HAVE_GTK_VNC_TRUE@ virt_viewer-virt-viewer-display-vnc.$(OBJEXT) \
139164 @HAVE_GTK_VNC_TRUE@ $(am__objects_1)
140 @HAVE_SPICE_GTK_TRUE@am__objects_6 = virt_viewer-virt-viewer-session-spice.$(OBJEXT) \
165 @HAVE_SPICE_GTK_TRUE@am__objects_8 = virt_viewer-virt-viewer-session-spice.$(OBJEXT) \
141166 @HAVE_SPICE_GTK_TRUE@ virt_viewer-virt-viewer-display-spice.$(OBJEXT) \
142167 @HAVE_SPICE_GTK_TRUE@ $(am__objects_1)
143 am__objects_7 = virt_viewer-virt-viewer-util.$(OBJEXT) \
168 am__objects_9 = $(am__objects_6) \
169 virt_viewer-virt-viewer-util.$(OBJEXT) \
144170 virt_viewer-virt-viewer-auth.$(OBJEXT) \
145171 virt_viewer-virt-viewer-app.$(OBJEXT) \
146172 virt_viewer-virt-viewer-session.$(OBJEXT) \
148174 virt_viewer-virt-viewer-notebook.$(OBJEXT) \
149175 virt_viewer-virt-viewer-window.$(OBJEXT) \
150176 virt_viewer-autoDrawer.$(OBJEXT) virt_viewer-drawer.$(OBJEXT) \
151 virt_viewer-ovBox.$(OBJEXT) $(am__objects_1) $(am__objects_5) \
152 $(am__objects_6)
153 @HAVE_LIBVIRT_TRUE@am_virt_viewer_OBJECTS = $(am__objects_7) \
177 virt_viewer-ovBox.$(OBJEXT) $(am__objects_1) $(am__objects_7) \
178 $(am__objects_8)
179 @HAVE_LIBVIRT_TRUE@am_virt_viewer_OBJECTS = $(am__objects_9) \
154180 @HAVE_LIBVIRT_TRUE@ virt_viewer-virt-viewer-events.$(OBJEXT) \
155181 @HAVE_LIBVIRT_TRUE@ virt_viewer-virt-viewer.$(OBJEXT) \
156182 @HAVE_LIBVIRT_TRUE@ virt_viewer-virt-viewer-main.$(OBJEXT) \
172198 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
173199 $(AM_CFLAGS) $(CFLAGS) $(windows_cmdline_wrapper_LDFLAGS) \
174200 $(LDFLAGS) -o $@
201 AM_V_P = $(am__v_P_@AM_V@)
202 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
203 am__v_P_0 = false
204 am__v_P_1 = :
205 AM_V_GEN = $(am__v_GEN_@AM_V@)
206 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
207 am__v_GEN_0 = @echo " GEN " $@;
208 am__v_GEN_1 =
209 AM_V_at = $(am__v_at_@AM_V@)
210 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
211 am__v_at_0 = @
212 am__v_at_1 =
175213 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
176214 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
177215 am__depfiles_maybe = depfiles
184222 $(AM_CFLAGS) $(CFLAGS)
185223 AM_V_CC = $(am__v_CC_@AM_V@)
186224 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
187 am__v_CC_0 = @echo " CC " $@;
188 AM_V_at = $(am__v_at_@AM_V@)
189 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
190 am__v_at_0 = @
225 am__v_CC_0 = @echo " CC " $@;
226 am__v_CC_1 =
191227 CCLD = $(CC)
192228 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
193229 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
194230 $(AM_LDFLAGS) $(LDFLAGS) -o $@
195231 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
196232 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
197 am__v_CCLD_0 = @echo " CCLD " $@;
198 AM_V_GEN = $(am__v_GEN_@AM_V@)
199 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
200 am__v_GEN_0 = @echo " GEN " $@;
233 am__v_CCLD_0 = @echo " CCLD " $@;
234 am__v_CCLD_1 =
201235 SOURCES = $(remote_viewer_SOURCES) $(virt_viewer_SOURCES) \
202236 $(windows_cmdline_wrapper_SOURCES)
203237 DIST_SOURCES = $(am__remote_viewer_SOURCES_DIST) \
204238 $(am__virt_viewer_SOURCES_DIST) \
205239 $(am__windows_cmdline_wrapper_SOURCES_DIST)
240 am__can_run_installinfo = \
241 case $$AM_UPDATE_INFO_DIR in \
242 n|no|NO) false;; \
243 *) (install-info --version) >/dev/null 2>&1;; \
244 esac
206245 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
207246 am__vpath_adj = case $$p in \
208247 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
268307 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
269308 GLIB2_CFLAGS = @GLIB2_CFLAGS@
270309 GLIB2_LIBS = @GLIB2_LIBS@
310 GLIB_MKENUMS = @GLIB_MKENUMS@
271311 GMOFILES = @GMOFILES@
272312 GMSGFMT = @GMSGFMT@
273313 GREP = @GREP@
418458 virt-viewer-auth.xml \
419459 $(NULL)
420460
421 EXTRA_DIST = $(builderxml_DATA) gbinding.c gbinding.h $(desktop_DATA) \
422 $(VIRT_VIEWER_RES)
423 COMMON_SOURCES = virt-gtk-compat.h virt-viewer-util.h \
424 virt-viewer-util.c virt-viewer-auth.h virt-viewer-auth.c \
425 virt-viewer-app.h virt-viewer-app.c virt-viewer-session.h \
426 virt-viewer-session.c virt-viewer-display.h \
427 virt-viewer-display.c virt-viewer-notebook.h \
428 virt-viewer-notebook.c virt-viewer-window.h \
429 virt-viewer-window.c view/autoDrawer.c view/autoDrawer.h \
430 view/drawer.c view/drawer.h view/ovBox.c view/ovBox.h $(NULL) \
431 $(am__append_1) $(am__append_2)
461 EXTRA_DIST = $(builderxml_DATA) virt-viewer-enums.c.etemplate \
462 virt-viewer-enums.h.etemplate gbinding.c gbinding.h $(NULL) \
463 $(desktop_DATA) $(VIRT_VIEWER_RES)
464 ENUMS_FILES = \
465 virt-viewer-display.h \
466 $(NULL)
467
468 BUILT_SOURCES = \
469 virt-viewer-enums.h \
470 virt-viewer-enums.c \
471 $(NULL)
472
473 COMMON_SOURCES = $(BUILT_SOURCES) virt-glib-compat.h virt-gtk-compat.h \
474 virt-viewer-util.h virt-viewer-util.c virt-viewer-auth.h \
475 virt-viewer-auth.c virt-viewer-app.h virt-viewer-app.c \
476 virt-viewer-session.h virt-viewer-session.c \
477 virt-viewer-display.h virt-viewer-display.c \
478 virt-viewer-notebook.h virt-viewer-notebook.c \
479 virt-viewer-window.h virt-viewer-window.c view/autoDrawer.c \
480 view/autoDrawer.h view/drawer.c view/drawer.h view/ovBox.c \
481 view/ovBox.h $(NULL) $(am__append_1) $(am__append_2)
432482 @HAVE_LIBVIRT_TRUE@virt_viewer_SOURCES = \
433483 @HAVE_LIBVIRT_TRUE@ $(COMMON_SOURCES) \
434484 @HAVE_LIBVIRT_TRUE@ virt-viewer-events.h virt-viewer-events.c \
461511 desktopdir = $(datadir)/applications
462512 desktop_DATA = remote-viewer.desktop
463513 VIRT_VIEWER_RES = virt-viewer.rc virt-viewer.manifest
464 ICONDIR = $(top_srcdir)/icons
514 ICONDIR = $(top_builddir)/icons
465515 MANIFESTDIR = $(srcdir)
466516 @OS_WIN32_TRUE@windows_cmdline_wrapper_SOURCES = windows-cmdline-wrapper.c
467517 @OS_WIN32_TRUE@windows_cmdline_wrapper_LDFLAGS = -lpsapi
468 all: all-am
518 all: $(BUILT_SOURCES)
519 $(MAKE) $(AM_MAKEFLAGS) all-am
469520
470521 .SUFFIXES:
471522 .SUFFIXES: .c .lo .o .obj
503554 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
504555 install-binPROGRAMS: $(bin_PROGRAMS)
505556 @$(NORMAL_INSTALL)
506 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
507557 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
558 if test -n "$$list"; then \
559 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
560 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
561 fi; \
508562 for p in $$list; do echo "$$p $$p"; done | \
509563 sed 's/$(EXEEXT)$$//' | \
510564 while read p p1; do if test -f $$p || test -f $$p1; \
570624 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote_viewer-virt-viewer-display-spice.Po@am__quote@
571625 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote_viewer-virt-viewer-display-vnc.Po@am__quote@
572626 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote_viewer-virt-viewer-display.Po@am__quote@
627 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote_viewer-virt-viewer-enums.Po@am__quote@
573628 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote_viewer-virt-viewer-notebook.Po@am__quote@
574629 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote_viewer-virt-viewer-session-spice.Po@am__quote@
575630 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote_viewer-virt-viewer-session-vnc.Po@am__quote@
584639 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer-virt-viewer-display-spice.Po@am__quote@
585640 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer-virt-viewer-display-vnc.Po@am__quote@
586641 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer-virt-viewer-display.Po@am__quote@
642 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer-virt-viewer-enums.Po@am__quote@
587643 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer-virt-viewer-events.Po@am__quote@
588644 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer-virt-viewer-main.Po@am__quote@
589645 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer-virt-viewer-notebook.Po@am__quote@
616672 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
617673 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
618674
675 remote_viewer-virt-viewer-enums.o: virt-viewer-enums.c
676 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_viewer_CFLAGS) $(CFLAGS) -MT remote_viewer-virt-viewer-enums.o -MD -MP -MF $(DEPDIR)/remote_viewer-virt-viewer-enums.Tpo -c -o remote_viewer-virt-viewer-enums.o `test -f 'virt-viewer-enums.c' || echo '$(srcdir)/'`virt-viewer-enums.c
677 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/remote_viewer-virt-viewer-enums.Tpo $(DEPDIR)/remote_viewer-virt-viewer-enums.Po
678 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='virt-viewer-enums.c' object='remote_viewer-virt-viewer-enums.o' libtool=no @AMDEPBACKSLASH@
679 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
680 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_viewer_CFLAGS) $(CFLAGS) -c -o remote_viewer-virt-viewer-enums.o `test -f 'virt-viewer-enums.c' || echo '$(srcdir)/'`virt-viewer-enums.c
681
682 remote_viewer-virt-viewer-enums.obj: virt-viewer-enums.c
683 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_viewer_CFLAGS) $(CFLAGS) -MT remote_viewer-virt-viewer-enums.obj -MD -MP -MF $(DEPDIR)/remote_viewer-virt-viewer-enums.Tpo -c -o remote_viewer-virt-viewer-enums.obj `if test -f 'virt-viewer-enums.c'; then $(CYGPATH_W) 'virt-viewer-enums.c'; else $(CYGPATH_W) '$(srcdir)/virt-viewer-enums.c'; fi`
684 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/remote_viewer-virt-viewer-enums.Tpo $(DEPDIR)/remote_viewer-virt-viewer-enums.Po
685 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='virt-viewer-enums.c' object='remote_viewer-virt-viewer-enums.obj' libtool=no @AMDEPBACKSLASH@
686 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
687 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_viewer_CFLAGS) $(CFLAGS) -c -o remote_viewer-virt-viewer-enums.obj `if test -f 'virt-viewer-enums.c'; then $(CYGPATH_W) 'virt-viewer-enums.c'; else $(CYGPATH_W) '$(srcdir)/virt-viewer-enums.c'; fi`
688
619689 remote_viewer-virt-viewer-util.o: virt-viewer-util.c
620690 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_viewer_CFLAGS) $(CFLAGS) -MT remote_viewer-virt-viewer-util.o -MD -MP -MF $(DEPDIR)/remote_viewer-virt-viewer-util.Tpo -c -o remote_viewer-virt-viewer-util.o `test -f 'virt-viewer-util.c' || echo '$(srcdir)/'`virt-viewer-util.c
621691 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/remote_viewer-virt-viewer-util.Tpo $(DEPDIR)/remote_viewer-virt-viewer-util.Po
840910 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
841911 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_viewer_CFLAGS) $(CFLAGS) -c -o remote_viewer-remote-viewer-main.obj `if test -f 'remote-viewer-main.c'; then $(CYGPATH_W) 'remote-viewer-main.c'; else $(CYGPATH_W) '$(srcdir)/remote-viewer-main.c'; fi`
842912
913 virt_viewer-virt-viewer-enums.o: virt-viewer-enums.c
914 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-virt-viewer-enums.o -MD -MP -MF $(DEPDIR)/virt_viewer-virt-viewer-enums.Tpo -c -o virt_viewer-virt-viewer-enums.o `test -f 'virt-viewer-enums.c' || echo '$(srcdir)/'`virt-viewer-enums.c
915 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer-virt-viewer-enums.Tpo $(DEPDIR)/virt_viewer-virt-viewer-enums.Po
916 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='virt-viewer-enums.c' object='virt_viewer-virt-viewer-enums.o' libtool=no @AMDEPBACKSLASH@
917 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
918 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-virt-viewer-enums.o `test -f 'virt-viewer-enums.c' || echo '$(srcdir)/'`virt-viewer-enums.c
919
920 virt_viewer-virt-viewer-enums.obj: virt-viewer-enums.c
921 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-virt-viewer-enums.obj -MD -MP -MF $(DEPDIR)/virt_viewer-virt-viewer-enums.Tpo -c -o virt_viewer-virt-viewer-enums.obj `if test -f 'virt-viewer-enums.c'; then $(CYGPATH_W) 'virt-viewer-enums.c'; else $(CYGPATH_W) '$(srcdir)/virt-viewer-enums.c'; fi`
922 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer-virt-viewer-enums.Tpo $(DEPDIR)/virt_viewer-virt-viewer-enums.Po
923 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='virt-viewer-enums.c' object='virt_viewer-virt-viewer-enums.obj' libtool=no @AMDEPBACKSLASH@
924 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
925 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-virt-viewer-enums.obj `if test -f 'virt-viewer-enums.c'; then $(CYGPATH_W) 'virt-viewer-enums.c'; else $(CYGPATH_W) '$(srcdir)/virt-viewer-enums.c'; fi`
926
843927 virt_viewer-virt-viewer-util.o: virt-viewer-util.c
844928 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-virt-viewer-util.o -MD -MP -MF $(DEPDIR)/virt_viewer-virt-viewer-util.Tpo -c -o virt_viewer-virt-viewer-util.o `test -f 'virt-viewer-util.c' || echo '$(srcdir)/'`virt-viewer-util.c
845929 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer-virt-viewer-util.Tpo $(DEPDIR)/virt_viewer-virt-viewer-util.Po
10851169 -rm -rf .libs _libs
10861170 install-builderxmlDATA: $(builderxml_DATA)
10871171 @$(NORMAL_INSTALL)
1088 test -z "$(builderxmldir)" || $(MKDIR_P) "$(DESTDIR)$(builderxmldir)"
10891172 @list='$(builderxml_DATA)'; test -n "$(builderxmldir)" || list=; \
1173 if test -n "$$list"; then \
1174 echo " $(MKDIR_P) '$(DESTDIR)$(builderxmldir)'"; \
1175 $(MKDIR_P) "$(DESTDIR)$(builderxmldir)" || exit 1; \
1176 fi; \
10901177 for p in $$list; do \
10911178 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
10921179 echo "$$d$$p"; \
11031190 dir='$(DESTDIR)$(builderxmldir)'; $(am__uninstall_files_from_dir)
11041191 install-desktopDATA: $(desktop_DATA)
11051192 @$(NORMAL_INSTALL)
1106 test -z "$(desktopdir)" || $(MKDIR_P) "$(DESTDIR)$(desktopdir)"
11071193 @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \
1194 if test -n "$$list"; then \
1195 echo " $(MKDIR_P) '$(DESTDIR)$(desktopdir)'"; \
1196 $(MKDIR_P) "$(DESTDIR)$(desktopdir)" || exit 1; \
1197 fi; \
11081198 for p in $$list; do \
11091199 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
11101200 echo "$$d$$p"; \
11691259 && $(am__cd) $(top_srcdir) \
11701260 && gtags -i $(GTAGS_ARGS) "$$here"
11711261
1262 cscopelist: $(HEADERS) $(SOURCES) $(LISP)
1263 list='$(SOURCES) $(HEADERS) $(LISP)'; \
1264 case "$(srcdir)" in \
1265 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
1266 *) sdir=$(subdir)/$(srcdir) ;; \
1267 esac; \
1268 for i in $$list; do \
1269 if test -f "$$i"; then \
1270 echo "$(subdir)/$$i"; \
1271 else \
1272 echo "$$sdir/$$i"; \
1273 fi; \
1274 done >> $(top_builddir)/cscope.files
1275
11721276 distclean-tags:
11731277 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
11741278
12031307 fi; \
12041308 done
12051309 check-am: all-am
1206 check: check-am
1310 check: $(BUILT_SOURCES)
1311 $(MAKE) $(AM_MAKEFLAGS) check-am
12071312 all-am: Makefile $(PROGRAMS) $(DATA)
12081313 installdirs:
12091314 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(builderxmldir)" "$(DESTDIR)$(desktopdir)"; do \
12101315 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
12111316 done
1212 install: install-am
1317 install: $(BUILT_SOURCES)
1318 $(MAKE) $(AM_MAKEFLAGS) install-am
12131319 install-exec: install-exec-am
12141320 install-data: install-data-am
12151321 uninstall: uninstall-am
12391345 maintainer-clean-generic:
12401346 @echo "This command is intended for maintainers to use"
12411347 @echo "it deletes files that may require special tools to rebuild."
1348 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
12421349 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
12431350 clean: clean-am
12441351
13111418 uninstall-am: uninstall-binPROGRAMS uninstall-builderxmlDATA \
13121419 uninstall-desktopDATA
13131420
1314 .MAKE: install-am install-strip
1421 .MAKE: all check install install-am install-strip
13151422
13161423 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
1317 clean-generic clean-libtool ctags distclean distclean-compile \
1318 distclean-generic distclean-libtool distclean-tags distdir dvi \
1319 dvi-am html html-am info info-am install install-am \
1320 install-binPROGRAMS install-builderxmlDATA install-data \
1321 install-data-am install-desktopDATA install-dvi install-dvi-am \
1322 install-exec install-exec-am install-html install-html-am \
1323 install-info install-info-am install-man install-pdf \
1324 install-pdf-am install-ps install-ps-am install-strip \
1325 installcheck installcheck-am installdirs maintainer-clean \
1326 maintainer-clean-generic mostlyclean mostlyclean-compile \
1327 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1328 tags uninstall uninstall-am uninstall-binPROGRAMS \
1329 uninstall-builderxmlDATA uninstall-desktopDATA
1330
1424 clean-generic clean-libtool cscopelist ctags distclean \
1425 distclean-compile distclean-generic distclean-libtool \
1426 distclean-tags distdir dvi dvi-am html html-am info info-am \
1427 install install-am install-binPROGRAMS install-builderxmlDATA \
1428 install-data install-data-am install-desktopDATA install-dvi \
1429 install-dvi-am install-exec install-exec-am install-html \
1430 install-html-am install-info install-info-am install-man \
1431 install-pdf install-pdf-am install-ps install-ps-am \
1432 install-strip installcheck installcheck-am installdirs \
1433 maintainer-clean maintainer-clean-generic mostlyclean \
1434 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
1435 pdf pdf-am ps ps-am tags uninstall uninstall-am \
1436 uninstall-binPROGRAMS uninstall-builderxmlDATA \
1437 uninstall-desktopDATA
1438
1439
1440 $(BUILT_SOURCES): %: %.etemplate $(ENUMS_FILES)
1441 $(AM_V_GEN)$(GLIB_MKENUMS) --template $^ | \
1442 sed -e 's/VIRT_TYPE_VIEWER/VIRT_VIEWER_TYPE/' \
1443 -e 's,#include "$(srcdir)/,#include ",' > $@
13311444
13321445 @OS_WIN32_TRUE@virt-viewer_rc.$(OBJEXT): $(VIRT_VIEWER_RES) $(ICONDIR)/virt-viewer.ico
13331446 @OS_WIN32_TRUE@ $(AM_V_GEN)$(WINDRES) \
183183 gchar *uri = virt_viewer_session_get_uri(session);
184184
185185 recent_add(uri);
186 g_free(uri);
186187 }
187188
188189 int
202203 gboolean controller = FALSE;
203204 #endif
204205 VirtViewerApp *app;
205 const char *help_msg = N_("Run '" PACKAGE " --help' to see a full list of available command line options");
206206 const GOptionEntry options [] = {
207207 { "version", 'V', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK,
208208 remote_viewer_version, N_("Display version information"), NULL },
215215 { "debug", '\0', 0, G_OPTION_ARG_NONE, &debug,
216216 N_("Display debugging information"), NULL },
217217 { "full-screen", 'f', G_OPTION_FLAG_OPTIONAL_ARG, G_OPTION_ARG_CALLBACK, option_fullscreen,
218 N_("Open in full screen mode (=<auto-conf>)"), NULL },
218 N_("Open in full screen mode (auto-conf adjusts guest resolution to fit the client's)."), N_("<auto-conf>") },
219219 #if HAVE_SPICE_GTK
220220 { "spice-controller", '\0', 0, G_OPTION_ARG_NONE, &controller,
221221 N_("Open connection using Spice controller communication"), NULL },
259259 #endif
260260 g_option_context_parse (context, &argc, &argv, &error);
261261 if (error) {
262 g_printerr("%s\n%s\n",
263 error->message,
264 gettext(help_msg));
262 char *basename;
263 basename = g_path_get_basename(argv[0]);
264 g_printerr(_("%s\nRun '%s --help' to see a full list of available command line options\n"),
265 error->message, basename);
266 g_free(basename);
265267 g_error_free(error);
266268 goto cleanup;
267269 }
0 /*
1 * Virt Viewer: A virtual machine console viewer
2 *
3 * Copyright (C) 2007-2009 Red Hat, Inc.
4 * Copyright (C) 2009-2012 Daniel P. Berrange
5 * Copyright (C) 2010 Marc-André Lureau
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 *
21 * Author: Daniel P. Berrange <berrange@redhat.com>
22 */
23
24 #include <config.h>
25
26 #ifndef _VIRT_GLIB_COMPAT_H
27 # define _VIRT_GLIB_COMPAT_H 1
28
29 #include <glib-object.h>
30
31 G_BEGIN_DECLS
32
33 #ifndef g_clear_pointer
34 #define g_clear_pointer(pp, destroy) \
35 G_STMT_START { \
36 G_STATIC_ASSERT (sizeof *(pp) == sizeof (gpointer)); \
37 /* Only one access, please */ \
38 gpointer *_pp = (gpointer *) (pp); \
39 gpointer _p; \
40 /* This assignment is needed to avoid a gcc warning */ \
41 GDestroyNotify _destroy = (GDestroyNotify) (destroy); \
42 \
43 (void) (0 ? (gpointer) *(pp) : 0); \
44 do \
45 _p = g_atomic_pointer_get (_pp); \
46 while G_UNLIKELY (!g_atomic_pointer_compare_and_exchange (_pp, _p, NULL)); \
47 \
48 if (_p) \
49 _destroy (_p); \
50 } G_STMT_END
51 #endif
52
53 G_END_DECLS
54
55 #endif // _VIRT_GLIB_COMPAT_H
282282 GTK_BUTTONS_OK_CANCEL,
283283 _("This is the last visible display. Do you want to quit?"));
284284 gint result = gtk_dialog_run (GTK_DIALOG (dialog));
285 gtk_widget_destroy(dialog);
285286 switch (result) {
286287 case GTK_RESPONSE_OK:
287288 virt_viewer_app_quit(self);
289290 default:
290291 break;
291292 }
292 gtk_widget_destroy(dialog);
293293 return FALSE;
294294 } else {
295295 virt_viewer_app_quit(self);
519519 DEBUG_LOG("Remove window %d %p", nth, win);
520520 removed = g_hash_table_steal(self->priv->windows, &nth);
521521 g_warn_if_fail(removed);
522 virt_viewer_app_update_menu_displays(self);
522523
523524 if (removed)
524525 g_signal_emit(self, signals[SIGNAL_WINDOW_REMOVED], 0, win);
539540 DEBUG_LOG("Insert window %d %p", nth, win);
540541 g_hash_table_insert(self->priv->windows, key, win);
541542 virt_viewer_app_set_window_subtitle(self, win, nth);
543 virt_viewer_app_update_menu_displays(self);
542544
543545 g_signal_emit(self, signals[SIGNAL_WINDOW_ADDED], 0, win);
544546 }
608610 {
609611 VirtViewerApp *self;
610612 VirtViewerNotebook *nb = virt_viewer_window_get_notebook(win);
611 gint nth, hint;
613 gint nth;
614 guint hint;
612615
613616 g_object_get(win,
614617 "app", &self,
618621 "show-hint", &hint,
619622 NULL);
620623
621 if (hint == VIRT_VIEWER_DISPLAY_SHOW_HINT_HIDE) {
624 if (hint & VIRT_VIEWER_DISPLAY_SHOW_HINT_DISABLED) {
625 virt_viewer_window_hide(win);
626 } else if (hint & VIRT_VIEWER_DISPLAY_SHOW_HINT_READY) {
627 virt_viewer_notebook_show_display(nb);
628 virt_viewer_window_show(win);
629 gtk_window_present(virt_viewer_window_get_window(win));
630 } else {
622631 if (win != self->priv->main_window &&
623632 g_getenv("VIRT_VIEWER_HIDE"))
624633 virt_viewer_window_hide(win);
625634 virt_viewer_notebook_show_status(nb, _("Waiting for display %d..."), nth + 1);
626 } else {
627 virt_viewer_notebook_show_display(nb);
628 virt_viewer_window_show(win);
629 gtk_window_present(virt_viewer_window_get_window(win));
630635 }
631636
632637 g_object_unref(self);
655660 }
656661
657662 virt_viewer_window_set_display(window, display);
658 g_signal_connect(display, "notify::show-hint",
659 G_CALLBACK(display_show_hint), window);
663 virt_viewer_app_update_menu_displays(self);
664 virt_viewer_signal_connect_object(display, "notify::show-hint",
665 G_CALLBACK(display_show_hint), window, 0);
660666 g_object_notify(G_OBJECT(display), "show-hint"); /* call display_show_hint */
661667 }
662668
676682
677683 if (nth != 0)
678684 virt_viewer_app_remove_nth_window(self, nth);
685 }
686
687 static void
688 virt_viewer_app_display_updated(VirtViewerSession *session G_GNUC_UNUSED,
689 VirtViewerApp *self)
690 {
691 virt_viewer_app_update_menu_displays(self);
679692 }
680693
681694 int
728741 G_CALLBACK(virt_viewer_app_display_added), self);
729742 g_signal_connect(priv->session, "session-display-removed",
730743 G_CALLBACK(virt_viewer_app_display_removed), self);
744 g_signal_connect(priv->session, "session-display-updated",
745 G_CALLBACK(virt_viewer_app_display_updated), self);
731746
732747 g_signal_connect(priv->session, "session-cut-text",
733748 G_CALLBACK(virt_viewer_app_server_cut_text), self);
12721287 priv->session = NULL;
12731288 }
12741289 g_free(priv->title);
1290 priv->title = NULL;
1291 g_free(priv->guest_name);
1292 priv->guest_name = NULL;
1293 g_free(priv->pretty_address);
1294 priv->pretty_address = NULL;
1295 g_free(priv->guri);
1296 priv->guri = NULL;
1297 g_free(priv->title);
1298 priv->title = NULL;
12751299
12761300 virt_viewer_app_free_connect_info(self);
12771301
16191643 while (tmp) {
16201644 int *nth = tmp->data;
16211645 VirtViewerWindow *vwin = VIRT_VIEWER_WINDOW(g_hash_table_lookup(self->priv->windows, nth));
1646 VirtViewerDisplay *display = virt_viewer_window_get_display(vwin);
16221647 GtkWidget *item;
1623 gboolean visible;
1624
1625 item = gtk_check_menu_item_new_with_label(g_strdup_printf("Display %d", *nth));
1648 gboolean visible, sensitive = FALSE;
1649 gchar *label;
1650
1651 label = g_strdup_printf(_("Display %d"), *nth + 1);
1652 item = gtk_check_menu_item_new_with_label(label);
1653 g_free(label);
1654
16261655 visible = gtk_widget_get_visible(GTK_WIDGET(virt_viewer_window_get_window(vwin)));
16271656 gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(item), visible);
1657
1658 if (display) {
1659 guint hint = virt_viewer_display_get_show_hint(display);
1660
1661 if (hint & VIRT_VIEWER_DISPLAY_SHOW_HINT_READY)
1662 sensitive = TRUE;
1663
1664 if ((hint & VIRT_VIEWER_DISPLAY_SHOW_HINT_DISABLED) &&
1665 virt_viewer_display_get_selectable(display))
1666 sensitive = TRUE;
1667 }
1668
1669 gtk_widget_set_sensitive(item, sensitive);
1670
16281671 g_signal_connect(G_OBJECT(item),
16291672 "toggled", G_CALLBACK(menu_display_visible_toggled_cb), vwin);
16301673 gtk_menu_shell_append(submenu, item);
8888 }
8989
9090 gtk_widget_destroy(GTK_WIDGET(dialog));
91 g_object_unref(G_OBJECT(creds));
9192
9293 return response == GTK_RESPONSE_OK ? 0 : -1;
9394 }
3434 G_DEFINE_TYPE (VirtViewerDisplaySpice, virt_viewer_display_spice, VIRT_VIEWER_TYPE_DISPLAY)
3535
3636 struct _VirtViewerDisplaySpicePrivate {
37 SpiceChannel *channel;
37 SpiceChannel *channel; /* weak reference */
3838 SpiceDisplay *display;
3939 };
4040
4646 static GdkPixbuf *virt_viewer_display_spice_get_pixbuf(VirtViewerDisplay *display);
4747 static void virt_viewer_display_spice_release_cursor(VirtViewerDisplay *display);
4848 static void virt_viewer_display_spice_close(VirtViewerDisplay *display G_GNUC_UNUSED);
49 static gboolean virt_viewer_display_spice_selectable(VirtViewerDisplay *display);
4950
5051 static void
5152 virt_viewer_display_spice_finalize(GObject *obj)
5354 VirtViewerDisplaySpice *spice = VIRT_VIEWER_DISPLAY_SPICE(obj);
5455
5556 g_object_unref(spice->priv->display);
56 g_object_unref(spice->priv->channel);
5757
5858 G_OBJECT_CLASS(virt_viewer_display_spice_parent_class)->finalize(obj);
5959 }
7070 dclass->get_pixbuf = virt_viewer_display_spice_get_pixbuf;
7171 dclass->release_cursor = virt_viewer_display_spice_release_cursor;
7272 dclass->close = virt_viewer_display_spice_close;
73 dclass->selectable = virt_viewer_display_spice_selectable;
7374
7475 g_type_class_add_private(klass, sizeof(VirtViewerDisplaySpicePrivate));
7576 }
7677
78 static SpiceMainChannel*
79 get_main(VirtViewerDisplay *self)
80 {
81 VirtViewerSessionSpice *session;
82
83 session = VIRT_VIEWER_SESSION_SPICE(virt_viewer_display_get_session(self));
84
85 return virt_viewer_session_spice_get_main_channel(session);
86 }
87
88 static void
89 show_hint_changed(VirtViewerDisplay *self)
90 {
91 SpiceMainChannel *main_channel = get_main(self);
92 guint enabled = TRUE;
93 guint nth;
94
95 /* this may happen when finalizing */
96 if (!main_channel)
97 return;
98
99 g_object_get(self, "nth-display", &nth, NULL);
100 if (virt_viewer_display_get_show_hint(self) & VIRT_VIEWER_DISPLAY_SHOW_HINT_DISABLED)
101 enabled = FALSE;
102
103 spice_main_set_display_enabled(main_channel, nth, enabled);
104 }
105
77106 static void
78107 virt_viewer_display_spice_init(VirtViewerDisplaySpice *self G_GNUC_UNUSED)
79108 {
80109 self->priv = VIRT_VIEWER_DISPLAY_SPICE_GET_PRIVATE(self);
110
111 g_signal_connect(self, "notify::show-hint", G_CALLBACK(show_hint_changed), NULL);
81112 }
82113
83114 static void
105136 }
106137
107138 static void
108 display_mark(SpiceChannel *channel G_GNUC_UNUSED,
109 gint mark,
110 VirtViewerDisplay *display)
111 {
112 DEBUG_LOG("Toggle monitor visibility %p %d", channel, mark);
113
114 virt_viewer_display_set_show_hint(display, mark);
115 }
116
117 static void
118 primary_create(SpiceChannel *channel G_GNUC_UNUSED,
119 gint format G_GNUC_UNUSED,
120 gint width,
121 gint height,
122 gint stride G_GNUC_UNUSED,
123 gint shmid G_GNUC_UNUSED,
124 gpointer imgdata G_GNUC_UNUSED,
125 VirtViewerDisplay *display)
126 {
127 DEBUG_LOG("spice desktop resize %dx%d", width, height);
128
129 virt_viewer_display_set_desktop_size(display, width, height);
130 }
131
139 display_ready(GObject *display,
140 GParamSpec *pspec G_GNUC_UNUSED,
141 VirtViewerDisplay *self)
142 {
143 gboolean ready;
144
145 g_object_get(display, "ready", &ready, NULL);
146 DEBUG_LOG("display %p ready:%d", self, ready);
147
148 virt_viewer_display_set_show_hint(self, VIRT_VIEWER_DISPLAY_SHOW_HINT_READY, ready);
149 }
132150
133151 static void
134152 virt_viewer_display_spice_keyboard_grab(SpiceDisplay *display G_GNUC_UNUSED,
161179 {
162180 gdouble dw = allocation->width, dh = allocation->height;
163181 guint zoom = 100;
164 guint channelid;
182 guint nth;
165183
166184 if (virt_viewer_display_get_auto_resize(VIRT_VIEWER_DISPLAY(self)) == FALSE)
185 return;
186
187 if (virt_viewer_display_get_show_hint(VIRT_VIEWER_DISPLAY(self)) & VIRT_VIEWER_DISPLAY_SHOW_HINT_DISABLED)
167188 return;
168189
169190 if (virt_viewer_display_get_zoom(VIRT_VIEWER_DISPLAY(self))) {
173194 dh /= ((double)zoom / 100.0);
174195 }
175196
176 g_object_get(self->priv->channel, "channel-id", &channelid, NULL);
177
178 SpiceMainChannel *main_channel = virt_viewer_session_spice_get_main_channel(
179 VIRT_VIEWER_SESSION_SPICE(virt_viewer_display_get_session(VIRT_VIEWER_DISPLAY(self))));
180 spice_main_set_display(main_channel,
181 channelid,
182 0, 0, dw, dh);
197 g_object_get(self, "nth-display", &nth, NULL);
198
199 spice_main_set_display(get_main(VIRT_VIEWER_DISPLAY(self)),
200 nth, 0, 0, dw, dh);
183201 }
184202
185203 static void
199217 GtkWidget *
200218 virt_viewer_display_spice_new(VirtViewerSessionSpice *session,
201219 SpiceChannel *channel,
202 SpiceDisplay *display)
220 gint monitorid)
203221 {
204222 VirtViewerDisplaySpice *self;
205223 VirtViewerApp *app;
206224 gint channelid;
225 SpiceSession *s;
207226
208227 g_return_val_if_fail(SPICE_IS_DISPLAY_CHANNEL(channel), NULL);
209 g_return_val_if_fail(SPICE_IS_DISPLAY(display), NULL);
210228
211229 g_object_get(channel, "channel-id", &channelid, NULL);
230 // We don't allow monitorid != 0 && channelid != 0
231 g_return_val_if_fail(channelid == 0 || monitorid == 0, NULL);
212232
213233 self = g_object_new(VIRT_VIEWER_TYPE_DISPLAY_SPICE,
214234 "session", session,
215 "nth-display", channelid,
235 // either monitorid is always 0 or channelid
236 // is, we can't have display (0, 2) and (2, 0)
237 // for example
238 "nth-display", channelid + monitorid,
216239 NULL);
217 self->priv->channel = g_object_ref(channel);
218 self->priv->display = g_object_ref(display);
219
220 g_signal_connect(channel, "display-primary-create",
221 G_CALLBACK(primary_create), self);
222 g_signal_connect(channel, "display-mark",
223 G_CALLBACK(display_mark), self);
224
225 gtk_container_add(GTK_CONTAINER(self), GTK_WIDGET(self->priv->display));
240 self->priv->channel = channel;
241
242 g_object_get(session, "spice-session", &s, NULL);
243 self->priv->display = spice_display_new_with_monitor(s, channelid, monitorid);
244 g_object_unref(s);
245
246 virt_viewer_signal_connect_object(self->priv->display, "notify::ready",
247 G_CALLBACK(display_ready), self, 0);
248
249 gtk_container_add(GTK_CONTAINER(self), g_object_ref(self->priv->display));
226250 gtk_widget_show(GTK_WIDGET(self->priv->display));
227251 g_object_set(self->priv->display,
228252 "grab-keyboard", TRUE,
231255 "scaling", TRUE,
232256 NULL);
233257
234 g_signal_connect(self->priv->display,
235 "keyboard-grab",
236 G_CALLBACK(virt_viewer_display_spice_keyboard_grab), self);
237 g_signal_connect(self->priv->display,
238 "mouse-grab",
239 G_CALLBACK(virt_viewer_display_spice_mouse_grab), self);
240 g_signal_connect(self,
241 "size-allocate",
242 G_CALLBACK(virt_viewer_display_spice_size_allocate), self);
258 virt_viewer_signal_connect_object(self->priv->display, "keyboard-grab",
259 G_CALLBACK(virt_viewer_display_spice_keyboard_grab), self, 0);
260 virt_viewer_signal_connect_object(self->priv->display, "mouse-grab",
261 G_CALLBACK(virt_viewer_display_spice_mouse_grab), self, 0);
262 virt_viewer_signal_connect_object(self, "size-allocate",
263 G_CALLBACK(virt_viewer_display_spice_size_allocate), self, 0);
243264
244265
245266 app = virt_viewer_session_get_app(VIRT_VIEWER_SESSION(session));
246 g_signal_connect(app, "notify::enable-accel", G_CALLBACK(enable_accel_changed), self);
267 virt_viewer_signal_connect_object(app, "notify::enable-accel",
268 G_CALLBACK(enable_accel_changed), self, 0);
247269 enable_accel_changed(app, NULL, self);
248270
249271 return GTK_WIDGET(self);
261283 static void
262284 virt_viewer_display_spice_close(VirtViewerDisplay *display G_GNUC_UNUSED)
263285 {
286 }
287
288 static gboolean
289 virt_viewer_display_spice_selectable(VirtViewerDisplay *self)
290 {
291 gboolean agent_connected;
292 SpiceMainChannel *mainc;
293
294 mainc = get_main(self);
295 g_object_get(mainc,
296 "agent-connected", &agent_connected,
297 NULL);
298
299 return agent_connected;
264300 }
265301
266302
6565
6666 GType virt_viewer_display_spice_get_type(void);
6767
68 GtkWidget* virt_viewer_display_spice_new(VirtViewerSessionSpice *session,
69 SpiceChannel *channel,
70 SpiceDisplay *display);
68 GtkWidget* virt_viewer_display_spice_new(VirtViewerSessionSpice *session, SpiceChannel *channel, gint monitorid);
7169
7270 G_END_DECLS
7371
4040 guint zoom_level;
4141 gboolean zoom;
4242 gint nth_display;
43 gint show_hint;
43 guint show_hint;
4444 VirtViewerSession *session;
4545 gboolean auto_resize;
4646 };
7979 PROP_ZOOM_LEVEL,
8080 PROP_SHOW_HINT,
8181 PROP_SESSION,
82 PROP_SELECTABLE,
8283 };
8384
8485 static void
150151
151152 g_object_class_install_property(object_class,
152153 PROP_SHOW_HINT,
153 g_param_spec_int("show-hint",
154 "Show hint",
155 "Show state hint",
156 0,
157 G_MAXINT32,
158 0,
159 G_PARAM_READABLE));
154 g_param_spec_flags("show-hint",
155 "Show hint",
156 "Show state hint",
157 VIRT_VIEWER_TYPE_DISPLAY_SHOW_HINT_FLAGS,
158 0,
159 G_PARAM_READABLE));
160160
161161 g_object_class_install_property(object_class,
162162 PROP_SESSION,
167167 G_PARAM_READWRITE |
168168 G_PARAM_CONSTRUCT_ONLY));
169169
170 g_object_class_install_property(object_class,
171 PROP_SELECTABLE,
172 g_param_spec_boolean("selectable",
173 "Selectable",
174 "Selectable",
175 FALSE,
176 G_PARAM_READABLE));
170177
171178 g_signal_new("display-pointer-grab",
172179 G_OBJECT_CLASS_TYPE(object_class),
297304 g_value_set_int(value, priv->nth_display);
298305 break;
299306 case PROP_SHOW_HINT:
300 g_value_set_int(value, priv->show_hint);
307 g_value_set_flags(value, priv->show_hint);
301308 break;
302309 case PROP_SESSION:
303310 g_value_set_object(value, virt_viewer_display_get_session(display));
311 break;
312 case PROP_SELECTABLE:
313 g_value_set_boolean(value, virt_viewer_display_get_selectable(display));
304314 break;
305315
306316 default:
403413 DEBUG_LOG("Allocated %dx%d", allocation->width, allocation->height);
404414 gtk_widget_set_allocation(widget, allocation);
405415
416 if (priv->desktopWidth == 0 ||
417 priv->desktopHeight == 0)
418 goto end;
419
406420 desktopAspect = (double)priv->desktopWidth / (double)priv->desktopHeight;
407421
408422 if (child && gtk_widget_get_visible(child)) {
427441 gtk_widget_size_allocate(child, &child_allocation);
428442 }
429443
430
444 end:
431445 /* This unsets the size request, so that the user can
432446 * manually resize the window smaller again
433447 */
529543 return VIRT_VIEWER_DISPLAY_GET_CLASS(display)->get_pixbuf(display);
530544 }
531545
532 void virt_viewer_display_set_show_hint(VirtViewerDisplay *self, gint hint)
546 guint virt_viewer_display_get_show_hint(VirtViewerDisplay *self)
547 {
548 g_return_val_if_fail(VIRT_VIEWER_IS_DISPLAY(self), 0);
549
550 return self->priv->show_hint;
551 }
552
553 void virt_viewer_display_set_show_hint(VirtViewerDisplay *self, guint mask, gboolean enable)
533554 {
534555 VirtViewerDisplayPrivate *priv;
556 guint hint;
535557 g_return_if_fail(VIRT_VIEWER_IS_DISPLAY(self));
536558
537559 priv = self->priv;
560 hint = priv->show_hint;
561
562 if (enable)
563 hint |= mask;
564 else
565 hint &= ~mask;
566
538567 if (priv->show_hint == hint)
539568 return;
540569
542571 g_object_notify(G_OBJECT(self), "show-hint");
543572 }
544573
574 void virt_viewer_display_set_enabled(VirtViewerDisplay *self, gboolean enabled)
575 {
576 g_return_if_fail(VIRT_VIEWER_IS_DISPLAY(self));
577
578 virt_viewer_display_set_show_hint(self, VIRT_VIEWER_DISPLAY_SHOW_HINT_DISABLED, !enabled);
579 }
580
545581 VirtViewerSession* virt_viewer_display_get_session(VirtViewerDisplay *self)
546582 {
547583 g_return_val_if_fail(VIRT_VIEWER_IS_DISPLAY(self), NULL);
575611 klass->release_cursor(self);
576612 }
577613
614 gboolean virt_viewer_display_get_selectable(VirtViewerDisplay *self)
615 {
616 VirtViewerDisplayClass *klass;
617
618 g_return_val_if_fail(VIRT_VIEWER_IS_DISPLAY(self), FALSE);
619
620 klass = VIRT_VIEWER_DISPLAY_GET_CLASS(self);
621 if (klass->selectable)
622 return klass->selectable(self);
623
624 return TRUE;
625 }
578626
579627 void virt_viewer_display_close(VirtViewerDisplay *self)
580628 {
2424 #define _VIRT_VIEWER_DISPLAY_H
2525
2626 #include <gtk/gtk.h>
27 #include "virt-viewer-enums.h"
2728
2829 G_BEGIN_DECLS
2930
5354
5455 typedef struct _VirtViewerDisplayChannel VirtViewerDisplayChannel;
5556
56 enum {
57 VIRT_VIEWER_DISPLAY_SHOW_HINT_HIDE = 0,
58 VIRT_VIEWER_DISPLAY_SHOW_HINT_READY,
59 };
57 typedef enum {
58 VIRT_VIEWER_DISPLAY_SHOW_HINT_READY = 1 << 0,
59 VIRT_VIEWER_DISPLAY_SHOW_HINT_DISABLED = 1 << 1,
60 } VirtViewerDisplayShowHintFlags;
6061
6162 /* perhaps this become an interface, and be pushed in gtkvnc and spice? */
6263 struct _VirtViewerDisplay {
7576 void (*release_cursor)(VirtViewerDisplay *display);
7677
7778 void (*close)(VirtViewerDisplay *display);
79 gboolean (*selectable)(VirtViewerDisplay *display);
7880
7981 /* signals */
8082 void (*display_pointer_grab)(VirtViewerDisplay *display);
107109 void virt_viewer_display_send_keys(VirtViewerDisplay *display,
108110 const guint *keyvals, int nkeyvals);
109111 GdkPixbuf* virt_viewer_display_get_pixbuf(VirtViewerDisplay *display);
110 void virt_viewer_display_set_show_hint(VirtViewerDisplay *display, gint hint);
112 void virt_viewer_display_set_show_hint(VirtViewerDisplay *display, guint mask, gboolean enable);
113 guint virt_viewer_display_get_show_hint(VirtViewerDisplay *display);
111114 VirtViewerSession* virt_viewer_display_get_session(VirtViewerDisplay *display);
112115 void virt_viewer_display_set_auto_resize(VirtViewerDisplay *display, gboolean auto_resize);
113116 gboolean virt_viewer_display_get_auto_resize(VirtViewerDisplay *display);
114117 void virt_viewer_display_release_cursor(VirtViewerDisplay *display);
115118
116119 void virt_viewer_display_close(VirtViewerDisplay *display);
120 void virt_viewer_display_set_enabled(VirtViewerDisplay *display, gboolean enabled);
121 gboolean virt_viewer_display_get_selectable(VirtViewerDisplay *display);
117122
118123 G_END_DECLS
119124
0
1 /* Generated data (by glib-mkenums) */
2
3 /*
4 * Virt Viewer: A virtual machine console viewer
5 *
6 * Copyright (C) 2007-2012 Red Hat, Inc.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it 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,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 *
22 * Author: Marc-André Lureau <marcandre.lureau@redhat.com>
23 */
24
25 #include "virt-viewer-enums.h"
26
27 #include "virt-viewer-display.h"
28
29 GType
30 virt_viewer_display_show_hint_flags_get_type (void)
31 {
32 static volatile gsize g_define_type_id__volatile = 0;
33
34 if (g_once_init_enter (&g_define_type_id__volatile))
35 {
36 static const GFlagsValue values[] = {
37 { VIRT_VIEWER_DISPLAY_SHOW_HINT_READY, "VIRT_VIEWER_DISPLAY_SHOW_HINT_READY", "ready" },
38 { VIRT_VIEWER_DISPLAY_SHOW_HINT_DISABLED, "VIRT_VIEWER_DISPLAY_SHOW_HINT_DISABLED", "disabled" },
39 { 0, NULL, NULL }
40 };
41 GType g_define_type_id =
42 g_flags_register_static (g_intern_static_string ("VirtViewerDisplayShowHintFlags"), values);
43 g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
44 }
45
46 return g_define_type_id__volatile;
47 }
48
49
50 /* Generated data ends here */
51
0 /*** BEGIN file-header ***/
1 /*
2 * Virt Viewer: A virtual machine console viewer
3 *
4 * Copyright (C) 2007-2012 Red Hat, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 * Author: Marc-André Lureau <marcandre.lureau@redhat.com>
21 */
22
23 #include "virt-viewer-enums.h"
24
25 /*** END file-header ***/
26
27 /*** BEGIN file-production ***/
28 #include "@filename@"
29 /*** END file-production ***/
30
31
32 /*** BEGIN value-header ***/
33
34 GType
35 @enum_name@_get_type (void)
36 {
37 static volatile gsize g_define_type_id__volatile = 0;
38
39 if (g_once_init_enter (&g_define_type_id__volatile))
40 {
41 static const G@Type@Value values[] = {
42 /*** END value-header ***/
43
44 /*** BEGIN value-production ***/
45 { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
46 /*** END value-production ***/
47
48 /*** BEGIN value-tail ***/
49 { 0, NULL, NULL }
50 };
51 GType g_define_type_id =
52 g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
53 g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
54 }
55
56 return g_define_type_id__volatile;
57 }
58
59 /*** END value-tail ***/
0
1 /* Generated data (by glib-mkenums) */
2
3 /*
4 * Virt Viewer: A virtual machine console viewer
5 *
6 * Copyright (C) 2007-2012 Red Hat, Inc.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it 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,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 *
22 * Author: Marc-André Lureau <marcandre.lureau@redhat.com>
23 */
24
25 #ifndef VIRT_VIEWER_ENUMS_H
26 #define VIRT_VIEWER_ENUMS_H
27
28 #include <glib-object.h>
29
30 G_BEGIN_DECLS
31 GType virt_viewer_display_show_hint_flags_get_type (void) G_GNUC_CONST;
32 #define VIRT_VIEWER_TYPE_DISPLAY_SHOW_HINT_FLAGS (virt_viewer_display_show_hint_flags_get_type ())
33 G_END_DECLS
34
35 #endif
36
37 /* Generated data ends here */
38
0 /*** BEGIN file-header ***/
1 /*
2 * Virt Viewer: A virtual machine console viewer
3 *
4 * Copyright (C) 2007-2012 Red Hat, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 * Author: Marc-André Lureau <marcandre.lureau@redhat.com>
21 */
22
23 #ifndef VIRT_VIEWER_ENUMS_H
24 #define VIRT_VIEWER_ENUMS_H
25
26 #include <glib-object.h>
27
28 G_BEGIN_DECLS
29 /*** END file-header ***/
30
31 /*** BEGIN value-header ***/
32 GType @enum_name@_get_type (void) G_GNUC_CONST;
33 #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ())
34 /*** END value-header ***/
35
36 /*** BEGIN file-tail ***/
37 G_END_DECLS
38
39 #endif
40 /*** END file-tail ***/
5656 gboolean reconnect = FALSE;
5757 gboolean fullscreen = FALSE;
5858 VirtViewer *viewer = NULL;
59 const char *help_msg = N_("Run '" PACKAGE " --help' to see a full list of available command line options");
59 char *basename;
60 char *help_msg = NULL;
6061 const GOptionEntry options [] = {
6162 { "version", 'V', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK,
6263 virt_viewer_version, N_("Display version information"), NULL },
9495
9596 g_set_application_name(_("Virt Viewer"));
9697
98
99 basename = g_path_get_basename(argv[0]);
100 help_msg = g_strdup_printf(_("Run '%s --help' to see a full list of available command line options"),
101 basename);
102 g_free(basename);
103
97104 /* Setup command line options */
98105 context = g_option_context_new (_("- Virtual machine graphical console"));
99106 g_option_context_add_main_entries (context, options, NULL);
107114 g_option_context_parse (context, &argc, &argv, &error);
108115 if (error) {
109116 g_printerr("%s\n%s\n",
110 error->message,
111 gettext(help_msg));
117 error->message, help_msg);
112118 g_error_free(error);
113119 goto cleanup;
114120 }
146152 g_object_unref(viewer);
147153 g_free(uri);
148154 g_strfreev(args);
155 g_free(help_msg);
149156
150157 return ret;
151158 }
8585 priv->status = gtk_label_new("");
8686 gtk_notebook_set_show_tabs(GTK_NOTEBOOK(self), FALSE);
8787 gtk_notebook_set_show_border(GTK_NOTEBOOK(self), FALSE);
88 gtk_widget_show_all(priv->status);
8889 gtk_notebook_append_page(GTK_NOTEBOOK(self), priv->status, NULL);
8990 gdk_color_parse("white", &color);
9091 gtk_widget_modify_fg(priv->status, GTK_STATE_NORMAL, &color);
3232 #include "virt-viewer-session-spice.h"
3333 #include "virt-viewer-display-spice.h"
3434 #include "virt-viewer-auth.h"
35 #include "virt-glib-compat.h"
3536
3637 #if !GLIB_CHECK_VERSION(2, 26, 0)
3738 #include "gbinding.h"
324325 gboolean openfd;
325326
326327 g_object_set(self->priv->session, "password", password, NULL);
328 g_free(password);
327329 g_object_get(self->priv->session, "client-sockets", &openfd, NULL);
328330
329331 if (openfd)
403405 }
404406
405407 static void
406 agent_connected_changed(SpiceChannel *cmain,
408 agent_connected_changed(SpiceChannel *cmain G_GNUC_UNUSED,
407409 GParamSpec *pspec G_GNUC_UNUSED,
408410 VirtViewerSessionSpice *self)
409411 {
412 // this will force refresh of application menu
413 g_signal_emit_by_name(self, "session-display-updated");
414 }
415
416 static void
417 agent_connected_fullscreen_auto_conf(SpiceChannel *cmain,
418 GParamSpec *pspec G_GNUC_UNUSED,
419 VirtViewerSessionSpice *self)
420 {
410421 if (virt_viewer_session_spice_fullscreen_auto_conf(self))
411 g_signal_handlers_disconnect_by_func(cmain, agent_connected_changed, self);
422 g_signal_handlers_disconnect_by_func(cmain, agent_connected_fullscreen_auto_conf, self);
423 }
424
425 static void
426 destroy_display(gpointer data)
427 {
428 VirtViewerDisplay *display = VIRT_VIEWER_DISPLAY(data);
429 VirtViewerSession *session = virt_viewer_display_get_session(display);
430
431 DEBUG_LOG("Destroying spice display %p", display);
432 virt_viewer_session_remove_display(session, display);
433 g_object_unref(display);
434 }
435
436 static void
437 virt_viewer_session_spice_display_monitors(SpiceChannel *channel,
438 GParamSpec *pspec G_GNUC_UNUSED,
439 VirtViewerSessionSpice *self)
440 {
441 GArray *monitors = NULL;
442 GPtrArray *displays = NULL;
443 GtkWidget *display;
444 guint i, monitors_max;
445
446 g_object_get(channel,
447 "monitors", &monitors,
448 "monitors-max", &monitors_max,
449 NULL);
450 g_return_if_fail(monitors != NULL);
451 g_return_if_fail(monitors->len <= monitors_max);
452
453 displays = g_object_get_data(G_OBJECT(channel), "virt-viewer-displays");
454 if (displays == NULL) {
455 displays = g_ptr_array_new();
456 g_ptr_array_set_free_func(displays, destroy_display);
457 g_object_set_data_full(G_OBJECT(channel), "virt-viewer-displays",
458 displays, (GDestroyNotify)g_ptr_array_unref);
459 }
460
461 g_ptr_array_set_size(displays, monitors_max);
462
463 for (i = 0; i < monitors_max; i++) {
464 display = g_ptr_array_index(displays, i);
465 if (display == NULL) {
466 display = virt_viewer_display_spice_new(self, channel, i);
467 DEBUG_LOG("creating spice display (#:%d)", i);
468 g_ptr_array_index(displays, i) = g_object_ref(display);
469 }
470
471 g_object_freeze_notify(G_OBJECT(display));
472 virt_viewer_display_set_enabled(VIRT_VIEWER_DISPLAY(display), FALSE);
473 virt_viewer_session_add_display(VIRT_VIEWER_SESSION(self),
474 VIRT_VIEWER_DISPLAY(display));
475 }
476
477 for (i = 0; i < monitors->len; i++) {
478 SpiceDisplayMonitorConfig *monitor = &g_array_index(monitors, SpiceDisplayMonitorConfig, i);
479 display = g_ptr_array_index(displays, monitor->id);
480 g_return_if_fail(display != NULL);
481
482 if (monitor->width == 0 || monitor->width == 0)
483 continue;
484
485 virt_viewer_display_set_enabled(VIRT_VIEWER_DISPLAY(display), TRUE);
486 virt_viewer_display_set_desktop_size(VIRT_VIEWER_DISPLAY(display),
487 monitor->width, monitor->height);
488 }
489
490 for (i = 0; i < monitors_max; i++)
491 g_object_thaw_notify(g_ptr_array_index(displays, i));
492
493 g_clear_pointer(&monitors, g_array_unref);
494
412495 }
413496
414497 static void
437520 G_CALLBACK(virt_viewer_session_spice_main_channel_event), self);
438521 self->priv->main_channel = SPICE_MAIN_CHANNEL(channel);
439522
440 g_signal_connect(channel, "notify::agent-connected", G_CALLBACK(agent_connected_changed), self);
441 agent_connected_changed(channel, NULL, self);
523 g_signal_connect(channel, "notify::agent-connected", G_CALLBACK(agent_connected_changed), self);
524 g_signal_connect(channel, "notify::agent-connected", G_CALLBACK(agent_connected_fullscreen_auto_conf), self);
525 agent_connected_fullscreen_auto_conf(channel, NULL, self);
526
527 g_signal_emit_by_name(session, "session-connected");
442528 }
443529
444530 if (SPICE_IS_DISPLAY_CHANNEL(channel)) {
445 GtkWidget *display;
446
447 g_signal_emit_by_name(session, "session-connected");
448
449 DEBUG_LOG("new display channel (#%d)", id);
450 display = virt_viewer_display_spice_new(self,
451 channel,
452 spice_display_new(s, id));
453
454 virt_viewer_session_add_display(VIRT_VIEWER_SESSION(session),
455 VIRT_VIEWER_DISPLAY(display));
456
457531 g_signal_emit_by_name(session, "session-initialized");
532
533 g_signal_connect(channel, "notify::monitors",
534 G_CALLBACK(virt_viewer_session_spice_display_monitors), self);
535
536 spice_channel_connect(channel);
458537 }
459538
460539 if (SPICE_IS_INPUTS_CHANNEL(channel)) {
499578
500579 DEBUG_LOG("Performing full screen auto-conf, %d host monitors",
501580 gdk_screen_get_n_monitors(screen));
581 g_object_set(G_OBJECT(cmain),
582 "disable-display-position", FALSE,
583 "disable-display-align", TRUE,
584 NULL);
502585 spice_main_set_display_enabled(cmain, -1, FALSE);
503586 for (i = 0; i < gdk_screen_get_n_monitors(screen); i++) {
504587 gdk_screen_get_monitor_geometry(screen, i, &dest);
532615 }
533616
534617 if (SPICE_IS_DISPLAY_CHANNEL(channel)) {
535 DEBUG_LOG("zap session channel (#%d)", id);
618 VirtViewerDisplay *display = g_object_get_data(G_OBJECT(channel), "virt-viewer-display");
619 DEBUG_LOG("zap display channel (#%d, %p)", id, display);
536620 }
537621
538622 if (SPICE_IS_PLAYBACK_CHANNEL(channel) && self->priv->audio) {
9494 GtkWidget *display = virt_viewer_display_vnc_new(session->priv->vnc);
9595 g_signal_emit_by_name(session, "session-connected");
9696 virt_viewer_display_set_show_hint(VIRT_VIEWER_DISPLAY(display),
97 VIRT_VIEWER_DISPLAY_SHOW_HINT_READY);
97 VIRT_VIEWER_DISPLAY_SHOW_HINT_READY, TRUE);
9898 virt_viewer_session_add_display(VIRT_VIEWER_SESSION(session),
9999 VIRT_VIEWER_DISPLAY(display));
100100 }
103103 virt_viewer_session_vnc_disconnected(VncDisplay *vnc G_GNUC_UNUSED,
104104 VirtViewerSessionVnc *session)
105105 {
106 GtkWidget *display = virt_viewer_display_vnc_new(session->priv->vnc);
106107 DEBUG_LOG("Disconnected");
107108 g_signal_emit_by_name(session, "session-disconnected");
108 /* TODO perhaps? */
109 /* virt_viewer_display_set_show_hint(VIRT_VIEWER_DISPLAY(session->priv->vnc), */
110 /* VIRT_VIEWER_DISPLAY_SHOW_HINT_HIDE); */
109 virt_viewer_display_set_show_hint(VIRT_VIEWER_DISPLAY(display),
110 VIRT_VIEWER_DISPLAY_SHOW_HINT_READY, FALSE);
111111 }
112112
113113 static void
232232 1,
233233 VIRT_VIEWER_TYPE_DISPLAY);
234234
235 g_signal_new("session-display-updated",
236 G_OBJECT_CLASS_TYPE(object_class),
237 G_SIGNAL_RUN_LAST | G_SIGNAL_NO_HOOKS,
238 G_STRUCT_OFFSET(VirtViewerSessionClass, session_display_updated),
239 NULL,
240 NULL,
241 g_cclosure_marshal_VOID__VOID,
242 G_TYPE_NONE,
243 0);
244
235245 g_signal_new("session-cut-text",
236246 G_OBJECT_CLASS_TYPE(object_class),
237247 G_SIGNAL_RUN_LAST | G_SIGNAL_NO_HOOKS,
281291 void virt_viewer_session_add_display(VirtViewerSession *session,
282292 VirtViewerDisplay *display)
283293 {
294 if (g_list_find(session->priv->displays, display))
295 return;
296
284297 session->priv->displays = g_list_append(session->priv->displays, display);
285298 g_object_ref(display);
286299 g_signal_emit_by_name(session, "session-display-added", display);
8787 VirtViewerDisplay *display);
8888 void (*session_display_removed)(VirtViewerSession *session,
8989 VirtViewerDisplay *display);
90 void (*session_display_updated)(VirtViewerSession *session);
9091
9192 void (*session_cut_text)(VirtViewerSession *session, const gchar *str);
9293 void (*session_bell)(VirtViewerSession *session);
135135 return 0;
136136 }
137137
138 typedef struct {
139 GObject *instance;
140 GObject *observer;
141 GClosure *closure;
142 gulong handler_id;
143 } WeakHandlerCtx;
144
145 static WeakHandlerCtx *
146 whc_new(GObject *instance,
147 GObject *observer)
148 {
149 WeakHandlerCtx *ctx = g_slice_new0(WeakHandlerCtx);
150
151 ctx->instance = instance;
152 ctx->observer = observer;
153
154 return ctx;
155 }
156
157 static void
158 whc_free(WeakHandlerCtx *ctx)
159 {
160 g_slice_free(WeakHandlerCtx, ctx);
161 }
162
163 static void observer_destroyed_cb(gpointer, GObject *);
164 static void closure_invalidated_cb(gpointer, GClosure *);
165
166 /*
167 * If signal handlers are removed before the object is destroyed, this
168 * callback will never get triggered.
169 */
170 static void
171 instance_destroyed_cb(gpointer ctx_,
172 GObject *where_the_instance_was G_GNUC_UNUSED)
173 {
174 WeakHandlerCtx *ctx = ctx_;
175
176 /* No need to disconnect the signal here, the instance has gone away. */
177 g_object_weak_unref(ctx->observer, observer_destroyed_cb, ctx);
178 g_closure_remove_invalidate_notifier(ctx->closure, ctx,
179 closure_invalidated_cb);
180 whc_free(ctx);
181 }
182
183 /* Triggered when the observer is destroyed. */
184 static void
185 observer_destroyed_cb(gpointer ctx_,
186 GObject *where_the_observer_was G_GNUC_UNUSED)
187 {
188 WeakHandlerCtx *ctx = ctx_;
189
190 g_closure_remove_invalidate_notifier(ctx->closure, ctx,
191 closure_invalidated_cb);
192 g_signal_handler_disconnect(ctx->instance, ctx->handler_id);
193 g_object_weak_unref(ctx->instance, instance_destroyed_cb, ctx);
194 whc_free(ctx);
195 }
196
197 /* Triggered when either object is destroyed or the handler is disconnected. */
198 static void
199 closure_invalidated_cb(gpointer ctx_,
200 GClosure *where_the_closure_was G_GNUC_UNUSED)
201 {
202 WeakHandlerCtx *ctx = ctx_;
203
204 g_object_weak_unref(ctx->instance, instance_destroyed_cb, ctx);
205 g_object_weak_unref(ctx->observer, observer_destroyed_cb, ctx);
206 whc_free(ctx);
207 }
208
209 /* Copied from tp_g_signal_connect_object. */
210 /**
211 * virt_viewer_signal_connect_object: (skip)
212 * @instance: the instance to connect to.
213 * @detailed_signal: a string of the form "signal-name::detail".
214 * @c_handler: the #GCallback to connect.
215 * @gobject: the object to pass as data to @c_handler.
216 * @connect_flags: a combination of #GConnectFlags.
217 *
218 * Similar to g_signal_connect_object() but will delete connection
219 * when any of the objects is destroyed.
220 *
221 * Returns: the handler id.
222 */
223 gulong virt_viewer_signal_connect_object(gpointer instance,
224 const gchar *detailed_signal,
225 GCallback c_handler,
226 gpointer gobject,
227 GConnectFlags connect_flags)
228 {
229 GObject *instance_obj = G_OBJECT(instance);
230 WeakHandlerCtx *ctx = whc_new(instance_obj, gobject);
231
232 g_return_val_if_fail(G_TYPE_CHECK_INSTANCE (instance), 0);
233 g_return_val_if_fail(detailed_signal != NULL, 0);
234 g_return_val_if_fail(c_handler != NULL, 0);
235 g_return_val_if_fail(G_IS_OBJECT (gobject), 0);
236 g_return_val_if_fail((connect_flags & ~(G_CONNECT_AFTER|G_CONNECT_SWAPPED)) == 0, 0);
237
238 if (connect_flags & G_CONNECT_SWAPPED)
239 ctx->closure = g_cclosure_new_object_swap(c_handler, gobject);
240 else
241 ctx->closure = g_cclosure_new_object(c_handler, gobject);
242
243 ctx->handler_id = g_signal_connect_closure(instance, detailed_signal,
244 ctx->closure, (connect_flags & G_CONNECT_AFTER) ? TRUE : FALSE);
245
246 g_object_weak_ref(instance_obj, instance_destroyed_cb, ctx);
247 g_object_weak_ref(gobject, observer_destroyed_cb, ctx);
248 g_closure_add_invalidate_notifier(ctx->closure, ctx,
249 closure_invalidated_cb);
250
251 return ctx->handler_id;
252 }
253
254
138255 /*
139256 * Local variables:
140257 * c-indent-level: 4
3939 char **user,
4040 int *port);
4141
42 gulong virt_viewer_signal_connect_object(gpointer instance,
43 const gchar *detailed_signal,
44 GCallback c_handler,
45 gpointer gobject,
46 GConnectFlags connect_flags);
47
4248 #endif
4349
4450 /*
111111 virt_viewer_window_get_property (GObject *object, guint property_id,
112112 GValue *value, GParamSpec *pspec)
113113 {
114 VirtViewerWindowPrivate *priv = VIRT_VIEWER_WINDOW(object)->priv;
114 VirtViewerWindow *self = VIRT_VIEWER_WINDOW(object);
115 VirtViewerWindowPrivate *priv = self->priv;
115116
116117 switch (property_id) {
117118 case PROP_SUBTITLE:
123124 break;
124125
125126 case PROP_DISPLAY:
126 g_value_set_object(value, priv->display);
127 g_value_set_object(value, virt_viewer_window_get_display(self));
127128 break;
128129
129130 case PROP_CONTAINER:
171172 virt_viewer_window_dispose (GObject *object)
172173 {
173174 VirtViewerWindowPrivate *priv = VIRT_VIEWER_WINDOW(object)->priv;
175 GSList *it;
176
174177 G_OBJECT_CLASS (virt_viewer_window_parent_class)->dispose (object);
175178
176179 if (priv->display) {
189192 priv->builder = NULL;
190193 }
191194
195 for (it = priv->accel_list ; it != NULL ; it = it->next) {
196 g_object_unref(G_OBJECT(it->data));
197 }
198 g_slist_free(priv->accel_list);
199 priv->accel_list = NULL;
200
192201 g_free(priv->subtitle);
193202 priv->subtitle = NULL;
203
204 g_value_unset(&priv->accel_setting);
194205 }
195206
196207 static void
421432 gdk_screen_get_monitor_at_window
422433 (screen, gtk_widget_get_window(priv->window)),
423434 &fullscreen);
435
436 g_return_if_fail(fullscreen.height > 128);
437 g_return_if_fail(fullscreen.width > 128);
438 g_return_if_fail(desktopWidth > 0);
439 g_return_if_fail(desktopHeight > 0);
424440
425441 desktopAspect = (double)desktopWidth / (double)desktopHeight;
426442 screenAspect = (double)(fullscreen.width - 128) / (double)(fullscreen.height - 128);
9911007 GParamSpec *pspec G_GNUC_UNUSED,
9921008 VirtViewerWindow *self)
9931009 {
994 gboolean hint;
1010 guint hint;
9951011
9961012 g_object_get(display, "show-hint", &hint, NULL);
1013
1014 hint = (hint & VIRT_VIEWER_DISPLAY_SHOW_HINT_READY);
1015
9971016 gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(self->priv->builder, "menu-send")), hint);
9981017 gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(self->priv->builder, "menu-file-screenshot")), hint);
9991018 gtk_widget_set_sensitive(self->priv->toolbar_send_key, hint);
10201039 virt_viewer_display_set_zoom_level(VIRT_VIEWER_DISPLAY(priv->display), priv->zoomlevel);
10211040 virt_viewer_display_set_auto_resize(VIRT_VIEWER_DISPLAY(priv->display), priv->auto_resize);
10221041
1042 gtk_widget_show_all(GTK_WIDGET(display));
10231043 gtk_notebook_append_page(GTK_NOTEBOOK(priv->notebook), GTK_WIDGET(display), NULL);
1024 gtk_widget_show_all(GTK_WIDGET(display));
1025
1026 g_signal_connect(display, "display-pointer-grab",
1027 G_CALLBACK(virt_viewer_window_pointer_grab), self);
1028 g_signal_connect(display, "display-pointer-ungrab",
1029 G_CALLBACK(virt_viewer_window_pointer_ungrab), self);
1030 g_signal_connect(display, "display-keyboard-grab",
1031 G_CALLBACK(virt_viewer_window_keyboard_grab), self);
1032 g_signal_connect(display, "display-keyboard-ungrab",
1033 G_CALLBACK(virt_viewer_window_keyboard_ungrab), self);
1034 g_signal_connect(display, "display-desktop-resize",
1035 G_CALLBACK(virt_viewer_window_desktop_resize), self);
1036 g_signal_connect(display, "notify::show-hint",
1037 G_CALLBACK(display_show_hint), self);
1044 /* switch back to non-display if not ready */
1045 if (!(virt_viewer_display_get_show_hint(display) &
1046 VIRT_VIEWER_DISPLAY_SHOW_HINT_READY))
1047 gtk_notebook_set_current_page(GTK_NOTEBOOK(priv->notebook), 0);
1048
1049 virt_viewer_signal_connect_object(display, "display-pointer-grab",
1050 G_CALLBACK(virt_viewer_window_pointer_grab), self, 0);
1051 virt_viewer_signal_connect_object(display, "display-pointer-ungrab",
1052 G_CALLBACK(virt_viewer_window_pointer_ungrab), self, 0);
1053 virt_viewer_signal_connect_object(display, "display-keyboard-grab",
1054 G_CALLBACK(virt_viewer_window_keyboard_grab), self, 0);
1055 virt_viewer_signal_connect_object(display, "display-keyboard-ungrab",
1056 G_CALLBACK(virt_viewer_window_keyboard_ungrab), self, 0);
1057 virt_viewer_signal_connect_object(display, "display-desktop-resize",
1058 G_CALLBACK(virt_viewer_window_desktop_resize), self, 0);
1059 virt_viewer_signal_connect_object(display, "notify::show-hint",
1060 G_CALLBACK(display_show_hint), self, 0);
10381061 }
10391062 }
10401063
10421065 virt_viewer_window_show(VirtViewerWindow *self)
10431066 {
10441067 gtk_widget_show(self->priv->window);
1068
1069 if (self->priv->display)
1070 virt_viewer_display_set_enabled(self->priv->display, TRUE);
10451071
10461072 if (self->priv->desktop_resize_pending) {
10471073 virt_viewer_window_resize(self);
10531079 virt_viewer_window_hide(VirtViewerWindow *self)
10541080 {
10551081 gtk_widget_hide(self->priv->window);
1082
1083 if (self->priv->display) {
1084 VirtViewerDisplay *display = self->priv->display;
1085 guint nth;
1086
1087 g_object_get(display, "nth-display", &nth, NULL);
1088 if (nth != 0)
1089 virt_viewer_display_set_enabled(display, FALSE);
1090 }
10561091 }
10571092
10581093 void
10841119 g_return_val_if_fail(VIRT_VIEWER_IS_WINDOW(self), NULL);
10851120
10861121 return self->priv->builder;
1122 }
1123
1124 VirtViewerDisplay*
1125 virt_viewer_window_get_display(VirtViewerWindow *self)
1126 {
1127 g_return_val_if_fail(VIRT_VIEWER_WINDOW(self), FALSE);
1128
1129 return self->priv->display;
10871130 }
10881131
10891132 /*
6262 GtkWindow* virt_viewer_window_get_window (VirtViewerWindow* window);
6363 VirtViewerNotebook* virt_viewer_window_get_notebook (VirtViewerWindow* window);
6464 void virt_viewer_window_set_display(VirtViewerWindow *self, VirtViewerDisplay *display);
65 VirtViewerDisplay* virt_viewer_window_get_display(VirtViewerWindow *self);
6566 void virt_viewer_window_set_usb_options_sensitive(VirtViewerWindow *self, gboolean sensitive);
6667 void virt_viewer_window_update_title(VirtViewerWindow *self);
6768 void virt_viewer_window_show(VirtViewerWindow *self);
88 BEGIN
99 VALUE "CompanyName", "virt-manager.org"
1010 VALUE "FileDescription", "A remote desktop client"
11 VALUE "FileVersion", "0.5.3"
12 VALUE "InternalName", "virt-viewer 0.5.3"
11 VALUE "FileVersion", "0.5.4"
12 VALUE "InternalName", "virt-viewer 0.5.4"
1313 VALUE "LegalCopyright", "Copyright (C) 2007-2012 Red Hat, Inc."
1414 VALUE "OriginalFilename", "virt-viewer.exe"
1515 VALUE "ProductName", "VirtViewer"
16 VALUE "ProductVersion", "0.5.3"
16 VALUE "ProductVersion", "0.5.4"
1717 END
1818 END
1919
2323 %endif
2424
2525 Name: virt-viewer
26 Version: 0.5.3
26 Version: 0.5.4
2727 Release: 1%{?dist}%{?extra_release}
2828 Summary: Virtual Machine Viewer
2929 Group: Applications/System
3737 Requires(post): desktop-file-utils
3838 Requires(postun): desktop-file-utils
3939
40 BuildRequires: glib2-devel >= 2.22
4041 %if %{with_gtk3}
4142 BuildRequires: gtk3-devel >= 3.0.0
4243 %else
5152 %endif
5253 %if %{with_spice}
5354 %if %{with_gtk3}
54 BuildRequires: spice-gtk3-devel >= 0.11
55 BuildRequires: spice-gtk3-devel >= 0.12.101
5556 %else
56 BuildRequires: spice-gtk-devel >= 0.11
57 BuildRequires: spice-gtk-devel >= 0.12.101
5758 %endif
5859 BuildRequires: spice-protocol >= 0.10.1
5960 %endif
3737 Requires(post): desktop-file-utils
3838 Requires(postun): desktop-file-utils
3939
40 BuildRequires: glib2-devel >= 2.22
4041 %if %{with_gtk3}
4142 BuildRequires: gtk3-devel >= 3.0.0
4243 %else
5152 %endif
5253 %if %{with_spice}
5354 %if %{with_gtk3}
54 BuildRequires: spice-gtk3-devel >= 0.11
55 BuildRequires: spice-gtk3-devel >= 0.12.101
5556 %else
56 BuildRequires: spice-gtk-devel >= 0.11
57 BuildRequires: spice-gtk-devel >= 0.12.101
5758 %endif
5859 BuildRequires: spice-protocol >= 0.10.1
5960 %endif