Merge lp:~noskcaj/ubuntu/vivid/librsvg/2.40.7 into lp:ubuntu/vivid/librsvg

Proposed by Jackson Doak
Status: Needs review
Proposed branch: lp:~noskcaj/ubuntu/vivid/librsvg/2.40.7
Merge into: lp:ubuntu/vivid/librsvg
Diff against target: 11375 lines (+3949/-4433)
69 files modified
.pc/20_rsvg_compat.patch/rsvg-convert.c (+23/-5)
ChangeLog (+265/-0)
Makefile.in (+7/-15)
NEWS (+7/-0)
README (+1/-3)
aclocal.m4 (+38/-116)
config.guess (+247/-99)
config.h.in (+4/-1)
config.sub (+16/-26)
configure (+173/-357)
configure.ac (+294/-0)
configure.in (+0/-319)
debian/changelog (+6/-0)
debian/control (+2/-1)
debian/control.in (+2/-1)
debian/patches/20_rsvg_compat.patch (+11/-9)
doc/Makefile.in (+16/-32)
doc/html/RsvgHandle.html (+972/-1287)
doc/html/annotation-glossary.html (+25/-25)
doc/html/api-index-2-14.html (+34/-31)
doc/html/api-index-2-22.html (+22/-19)
doc/html/api-index-2-32.html (+26/-23)
doc/html/api-index-2-36.html (+20/-15)
doc/html/api-index-2-4.html (+15/-12)
doc/html/api-index-2-8.html (+28/-23)
doc/html/api-index-2-9.html (+23/-18)
doc/html/api-index-deprecated.html (+69/-64)
doc/html/api-index-full.html (+213/-208)
doc/html/index.html (+4/-4)
doc/html/index.sgml (+26/-29)
doc/html/licence.html (+9/-9)
doc/html/object-tree.html (+15/-15)
doc/html/rsvg-Using-RSVG-with-GIO.html (+258/-315)
doc/html/rsvg-Using-RSVG-with-GdkPixbuf.html (+270/-367)
doc/html/rsvg-Using-RSVG-with-cairo.html (+76/-101)
doc/html/rsvg-Version-check-and-feature-tests.html (+37/-77)
doc/html/rsvg.devhelp2 (+59/-55)
doc/html/rsvg.html (+9/-9)
doc/html/style.css (+107/-317)
doc/version.xml (+1/-1)
gdk-pixbuf-loader/Makefile.in (+4/-5)
gdk-pixbuf-loader/io-svg.c (+6/-8)
gtk-doc.make (+11/-24)
librsvg-features.h (+2/-2)
librsvg.doap (+10/-11)
m4/gtk-doc.m4 (+15/-32)
m4/libtool.m4 (+4/-14)
missing (+2/-2)
rsvg-base-file-util.c (+4/-4)
rsvg-base.c (+12/-12)
rsvg-convert.c (+23/-5)
rsvg-css.c (+1/-1)
rsvg-defs.c (+2/-2)
rsvg-file-util.c (+3/-3)
rsvg-filter.c (+59/-73)
rsvg-image.c (+3/-3)
rsvg-io.c (+12/-12)
rsvg-io.h (+6/-6)
rsvg-marker.c (+3/-3)
rsvg-marker.h (+2/-2)
rsvg-paint-server.c (+297/-159)
rsvg-path.c (+1/-1)
rsvg-private.h (+5/-5)
rsvg-shapes.c (+13/-1)
rsvg-styles.c (+3/-4)
test-driver (+4/-16)
tests/Makefile.in (+4/-5)
tests/pdiff/Makefile.in (+4/-5)
tools/Makefile.in (+4/-5)
To merge this branch: bzr merge lp:~noskcaj/ubuntu/vivid/librsvg/2.40.7
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Needs Fixing
Review via email: mp+249879@code.launchpad.net

Description of the change

New upstream bugfix release

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Text conflict in rsvg-convert.c
1 conflicts encountered.

review: Needs Fixing

Unmerged revisions

39. By Jackson Doak

New upstream release.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '.pc/20_rsvg_compat.patch/rsvg-convert.c'
--- .pc/20_rsvg_compat.patch/rsvg-convert.c 2014-12-10 10:09:37 +0000
+++ .pc/20_rsvg_compat.patch/rsvg-convert.c 2015-02-16 19:51:53 +0000
@@ -36,10 +36,16 @@
36#include <locale.h>36#include <locale.h>
37#include <glib/gi18n.h>37#include <glib/gi18n.h>
38#include <gio/gio.h>38#include <gio/gio.h>
39#ifdef _WIN3239
40#ifdef G_OS_UNIX
41#include <gio/gunixinputstream.h>
42#endif
43
44#ifdef G_OS_WIN32
45#define WIN32_LEAN_AND_MEAN
46#include <windows.h>
47
40#include <gio/gwin32inputstream.h>48#include <gio/gwin32inputstream.h>
41#else
42#include <gio/gunixinputstream.h>
43#endif49#endif
4450
45#include "rsvg-css.h"51#include "rsvg-css.h"
@@ -113,13 +119,17 @@
113 int i;119 int i;
114 char **args = NULL;120 char **args = NULL;
115 gint n_args = 0;121 gint n_args = 0;
116 RsvgHandle *rsvg;122 RsvgHandle *rsvg = NULL;
117 cairo_surface_t *surface = NULL;123 cairo_surface_t *surface = NULL;
118 cairo_t *cr = NULL;124 cairo_t *cr = NULL;
119 RsvgHandleFlags flags = RSVG_HANDLE_FLAGS_NONE;125 RsvgHandleFlags flags = RSVG_HANDLE_FLAGS_NONE;
120 RsvgDimensionData dimensions;126 RsvgDimensionData dimensions;
121 FILE *output_file = stdout;127 FILE *output_file = stdout;
122128
129#ifdef G_OS_WIN32
130 HANDLE handle;
131#endif
132
123 GOptionEntry options_table[] = {133 GOptionEntry options_table[] = {
124 {"dpi-x", 'd', 0, G_OPTION_ARG_DOUBLE, &dpi_x,134 {"dpi-x", 'd', 0, G_OPTION_ARG_DOUBLE, &dpi_x,
125 N_("pixels per inch [optional; defaults to 90dpi]"), N_("<float>")},135 N_("pixels per inch [optional; defaults to 90dpi]"), N_("<float>")},
@@ -218,7 +228,15 @@
218 if (using_stdin) {228 if (using_stdin) {
219 file = NULL;229 file = NULL;
220#ifdef _WIN32230#ifdef _WIN32
221 stream = g_win32_input_stream_new (STDIN_FILENO, FALSE);231 handle = GetStdHandle (STD_INPUT_HANDLE);
232
233 if (handle == INVALID_HANDLE_VALUE) {
234 gchar *emsg = g_win32_error_message (GetLastError());
235 g_printerr ( _("Unable to acquire HANDLE for STDIN: %s\n"), emsg);
236 g_free (emsg);
237 exit (1);
238 }
239 stream = g_win32_input_stream_new (handle, FALSE);
222#else240#else
223 stream = g_unix_input_stream_new (STDIN_FILENO, FALSE);241 stream = g_unix_input_stream_new (STDIN_FILENO, FALSE);
224#endif242#endif
225243
=== modified file 'ChangeLog'
--- ChangeLog 2014-12-10 10:09:37 +0000
+++ ChangeLog 2015-02-16 19:51:53 +0000
@@ -1,3 +1,268 @@
1commit aadbf6968df5fa93e182b7e7c93dc5cc076d44ce
2Author: Federico Mena Quintero <federico@gnome.org>
3Date: Fri Feb 13 14:49:11 2015 -0600
4
5 Update NEWS
6
7 NEWS | 5 +++--
8 1 file changed, 3 insertions(+), 2 deletions(-)
9
10commit 00e75a916e5cfce7bb98d87d98688d86289f8142
11Author: Federico Mena Quintero <federico@gnome.org>
12Date: Fri Feb 13 14:47:35 2015 -0600
13
14 Quick update of the README, at least to make it not so outdated
15
16 README | 4 +---
17 1 file changed, 1 insertion(+), 3 deletions(-)
18
19commit 80f6366f8033a33b88640faea50976644aad2c66
20Author: Federico Mena Quintero <federico@gnome.org>
21Date: Thu Feb 12 14:18:06 2015 -0600
22
23 Internally use 'char *' for string data
24
25 There was a mixture of guint8*, guchar*, gchar*, etc. Use char* because that's
26 about as sane as we can get, and only cast where we can't change the public API
27 or where we must interface with other libraries. *Cough* xmlChar *cough*.
28
29 This removes a metric assload of compiler warnings, and I'm fine with that.
30
31 gdk-pixbuf-loader/io-svg.c | 6 +++---
32 rsvg-base-file-util.c | 8 ++++----
33 rsvg-base.c | 16 ++++++++--------
34 rsvg-css.c | 2 +-
35 rsvg-defs.c | 4 ++--
36 rsvg-file-util.c | 6 +++---
37 rsvg-image.c | 6 +++---
38 rsvg-io.c | 24 ++++++++++++------------
39 rsvg-io.h | 12 ++++++------
40 rsvg-private.h | 10 +++++-----
41 rsvg-styles.c | 7 +++----
42 11 files changed, 50 insertions(+), 51 deletions(-)
43
44commit 24ca2ec60645365bacbefacff98a5f24f98b1d03
45Author: Federico Mena Quintero <federico@gnome.org>
46Date: Thu Feb 12 11:29:12 2015 -0600
47
48 configure.in -> configure.ac
49
50 autogen.sh | 2 +-
51 configure.ac | 294 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
52 configure.in | 294 -----------------------------------------------------------
53 3 files changed, 295 insertions(+), 295 deletions(-)
54
55commit 0de909abb6312902f738183cda571b08337f118c
56Author: Federico Mena Quintero <federico@gnome.org>
57Date: Thu Feb 12 11:26:54 2015 -0600
58
59 Remove extra compiler warnings from configure.in
60
61 Whoever builds the module should be in control. Developers can very well
62 have a build-paranoically script or something.
63
64 configure.in | 25 -------------------------
65 1 file changed, 25 deletions(-)
66
67commit 7f7a186a791718b94dc35a5c5559dd2d43049d12
68Author: Federico Mena Quintero <federico@gnome.org>
69Date: Thu Feb 12 10:50:35 2015 -0600
70
71 Fix parentheses
72
73 rsvg-path.c | 2 +-
74 1 file changed, 1 insertion(+), 1 deletion(-)
75
76commit bc189a77050e4029e1fe9be3a7d7400bc0640c21
77Author: Federico Mena Quintero <federico@gnome.org>
78Date: Thu Feb 12 10:49:01 2015 -0600
79
80 Fix shadowed variables
81
82 rsvg-filter.c | 2 +-
83 rsvg-marker.c | 6 +++---
84 rsvg-marker.h | 4 ++--
85 3 files changed, 6 insertions(+), 6 deletions(-)
86
87commit 5d8e48bf386e4bc8ffefb9262c7ae37b3ee27d9f
88Author: Federico Mena Quintero <federico@gnome.org>
89Date: Thu Feb 12 10:48:38 2015 -0600
90
91 Fix variable name which shadows a type name
92
93 rsvg-base.c | 8 ++++----
94 1 file changed, 4 insertions(+), 4 deletions(-)
95
96commit cfa5cf4ac4a04977bb3fae08ad4e2d189f6498db
97Author: Federico Mena Quintero <federico@gnome.org>
98Date: Thu Feb 12 10:48:21 2015 -0600
99
100 Fix possibly-uninitialized variable
101
102 rsvg-convert.c | 2 +-
103 1 file changed, 1 insertion(+), 1 deletion(-)
104
105commit 2c2db8dbe4b8f7f59654d2990f781af3d363b0ba
106Author: Federico Mena Quintero <federico@gnome.org>
107Date: Thu Feb 12 10:48:05 2015 -0600
108
109 Fix const warnings in the pixbuf loader
110
111 gdk-pixbuf-loader/io-svg.c | 8 +++-----
112 1 file changed, 3 insertions(+), 5 deletions(-)
113
114commit 400336480ed5abbe398d2fa646872a668205a5fd
115Author: Federico Mena Quintero <federico@gnome.org>
116Date: Wed Feb 11 15:06:56 2015 -0600
117
118 bgo#744270 - Fix uninitialized value in rsvg_filter_primitive_displacement_map_render()
119
120 Fixes https://bugzilla.gnome.org/show_bug.cgi?id=744270
121
122 Signed-off-by: Federico Mena Quintero <federico@gnome.org>
123
124 rsvg-filter.c | 2 +-
125 1 file changed, 1 insertion(+), 1 deletion(-)
126
127commit 2737efd03e814588c3b058633227985c441ccdf4
128Author: Federico Mena Quintero <federico@gnome.org>
129Date: Wed Feb 11 14:16:01 2015 -0600
130
131 Update NEWS and librsvg.doap; add MAINTAINERS
132
133 MAINTAINERS | 3 +++
134 NEWS | 4 +++-
135 librsvg.doap | 21 ++++++++++-----------
136 3 files changed, 16 insertions(+), 12 deletions(-)
137
138commit 0035e95118a60c0cd3949c2300472d805e16a022
139Author: Federico Mena Quintero <federico@gnome.org>
140Date: Wed Feb 11 10:48:52 2015 -0600
141
142 bgo#744299 - Ensure the type of pattern fallbacks
143
144 Atte Kettunen's fuzz testing yielded an SVG with a pattern paint server that
145 had an xlink:href to a *rect*, not to another patern. Since we were not checking
146 type type of resolved nodes when applying pattern fallbacks, we were using a
147 structure of the wrong type.
148
149 Fixes https://bugzilla.gnome.org/show_bug.cgi?id=744299
150
151 Signed-off-by: Federico Mena Quintero <federico@gnome.org>
152
153 rsvg-paint-server.c | 29 +++++++++++++++++++++++------
154 1 file changed, 23 insertions(+), 6 deletions(-)
155
156commit 53c50caecc970aef91cf8e3f1fde919f848d6f0c
157Author: Federico Mena Quintero <federico@gnome.org>
158Date: Fri Feb 6 16:33:25 2015 -0600
159
160 Avoid overflow in gint multiplication
161
162 In the convolution matrix filter code, we read the orderx and ordery for the convolution
163 matrix. However, multiplying them as gints may overflow.
164
165 Found by fuzz testing when orderx = ordery = 65536
166
167 Fuzz testing kindly provided by Atte Kettunen <attekett@gmail.com>
168 From librsvg-fuzz case rsvgconvert-060-3ef-705-f72.svg
169
170 Signed-off-by: Federico Mena Quintero <federico@gnome.org>
171
172 rsvg-filter.c | 7 +++----
173 1 file changed, 3 insertions(+), 4 deletions(-)
174
175commit 8c71bac8940831aa1dd24e6f8a27149cd97ca1e9
176Author: Federico Mena Quintero <federico@gnome.org>
177Date: Fri Feb 6 12:48:24 2015 -0600
178
179 Update NEWS
180
181 NEWS | 4 ++++
182 1 file changed, 4 insertions(+)
183
184commit 8ee18b22ece0f869cb4e2e021c01138cbb8a0226
185Author: Federico Mena Quintero <federico@gnome.org>
186Date: Fri Feb 6 11:51:01 2015 -0600
187
188 bgo#738169 - Avoid cycles while resolving paint server fallbacks
189
190 If a chain of paint servers, defined through the xlink:href attribute, has a cycle,
191 then we would loop infinitely while resolving the base paint server. We now
192 use a tortoise-and-hare to detect cycles and stop appropriately.
193
194 Fixes https://bugzilla.gnome.org/show_bug.cgi?id=738169
195
196 Signed-off-by: Federico Mena Quintero <federico@gnome.org>
197
198 rsvg-paint-server.c | 421 +++++++++++++++++++++++++++++++++-------------------
199 1 file changed, 271 insertions(+), 150 deletions(-)
200
201commit 40af93e6eb1c94b90c3b9a0b87e0840e126bb8df
202Author: Federico Mena Quintero <federico@gnome.org>
203Date: Thu Feb 5 18:08:25 2015 -0600
204
205 bgo#738050 - Handle the case where a list of coordinate pairs has an odd number of elements
206
207 Lists of points come in coordinate pairs, but we didn't have any checking for that.
208 It was possible to try to fetch the 'last' coordinate in a list, i.e. the y coordinate
209 of an x,y pair, that was in fact missing, leading to an out-of-bounds array read.
210
211 In that case, we now reuse the last-known y coordinate.
212
213 Fixes https://bugzilla.gnome.org/show_bug.cgi?id=738050
214
215 Signed-off-by: Federico Mena Quintero <federico@gnome.org>
216
217 rsvg-shapes.c | 14 +++++++++++++-
218 1 file changed, 13 insertions(+), 1 deletion(-)
219
220commit 7803753d130da94db40c10cc75e98b9864dad620
221Author: Federico Mena Quintero <federico@gnome.org>
222Date: Thu Feb 5 14:27:10 2015 -0600
223
224 bgo#703102 - Clip coordinates for rsvg_alpha_blt() in a more civilized fashion
225
226 The source offsets were not being validated correctly, so we could easily do a read or write
227 outside the bounds of the image surface. We now use a generic function to clip rectangles
228 instead of doing it by hand.
229
230 Fixes https://bugzilla.gnome.org/show_bug.cgi?id=703102
231
232 Signed-off-by: Federico Mena Quintero <federico@gnome.org>
233
234 rsvg-filter.c | 115 ++++++++++++++++++++++++++--------------------------------
235 1 file changed, 51 insertions(+), 64 deletions(-)
236
237commit 452ef81f5201808357db50169ed4f8c18b50b12e
238Author: Chun-wei Fan <fanchunwei@src.gnome.org>
239Date: Fri Dec 19 18:43:15 2014 +0800
240
241 Really Fix Build of rsvg-convert on Windows
242
243 Commit 1811f20 attempted to fix the build of rsvg-convert on Windows, but
244 unfortunately there were some issues about it, as
245 g_win32_input_stream_new() took a Windows HANDLE (i.e. a void*/gpointer),
246 not a numeric constant like STDIN_FILENO, as its first argument.
247
248 Acquire the HANDLE for stdin on Windows first, and pass it into
249 g_win32_input_stream_new(). Also use G_OS_WIN32 to check we are building
250 for Windows, as we do elsewhere for GLib-using items.
251
252 https://bugzilla.gnome.org/show_bug.cgi?id=734977
253
254 rsvg-convert.c | 26 ++++++++++++++++++++++----
255 1 file changed, 22 insertions(+), 4 deletions(-)
256
257commit 7bb5d1b8ebc57f81a5883247a5acd7f49ba48d09
258Author: Richard Hughes <richard@hughsie.com>
259Date: Wed Dec 3 10:27:51 2014 +0000
260
261 Post release version bump
262
263 configure.in | 2 +-
264 1 file changed, 1 insertion(+), 1 deletion(-)
265
1commit d2e159735c98be03cf20a346405fe8a5e2eeeff9266commit d2e159735c98be03cf20a346405fe8a5e2eeeff9
2Author: Richard Hughes <richard@hughsie.com>267Author: Richard Hughes <richard@hughsie.com>
3Date: Wed Dec 3 10:23:51 2014 +0000268Date: Wed Dec 3 10:23:51 2014 +0000
4269
=== modified file 'Makefile.in'
--- Makefile.in 2014-12-10 10:09:37 +0000
+++ Makefile.in 2015-02-16 19:51:53 +0000
@@ -1,4 +1,4 @@
1# Makefile.in generated by automake 1.14.1 from Makefile.am.1# Makefile.in generated by automake 1.13.4 from Makefile.am.
2# @configure_input@2# @configure_input@
33
4# Copyright (C) 1994-2013 Free Software Foundation, Inc.4# Copyright (C) 1994-2013 Free Software Foundation, Inc.
@@ -100,7 +100,7 @@
100 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \100 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
101 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \101 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
102 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/vapigen.m4 \102 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/vapigen.m4 \
103 $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in103 $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
104am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \104am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
105 $(ACLOCAL_M4)105 $(ACLOCAL_M4)
106am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \106am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
@@ -381,7 +381,6 @@
381GTK3_CFLAGS = @GTK3_CFLAGS@381GTK3_CFLAGS = @GTK3_CFLAGS@
382GTK3_LIBS = @GTK3_LIBS@382GTK3_LIBS = @GTK3_LIBS@
383GTKDOC_CHECK = @GTKDOC_CHECK@383GTKDOC_CHECK = @GTKDOC_CHECK@
384GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
385GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@384GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
386GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@385GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
387GTKDOC_MKPDF = @GTKDOC_MKPDF@386GTKDOC_MKPDF = @GTKDOC_MKPDF@
@@ -742,8 +741,8 @@
742$(am__aclocal_m4_deps):741$(am__aclocal_m4_deps):
743742
744config.h: stamp-h1743config.h: stamp-h1
745 @test -f $@ || rm -f stamp-h1744 @if test ! -f $@; then rm -f stamp-h1; else :; fi
746 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1745 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
747746
748stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status747stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
749 @rm -f stamp-h1748 @rm -f stamp-h1
@@ -900,14 +899,14 @@
900@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po899@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
901@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@900@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
902@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@901@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
903@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<902@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
904903
905.c.obj:904.c.obj:
906@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`905@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
907@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po906@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
908@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@907@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
909@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@908@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
910@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`909@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
911910
912.c.lo:911.c.lo:
913@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<912@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@@ -1483,16 +1482,10 @@
1483 $(am__post_remove_distdir)1482 $(am__post_remove_distdir)
14841483
1485dist-tarZ: distdir1484dist-tarZ: distdir
1486 @echo WARNING: "Support for shar distribution archives is" \
1487 "deprecated." >&2
1488 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
1489 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z1485 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
1490 $(am__post_remove_distdir)1486 $(am__post_remove_distdir)
14911487
1492dist-shar: distdir1488dist-shar: distdir
1493 @echo WARNING: "Support for distribution archives compressed with" \
1494 "legacy program 'compress' is deprecated." >&2
1495 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
1496 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz1489 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
1497 $(am__post_remove_distdir)1490 $(am__post_remove_distdir)
14981491
@@ -1534,10 +1527,9 @@
1534 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \1527 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
1535 && am__cwd=`pwd` \1528 && am__cwd=`pwd` \
1536 && $(am__cd) $(distdir)/_build \1529 && $(am__cd) $(distdir)/_build \
1537 && ../configure \1530 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
1538 $(AM_DISTCHECK_CONFIGURE_FLAGS) \1531 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
1539 $(DISTCHECK_CONFIGURE_FLAGS) \1532 $(DISTCHECK_CONFIGURE_FLAGS) \
1540 --srcdir=.. --prefix="$$dc_install_base" \
1541 && $(MAKE) $(AM_MAKEFLAGS) \1533 && $(MAKE) $(AM_MAKEFLAGS) \
1542 && $(MAKE) $(AM_MAKEFLAGS) dvi \1534 && $(MAKE) $(AM_MAKEFLAGS) dvi \
1543 && $(MAKE) $(AM_MAKEFLAGS) check \1535 && $(MAKE) $(AM_MAKEFLAGS) check \
15441536
=== modified file 'NEWS'
--- NEWS 2014-12-10 10:09:37 +0000
+++ NEWS 2015-02-16 19:51:53 +0000
@@ -1,3 +1,10 @@
1Version 2.40.7
2- Bugs fixed from fuzz testing: #703102, #738050, #738169, #744270, #744299
3- Fixed unfiled bug from fuzz testing, where the convolution filter
4 had an integer multiplication overflow.
5- Fix build of rsvg-convert on Windows.
6- Fix a bunch of compiler warnings.
7
1Version 2.40.68Version 2.40.6
2- MinGW build fixes9- MinGW build fixes
3- Fix path data number parsing10- Fix path data number parsing
411
=== modified file 'README'
--- README 2006-01-11 10:31:43 +0000
+++ README 2015-02-16 19:51:53 +0000
@@ -1,5 +1,3 @@
1This is librsvg - A high performance SVG rendering library associated with the Gnome Project.1This is librsvg - A high performance SVG rendering library associated with the Gnome Project.
22
3If you have questions or comments about librsvg, please send email to librsvg-devel@lists.sourceforge.net. Any bugs should be reported to http://bugzilla.gnome.org/3Please report bugs at http://bugzilla.gnome.org/enter_bug.cgi?product=librsvg
4
5Also, more information on librsvg can be found at librsvg.sf.net
64
=== modified file 'aclocal.m4'
--- aclocal.m4 2014-12-10 10:09:37 +0000
+++ aclocal.m4 2015-02-16 19:51:53 +0000
@@ -1,4 +1,4 @@
1# generated automatically by aclocal 1.14.1 -*- Autoconf -*-1# generated automatically by aclocal 1.13.4 -*- Autoconf -*-
22
3# Copyright (C) 1996-2013 Free Software Foundation, Inc.3# Copyright (C) 1996-2013 Free Software Foundation, Inc.
44
@@ -344,10 +344,10 @@
344# generated from the m4 files accompanying Automake X.Y.344# generated from the m4 files accompanying Automake X.Y.
345# (This private macro should not be called outside this file.)345# (This private macro should not be called outside this file.)
346AC_DEFUN([AM_AUTOMAKE_VERSION],346AC_DEFUN([AM_AUTOMAKE_VERSION],
347[am__api_version='1.14'347[am__api_version='1.13'
348dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to348dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
349dnl require some minimum version. Point them to the right macro.349dnl require some minimum version. Point them to the right macro.
350m4_if([$1], [1.14.1], [],350m4_if([$1], [1.13.4], [],
351 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl351 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
352])352])
353353
@@ -363,7 +363,7 @@
363# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.363# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
364# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.364# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
365AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],365AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
366[AM_AUTOMAKE_VERSION([1.14.1])dnl366[AM_AUTOMAKE_VERSION([1.13.4])dnl
367m4_ifndef([AC_AUTOCONF_VERSION],367m4_ifndef([AC_AUTOCONF_VERSION],
368 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl368 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
369_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])369_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
@@ -730,12 +730,6 @@
730# This macro actually does too much. Some checks are only needed if730# This macro actually does too much. Some checks are only needed if
731# your package does certain things. But this isn't really a big deal.731# your package does certain things. But this isn't really a big deal.
732732
733dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
734m4_define([AC_PROG_CC],
735m4_defn([AC_PROG_CC])
736[_AM_PROG_CC_C_O
737])
738
739# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])733# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
740# AM_INIT_AUTOMAKE([OPTIONS])734# AM_INIT_AUTOMAKE([OPTIONS])
741# -----------------------------------------------735# -----------------------------------------------
@@ -844,48 +838,7 @@
844AC_CONFIG_COMMANDS_PRE(dnl838AC_CONFIG_COMMANDS_PRE(dnl
845[m4_provide_if([_AM_COMPILER_EXEEXT],839[m4_provide_if([_AM_COMPILER_EXEEXT],
846 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl840 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
847841])
848# POSIX will say in a future version that running "rm -f" with no argument
849# is OK; and we want to be able to make that assumption in our Makefile
850# recipes. So use an aggressive probe to check that the usage we want is
851# actually supported "in the wild" to an acceptable degree.
852# See automake bug#10828.
853# To make any issue more visible, cause the running configure to be aborted
854# by default if the 'rm' program in use doesn't match our expectations; the
855# user can still override this though.
856if rm -f && rm -fr && rm -rf; then : OK; else
857 cat >&2 <<'END'
858Oops!
859
860Your 'rm' program seems unable to run without file operands specified
861on the command line, even when the '-f' option is present. This is contrary
862to the behaviour of most rm programs out there, and not conforming with
863the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
864
865Please tell bug-automake@gnu.org about your system, including the value
866of your $PATH and any error possibly output before this message. This
867can help us improve future automake versions.
868
869END
870 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
871 echo 'Configuration will proceed anyway, since you have set the' >&2
872 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
873 echo >&2
874 else
875 cat >&2 <<'END'
876Aborting the configuration process, to ensure you take notice of the issue.
877
878You can download and install GNU coreutils to get an 'rm' implementation
879that behaves properly: <http://www.gnu.org/software/coreutils/>.
880
881If you want to complete the configuration process using your problematic
882'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
883to "yes", and re-run configure.
884
885END
886 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
887 fi
888fi])
889842
890dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not843dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
891dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further844dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
@@ -893,6 +846,7 @@
893m4_define([_AC_COMPILER_EXEEXT],846m4_define([_AC_COMPILER_EXEEXT],
894m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])847m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
895848
849
896# When config.status generates a header, we must update the stamp-h file.850# When config.status generates a header, we must update the stamp-h file.
897# This file resides in the same directory as the config header851# This file resides in the same directory as the config header
898# that is generated. The stamp files are numbered to have different names.852# that is generated. The stamp files are numbered to have different names.
@@ -1040,6 +994,38 @@
1040rm -f confinc confmf994rm -f confinc confmf
1041])995])
1042996
997# Copyright (C) 1999-2013 Free Software Foundation, Inc.
998#
999# This file is free software; the Free Software Foundation
1000# gives unlimited permission to copy and/or distribute it,
1001# with or without modifications, as long as this notice is preserved.
1002
1003# AM_PROG_CC_C_O
1004# --------------
1005# Like AC_PROG_CC_C_O, but changed for automake.
1006AC_DEFUN([AM_PROG_CC_C_O],
1007[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1008AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1009AC_REQUIRE_AUX_FILE([compile])dnl
1010# FIXME: we rely on the cache variable name because
1011# there is no other way.
1012set dummy $CC
1013am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1014eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1015if test "$am_t" != yes; then
1016 # Losing compiler, so override with the script.
1017 # FIXME: It is wrong to rewrite CC.
1018 # But if we don't then we get into trouble of one sort or another.
1019 # A longer-term fix would be to have automake use am__CC in this case,
1020 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1021 CC="$am_aux_dir/compile $CC"
1022fi
1023dnl Make sure AC_PROG_CC is never called again, or it will override our
1024dnl setting of CC.
1025m4_define([AC_PROG_CC],
1026 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1027])
1028
1043# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-1029# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
10441030
1045# Copyright (C) 1997-2013 Free Software Foundation, Inc.1031# Copyright (C) 1997-2013 Free Software Foundation, Inc.
@@ -1110,70 +1096,6 @@
1110AC_DEFUN([_AM_IF_OPTION],1096AC_DEFUN([_AM_IF_OPTION],
1111[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])1097[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
11121098
1113# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1114#
1115# This file is free software; the Free Software Foundation
1116# gives unlimited permission to copy and/or distribute it,
1117# with or without modifications, as long as this notice is preserved.
1118
1119# _AM_PROG_CC_C_O
1120# ---------------
1121# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1122# to automatically call this.
1123AC_DEFUN([_AM_PROG_CC_C_O],
1124[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1125AC_REQUIRE_AUX_FILE([compile])dnl
1126AC_LANG_PUSH([C])dnl
1127AC_CACHE_CHECK(
1128 [whether $CC understands -c and -o together],
1129 [am_cv_prog_cc_c_o],
1130 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1131 # Make sure it works both with $CC and with simple cc.
1132 # Following AC_PROG_CC_C_O, we do the test twice because some
1133 # compilers refuse to overwrite an existing .o file with -o,
1134 # though they will create one.
1135 am_cv_prog_cc_c_o=yes
1136 for am_i in 1 2; do
1137 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1138 && test -f conftest2.$ac_objext; then
1139 : OK
1140 else
1141 am_cv_prog_cc_c_o=no
1142 break
1143 fi
1144 done
1145 rm -f core conftest*
1146 unset am_i])
1147if test "$am_cv_prog_cc_c_o" != yes; then
1148 # Losing compiler, so override with the script.
1149 # FIXME: It is wrong to rewrite CC.
1150 # But if we don't then we get into trouble of one sort or another.
1151 # A longer-term fix would be to have automake use am__CC in this case,
1152 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1153 CC="$am_aux_dir/compile $CC"
1154fi
1155AC_LANG_POP([C])])
1156
1157# For backward compatibility.
1158AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1159
1160# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1161#
1162# This file is free software; the Free Software Foundation
1163# gives unlimited permission to copy and/or distribute it,
1164# with or without modifications, as long as this notice is preserved.
1165
1166# AM_RUN_LOG(COMMAND)
1167# -------------------
1168# Run COMMAND, save the exit status in ac_status, and log it.
1169# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1170AC_DEFUN([AM_RUN_LOG],
1171[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1172 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1173 ac_status=$?
1174 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1175 (exit $ac_status); }])
1176
1177# Check to make sure that the build environment is sane. -*- Autoconf -*-1099# Check to make sure that the build environment is sane. -*- Autoconf -*-
11781100
1179# Copyright (C) 1996-2013 Free Software Foundation, Inc.1101# Copyright (C) 1996-2013 Free Software Foundation, Inc.
11801102
=== modified file 'config.guess'
--- config.guess 2014-12-10 10:09:37 +0000
+++ config.guess 2015-02-16 19:51:53 +0000
@@ -1,8 +1,8 @@
1#! /bin/sh1#! /bin/sh
2# Attempt to guess a canonical system name.2# Attempt to guess a canonical system name.
3# Copyright 1992-2014 Free Software Foundation, Inc.3# Copyright 1992-2013 Free Software Foundation, Inc.
44
5timestamp='2014-03-23'5timestamp='2013-06-10'
66
7# This file is free software; you can redistribute it and/or modify it7# This file is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by8# under the terms of the GNU General Public License as published by
@@ -50,7 +50,7 @@
50GNU config.guess ($timestamp)50GNU config.guess ($timestamp)
5151
52Originally written by Per Bothner.52Originally written by Per Bothner.
53Copyright 1992-2014 Free Software Foundation, Inc.53Copyright 1992-2013 Free Software Foundation, Inc.
5454
55This is free software; see the source for copying conditions. There is NO55This is free software; see the source for copying conditions. There is NO
56warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."56warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -149,10 +149,20 @@
149 LIBC=gnu149 LIBC=gnu
150 #endif150 #endif
151 EOF151 EOF
152 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`152 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
153 ;;153 ;;
154esac154esac
155155
156case "${UNAME_MACHINE}" in
157 i?86)
158 test -z "$VENDOR" && VENDOR=pc
159 ;;
160 *)
161 test -z "$VENDOR" && VENDOR=unknown
162 ;;
163esac
164test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
165
156# Note: order is significant - the case branches are not exclusive.166# Note: order is significant - the case branches are not exclusive.
157167
158case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in168case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
@@ -217,23 +227,23 @@
217 exit ;;227 exit ;;
218 *:Bitrig:*:*)228 *:Bitrig:*:*)
219 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`229 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
220 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}230 echo ${UNAME_MACHINE_ARCH}-${VENDOR}-bitrig${UNAME_RELEASE}
221 exit ;;231 exit ;;
222 *:OpenBSD:*:*)232 *:OpenBSD:*:*)
223 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`233 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
224 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}234 echo ${UNAME_MACHINE_ARCH}-${VENDOR}-openbsd${UNAME_RELEASE}
225 exit ;;235 exit ;;
226 *:ekkoBSD:*:*)236 *:ekkoBSD:*:*)
227 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}237 echo ${UNAME_MACHINE}-${VENDOR}-ekkobsd${UNAME_RELEASE}
228 exit ;;238 exit ;;
229 *:SolidBSD:*:*)239 *:SolidBSD:*:*)
230 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}240 echo ${UNAME_MACHINE}-${VENDOR}-solidbsd${UNAME_RELEASE}
231 exit ;;241 exit ;;
232 macppc:MirBSD:*:*)242 macppc:MirBSD:*:*)
233 echo powerpc-unknown-mirbsd${UNAME_RELEASE}243 echo powerpc-${VENDOR}-mirbsd${UNAME_RELEASE}
234 exit ;;244 exit ;;
235 *:MirBSD:*:*)245 *:MirBSD:*:*)
236 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}246 echo ${UNAME_MACHINE}-${VENDOR}-mirbsd${UNAME_RELEASE}
237 exit ;;247 exit ;;
238 alpha:OSF1:*:*)248 alpha:OSF1:*:*)
239 case $UNAME_RELEASE in249 case $UNAME_RELEASE in
@@ -301,13 +311,13 @@
301 echo alpha-dec-winnt3.5311 echo alpha-dec-winnt3.5
302 exit ;;312 exit ;;
303 Amiga*:UNIX_System_V:4.0:*)313 Amiga*:UNIX_System_V:4.0:*)
304 echo m68k-unknown-sysv4314 echo m68k-${VENDOR}-sysv4
305 exit ;;315 exit ;;
306 *:[Aa]miga[Oo][Ss]:*:*)316 *:[Aa]miga[Oo][Ss]:*:*)
307 echo ${UNAME_MACHINE}-unknown-amigaos317 echo ${UNAME_MACHINE}-${VENDOR}-amigaos
308 exit ;;318 exit ;;
309 *:[Mm]orph[Oo][Ss]:*:*)319 *:[Mm]orph[Oo][Ss]:*:*)
310 echo ${UNAME_MACHINE}-unknown-morphos320 echo ${UNAME_MACHINE}-${VENDOR}-morphos
311 exit ;;321 exit ;;
312 *:OS/390:*:*)322 *:OS/390:*:*)
313 echo i370-ibm-openedition323 echo i370-ibm-openedition
@@ -322,7 +332,7 @@
322 echo arm-acorn-riscix${UNAME_RELEASE}332 echo arm-acorn-riscix${UNAME_RELEASE}
323 exit ;;333 exit ;;
324 arm*:riscos:*:*|arm*:RISCOS:*:*)334 arm*:riscos:*:*|arm*:RISCOS:*:*)
325 echo arm-unknown-riscos335 echo arm-${VENDOR}-riscos
326 exit ;;336 exit ;;
327 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)337 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
328 echo hppa1.1-hitachi-hiuxmpp338 echo hppa1.1-hitachi-hiuxmpp
@@ -430,7 +440,7 @@
430 echo m68k-hades-mint${UNAME_RELEASE}440 echo m68k-hades-mint${UNAME_RELEASE}
431 exit ;;441 exit ;;
432 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)442 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
433 echo m68k-unknown-mint${UNAME_RELEASE}443 echo m68k-${VENDOR}-mint${UNAME_RELEASE}
434 exit ;;444 exit ;;
435 m68k:machten:*:*)445 m68k:machten:*:*)
436 echo m68k-apple-machten${UNAME_RELEASE}446 echo m68k-apple-machten${UNAME_RELEASE}
@@ -741,9 +751,9 @@
741 exit ;;751 exit ;;
742 i*86:OSF1:*:*)752 i*86:OSF1:*:*)
743 if [ -x /usr/sbin/sysversion ] ; then753 if [ -x /usr/sbin/sysversion ] ; then
744 echo ${UNAME_MACHINE}-unknown-osf1mk754 echo ${UNAME_MACHINE}-${VENDOR}-osf1mk
745 else755 else
746 echo ${UNAME_MACHINE}-unknown-osf1756 echo ${UNAME_MACHINE}-${VENDOR}-osf1
747 fi757 fi
748 exit ;;758 exit ;;
749 parisc*:Lites*:*:*)759 parisc*:Lites*:*:*)
@@ -803,18 +813,18 @@
803 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}813 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
804 exit ;;814 exit ;;
805 sparc*:BSD/OS:*:*)815 sparc*:BSD/OS:*:*)
806 echo sparc-unknown-bsdi${UNAME_RELEASE}816 echo sparc-${VENDOR}-bsdi${UNAME_RELEASE}
807 exit ;;817 exit ;;
808 *:BSD/OS:*:*)818 *:BSD/OS:*:*)
809 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}819 echo ${UNAME_MACHINE}-${VENDOR}-bsdi${UNAME_RELEASE}
810 exit ;;820 exit ;;
811 *:FreeBSD:*:*)821 *:FreeBSD:*:*)
812 UNAME_PROCESSOR=`/usr/bin/uname -p`822 UNAME_PROCESSOR=`/usr/bin/uname -p`
813 case ${UNAME_PROCESSOR} in823 case ${UNAME_PROCESSOR} in
814 amd64)824 amd64)
815 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;825 echo x86_64-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
816 *)826 *)
817 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;827 echo ${UNAME_PROCESSOR}-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
818 esac828 esac
819 exit ;;829 exit ;;
820 i*:CYGWIN*:*)830 i*:CYGWIN*:*)
@@ -826,7 +836,7 @@
826 *:MINGW*:*)836 *:MINGW*:*)
827 echo ${UNAME_MACHINE}-pc-mingw32837 echo ${UNAME_MACHINE}-pc-mingw32
828 exit ;;838 exit ;;
829 *:MSYS*:*)839 i*:MSYS*:*)
830 echo ${UNAME_MACHINE}-pc-msys840 echo ${UNAME_MACHINE}-pc-msys
831 exit ;;841 exit ;;
832 i*:windows32*:*)842 i*:windows32*:*)
@@ -842,10 +852,10 @@
842 echo i586-pc-interix${UNAME_RELEASE}852 echo i586-pc-interix${UNAME_RELEASE}
843 exit ;;853 exit ;;
844 authenticamd | genuineintel | EM64T)854 authenticamd | genuineintel | EM64T)
845 echo x86_64-unknown-interix${UNAME_RELEASE}855 echo x86_64-${VENDOR}-interix${UNAME_RELEASE}
846 exit ;;856 exit ;;
847 IA64)857 IA64)
848 echo ia64-unknown-interix${UNAME_RELEASE}858 echo ia64-${VENDOR}-interix${UNAME_RELEASE}
849 exit ;;859 exit ;;
850 esac ;;860 esac ;;
851 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)861 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
@@ -864,31 +874,31 @@
864 echo ${UNAME_MACHINE}-pc-uwin874 echo ${UNAME_MACHINE}-pc-uwin
865 exit ;;875 exit ;;
866 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)876 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
867 echo x86_64-unknown-cygwin877 echo x86_64-${VENDOR}-cygwin
868 exit ;;878 exit ;;
869 p*:CYGWIN*:*)879 p*:CYGWIN*:*)
870 echo powerpcle-unknown-cygwin880 echo powerpcle-${VENDOR}-cygwin
871 exit ;;881 exit ;;
872 prep*:SunOS:5.*:*)882 prep*:SunOS:5.*:*)
873 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`883 echo powerpcle-${VENDOR}-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
874 exit ;;884 exit ;;
875 *:GNU:*:*)885 *:GNU:*:*)
876 # the GNU system886 # the GNU system
877 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`887 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
878 exit ;;888 exit ;;
879 *:GNU/*:*:*)889 *:GNU/*:*:*)
880 # other systems with GNU libc and userland890 # other systems with GNU libc and userland
881 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}891 echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
882 exit ;;892 exit ;;
883 i*86:Minix:*:*)893 i*86:Minix:*:*)
884 echo ${UNAME_MACHINE}-pc-minix894 echo ${UNAME_MACHINE}-pc-minix
885 exit ;;895 exit ;;
886 aarch64:Linux:*:*)896 aarch64:Linux:*:*)
887 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}897 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
888 exit ;;898 exit ;;
889 aarch64_be:Linux:*:*)899 aarch64_be:Linux:*:*)
890 UNAME_MACHINE=aarch64_be900 UNAME_MACHINE=aarch64_be
891 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}901 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
892 exit ;;902 exit ;;
893 alpha:Linux:*:*)903 alpha:Linux:*:*)
894 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in904 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
@@ -902,29 +912,29 @@
902 esac912 esac
903 objdump --private-headers /bin/sh | grep -q ld.so.1913 objdump --private-headers /bin/sh | grep -q ld.so.1
904 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi914 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
905 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}915 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
906 exit ;;916 exit ;;
907 arc:Linux:*:* | arceb:Linux:*:*)917 arc:Linux:*:* | arceb:Linux:*:*)
908 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}918 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
909 exit ;;919 exit ;;
910 arm*:Linux:*:*)920 arm*:Linux:*:*)
911 eval $set_cc_for_build921 eval $set_cc_for_build
912 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \922 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
913 | grep -q __ARM_EABI__923 | grep -q __ARM_EABI__
914 then924 then
915 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}925 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
916 else926 else
917 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \927 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
918 | grep -q __ARM_PCS_VFP928 | grep -q __ARM_PCS_VFP
919 then929 then
920 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi930 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}eabi
921 else931 else
922 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf932 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}eabihf
923 fi933 fi
924 fi934 fi
925 exit ;;935 exit ;;
926 avr32*:Linux:*:*)936 avr32*:Linux:*:*)
927 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}937 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
928 exit ;;938 exit ;;
929 cris:Linux:*:*)939 cris:Linux:*:*)
930 echo ${UNAME_MACHINE}-axis-linux-${LIBC}940 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
@@ -933,22 +943,22 @@
933 echo ${UNAME_MACHINE}-axis-linux-${LIBC}943 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
934 exit ;;944 exit ;;
935 frv:Linux:*:*)945 frv:Linux:*:*)
936 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}946 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
937 exit ;;947 exit ;;
938 hexagon:Linux:*:*)948 hexagon:Linux:*:*)
939 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}949 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
940 exit ;;950 exit ;;
941 i*86:Linux:*:*)951 i*86:Linux:*:*)
942 echo ${UNAME_MACHINE}-pc-linux-${LIBC}952 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
943 exit ;;953 exit ;;
944 ia64:Linux:*:*)954 ia64:Linux:*:*)
945 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}955 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
946 exit ;;956 exit ;;
947 m32r*:Linux:*:*)957 m32r*:Linux:*:*)
948 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}958 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
949 exit ;;959 exit ;;
950 m68*:Linux:*:*)960 m68*:Linux:*:*)
951 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}961 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
952 exit ;;962 exit ;;
953 mips:Linux:*:* | mips64:Linux:*:*)963 mips:Linux:*:* | mips64:Linux:*:*)
954 eval $set_cc_for_build964 eval $set_cc_for_build
@@ -967,63 +977,63 @@
967 #endif977 #endif
968EOF978EOF
969 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`979 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
970 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }980 test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-${LIBC}"; exit; }
971 ;;981 ;;
972 openrisc*:Linux:*:*)982 or1k:Linux:*:*)
973 echo or1k-unknown-linux-${LIBC}983 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
974 exit ;;984 exit ;;
975 or32:Linux:*:* | or1k*:Linux:*:*)985 or32:Linux:*:*)
976 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}986 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
977 exit ;;987 exit ;;
978 padre:Linux:*:*)988 padre:Linux:*:*)
979 echo sparc-unknown-linux-${LIBC}989 echo sparc-${VENDOR}-linux-${LIBC}
980 exit ;;990 exit ;;
981 parisc64:Linux:*:* | hppa64:Linux:*:*)991 parisc64:Linux:*:* | hppa64:Linux:*:*)
982 echo hppa64-unknown-linux-${LIBC}992 echo hppa64-${VENDOR}-linux-${LIBC}
983 exit ;;993 exit ;;
984 parisc:Linux:*:* | hppa:Linux:*:*)994 parisc:Linux:*:* | hppa:Linux:*:*)
985 # Look for CPU level995 # Look for CPU level
986 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in996 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
987 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;997 PA7*) echo hppa1.1-${VENDOR}-linux-${LIBC} ;;
988 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;998 PA8*) echo hppa2.0-${VENDOR}-linux-${LIBC} ;;
989 *) echo hppa-unknown-linux-${LIBC} ;;999 *) echo hppa-${VENDOR}-linux-${LIBC} ;;
990 esac1000 esac
991 exit ;;1001 exit ;;
992 ppc64:Linux:*:*)1002 ppc64:Linux:*:*)
993 echo powerpc64-unknown-linux-${LIBC}1003 echo powerpc64-${VENDOR}-linux-${LIBC}
994 exit ;;1004 exit ;;
995 ppc:Linux:*:*)1005 ppc:Linux:*:*)
996 echo powerpc-unknown-linux-${LIBC}1006 echo powerpc-${VENDOR}-linux-${LIBC}
997 exit ;;1007 exit ;;
998 ppc64le:Linux:*:*)1008 ppc64le:Linux:*:*)
999 echo powerpc64le-unknown-linux-${LIBC}1009 echo powerpc64le-${VENDOR}-linux-${LIBC}
1000 exit ;;1010 exit ;;
1001 ppcle:Linux:*:*)1011 ppcle:Linux:*:*)
1002 echo powerpcle-unknown-linux-${LIBC}1012 echo powerpcle-${VENDOR}-linux-${LIBC}
1003 exit ;;1013 exit ;;
1004 s390:Linux:*:* | s390x:Linux:*:*)1014 s390:Linux:*:* | s390x:Linux:*:*)
1005 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}1015 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1006 exit ;;1016 exit ;;
1007 sh64*:Linux:*:*)1017 sh64*:Linux:*:*)
1008 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1018 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1009 exit ;;1019 exit ;;
1010 sh*:Linux:*:*)1020 sh*:Linux:*:*)
1011 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1021 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1012 exit ;;1022 exit ;;
1013 sparc:Linux:*:* | sparc64:Linux:*:*)1023 sparc:Linux:*:* | sparc64:Linux:*:*)
1014 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1024 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1015 exit ;;1025 exit ;;
1016 tile*:Linux:*:*)1026 tile*:Linux:*:*)
1017 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1027 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1018 exit ;;1028 exit ;;
1019 vax:Linux:*:*)1029 vax:Linux:*:*)
1020 echo ${UNAME_MACHINE}-dec-linux-${LIBC}1030 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1021 exit ;;1031 exit ;;
1022 x86_64:Linux:*:*)1032 x86_64:Linux:*:*)
1023 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1033 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1024 exit ;;1034 exit ;;
1025 xtensa*:Linux:*:*)1035 xtensa*:Linux:*:*)
1026 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1036 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1027 exit ;;1037 exit ;;
1028 i*86:DYNIX/ptx:4*:*)1038 i*86:DYNIX/ptx:4*:*)
1029 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.1039 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
@@ -1045,16 +1055,16 @@
1045 echo ${UNAME_MACHINE}-pc-os2-emx1055 echo ${UNAME_MACHINE}-pc-os2-emx
1046 exit ;;1056 exit ;;
1047 i*86:XTS-300:*:STOP)1057 i*86:XTS-300:*:STOP)
1048 echo ${UNAME_MACHINE}-unknown-stop1058 echo ${UNAME_MACHINE}-${VENDOR}-stop
1049 exit ;;1059 exit ;;
1050 i*86:atheos:*:*)1060 i*86:atheos:*:*)
1051 echo ${UNAME_MACHINE}-unknown-atheos1061 echo ${UNAME_MACHINE}-${VENDOR}-atheos
1052 exit ;;1062 exit ;;
1053 i*86:syllable:*:*)1063 i*86:syllable:*:*)
1054 echo ${UNAME_MACHINE}-pc-syllable1064 echo ${UNAME_MACHINE}-pc-syllable
1055 exit ;;1065 exit ;;
1056 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)1066 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1057 echo i386-unknown-lynxos${UNAME_RELEASE}1067 echo i386-${VENODR}-lynxos${UNAME_RELEASE}
1058 exit ;;1068 exit ;;
1059 i*86:*DOS:*:*)1069 i*86:*DOS:*:*)
1060 echo ${UNAME_MACHINE}-pc-msdosdjgpp1070 echo ${UNAME_MACHINE}-pc-msdosdjgpp
@@ -1074,7 +1084,7 @@
1074 *Pentium) UNAME_MACHINE=i586 ;;1084 *Pentium) UNAME_MACHINE=i586 ;;
1075 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;1085 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1076 esac1086 esac
1077 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}1087 echo ${UNAME_MACHINE}-${VENDOR}-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1078 exit ;;1088 exit ;;
1079 i*86:*:3.2:*)1089 i*86:*:3.2:*)
1080 if test -f /usr/options/cb.name; then1090 if test -f /usr/options/cb.name; then
@@ -1113,7 +1123,7 @@
1113 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then1123 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1114 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR41124 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1115 else # Add other i860-SVR4 vendors below as they are discovered.1125 else # Add other i860-SVR4 vendors below as they are discovered.
1116 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR41126 echo i860-${VENODR}-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1117 fi1127 fi
1118 exit ;;1128 exit ;;
1119 mini*:CTIX:SYS*5:*)1129 mini*:CTIX:SYS*5:*)
@@ -1150,19 +1160,19 @@
1150 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \1160 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1151 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;1161 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1152 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)1162 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1153 echo m68k-unknown-lynxos${UNAME_RELEASE}1163 echo m68k-${VENDOR}-lynxos${UNAME_RELEASE}
1154 exit ;;1164 exit ;;
1155 mc68030:UNIX_System_V:4.*:*)1165 mc68030:UNIX_System_V:4.*:*)
1156 echo m68k-atari-sysv41166 echo m68k-atari-sysv4
1157 exit ;;1167 exit ;;
1158 TSUNAMI:LynxOS:2.*:*)1168 TSUNAMI:LynxOS:2.*:*)
1159 echo sparc-unknown-lynxos${UNAME_RELEASE}1169 echo sparc-${VENDOR}-lynxos${UNAME_RELEASE}
1160 exit ;;1170 exit ;;
1161 rs6000:LynxOS:2.*:*)1171 rs6000:LynxOS:2.*:*)
1162 echo rs6000-unknown-lynxos${UNAME_RELEASE}1172 echo rs6000-${VENDOR}-lynxos${UNAME_RELEASE}
1163 exit ;;1173 exit ;;
1164 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)1174 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1165 echo powerpc-unknown-lynxos${UNAME_RELEASE}1175 echo powerpc-${VENDOR}-lynxos${UNAME_RELEASE}
1166 exit ;;1176 exit ;;
1167 SM[BE]S:UNIX_SV:*:*)1177 SM[BE]S:UNIX_SV:*:*)
1168 echo mips-dde-sysv${UNAME_RELEASE}1178 echo mips-dde-sysv${UNAME_RELEASE}
@@ -1212,7 +1222,7 @@
1212 if [ -d /usr/nec ]; then1222 if [ -d /usr/nec ]; then
1213 echo mips-nec-sysv${UNAME_RELEASE}1223 echo mips-nec-sysv${UNAME_RELEASE}
1214 else1224 else
1215 echo mips-unknown-sysv${UNAME_RELEASE}1225 echo mips-${VENDOR}-sysv${UNAME_RELEASE}
1216 fi1226 fi
1217 exit ;;1227 exit ;;
1218 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.1228 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
@@ -1228,7 +1238,7 @@
1228 echo i586-pc-haiku1238 echo i586-pc-haiku
1229 exit ;;1239 exit ;;
1230 x86_64:Haiku:*:*)1240 x86_64:Haiku:*:*)
1231 echo x86_64-unknown-haiku1241 echo x86_64-${VENDOR}-haiku
1232 exit ;;1242 exit ;;
1233 SX-4:SUPER-UX:*:*)1243 SX-4:SUPER-UX:*:*)
1234 echo sx4-nec-superux${UNAME_RELEASE}1244 echo sx4-nec-superux${UNAME_RELEASE}
@@ -1260,26 +1270,16 @@
1260 if test "$UNAME_PROCESSOR" = unknown ; then1270 if test "$UNAME_PROCESSOR" = unknown ; then
1261 UNAME_PROCESSOR=powerpc1271 UNAME_PROCESSOR=powerpc
1262 fi1272 fi
1263 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then1273 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1264 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then1274 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1265 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \1275 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1266 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \1276 grep IS_64BIT_ARCH >/dev/null
1267 grep IS_64BIT_ARCH >/dev/null1277 then
1268 then1278 case $UNAME_PROCESSOR in
1269 case $UNAME_PROCESSOR in1279 i386) UNAME_PROCESSOR=x86_64 ;;
1270 i386) UNAME_PROCESSOR=x86_64 ;;1280 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1271 powerpc) UNAME_PROCESSOR=powerpc64 ;;1281 esac
1272 esac
1273 fi
1274 fi1282 fi
1275 elif test "$UNAME_PROCESSOR" = i386 ; then
1276 # Avoid executing cc on OS X 10.9, as it ships with a stub
1277 # that puts up a graphical alert prompting to install
1278 # developer tools. Any system running Mac OS X 10.7 or
1279 # later (Darwin 11 and later) is required to have a 64-bit
1280 # processor. This is not true of the ARM version of Darwin
1281 # that Apple uses in portable devices.
1282 UNAME_PROCESSOR=x86_64
1283 fi1283 fi
1284 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}1284 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1285 exit ;;1285 exit ;;
@@ -1321,13 +1321,13 @@
1321 else1321 else
1322 UNAME_MACHINE="$cputype"1322 UNAME_MACHINE="$cputype"
1323 fi1323 fi
1324 echo ${UNAME_MACHINE}-unknown-plan91324 echo ${UNAME_MACHINE}-${VENDOR}-plan9
1325 exit ;;1325 exit ;;
1326 *:TOPS-10:*:*)1326 *:TOPS-10:*:*)
1327 echo pdp10-unknown-tops101327 echo pdp10-${VENDOR}-tops10
1328 exit ;;1328 exit ;;
1329 *:TENEX:*:*)1329 *:TENEX:*:*)
1330 echo pdp10-unknown-tenex1330 echo pdp10-${VENDOR}-tenex
1331 exit ;;1331 exit ;;
1332 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)1332 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1333 echo pdp10-dec-tops201333 echo pdp10-dec-tops20
@@ -1336,16 +1336,16 @@
1336 echo pdp10-xkl-tops201336 echo pdp10-xkl-tops20
1337 exit ;;1337 exit ;;
1338 *:TOPS-20:*:*)1338 *:TOPS-20:*:*)
1339 echo pdp10-unknown-tops201339 echo pdp10-${VENDOR}-tops20
1340 exit ;;1340 exit ;;
1341 *:ITS:*:*)1341 *:ITS:*:*)
1342 echo pdp10-unknown-its1342 echo pdp10-${VENDOR}-its
1343 exit ;;1343 exit ;;
1344 SEI:*:*:SEIUX)1344 SEI:*:*:SEIUX)
1345 echo mips-sei-seiux${UNAME_RELEASE}1345 echo mips-sei-seiux${UNAME_RELEASE}
1346 exit ;;1346 exit ;;
1347 *:DragonFly:*:*)1347 *:DragonFly:*:*)
1348 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`1348 echo ${UNAME_MACHINE}-${VENDOR}-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1349 exit ;;1349 exit ;;
1350 *:*VMS:*:*)1350 *:*VMS:*:*)
1351 UNAME_MACHINE=`(uname -p) 2>/dev/null`1351 UNAME_MACHINE=`(uname -p) 2>/dev/null`
@@ -1367,10 +1367,158 @@
1367 echo ${UNAME_MACHINE}-pc-aros1367 echo ${UNAME_MACHINE}-pc-aros
1368 exit ;;1368 exit ;;
1369 x86_64:VMkernel:*:*)1369 x86_64:VMkernel:*:*)
1370 echo ${UNAME_MACHINE}-unknown-esx1370 echo ${UNAME_MACHINE}-${VENDOR}-esx
1371 exit ;;1371 exit ;;
1372esac1372esac
13731373
1374eval $set_cc_for_build
1375cat >$dummy.c <<EOF
1376#ifdef _SEQUENT_
1377# include <sys/types.h>
1378# include <sys/utsname.h>
1379#endif
1380main ()
1381{
1382#if defined (sony)
1383#if defined (MIPSEB)
1384 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1385 I don't know.... */
1386 printf ("mips-sony-bsd\n"); exit (0);
1387#else
1388#include <sys/param.h>
1389 printf ("m68k-sony-newsos%s\n",
1390#ifdef NEWSOS4
1391 "4"
1392#else
1393 ""
1394#endif
1395 ); exit (0);
1396#endif
1397#endif
1398
1399#if defined (__arm) && defined (__acorn) && defined (__unix)
1400 printf ("arm-acorn-riscix\n"); exit (0);
1401#endif
1402
1403#if defined (hp300) && !defined (hpux)
1404 printf ("m68k-hp-bsd\n"); exit (0);
1405#endif
1406
1407#if defined (NeXT)
1408#if !defined (__ARCHITECTURE__)
1409#define __ARCHITECTURE__ "m68k"
1410#endif
1411 int version;
1412 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1413 if (version < 4)
1414 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1415 else
1416 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1417 exit (0);
1418#endif
1419
1420#if defined (MULTIMAX) || defined (n16)
1421#if defined (UMAXV)
1422 printf ("ns32k-encore-sysv\n"); exit (0);
1423#else
1424#if defined (CMU)
1425 printf ("ns32k-encore-mach\n"); exit (0);
1426#else
1427 printf ("ns32k-encore-bsd\n"); exit (0);
1428#endif
1429#endif
1430#endif
1431
1432#if defined (__386BSD__)
1433 printf ("i386-pc-bsd\n"); exit (0);
1434#endif
1435
1436#if defined (sequent)
1437#if defined (i386)
1438 printf ("i386-sequent-dynix\n"); exit (0);
1439#endif
1440#if defined (ns32000)
1441 printf ("ns32k-sequent-dynix\n"); exit (0);
1442#endif
1443#endif
1444
1445#if defined (_SEQUENT_)
1446 struct utsname un;
1447
1448 uname(&un);
1449
1450 if (strncmp(un.version, "V2", 2) == 0) {
1451 printf ("i386-sequent-ptx2\n"); exit (0);
1452 }
1453 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1454 printf ("i386-sequent-ptx1\n"); exit (0);
1455 }
1456 printf ("i386-sequent-ptx\n"); exit (0);
1457
1458#endif
1459
1460#if defined (vax)
1461# if !defined (ultrix)
1462# include <sys/param.h>
1463# if defined (BSD)
1464# if BSD == 43
1465 printf ("vax-dec-bsd4.3\n"); exit (0);
1466# else
1467# if BSD == 199006
1468 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1469# else
1470 printf ("vax-dec-bsd\n"); exit (0);
1471# endif
1472# endif
1473# else
1474 printf ("vax-dec-bsd\n"); exit (0);
1475# endif
1476# else
1477 printf ("vax-dec-ultrix\n"); exit (0);
1478# endif
1479#endif
1480
1481#if defined (alliant) && defined (i860)
1482 printf ("i860-alliant-bsd\n"); exit (0);
1483#endif
1484
1485 exit (1);
1486}
1487EOF
1488
1489$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1490 { echo "$SYSTEM_NAME"; exit; }
1491
1492# Apollos put the system type in the environment.
1493
1494test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1495
1496# Convex versions that predate uname can use getsysinfo(1)
1497
1498if [ -x /usr/convex/getsysinfo ]
1499then
1500 case `getsysinfo -f cpu_type` in
1501 c1*)
1502 echo c1-convex-bsd
1503 exit ;;
1504 c2*)
1505 if getsysinfo -f scalar_acc
1506 then echo c32-convex-bsd
1507 else echo c2-convex-bsd
1508 fi
1509 exit ;;
1510 c34*)
1511 echo c34-convex-bsd
1512 exit ;;
1513 c38*)
1514 echo c38-convex-bsd
1515 exit ;;
1516 c4*)
1517 echo c4-convex-bsd
1518 exit ;;
1519 esac
1520fi
1521
1374cat >&2 <<EOF1522cat >&2 <<EOF
1375$0: unable to guess system type1523$0: unable to guess system type
13761524
13771525
=== modified file 'config.h.in'
--- config.h.in 2014-12-10 10:09:37 +0000
+++ config.h.in 2015-02-16 19:51:53 +0000
@@ -1,4 +1,4 @@
1/* config.h.in. Generated from configure.in by autoheader. */1/* config.h.in. Generated from configure.ac by autoheader. */
22
3/* Define if building universal (internal helper macro) */3/* Define if building universal (internal helper macro) */
4#undef AC_APPLE_UNIVERSAL_BUILD4#undef AC_APPLE_UNIVERSAL_BUILD
@@ -46,6 +46,9 @@
46 */46 */
47#undef LT_OBJDIR47#undef LT_OBJDIR
4848
49/* Define to 1 if your C compiler doesn't accept -c and -o together. */
50#undef NO_MINUS_C_MINUS_O
51
49/* Name of package */52/* Name of package */
50#undef PACKAGE53#undef PACKAGE
5154
5255
=== modified file 'config.sub'
--- config.sub 2014-12-10 10:09:37 +0000
+++ config.sub 2015-02-16 19:51:53 +0000
@@ -1,8 +1,8 @@
1#! /bin/sh1#! /bin/sh
2# Configuration validation subroutine script.2# Configuration validation subroutine script.
3# Copyright 1992-2014 Free Software Foundation, Inc.3# Copyright 1992-2013 Free Software Foundation, Inc.
44
5timestamp='2014-07-28'5timestamp='2013-04-24'
66
7# This file is free software; you can redistribute it and/or modify it7# This file is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by8# under the terms of the GNU General Public License as published by
@@ -68,7 +68,7 @@
68version="\68version="\
69GNU config.sub ($timestamp)69GNU config.sub ($timestamp)
7070
71Copyright 1992-2014 Free Software Foundation, Inc.71Copyright 1992-2013 Free Software Foundation, Inc.
7272
73This is free software; see the source for copying conditions. There is NO73This is free software; see the source for copying conditions. There is NO
74warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."74warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -257,7 +257,7 @@
257 | avr | avr32 \257 | avr | avr32 \
258 | be32 | be64 \258 | be32 | be64 \
259 | bfin \259 | bfin \
260 | c4x | c8051 | clipper \260 | c4x | clipper \
261 | d10v | d30v | dlx | dsp16xx \261 | d10v | d30v | dlx | dsp16xx \
262 | epiphany \262 | epiphany \
263 | fido | fr30 | frv \263 | fido | fr30 | frv \
@@ -265,7 +265,6 @@
265 | hexagon \265 | hexagon \
266 | i370 | i860 | i960 | ia64 \266 | i370 | i860 | i960 | ia64 \
267 | ip2k | iq2000 \267 | ip2k | iq2000 \
268 | k1om \
269 | le32 | le64 \268 | le32 | le64 \
270 | lm32 \269 | lm32 \
271 | m32c | m32r | m32rle | m68000 | m68k | m88k \270 | m32c | m32r | m32rle | m68000 | m68k | m88k \
@@ -283,10 +282,8 @@
283 | mips64vr5900 | mips64vr5900el \282 | mips64vr5900 | mips64vr5900el \
284 | mipsisa32 | mipsisa32el \283 | mipsisa32 | mipsisa32el \
285 | mipsisa32r2 | mipsisa32r2el \284 | mipsisa32r2 | mipsisa32r2el \
286 | mipsisa32r6 | mipsisa32r6el \
287 | mipsisa64 | mipsisa64el \285 | mipsisa64 | mipsisa64el \
288 | mipsisa64r2 | mipsisa64r2el \286 | mipsisa64r2 | mipsisa64r2el \
289 | mipsisa64r6 | mipsisa64r6el \
290 | mipsisa64sb1 | mipsisa64sb1el \287 | mipsisa64sb1 | mipsisa64sb1el \
291 | mipsisa64sr71k | mipsisa64sr71kel \288 | mipsisa64sr71k | mipsisa64sr71kel \
292 | mipsr5900 | mipsr5900el \289 | mipsr5900 | mipsr5900el \
@@ -298,7 +295,8 @@
298 | nds32 | nds32le | nds32be \295 | nds32 | nds32le | nds32be \
299 | nios | nios2 | nios2eb | nios2el \296 | nios | nios2 | nios2eb | nios2el \
300 | ns16k | ns32k \297 | ns16k | ns32k \
301 | open8 | or1k | or1knd | or32 \298 | open8 \
299 | or1k | or32 \
302 | pdp10 | pdp11 | pj | pjl \300 | pdp10 | pdp11 | pj | pjl \
303 | powerpc | powerpc64 | powerpc64le | powerpcle \301 | powerpc | powerpc64 | powerpc64le | powerpcle \
304 | pyramid \302 | pyramid \
@@ -326,7 +324,7 @@
326 c6x)324 c6x)
327 basic_machine=tic6x-unknown325 basic_machine=tic6x-unknown
328 ;;326 ;;
329 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)327 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
330 basic_machine=$basic_machine-unknown328 basic_machine=$basic_machine-unknown
331 os=-none329 os=-none
332 ;;330 ;;
@@ -374,7 +372,7 @@
374 | be32-* | be64-* \372 | be32-* | be64-* \
375 | bfin-* | bs2000-* \373 | bfin-* | bs2000-* \
376 | c[123]* | c30-* | [cjt]90-* | c4x-* \374 | c[123]* | c30-* | [cjt]90-* | c4x-* \
377 | c8051-* | clipper-* | craynv-* | cydra-* \375 | clipper-* | craynv-* | cydra-* \
378 | d10v-* | d30v-* | dlx-* \376 | d10v-* | d30v-* | dlx-* \
379 | elxsi-* \377 | elxsi-* \
380 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \378 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
@@ -383,7 +381,6 @@
383 | hexagon-* \381 | hexagon-* \
384 | i*86-* | i860-* | i960-* | ia64-* \382 | i*86-* | i860-* | i960-* | ia64-* \
385 | ip2k-* | iq2000-* \383 | ip2k-* | iq2000-* \
386 | k1om-* \
387 | le32-* | le64-* \384 | le32-* | le64-* \
388 | lm32-* \385 | lm32-* \
389 | m32c-* | m32r-* | m32rle-* \386 | m32c-* | m32r-* | m32rle-* \
@@ -403,10 +400,8 @@
403 | mips64vr5900-* | mips64vr5900el-* \400 | mips64vr5900-* | mips64vr5900el-* \
404 | mipsisa32-* | mipsisa32el-* \401 | mipsisa32-* | mipsisa32el-* \
405 | mipsisa32r2-* | mipsisa32r2el-* \402 | mipsisa32r2-* | mipsisa32r2el-* \
406 | mipsisa32r6-* | mipsisa32r6el-* \
407 | mipsisa64-* | mipsisa64el-* \403 | mipsisa64-* | mipsisa64el-* \
408 | mipsisa64r2-* | mipsisa64r2el-* \404 | mipsisa64r2-* | mipsisa64r2el-* \
409 | mipsisa64r6-* | mipsisa64r6el-* \
410 | mipsisa64sb1-* | mipsisa64sb1el-* \405 | mipsisa64sb1-* | mipsisa64sb1el-* \
411 | mipsisa64sr71k-* | mipsisa64sr71kel-* \406 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
412 | mipsr5900-* | mipsr5900el-* \407 | mipsr5900-* | mipsr5900el-* \
@@ -418,7 +413,6 @@
418 | nios-* | nios2-* | nios2eb-* | nios2el-* \413 | nios-* | nios2-* | nios2eb-* | nios2el-* \
419 | none-* | np1-* | ns16k-* | ns32k-* \414 | none-* | np1-* | ns16k-* | ns32k-* \
420 | open8-* \415 | open8-* \
421 | or1k*-* \
422 | orion-* \416 | orion-* \
423 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \417 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
424 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \418 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
@@ -800,7 +794,7 @@
800 os=-mingw64794 os=-mingw64
801 ;;795 ;;
802 mingw32)796 mingw32)
803 basic_machine=i686-pc797 basic_machine=i386-pc
804 os=-mingw32798 os=-mingw32
805 ;;799 ;;
806 mingw32ce)800 mingw32ce)
@@ -828,10 +822,6 @@
828 basic_machine=powerpc-unknown822 basic_machine=powerpc-unknown
829 os=-morphos823 os=-morphos
830 ;;824 ;;
831 moxiebox)
832 basic_machine=moxie-unknown
833 os=-moxiebox
834 ;;
835 msdos)825 msdos)
836 basic_machine=i386-pc826 basic_machine=i386-pc
837 os=-msdos827 os=-msdos
@@ -840,7 +830,7 @@
840 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`830 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
841 ;;831 ;;
842 msys)832 msys)
843 basic_machine=i686-pc833 basic_machine=i386-pc
844 os=-msys834 os=-msys
845 ;;835 ;;
846 mvs)836 mvs)
@@ -1016,7 +1006,7 @@
1016 ;;1006 ;;
1017 ppc64) basic_machine=powerpc64-unknown1007 ppc64) basic_machine=powerpc64-unknown
1018 ;;1008 ;;
1019 ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`1009 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1020 ;;1010 ;;
1021 ppc64le | powerpc64little | ppc64-le | powerpc64-little)1011 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
1022 basic_machine=powerpc64le-unknown1012 basic_machine=powerpc64le-unknown
@@ -1377,14 +1367,14 @@
1377 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \1367 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1378 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \1368 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1379 | -linux-newlib* | -linux-musl* | -linux-uclibc* \1369 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1380 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \1370 | -uxpv* | -beos* | -mpeix* | -udk* \
1381 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \1371 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1382 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \1372 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1383 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \1373 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1384 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \1374 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1385 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \1375 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1386 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \1376 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1387 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)1377 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1388 # Remember, each alternative MUST END IN *, to match a version number.1378 # Remember, each alternative MUST END IN *, to match a version number.
1389 ;;1379 ;;
1390 -qnx*)1380 -qnx*)
@@ -1556,9 +1546,6 @@
1556 c4x-* | tic4x-*)1546 c4x-* | tic4x-*)
1557 os=-coff1547 os=-coff
1558 ;;1548 ;;
1559 c8051-*)
1560 os=-elf
1561 ;;
1562 hexagon-*)1549 hexagon-*)
1563 os=-elf1550 os=-elf
1564 ;;1551 ;;
@@ -1602,6 +1589,9 @@
1602 mips*-*)1589 mips*-*)
1603 os=-elf1590 os=-elf
1604 ;;1591 ;;
1592 or1k-*)
1593 os=-elf
1594 ;;
1605 or32-*)1595 or32-*)
1606 os=-coff1596 os=-coff
1607 ;;1597 ;;
16081598
=== modified file 'configure'
--- configure 2014-12-10 10:09:37 +0000
+++ configure 2015-02-16 19:51:53 +0000
@@ -1,6 +1,6 @@
1#! /bin/sh1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for RSVG 2.40.6.3# Generated by GNU Autoconf 2.69 for RSVG 2.40.7.
4#4#
5# Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg>.5# Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg>.
6#6#
@@ -591,8 +591,8 @@
591# Identity of this package.591# Identity of this package.
592PACKAGE_NAME='RSVG'592PACKAGE_NAME='RSVG'
593PACKAGE_TARNAME='librsvg'593PACKAGE_TARNAME='librsvg'
594PACKAGE_VERSION='2.40.6'594PACKAGE_VERSION='2.40.7'
595PACKAGE_STRING='RSVG 2.40.6'595PACKAGE_STRING='RSVG 2.40.7'
596PACKAGE_BUGREPORT='https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg'596PACKAGE_BUGREPORT='https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg'
597PACKAGE_URL=''597PACKAGE_URL=''
598598
@@ -671,14 +671,11 @@
671GTK_DOC_BUILD_HTML_TRUE671GTK_DOC_BUILD_HTML_TRUE
672ENABLE_GTK_DOC_FALSE672ENABLE_GTK_DOC_FALSE
673ENABLE_GTK_DOC_TRUE673ENABLE_GTK_DOC_TRUE
674HAVE_GTK_DOC_FALSE
675HAVE_GTK_DOC_TRUE
676GTKDOC_DEPS_LIBS674GTKDOC_DEPS_LIBS
677GTKDOC_DEPS_CFLAGS675GTKDOC_DEPS_CFLAGS
678HTML_DIR676HTML_DIR
679GTKDOC_MKPDF677GTKDOC_MKPDF
680GTKDOC_REBASE678GTKDOC_REBASE
681GTKDOC_CHECK_PATH
682GTKDOC_CHECK679GTKDOC_CHECK
683BSYMBOLIC_LDFLAG680BSYMBOLIC_LDFLAG
684ENABLE_PIXBUF_LOADER_FALSE681ENABLE_PIXBUF_LOADER_FALSE
@@ -1425,7 +1422,7 @@
1425 # Omit some internal or obsolete options to make the list less imposing.1422 # Omit some internal or obsolete options to make the list less imposing.
1426 # This message is too long to be a string in the A/UX 3.1 sh.1423 # This message is too long to be a string in the A/UX 3.1 sh.
1427 cat <<_ACEOF1424 cat <<_ACEOF
1428\`configure' configures RSVG 2.40.6 to adapt to many kinds of systems.1425\`configure' configures RSVG 2.40.7 to adapt to many kinds of systems.
14291426
1430Usage: $0 [OPTION]... [VAR=VALUE]...1427Usage: $0 [OPTION]... [VAR=VALUE]...
14311428
@@ -1495,7 +1492,7 @@
14951492
1496if test -n "$ac_init_help"; then1493if test -n "$ac_init_help"; then
1497 case $ac_init_help in1494 case $ac_init_help in
1498 short | recursive ) echo "Configuration of RSVG 2.40.6:";;1495 short | recursive ) echo "Configuration of RSVG 2.40.7:";;
1499 esac1496 esac
1500 cat <<\_ACEOF1497 cat <<\_ACEOF
15011498
@@ -1645,7 +1642,7 @@
1645test -n "$ac_init_help" && exit $ac_status1642test -n "$ac_init_help" && exit $ac_status
1646if $ac_init_version; then1643if $ac_init_version; then
1647 cat <<\_ACEOF1644 cat <<\_ACEOF
1648RSVG configure 2.40.61645RSVG configure 2.40.7
1649generated by GNU Autoconf 2.691646generated by GNU Autoconf 2.69
16501647
1651Copyright (C) 2012 Free Software Foundation, Inc.1648Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2014,7 +2011,7 @@
2014This file contains any messages produced by compilers while2011This file contains any messages produced by compilers while
2015running configure, to aid debugging if configure makes a mistake.2012running configure, to aid debugging if configure makes a mistake.
20162013
2017It was created by RSVG $as_me 2.40.6, which was2014It was created by RSVG $as_me 2.40.7, which was
2018generated by GNU Autoconf 2.69. Invocation command line was2015generated by GNU Autoconf 2.69. Invocation command line was
20192016
2020 $ $0 $@2017 $ $0 $@
@@ -2368,7 +2365,7 @@
23682365
23692366
23702367
2371am__api_version='1.14'2368am__api_version='1.13'
23722369
2373ac_aux_dir=2370ac_aux_dir=
2374for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do2371for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
@@ -2883,7 +2880,7 @@
28832880
2884# Define the identity of the package.2881# Define the identity of the package.
2885 PACKAGE='librsvg'2882 PACKAGE='librsvg'
2886 VERSION='2.40.6'2883 VERSION='2.40.7'
28872884
28882885
2889cat >>confdefs.h <<_ACEOF2886cat >>confdefs.h <<_ACEOF
@@ -2934,47 +2931,6 @@
29342931
29352932
29362933
2937# POSIX will say in a future version that running "rm -f" with no argument
2938# is OK; and we want to be able to make that assumption in our Makefile
2939# recipes. So use an aggressive probe to check that the usage we want is
2940# actually supported "in the wild" to an acceptable degree.
2941# See automake bug#10828.
2942# To make any issue more visible, cause the running configure to be aborted
2943# by default if the 'rm' program in use doesn't match our expectations; the
2944# user can still override this though.
2945if rm -f && rm -fr && rm -rf; then : OK; else
2946 cat >&2 <<'END'
2947Oops!
2948
2949Your 'rm' program seems unable to run without file operands specified
2950on the command line, even when the '-f' option is present. This is contrary
2951to the behaviour of most rm programs out there, and not conforming with
2952the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2953
2954Please tell bug-automake@gnu.org about your system, including the value
2955of your $PATH and any error possibly output before this message. This
2956can help us improve future automake versions.
2957
2958END
2959 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2960 echo 'Configuration will proceed anyway, since you have set the' >&2
2961 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2962 echo >&2
2963 else
2964 cat >&2 <<'END'
2965Aborting the configuration process, to ensure you take notice of the issue.
2966
2967You can download and install GNU coreutils to get an 'rm' implementation
2968that behaves properly: <http://www.gnu.org/software/coreutils/>.
2969
2970If you want to complete the configuration process using your problematic
2971'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2972to "yes", and re-run configure.
2973
2974END
2975 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2976 fi
2977fi
2978# Check whether --enable-silent-rules was given.2934# Check whether --enable-silent-rules was given.
2979if test "${enable_silent_rules+set}" = set; then :2935if test "${enable_silent_rules+set}" = set; then :
2980 enableval=$enable_silent_rules;2936 enableval=$enable_silent_rules;
@@ -3062,13 +3018,13 @@
30623018
3063# ===========================================================================3019# ===========================================================================
30643020
3065RSVG_LT_VERSION_INFO=42:6:403021RSVG_LT_VERSION_INFO=42:7:40
30663022
3067LIBRSVG_MAJOR_VERSION=23023LIBRSVG_MAJOR_VERSION=2
30683024
3069LIBRSVG_MINOR_VERSION=403025LIBRSVG_MINOR_VERSION=40
30703026
3071LIBRSVG_MICRO_VERSION=63027LIBRSVG_MICRO_VERSION=7
30723028
30733029
30743030
@@ -3935,65 +3891,6 @@
3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'3891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936ac_compiler_gnu=$ac_cv_c_compiler_gnu3892ac_compiler_gnu=$ac_cv_c_compiler_gnu
39373893
3938ac_ext=c
3939ac_cpp='$CPP $CPPFLAGS'
3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3944$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3945if ${am_cv_prog_cc_c_o+:} false; then :
3946 $as_echo_n "(cached) " >&6
3947else
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949/* end confdefs.h. */
3950
3951int
3952main ()
3953{
3954
3955 ;
3956 return 0;
3957}
3958_ACEOF
3959 # Make sure it works both with $CC and with simple cc.
3960 # Following AC_PROG_CC_C_O, we do the test twice because some
3961 # compilers refuse to overwrite an existing .o file with -o,
3962 # though they will create one.
3963 am_cv_prog_cc_c_o=yes
3964 for am_i in 1 2; do
3965 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3966 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } \
3970 && test -f conftest2.$ac_objext; then
3971 : OK
3972 else
3973 am_cv_prog_cc_c_o=no
3974 break
3975 fi
3976 done
3977 rm -f core conftest*
3978 unset am_i
3979fi
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3981$as_echo "$am_cv_prog_cc_c_o" >&6; }
3982if test "$am_cv_prog_cc_c_o" != yes; then
3983 # Losing compiler, so override with the script.
3984 # FIXME: It is wrong to rewrite CC.
3985 # But if we don't then we get into trouble of one sort or another.
3986 # A longer-term fix would be to have automake use am__CC in this case,
3987 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3988 CC="$am_aux_dir/compile $CC"
3989fi
3990ac_ext=c
3991ac_cpp='$CPP $CPPFLAGS'
3992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995
3996
3997depcc="$CC" am_compiler_list=3894depcc="$CC" am_compiler_list=
39983895
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&53896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
@@ -4718,65 +4615,6 @@
4718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'4615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4719ac_compiler_gnu=$ac_cv_c_compiler_gnu4616ac_compiler_gnu=$ac_cv_c_compiler_gnu
47204617
4721ac_ext=c
4722ac_cpp='$CPP $CPPFLAGS'
4723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725ac_compiler_gnu=$ac_cv_c_compiler_gnu
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4727$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4728if ${am_cv_prog_cc_c_o+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730else
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732/* end confdefs.h. */
4733
4734int
4735main ()
4736{
4737
4738 ;
4739 return 0;
4740}
4741_ACEOF
4742 # Make sure it works both with $CC and with simple cc.
4743 # Following AC_PROG_CC_C_O, we do the test twice because some
4744 # compilers refuse to overwrite an existing .o file with -o,
4745 # though they will create one.
4746 am_cv_prog_cc_c_o=yes
4747 for am_i in 1 2; do
4748 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4749 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } \
4753 && test -f conftest2.$ac_objext; then
4754 : OK
4755 else
4756 am_cv_prog_cc_c_o=no
4757 break
4758 fi
4759 done
4760 rm -f core conftest*
4761 unset am_i
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4764$as_echo "$am_cv_prog_cc_c_o" >&6; }
4765if test "$am_cv_prog_cc_c_o" != yes; then
4766 # Losing compiler, so override with the script.
4767 # FIXME: It is wrong to rewrite CC.
4768 # But if we don't then we get into trouble of one sort or another.
4769 # A longer-term fix would be to have automake use am__CC in this case,
4770 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4771 CC="$am_aux_dir/compile $CC"
4772fi
4773ac_ext=c
4774ac_cpp='$CPP $CPPFLAGS'
4775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778
4779
4780depcc="$CC" am_compiler_list=4618depcc="$CC" am_compiler_list=
47814619
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&54620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
@@ -5327,6 +5165,131 @@
53275165
5328fi5166fi
53295167
5168if test "x$CC" != xcc; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5170$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5171else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5173$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5174fi
5175set dummy $CC; ac_cc=`$as_echo "$2" |
5176 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5177if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5178 $as_echo_n "(cached) " >&6
5179else
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181/* end confdefs.h. */
5182
5183int
5184main ()
5185{
5186
5187 ;
5188 return 0;
5189}
5190_ACEOF
5191# Make sure it works both with $CC and with simple cc.
5192# We do the test twice because some compilers refuse to overwrite an
5193# existing .o file with -o, though they will create one.
5194ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5195rm -f conftest2.*
5196if { { case "(($ac_try" in
5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5199esac
5200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5201$as_echo "$ac_try_echo"; } >&5
5202 (eval "$ac_try") 2>&5
5203 ac_status=$?
5204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5205 test $ac_status = 0; } &&
5206 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5209esac
5210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5211$as_echo "$ac_try_echo"; } >&5
5212 (eval "$ac_try") 2>&5
5213 ac_status=$?
5214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5215 test $ac_status = 0; };
5216then
5217 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5218 if test "x$CC" != xcc; then
5219 # Test first that cc exists at all.
5220 if { ac_try='cc -c conftest.$ac_ext >&5'
5221 { { case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224esac
5225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5226$as_echo "$ac_try_echo"; } >&5
5227 (eval "$ac_try") 2>&5
5228 ac_status=$?
5229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5230 test $ac_status = 0; }; }; then
5231 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5232 rm -f conftest2.*
5233 if { { case "(($ac_try" in
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5236esac
5237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5238$as_echo "$ac_try_echo"; } >&5
5239 (eval "$ac_try") 2>&5
5240 ac_status=$?
5241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5242 test $ac_status = 0; } &&
5243 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5246esac
5247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5248$as_echo "$ac_try_echo"; } >&5
5249 (eval "$ac_try") 2>&5
5250 ac_status=$?
5251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5252 test $ac_status = 0; };
5253 then
5254 # cc works too.
5255 :
5256 else
5257 # cc exists but doesn't like -o.
5258 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5259 fi
5260 fi
5261 fi
5262else
5263 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5264fi
5265rm -f core conftest*
5266
5267fi
5268if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5270$as_echo "yes" >&6; }
5271else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273$as_echo "no" >&6; }
5274
5275$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5276
5277fi
5278
5279# FIXME: we rely on the cache variable name because
5280# there is no other way.
5281set dummy $CC
5282am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5283eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5284if test "$am_t" != yes; then
5285 # Losing compiler, so override with the script.
5286 # FIXME: It is wrong to rewrite CC.
5287 # But if we don't then we get into trouble of one sort or another.
5288 # A longer-term fix would be to have automake use am__CC in this case,
5289 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5290 CC="$am_aux_dir/compile $CC"
5291fi
5292
53305293
53315294
5332# On IRIX 5.3, sys/types and inttypes.h are conflicting.5295# On IRIX 5.3, sys/types and inttypes.h are conflicting.
@@ -7954,7 +7917,7 @@
7954 rm -rf conftest*7917 rm -rf conftest*
7955 ;;7918 ;;
79567919
7957x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \7920x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7958s390*-*linux*|s390*-*tpf*|sparc*-*linux*)7921s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7959 # Find out which ABI we are using.7922 # Find out which ABI we are using.
7960 echo 'int i;' > conftest.$ac_ext7923 echo 'int i;' > conftest.$ac_ext
@@ -7972,10 +7935,7 @@
7972 x86_64-*linux*)7935 x86_64-*linux*)
7973 LD="${LD-ld} -m elf_i386"7936 LD="${LD-ld} -m elf_i386"
7974 ;;7937 ;;
7975 powerpc64le-*linux*)7938 ppc64-*linux*|powerpc64-*linux*)
7976 LD="${LD-ld} -m elf32lppclinux"
7977 ;;
7978 powerpc64-*linux*)
7979 LD="${LD-ld} -m elf32ppclinux"7939 LD="${LD-ld} -m elf32ppclinux"
7980 ;;7940 ;;
7981 s390x-*linux*)7941 s390x-*linux*)
@@ -7994,10 +7954,7 @@
7994 x86_64-*linux*)7954 x86_64-*linux*)
7995 LD="${LD-ld} -m elf_x86_64"7955 LD="${LD-ld} -m elf_x86_64"
7996 ;;7956 ;;
7997 powerpcle-*linux*)7957 ppc*-*linux*|powerpc*-*linux*)
7998 LD="${LD-ld} -m elf64lppc"
7999 ;;
8000 powerpc-*linux*)
8001 LD="${LD-ld} -m elf64ppc"7958 LD="${LD-ld} -m elf64ppc"
8002 ;;7959 ;;
8003 s390*-*linux*|s390*-*tpf*)7960 s390*-*linux*|s390*-*tpf*)
@@ -12178,14 +12135,10 @@
12178 # before this can be enabled.12135 # before this can be enabled.
12179 hardcode_into_libs=yes12136 hardcode_into_libs=yes
1218012137
12181 # Add ABI-specific directories to the system library path.
12182 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12183
12184 # Append ld.so.conf contents to the search path12138 # Append ld.so.conf contents to the search path
12185 if test -f /etc/ld.so.conf; then12139 if test -f /etc/ld.so.conf; then
12186 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`12140 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12187 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"12141 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12188
12189 fi12142 fi
1219012143
12191 # We used to test for /lib/ld.so.1 and disable shared libraries on12144 # We used to test for /lib/ld.so.1 and disable shared libraries on
@@ -14241,123 +14194,32 @@
1424114194
1424214195
14243##################################################14196##################################################
14244# Compiler warnings
14245##################################################
14246
14247save_CFLAGS="$CFLAGS"
14248CFLAGS=
14249
14250 for flag in \
14251 -Wall -Wextra \
14252 -Wunused -Wreturn-type -Wswitch -Wcomment -Wtrigraphs \
14253 -Wchar-subscripts -Wparentheses -Winline -Wredundant-decls \
14254 -Wformat-nonliteral -Werror=format-security \
14255 -Wsign-compare -Werror=implicit-function-declaration \
14256 -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
14257 -Wnoaggregate-return -Wcast-align -Wimplicit -Wuninitialized \
14258 -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
14259 -Wpacked -Wmissing-format-attribute -Wshadow \
14260 -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \
14261 -Wdeclaration-after-statement -Wold-style-definition \
14262 -Wno-missing-field-initializers -Wno-unused-parameter \
14263 -Wunused-variable -Wunused-function \
14264 -Wempty-body -Wno-switch-enum \
14265 -fno-common; do
14266
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
14268$as_echo_n "checking if $CC supports $flag flag... " >&6; }
14269if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14270 $as_echo_n "(cached) " >&6
14271else
14272
14273 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14274 $as_echo_n "(cached) " >&6
14275else
14276 ac_save_CFLAGS="$CFLAGS"
14277 CFLAGS="$CFLAGS $flag"
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279/* end confdefs.h. */
14280int a;
14281_ACEOF
14282if ac_fn_c_try_compile "$LINENO"; then :
14283 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
14284else
14285 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
14286fi
14287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14288 CFLAGS="$ac_save_CFLAGS"
14289
14290fi
14291
14292
14293 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
14294
14295fi
14296
14297fi
14298eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14300$as_echo "$ac_res" >&6; }
14301
14302 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
14303 CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag";
14304fi
14305
14306 done
14307
14308AM_CFLAGS="$AM_CFLAGS $CFLAGS"
14309CFLAGS="$save_CFLAGS"
14310
14311##################################################
14312# Checks for gtk-doc and docbook-tools14197# Checks for gtk-doc and docbook-tools
14313##################################################14198##################################################
1431414199
1431514200
1431614201
1431714202
14318 gtk_doc_requires="gtk-doc >= 1.13"14203 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
14320$as_echo_n "checking for gtk-doc... " >&6; }
14321 if test -n "$PKG_CONFIG" && \
14322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
14323 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
14324 ac_status=$?
14325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14326 test $ac_status = 0; }; then
14327 have_gtk_doc=yes
14328else
14329 have_gtk_doc=no
14330fi
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
14332$as_echo "$have_gtk_doc" >&6; }
14333
14334 if test "$have_gtk_doc" = "no"; then
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14336 You will not be able to create source packages with 'make dist'
14337 because $gtk_doc_requires is not found." >&5
14338$as_echo "$as_me: WARNING:
14339 You will not be able to create source packages with 'make dist'
14340 because $gtk_doc_requires is not found." >&2;}
14341 fi
14342
14343 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14344set dummy gtkdoc-check; ac_word=$214204set dummy gtkdoc-check; ac_word=$2
14345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&514205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14346$as_echo_n "checking for $ac_word... " >&6; }14206$as_echo_n "checking for $ac_word... " >&6; }
14347if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :14207if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
14348 $as_echo_n "(cached) " >&614208 $as_echo_n "(cached) " >&6
14349else14209else
14350 if test -n "$GTKDOC_CHECK"; then14210 case $GTKDOC_CHECK in
14351 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.14211 [\\/]* | ?:[\\/]*)
14352else14212 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
14353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR14213 ;;
14214 *)
14215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14354for as_dir in $PATH14216for as_dir in $PATH
14355do14217do
14356 IFS=$as_save_IFS14218 IFS=$as_save_IFS
14357 test -z "$as_dir" && as_dir=.14219 test -z "$as_dir" && as_dir=.
14358 for ac_exec_ext in '' $ac_executable_extensions; do14220 for ac_exec_ext in '' $ac_executable_extensions; do
14359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then14221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14360 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"14222 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
14361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&514223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14362 break 214224 break 2
14363 fi14225 fi
@@ -14365,9 +14227,10 @@
14365 done14227 done
14366IFS=$as_save_IFS14228IFS=$as_save_IFS
1436714229
14368fi14230 ;;
14369fi14231esac
14370GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK14232fi
14233GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
14371if test -n "$GTKDOC_CHECK"; then14234if test -n "$GTKDOC_CHECK"; then
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&514235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
14373$as_echo "$GTKDOC_CHECK" >&6; }14236$as_echo "$GTKDOC_CHECK" >&6; }
@@ -14377,46 +14240,6 @@
14377fi14240fi
1437814241
1437914242
14380 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14381set dummy gtkdoc-check; ac_word=$2
14382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14383$as_echo_n "checking for $ac_word... " >&6; }
14384if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
14385 $as_echo_n "(cached) " >&6
14386else
14387 case $GTKDOC_CHECK_PATH in
14388 [\\/]* | ?:[\\/]*)
14389 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
14390 ;;
14391 *)
14392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14393for as_dir in $PATH
14394do
14395 IFS=$as_save_IFS
14396 test -z "$as_dir" && as_dir=.
14397 for ac_exec_ext in '' $ac_executable_extensions; do
14398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14399 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
14400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14401 break 2
14402 fi
14403done
14404 done
14405IFS=$as_save_IFS
14406
14407 ;;
14408esac
14409fi
14410GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
14411if test -n "$GTKDOC_CHECK_PATH"; then
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
14413$as_echo "$GTKDOC_CHECK_PATH" >&6; }
14414else
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14416$as_echo "no" >&6; }
14417fi
14418
14419
14420 for ac_prog in gtkdoc-rebase14243 for ac_prog in gtkdoc-rebase
14421do14244do
14422 # Extract the first word of "$ac_prog", so it can be a program name with args.14245 # Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -14523,19 +14346,18 @@
14523fi14346fi
1452414347
1452514348
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&514349 if test x$enable_gtk_doc = xyes; then
14527$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }14350 if test -n "$PKG_CONFIG" && \
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&514351 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.13\""; } >&5
14529$as_echo "$enable_gtk_doc" >&6; }14352 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.13") 2>&5
1453014353 ac_status=$?
14531 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then14354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14532 as_fn_error $? "14355 test $ac_status = 0; }; then
14533 You must have $gtk_doc_requires installed to build documentation for14356 :
14534 $PACKAGE_NAME. Please install gtk-doc or disable building the14357else
14535 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 514358 as_fn_error $? "You need to have gtk-doc >= 1.13 installed to build $PACKAGE_NAME" "$LINENO" 5
14536 fi14359fi
1453714360 if test "x$PACKAGE_NAME" != "xglib"; then
14538 if test "x$PACKAGE_NAME" != "xglib"; then
1453914361
14540pkg_failed=no14362pkg_failed=no
14541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&514363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
@@ -14607,8 +14429,14 @@
14607$as_echo "yes" >&6; }14429$as_echo "yes" >&6; }
1460814430
14609fi14431fi
14432 fi
14610 fi14433 fi
1461114434
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
14436$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
14438$as_echo "$enable_gtk_doc" >&6; }
14439
14612 # Check whether --enable-gtk-doc-html was given.14440 # Check whether --enable-gtk-doc-html was given.
14613if test "${enable_gtk_doc_html+set}" = set; then :14441if test "${enable_gtk_doc_html+set}" = set; then :
14614 enableval=$enable_gtk_doc_html;14442 enableval=$enable_gtk_doc_html;
@@ -14633,14 +14461,6 @@
14633 fi14461 fi
1463414462
1463514463
14636 if test x$have_gtk_doc = xyes; then
14637 HAVE_GTK_DOC_TRUE=
14638 HAVE_GTK_DOC_FALSE='#'
14639else
14640 HAVE_GTK_DOC_TRUE='#'
14641 HAVE_GTK_DOC_FALSE=
14642fi
14643
14644 if test x$enable_gtk_doc = xyes; then14464 if test x$enable_gtk_doc = xyes; then
14645 ENABLE_GTK_DOC_TRUE=14465 ENABLE_GTK_DOC_TRUE=
14646 ENABLE_GTK_DOC_FALSE='#'14466 ENABLE_GTK_DOC_FALSE='#'
@@ -15298,10 +15118,6 @@
15298 as_fn_error $? "conditional \"ENABLE_PIXBUF_LOADER\" was never defined.15118 as_fn_error $? "conditional \"ENABLE_PIXBUF_LOADER\" was never defined.
15299Usually this means the macro was only invoked conditionally." "$LINENO" 515119Usually this means the macro was only invoked conditionally." "$LINENO" 5
15300fi15120fi
15301if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
15302 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
15303Usually this means the macro was only invoked conditionally." "$LINENO" 5
15304fi
15305if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then15121if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
15306 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.15122 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
15307Usually this means the macro was only invoked conditionally." "$LINENO" 515123Usually this means the macro was only invoked conditionally." "$LINENO" 5
@@ -15731,7 +15547,7 @@
15731# report actual input values of CONFIG_FILES etc. instead of their15547# report actual input values of CONFIG_FILES etc. instead of their
15732# values after options handling.15548# values after options handling.
15733ac_log="15549ac_log="
15734This file was extended by RSVG $as_me 2.40.6, which was15550This file was extended by RSVG $as_me 2.40.7, which was
15735generated by GNU Autoconf 2.69. Invocation command line was15551generated by GNU Autoconf 2.69. Invocation command line was
1573615552
15737 CONFIG_FILES = $CONFIG_FILES15553 CONFIG_FILES = $CONFIG_FILES
@@ -15797,7 +15613,7 @@
15797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=115613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15798ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"15614ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15799ac_cs_version="\\15615ac_cs_version="\\
15800RSVG config.status 2.40.615616RSVG config.status 2.40.7
15801configured by $0, generated by GNU Autoconf 2.69,15617configured by $0, generated by GNU Autoconf 2.69,
15802 with options \\"\$ac_cs_config\\"15618 with options \\"\$ac_cs_config\\"
1580315619
1580415620
=== added file 'configure.ac'
--- configure.ac 1970-01-01 00:00:00 +0000
+++ configure.ac 2015-02-16 19:51:53 +0000
@@ -0,0 +1,294 @@
1m4_define([rsvg_major_version],[2])
2m4_define([rsvg_minor_version],[40])
3m4_define([rsvg_micro_version],[7])
4m4_define([rsvg_extra_version],[])
5m4_define([rsvg_version],[rsvg_major_version.rsvg_minor_version.rsvg_micro_version()rsvg_extra_version])
6m4_define([rsvg_lt_version_info],m4_eval(rsvg_major_version + rsvg_minor_version):rsvg_micro_version:rsvg_minor_version)
7
8AC_INIT([RSVG],[rsvg_version],[https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg],[librsvg])
9
10AC_CONFIG_HEADERS([config.h])
11AC_CONFIG_SRCDIR([rsvg.h])
12AC_CONFIG_MACRO_DIR([m4])
13
14AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2])
15m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
16
17AM_MAINTAINER_MODE([enable])
18
19dnl ===========================================================================
20dnl API versioning
21dnl ===========================================================================
22
23RSVG_API_VERSION=2.0
24RSVG_API_MAJOR_VERSION=2
25RSVG_API_MINOR_VERSION=0
26
27AC_SUBST([RSVG_API_VERSION])
28AC_SUBST([RSVG_API_MAJOR_VERSION])
29AC_SUBST([RSVG_API_MINOR_VERSION])
30AC_SUBST([RSVG_API_VERSION_U],[AS_TR_SH([$RSVG_API_VERSION])])
31
32dnl ===========================================================================
33
34GLIB_REQUIRED=2.12.0
35GIO_REQUIRED=2.24.0
36LIBXML_REQUIRED=2.7.0
37CAIRO_REQUIRED=1.2.0
38PANGOCAIRO_REQUIRED=1.32.6
39GDK_PIXBUF_REQUIRED=2.20
40GTK3_REQUIRED=3.2.0
41CROCO_REQUIRED=0.6.1
42
43# ===========================================================================
44
45AC_SUBST([RSVG_LT_VERSION_INFO],[rsvg_lt_version_info])
46AC_SUBST([LIBRSVG_MAJOR_VERSION],[rsvg_major_version])
47AC_SUBST([LIBRSVG_MINOR_VERSION],[rsvg_minor_version])
48AC_SUBST([LIBRSVG_MICRO_VERSION],[rsvg_micro_version])
49
50dnl ===========================================================================
51
52AC_PROG_LN_S
53AC_ISC_POSIX
54AC_PROG_CC
55AC_PROG_CPP
56AC_PROG_AWK
57AC_STDC_HEADERS
58AM_PROG_CC_C_O
59
60AC_C_BIGENDIAN
61
62PKG_PROG_PKG_CONFIG
63
64LT_INIT([win32-dll])
65LT_LIB_M
66
67dnl ===========================================================================
68
69#AC_CANONICAL_HOST
70
71AC_MSG_CHECKING([for some Win32 platform])
72case "$host" in
73 *-*-mingw*|*-*-cygwin*)
74 platform_win32=yes
75 ;;
76 *)
77 platform_win32=no
78 ;;
79esac
80AC_MSG_RESULT([$platform_win32])
81AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
82
83AC_MSG_CHECKING([for native Win32])
84case "$host" in
85 *-*-mingw*)
86 native_win32=yes
87 ;;
88 *)
89 native_win32=no
90 ;;
91esac
92AC_MSG_RESULT([$native_win32])
93AM_CONDITIONAL(OS_WIN32, test "$native_win32" = "yes")
94
95dnl ===========================================================================
96
97GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
98AC_SUBST(GLIB_MKENUMS)
99
100PKG_CHECK_MODULES(LIBRSVG, \
101 gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED \
102 glib-2.0 >= $GLIB_REQUIRED \
103 gio-2.0 >= $GIO_REQUIRED \
104 libxml-2.0 >= $LIBXML_REQUIRED \
105 pangocairo >= $PANGOCAIRO_REQUIRED \
106 cairo >= $CAIRO_REQUIRED \
107 cairo-png >= $CAIRO_REQUIRED
108 libcroco-0.6 >= $CROCO_REQUIRED)
109
110PKG_CHECK_MODULES([GTHREAD],[gthread-2.0 >= $GLIB_REQUIRED])
111
112PKG_CHECK_MODULES([GMODULE],[gmodule-2.0])
113
114case "$host" in
115 *-*-mingw*)
116 PKG_CHECK_MODULES([RSVG_CONVERT],[gio-2.0 gio-windows-2.0 gdk-pixbuf-2.0 cairo pangocairo])
117 ;;
118 *)
119 PKG_CHECK_MODULES([RSVG_CONVERT],[gio-2.0 gio-unix-2.0 gdk-pixbuf-2.0 cairo pangocairo])
120 ;;
121esac
122
123dnl ===========================================================================
124
125AC_CHECK_FUNCS(strtok_r)
126
127# ===========================================================================
128# GTK
129# ===========================================================================
130
131PKG_CHECK_MODULES([GTK3],[gtk+-3.0 >= $GTK3_REQUIRED],[have_gtk_3=yes],[have_gtk_3=no])
132
133GTK3_BINARY_VERSION=
134
135if test "$have_gtk_3" = "yes"; then
136 GTK3_BINARY_VERSION="`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`"
137fi
138
139AC_SUBST([GTK3_BINARY_VERSION])
140
141AM_CONDITIONAL([HAVE_GTK_3],[test "$have_gtk_3" = "yes"])
142
143dnl ===========================================================================
144dnl GDK-Pixbuf SVG loader
145dnl ===========================================================================
146
147AC_MSG_CHECKING([whether to build the GDK-Pixbuf SVG loader])
148AC_ARG_ENABLE([pixbuf-loader],
149 [AS_HELP_STRING([--disable-pixbuf-loader],[Disable a RSVG based GdkPixbuf loader (default=yes)])],
150 [],[enable_pixbuf_loader=yes])
151AC_MSG_RESULT([$enable_pixbuf_loader])
152
153gdk_pixbuf_moduledir=
154if test "$enable_pixbuf_loader" = "yes"; then
155 PKG_CHECK_MODULES([GDK_PIXBUF],[gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED])
156
157 AC_PATH_PROGS([GDK_PIXBUF_QUERYLOADERS],[gdk-pixbuf-query-loaders gdk-pixbuf-query-loaders-64 gdk-pixbuf-query-loaders-32],[none])
158
159 if test "x$GDK_PIXBUF_QUERYLOADERS" = "xnone"; then
160 AC_MSG_ERROR([gdk-pixbuf-query-loaders not found in path])
161 fi
162
163 # First try the standalone gdk-pixbuf
164 gdk_pixbuf_binary_version="`$PKG_CONFIG --variable=gdk_pixbuf_binary_version gdk-pixbuf-2.0`"
165 gdk_pixbuf_binarydir="`$PKG_CONFIG --variable=gdk_pixbuf_binarydir gdk-pixbuf-2.0`"
166 gdk_pixbuf_moduledir=`$PKG_CONFIG --variable gdk_pixbuf_moduledir gdk-pixbuf-2.0`
167 gdk_pixbuf_cache_file=`$PKG_CONFIG --variable gdk_pixbuf_cache_file gdk-pixbuf-2.0`
168fi
169
170AC_SUBST([gdk_pixbuf_binary_version])
171AC_SUBST([gdk_pixbuf_binarydir])
172AC_SUBST([gdk_pixbuf_moduledir])
173AC_SUBST([gdk_pixbuf_cache_file])
174
175AM_CONDITIONAL([ENABLE_PIXBUF_LOADER],[test "$enable_pixbuf_loader" = "yes"])
176
177##########################################################
178# Check for -Bsymbolic-functions linker flag used to avoid
179# intra-library PLT jumps, if available.
180##########################################################
181
182AC_ARG_ENABLE([Bsymbolic],
183 [AS_HELP_STRING([--disable-Bsymbolic],
184 [disable linking with -Bsymbolic])],
185 [],[enable_Bsymbolic=yes])
186
187BSYMBOLIC_LDFLAG=
188if test "$enable_Bsymbolic" != "no"; then
189 CC_CHECK_LDFLAGS(["-Wl,-Bsymbolic-functions"],
190 [BSYMBOLIC_LDFLAG="-Wl,-Bsymbolic-functions"],
191 [if test "$enable_Bsymbolic" = "auto"; then
192 AC_MSG_WARN([-Bsymbolic not supported by ld; disabling])
193 enable_Bsymbolic=no
194 else
195 AC_MSG_ERROR([-Bsymbolic requested but not supported by ld. Use --disable-Bsymbolic to disable])
196 fi])
197fi
198
199AC_SUBST([BSYMBOLIC_LDFLAG])
200
201##################################################
202# Checks for gtk-doc and docbook-tools
203##################################################
204
205GTK_DOC_CHECK([1.13],[--flavour no-tmpl])
206
207AC_SUBST([GLIB_PREFIX],[$($PKG_CONFIG --variable=prefix glib-2.0)])
208AC_SUBST([GDK_PIXBUF_PREFIX],[$($PKG_CONFIG --variable=prefix gdk-pixbuf-2.0)])
209AC_SUBST([GTK_PREFIX],[$($PKG_CONFIG --variable=prefix gdk-pixbuf-2.0)])
210AC_SUBST([CAIRO_PREFIX],[$($PKG_CONFIG --variable=prefix cairo)])
211
212dnl ===========================================================================
213dnl Do we build the miscellaenous tools provided with librsvg ?
214
215AC_ARG_ENABLE(tools,
216 AC_HELP_STRING([--disable-tools],
217 [do not build miscellaenous tools [default=no]]),
218 [build_misc_tools=$enableval],
219 [build_misc_tools=yes])
220
221AC_MSG_CHECKING(whether to build miscellaenous tools)
222if test "x$build_misc_tools" = "xyes" ; then
223 AC_MSG_RESULT(yes)
224else
225 AC_MSG_RESULT(no)
226fi
227AM_CONDITIONAL([BUILD_MISC_TOOLS], [test "x$build_misc_tools" = "xyes"])
228
229dnl ===========================================================================
230dnl Build introspectable bindings
231
232# No automagic please!
233if test -z "$enable_introspection"; then
234 enable_introspection=yes
235fi
236
237GOBJECT_INTROSPECTION_CHECK([0.10.8])
238
239# Vala bindings
240VAPIGEN_CHECK([0.17.1.26],,,[no])
241
242dnl ===========================================================================
243
244m4_copy([AC_DEFUN],[glib_DEFUN])
245glib_DEFUN([GLIB_LC_MESSAGES],
246 [AC_CHECK_HEADERS([locale.h])
247 if test $ac_cv_header_locale_h = yes; then
248 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
249 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
250 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
251 if test $am_cv_val_LC_MESSAGES = yes; then
252 AC_DEFINE(HAVE_LC_MESSAGES, 1,
253 [Define if your <locale.h> file defines LC_MESSAGES.])
254 fi
255 fi])
256
257GLIB_LC_MESSAGES
258
259dnl ===========================================================================
260
261AC_SUBST([AM_CPPFLAGS])
262AC_SUBST([AM_CFLAGS])
263AC_SUBST([AM_LDFLAGS])
264
265AC_CONFIG_FILES([
266librsvg-features.h
267Makefile
268librsvg-zip
269gdk-pixbuf-loader/Makefile
270tests/Makefile
271tests/pdiff/Makefile
272tools/Makefile
273doc/Makefile
274doc/version.xml
275])
276
277AC_CONFIG_FILES([librsvg-${RSVG_API_VERSION}.pc:librsvg.pc.in],[],[RSVG_API_VERSION=$RSVG_API_VERSION])
278AC_CONFIG_FILES([librsvg-${RSVG_API_VERSION}-uninstalled.pc:librsvg-uninstalled.pc.in],[],[RSVG_API_VERSION=$RSVG_API_VERSION])
279
280AC_OUTPUT
281
282dnl =============================================================================================
283echo "
284librsvg-$VERSION
285
286 prefix: ${prefix}
287 compiler: ${CC}
288
289 Build introspectable bindings: ${found_introspection}
290 Build Vala bindings: ${enable_vala}
291 Build GdkPixbuf loader: ${enable_pixbuf_loader}
292 GTK 3.0: ${have_gtk_3}
293 Build miscellaenous tools: ${build_misc_tools}
294"
0295
=== removed file 'configure.in'
--- configure.in 2014-12-10 10:09:37 +0000
+++ configure.in 1970-01-01 00:00:00 +0000
@@ -1,319 +0,0 @@
1m4_define([rsvg_major_version],[2])
2m4_define([rsvg_minor_version],[40])
3m4_define([rsvg_micro_version],[6])
4m4_define([rsvg_extra_version],[])
5m4_define([rsvg_version],[rsvg_major_version.rsvg_minor_version.rsvg_micro_version()rsvg_extra_version])
6m4_define([rsvg_lt_version_info],m4_eval(rsvg_major_version + rsvg_minor_version):rsvg_micro_version:rsvg_minor_version)
7
8AC_INIT([RSVG],[rsvg_version],[https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg],[librsvg])
9
10AC_CONFIG_HEADERS([config.h])
11AC_CONFIG_SRCDIR([rsvg.h])
12AC_CONFIG_MACRO_DIR([m4])
13
14AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2])
15m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
16
17AM_MAINTAINER_MODE([enable])
18
19dnl ===========================================================================
20dnl API versioning
21dnl ===========================================================================
22
23RSVG_API_VERSION=2.0
24RSVG_API_MAJOR_VERSION=2
25RSVG_API_MINOR_VERSION=0
26
27AC_SUBST([RSVG_API_VERSION])
28AC_SUBST([RSVG_API_MAJOR_VERSION])
29AC_SUBST([RSVG_API_MINOR_VERSION])
30AC_SUBST([RSVG_API_VERSION_U],[AS_TR_SH([$RSVG_API_VERSION])])
31
32dnl ===========================================================================
33
34GLIB_REQUIRED=2.12.0
35GIO_REQUIRED=2.24.0
36LIBXML_REQUIRED=2.7.0
37CAIRO_REQUIRED=1.2.0
38PANGOCAIRO_REQUIRED=1.32.6
39GDK_PIXBUF_REQUIRED=2.20
40GTK3_REQUIRED=3.2.0
41CROCO_REQUIRED=0.6.1
42
43# ===========================================================================
44
45AC_SUBST([RSVG_LT_VERSION_INFO],[rsvg_lt_version_info])
46AC_SUBST([LIBRSVG_MAJOR_VERSION],[rsvg_major_version])
47AC_SUBST([LIBRSVG_MINOR_VERSION],[rsvg_minor_version])
48AC_SUBST([LIBRSVG_MICRO_VERSION],[rsvg_micro_version])
49
50dnl ===========================================================================
51
52AC_PROG_LN_S
53AC_ISC_POSIX
54AC_PROG_CC
55AC_PROG_CPP
56AC_PROG_AWK
57AC_STDC_HEADERS
58AM_PROG_CC_C_O
59
60AC_C_BIGENDIAN
61
62PKG_PROG_PKG_CONFIG
63
64LT_INIT([win32-dll])
65LT_LIB_M
66
67dnl ===========================================================================
68
69#AC_CANONICAL_HOST
70
71AC_MSG_CHECKING([for some Win32 platform])
72case "$host" in
73 *-*-mingw*|*-*-cygwin*)
74 platform_win32=yes
75 ;;
76 *)
77 platform_win32=no
78 ;;
79esac
80AC_MSG_RESULT([$platform_win32])
81AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
82
83AC_MSG_CHECKING([for native Win32])
84case "$host" in
85 *-*-mingw*)
86 native_win32=yes
87 ;;
88 *)
89 native_win32=no
90 ;;
91esac
92AC_MSG_RESULT([$native_win32])
93AM_CONDITIONAL(OS_WIN32, test "$native_win32" = "yes")
94
95dnl ===========================================================================
96
97GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
98AC_SUBST(GLIB_MKENUMS)
99
100PKG_CHECK_MODULES(LIBRSVG, \
101 gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED \
102 glib-2.0 >= $GLIB_REQUIRED \
103 gio-2.0 >= $GIO_REQUIRED \
104 libxml-2.0 >= $LIBXML_REQUIRED \
105 pangocairo >= $PANGOCAIRO_REQUIRED \
106 cairo >= $CAIRO_REQUIRED \
107 cairo-png >= $CAIRO_REQUIRED
108 libcroco-0.6 >= $CROCO_REQUIRED)
109
110PKG_CHECK_MODULES([GTHREAD],[gthread-2.0 >= $GLIB_REQUIRED])
111
112PKG_CHECK_MODULES([GMODULE],[gmodule-2.0])
113
114case "$host" in
115 *-*-mingw*)
116 PKG_CHECK_MODULES([RSVG_CONVERT],[gio-2.0 gio-windows-2.0 gdk-pixbuf-2.0 cairo pangocairo])
117 ;;
118 *)
119 PKG_CHECK_MODULES([RSVG_CONVERT],[gio-2.0 gio-unix-2.0 gdk-pixbuf-2.0 cairo pangocairo])
120 ;;
121esac
122
123dnl ===========================================================================
124
125AC_CHECK_FUNCS(strtok_r)
126
127# ===========================================================================
128# GTK
129# ===========================================================================
130
131PKG_CHECK_MODULES([GTK3],[gtk+-3.0 >= $GTK3_REQUIRED],[have_gtk_3=yes],[have_gtk_3=no])
132
133GTK3_BINARY_VERSION=
134
135if test "$have_gtk_3" = "yes"; then
136 GTK3_BINARY_VERSION="`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`"
137fi
138
139AC_SUBST([GTK3_BINARY_VERSION])
140
141AM_CONDITIONAL([HAVE_GTK_3],[test "$have_gtk_3" = "yes"])
142
143dnl ===========================================================================
144dnl GDK-Pixbuf SVG loader
145dnl ===========================================================================
146
147AC_MSG_CHECKING([whether to build the GDK-Pixbuf SVG loader])
148AC_ARG_ENABLE([pixbuf-loader],
149 [AS_HELP_STRING([--disable-pixbuf-loader],[Disable a RSVG based GdkPixbuf loader (default=yes)])],
150 [],[enable_pixbuf_loader=yes])
151AC_MSG_RESULT([$enable_pixbuf_loader])
152
153gdk_pixbuf_moduledir=
154if test "$enable_pixbuf_loader" = "yes"; then
155 PKG_CHECK_MODULES([GDK_PIXBUF],[gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED])
156
157 AC_PATH_PROGS([GDK_PIXBUF_QUERYLOADERS],[gdk-pixbuf-query-loaders gdk-pixbuf-query-loaders-64 gdk-pixbuf-query-loaders-32],[none])
158
159 if test "x$GDK_PIXBUF_QUERYLOADERS" = "xnone"; then
160 AC_MSG_ERROR([gdk-pixbuf-query-loaders not found in path])
161 fi
162
163 # First try the standalone gdk-pixbuf
164 gdk_pixbuf_binary_version="`$PKG_CONFIG --variable=gdk_pixbuf_binary_version gdk-pixbuf-2.0`"
165 gdk_pixbuf_binarydir="`$PKG_CONFIG --variable=gdk_pixbuf_binarydir gdk-pixbuf-2.0`"
166 gdk_pixbuf_moduledir=`$PKG_CONFIG --variable gdk_pixbuf_moduledir gdk-pixbuf-2.0`
167 gdk_pixbuf_cache_file=`$PKG_CONFIG --variable gdk_pixbuf_cache_file gdk-pixbuf-2.0`
168fi
169
170AC_SUBST([gdk_pixbuf_binary_version])
171AC_SUBST([gdk_pixbuf_binarydir])
172AC_SUBST([gdk_pixbuf_moduledir])
173AC_SUBST([gdk_pixbuf_cache_file])
174
175AM_CONDITIONAL([ENABLE_PIXBUF_LOADER],[test "$enable_pixbuf_loader" = "yes"])
176
177##########################################################
178# Check for -Bsymbolic-functions linker flag used to avoid
179# intra-library PLT jumps, if available.
180##########################################################
181
182AC_ARG_ENABLE([Bsymbolic],
183 [AS_HELP_STRING([--disable-Bsymbolic],
184 [disable linking with -Bsymbolic])],
185 [],[enable_Bsymbolic=yes])
186
187BSYMBOLIC_LDFLAG=
188if test "$enable_Bsymbolic" != "no"; then
189 CC_CHECK_LDFLAGS(["-Wl,-Bsymbolic-functions"],
190 [BSYMBOLIC_LDFLAG="-Wl,-Bsymbolic-functions"],
191 [if test "$enable_Bsymbolic" = "auto"; then
192 AC_MSG_WARN([-Bsymbolic not supported by ld; disabling])
193 enable_Bsymbolic=no
194 else
195 AC_MSG_ERROR([-Bsymbolic requested but not supported by ld. Use --disable-Bsymbolic to disable])
196 fi])
197fi
198
199AC_SUBST([BSYMBOLIC_LDFLAG])
200
201##################################################
202# Compiler warnings
203##################################################
204
205save_CFLAGS="$CFLAGS"
206CFLAGS=
207CC_CHECK_CFLAGS_APPEND([ \
208 -Wall -Wextra \
209 -Wunused -Wreturn-type -Wswitch -Wcomment -Wtrigraphs \
210 -Wchar-subscripts -Wparentheses -Winline -Wredundant-decls \
211 -Wformat-nonliteral -Werror=format-security \
212 -Wsign-compare -Werror=implicit-function-declaration \
213 -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
214 -Wnoaggregate-return -Wcast-align -Wimplicit -Wuninitialized \
215 -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
216 -Wpacked -Wmissing-format-attribute -Wshadow \
217 -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \
218 -Wdeclaration-after-statement -Wold-style-definition \
219 -Wno-missing-field-initializers -Wno-unused-parameter \
220 -Wunused-variable -Wunused-function \
221 -Wempty-body -Wno-switch-enum \
222 -fno-common])
223AM_CFLAGS="$AM_CFLAGS $CFLAGS"
224CFLAGS="$save_CFLAGS"
225
226##################################################
227# Checks for gtk-doc and docbook-tools
228##################################################
229
230GTK_DOC_CHECK([1.13],[--flavour no-tmpl])
231
232AC_SUBST([GLIB_PREFIX],[$($PKG_CONFIG --variable=prefix glib-2.0)])
233AC_SUBST([GDK_PIXBUF_PREFIX],[$($PKG_CONFIG --variable=prefix gdk-pixbuf-2.0)])
234AC_SUBST([GTK_PREFIX],[$($PKG_CONFIG --variable=prefix gdk-pixbuf-2.0)])
235AC_SUBST([CAIRO_PREFIX],[$($PKG_CONFIG --variable=prefix cairo)])
236
237dnl ===========================================================================
238dnl Do we build the miscellaenous tools provided with librsvg ?
239
240AC_ARG_ENABLE(tools,
241 AC_HELP_STRING([--disable-tools],
242 [do not build miscellaenous tools [default=no]]),
243 [build_misc_tools=$enableval],
244 [build_misc_tools=yes])
245
246AC_MSG_CHECKING(whether to build miscellaenous tools)
247if test "x$build_misc_tools" = "xyes" ; then
248 AC_MSG_RESULT(yes)
249else
250 AC_MSG_RESULT(no)
251fi
252AM_CONDITIONAL([BUILD_MISC_TOOLS], [test "x$build_misc_tools" = "xyes"])
253
254dnl ===========================================================================
255dnl Build introspectable bindings
256
257# No automagic please!
258if test -z "$enable_introspection"; then
259 enable_introspection=yes
260fi
261
262GOBJECT_INTROSPECTION_CHECK([0.10.8])
263
264# Vala bindings
265VAPIGEN_CHECK([0.17.1.26],,,[no])
266
267dnl ===========================================================================
268
269m4_copy([AC_DEFUN],[glib_DEFUN])
270glib_DEFUN([GLIB_LC_MESSAGES],
271 [AC_CHECK_HEADERS([locale.h])
272 if test $ac_cv_header_locale_h = yes; then
273 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
274 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
275 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
276 if test $am_cv_val_LC_MESSAGES = yes; then
277 AC_DEFINE(HAVE_LC_MESSAGES, 1,
278 [Define if your <locale.h> file defines LC_MESSAGES.])
279 fi
280 fi])
281
282GLIB_LC_MESSAGES
283
284dnl ===========================================================================
285
286AC_SUBST([AM_CPPFLAGS])
287AC_SUBST([AM_CFLAGS])
288AC_SUBST([AM_LDFLAGS])
289
290AC_CONFIG_FILES([
291librsvg-features.h
292Makefile
293librsvg-zip
294gdk-pixbuf-loader/Makefile
295tests/Makefile
296tests/pdiff/Makefile
297tools/Makefile
298doc/Makefile
299doc/version.xml
300])
301
302AC_CONFIG_FILES([librsvg-${RSVG_API_VERSION}.pc:librsvg.pc.in],[],[RSVG_API_VERSION=$RSVG_API_VERSION])
303AC_CONFIG_FILES([librsvg-${RSVG_API_VERSION}-uninstalled.pc:librsvg-uninstalled.pc.in],[],[RSVG_API_VERSION=$RSVG_API_VERSION])
304
305AC_OUTPUT
306
307dnl =============================================================================================
308echo "
309librsvg-$VERSION
310
311 prefix: ${prefix}
312 compiler: ${CC}
313
314 Build introspectable bindings: ${found_introspection}
315 Build Vala bindings: ${enable_vala}
316 Build GdkPixbuf loader: ${enable_pixbuf_loader}
317 GTK 3.0: ${have_gtk_3}
318 Build miscellaenous tools: ${build_misc_tools}
319"
3200
=== modified file 'debian/changelog'
--- debian/changelog 2014-12-10 10:09:37 +0000
+++ debian/changelog 2015-02-16 19:51:53 +0000
@@ -1,3 +1,9 @@
1librsvg (2.40.7-0ubuntu1) vivid; urgency=medium
2
3 * New upstream release.
4
5 -- Jackson Doak <noskcaj@ubuntu.com> Tue, 17 Feb 2015 06:21:11 +1100
6
1librsvg (2.40.6-1) experimental; urgency=medium7librsvg (2.40.6-1) experimental; urgency=medium
28
3 * New upstream release 2.40.6.9 * New upstream release 2.40.6.
410
=== modified file 'debian/control'
--- debian/control 2014-12-10 10:09:37 +0000
+++ debian/control 2015-02-16 19:51:53 +0000
@@ -5,7 +5,8 @@
5Source: librsvg5Source: librsvg
6Section: libs6Section: libs
7Priority: optional7Priority: optional
8Maintainer: Josselin Mouette <joss@debian.org>8Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
9XSBC-Original-Maintainer: Josselin Mouette <joss@debian.org>
9Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>, Iain Lane <laney@debian.org>, Michael Biebl <biebl@debian.org>10Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>, Iain Lane <laney@debian.org>, Michael Biebl <biebl@debian.org>
10Build-Depends: cdbs (>= 0.4.93),11Build-Depends: cdbs (>= 0.4.93),
11 debhelper (>= 8.1.3),12 debhelper (>= 8.1.3),
1213
=== modified file 'debian/control.in'
--- debian/control.in 2014-10-14 16:46:07 +0000
+++ debian/control.in 2015-02-16 19:51:53 +0000
@@ -1,7 +1,8 @@
1Source: librsvg1Source: librsvg
2Section: libs2Section: libs
3Priority: optional3Priority: optional
4Maintainer: Josselin Mouette <joss@debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Josselin Mouette <joss@debian.org>
5Uploaders: @GNOME_TEAM@6Uploaders: @GNOME_TEAM@
6Build-Depends: cdbs (>= 0.4.93),7Build-Depends: cdbs (>= 0.4.93),
7 debhelper (>= 8.1.3),8 debhelper (>= 8.1.3),
89
=== modified file 'debian/patches/20_rsvg_compat.patch'
--- debian/patches/20_rsvg_compat.patch 2014-08-19 01:59:58 +0000
+++ debian/patches/20_rsvg_compat.patch 2015-02-16 19:51:53 +0000
@@ -1,17 +1,19 @@
1Index: librsvg-2.40.3/rsvg-convert.c1---
2===================================================================2 rsvg-convert.c | 27 +++++++++++++++++++++++----
3--- librsvg-2.40.3.orig/rsvg-convert.c 2014-08-19 01:55:20.857179988 +02003 1 file changed, 23 insertions(+), 4 deletions(-)
4+++ librsvg-2.40.3/rsvg-convert.c 2014-08-19 01:55:20.853179920 +02004
5@@ -115,6 +115,8 @@5--- a/rsvg-convert.c
6+++ b/rsvg-convert.c
7@@ -125,6 +125,8 @@ main (int argc, char **argv)
6 RsvgHandleFlags flags = RSVG_HANDLE_FLAGS_NONE;8 RsvgHandleFlags flags = RSVG_HANDLE_FLAGS_NONE;
7 RsvgDimensionData dimensions;9 RsvgDimensionData dimensions;
8 FILE *output_file = stdout;10 FILE *output_file = stdout;
9+ char *basename;11+ char *basename;
10+ gboolean rsvg_compat = FALSE;12+ gboolean rsvg_compat = FALSE;
11 13
12 GOptionEntry options_table[] = {14 #ifdef G_OS_WIN32
13 {"dpi-x", 'd', 0, G_OPTION_ARG_DOUBLE, &dpi_x,15 HANDLE handle;
14@@ -168,6 +170,27 @@16@@ -182,6 +184,27 @@ main (int argc, char **argv)
15 return 0;17 return 0;
16 }18 }
17 19
@@ -39,7 +41,7 @@
39 if (output != NULL) {41 if (output != NULL) {
40 output_file = fopen (output, "wb");42 output_file = fopen (output, "wb");
41 if (!output_file) {43 if (!output_file) {
42@@ -179,10 +202,6 @@44@@ -193,10 +216,6 @@ main (int argc, char **argv)
43 g_free (output);45 g_free (output);
44 }46 }
45 47
4648
=== modified file 'doc/Makefile.in'
--- doc/Makefile.in 2014-12-10 10:09:37 +0000
+++ doc/Makefile.in 2015-02-16 19:51:53 +0000
@@ -1,4 +1,4 @@
1# Makefile.in generated by automake 1.14.1 from Makefile.am.1# Makefile.in generated by automake 1.13.4 from Makefile.am.
2# @configure_input@2# @configure_input@
33
4# Copyright (C) 1994-2013 Free Software Foundation, Inc.4# Copyright (C) 1994-2013 Free Software Foundation, Inc.
@@ -91,7 +91,7 @@
91 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \91 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
92 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \92 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
93 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/vapigen.m4 \93 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/vapigen.m4 \
94 $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in94 $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
95am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \95am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
96 $(ACLOCAL_M4)96 $(ACLOCAL_M4)
97mkinstalldirs = $(install_sh) -d97mkinstalldirs = $(install_sh) -d
@@ -165,7 +165,6 @@
165GTK3_CFLAGS = @GTK3_CFLAGS@165GTK3_CFLAGS = @GTK3_CFLAGS@
166GTK3_LIBS = @GTK3_LIBS@166GTK3_LIBS = @GTK3_LIBS@
167GTKDOC_CHECK = @GTKDOC_CHECK@167GTKDOC_CHECK = @GTKDOC_CHECK@
168GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
169GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@168GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
170GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@169GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
171GTKDOC_MKPDF = @GTKDOC_MKPDF@170GTKDOC_MKPDF = @GTKDOC_MKPDF@
@@ -464,11 +463,11 @@
464 $(DOC_MODULE)-undeclared.txt \463 $(DOC_MODULE)-undeclared.txt \
465 $(DOC_MODULE)-unused.txt464 $(DOC_MODULE)-unused.txt
466465
467CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) gtkdoc-check.test466CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS)
468@GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP = 467@ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP =
469@GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp468@ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp
470@GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP = 469@ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP =
471@GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp470@ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp
472471
473#### setup ####472#### setup ####
474GTK_DOC_V_SETUP = $(GTK_DOC_V_SETUP_$(V))473GTK_DOC_V_SETUP = $(GTK_DOC_V_SETUP_$(V))
@@ -584,7 +583,6 @@
584 dist-hook583 dist-hook
585check-am: all-am584check-am: all-am
586check: check-am585check: check-am
587@ENABLE_GTK_DOC_FALSE@all-local:
588all-am: Makefile all-local586all-am: Makefile all-local
589installdirs:587installdirs:
590install: install-am588install: install-am
@@ -702,15 +700,8 @@
702 uninstall-am uninstall-local700 uninstall-am uninstall-local
703701
704702
705gtkdoc-check.test: Makefile703@ENABLE_GTK_DOC_TRUE@all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
706 $(AM_V_GEN)echo "#!/bin/sh -e" > $@; \704@ENABLE_GTK_DOC_FALSE@all-local:
707 echo "$(GTKDOC_CHECK_PATH) || exit 1" >> $@; \
708 chmod +x $@
709
710all-gtk-doc: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
711.PHONY: all-gtk-doc
712
713@ENABLE_GTK_DOC_TRUE@all-local: all-gtk-doc
714705
715docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)706docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
716707
@@ -721,16 +712,14 @@
721 files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \712 files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \
722 if test "x$$files" != "x" ; then \713 if test "x$$files" != "x" ; then \
723 for file in $$files ; do \714 for file in $$files ; do \
724 destdir=`dirname $(abs_builddir)/$$file`; \
725 test -d "$$destdir" || mkdir -p "$$destdir"; \
726 test -f $(abs_srcdir)/$$file && \715 test -f $(abs_srcdir)/$$file && \
727 cp -pf $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \716 cp -pu $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \
728 done; \717 done; \
729 fi; \718 fi; \
730 fi719 fi
731 $(AM_V_at)touch setup-build.stamp720 $(AM_V_at)touch setup-build.stamp
732721
733scan-build.stamp: setup-build.stamp $(HFILE_GLOB) $(CFILE_GLOB)722scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
734 $(GTK_DOC_V_SCAN)_source_dir='' ; \723 $(GTK_DOC_V_SCAN)_source_dir='' ; \
735 for i in $(DOC_SOURCE_DIR) ; do \724 for i in $(DOC_SOURCE_DIR) ; do \
736 _source_dir="$${_source_dir} --source-dir=$$i" ; \725 _source_dir="$${_source_dir} --source-dir=$$i" ; \
@@ -819,9 +808,6 @@
819clean-local:808clean-local:
820 @rm -f *~ *.bak809 @rm -f *~ *.bak
821 @rm -rf .libs810 @rm -rf .libs
822 @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-types" ; then \
823 rm -f $(DOC_MODULE).types; \
824 fi
825811
826distclean-local:812distclean-local:
827 @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \813 @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \
@@ -866,14 +852,12 @@
866#852#
867# Require gtk-doc when making dist853# Require gtk-doc when making dist
868#854#
869@HAVE_GTK_DOC_TRUE@dist-check-gtkdoc: docs855@ENABLE_GTK_DOC_TRUE@dist-check-gtkdoc: docs
870@HAVE_GTK_DOC_FALSE@dist-check-gtkdoc:856@ENABLE_GTK_DOC_FALSE@dist-check-gtkdoc:
871@HAVE_GTK_DOC_FALSE@ @echo "*** gtk-doc is needed to run 'make dist'. ***"857@ENABLE_GTK_DOC_FALSE@ @echo "*** gtk-doc must be installed and enabled in order to make dist"
872@HAVE_GTK_DOC_FALSE@ @echo "*** gtk-doc was not found when 'configure' ran. ***"858@ENABLE_GTK_DOC_FALSE@ @false
873@HAVE_GTK_DOC_FALSE@ @echo "*** please install gtk-doc and rerun 'configure'. ***"
874@HAVE_GTK_DOC_FALSE@ @false
875859
876dist-hook: dist-check-gtkdoc all-gtk-doc dist-hook-local860dist-hook: dist-check-gtkdoc dist-hook-local
877 @mkdir $(distdir)/html861 @mkdir $(distdir)/html
878 @cp ./html/* $(distdir)/html862 @cp ./html/* $(distdir)/html
879 @-cp ./$(DOC_MODULE).pdf $(distdir)/863 @-cp ./$(DOC_MODULE).pdf $(distdir)/
880864
=== modified file 'doc/html/RsvgHandle.html'
--- doc/html/RsvgHandle.html 2014-12-10 10:09:37 +0000
+++ doc/html/RsvgHandle.html 2015-02-16 19:51:53 +0000
@@ -2,28 +2,34 @@
2<html>2<html>
3<head>3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>RSVG Libary Reference Manual: RsvgHandle</title>5<title>RsvgHandle</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">6<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7<link rel="home" href="index.html" title="RSVG Libary Reference Manual">7<link rel="home" href="index.html" title="RSVG Libary Reference Manual">
8<link rel="up" href="rsvg.html" title="Part I. API Reference">8<link rel="up" href="rsvg.html" title="Part I. API Reference">
9<link rel="prev" href="rsvg.html" title="Part I. API Reference">9<link rel="prev" href="rsvg.html" title="Part I. API Reference">
10<link rel="next" href="rsvg-Using-RSVG-with-GIO.html" title="Using RSVG with GIO">10<link rel="next" href="rsvg-Using-RSVG-with-GIO.html" title="Using RSVG with GIO">
11<meta name="generator" content="GTK-Doc V1.21 (XML mode)">11<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">12<link rel="stylesheet" href="style.css" type="text/css">
13</head>13</head>
14<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">14<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">15<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16<td width="100%" align="left" class="shortcuts">16<tr valign="middle">
17<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 17<td><a accesskey="p" href="rsvg.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <a href="#RsvgHandle.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 18<td><a accesskey="u" href="rsvg.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <a href="#RsvgHandle.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 19<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <a href="#RsvgHandle.properties" class="shortcut">Properties</a></span>20<th width="100%" align="center">RSVG Libary Reference Manual</th>
21</td>21<td><a accesskey="n" href="rsvg-Using-RSVG-with-GIO.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>22</tr>
23<td><a accesskey="u" href="rsvg.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>23<tr><td colspan="5" class="shortcuts">
24<td><a accesskey="p" href="rsvg.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>24<a href="#RsvgHandle.synopsis" class="shortcut">Top</a>
25<td><a accesskey="n" href="rsvg-Using-RSVG-with-GIO.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>25  | 
26</tr></table>26 <a href="#RsvgHandle.description" class="shortcut">Description</a>
27  | 
28 <a href="#RsvgHandle.object-hierarchy" class="shortcut">Object Hierarchy</a>
29  | 
30 <a href="#RsvgHandle.properties" class="shortcut">Properties</a>
31</td></tr>
32</table>
27<div class="refentry">33<div class="refentry">
28<a name="RsvgHandle"></a><div class="titlepage"></div>34<a name="RsvgHandle"></a><div class="titlepage"></div>
29<div class="refnamediv"><table width="100%"><tr>35<div class="refnamediv"><table width="100%"><tr>
@@ -31,1183 +37,162 @@
31<h2><span class="refentrytitle"><a name="RsvgHandle.top_of_page"></a>RsvgHandle</span></h2>37<h2><span class="refentrytitle"><a name="RsvgHandle.top_of_page"></a>RsvgHandle</span></h2>
32<p>RsvgHandle — Create and manipulate SVG objects</p>38<p>RsvgHandle — Create and manipulate SVG objects</p>
33</td>39</td>
34<td class="gallery_image" valign="top" align="right"></td>40<td valign="top" align="right"></td>
35</tr></table></div>41</tr></table></div>
42<div class="refsynopsisdiv">
43<a name="RsvgHandle.synopsis"></a><h2>Synopsis</h2>
44<a name="RsvgError"></a><pre class="synopsis">enum <a class="link" href="RsvgHandle.html#RsvgError-enum" title="enum RsvgError">RsvgError</a>;
45#define <a class="link" href="RsvgHandle.html#RSVG-ERROR:CAPS" title="RSVG_ERROR">RSVG_ERROR</a>
46<a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> <a class="link" href="RsvgHandle.html#rsvg-error-quark" title="rsvg_error_quark ()">rsvg_error_quark</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
47 <a class="link" href="RsvgHandle.html#RsvgHandle-struct" title="RsvgHandle">RsvgHandle</a>;
48typedef <a class="link" href="RsvgHandle.html#RsvgHandlePrivate" title="RsvgHandlePrivate">RsvgHandlePrivate</a>;
49struct <a class="link" href="RsvgHandle.html#RsvgHandleClass" title="struct RsvgHandleClass">RsvgHandleClass</a>;
50struct <a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData">RsvgDimensionData</a>;
51struct <a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData">RsvgPositionData</a>;
52<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-cleanup" title="rsvg_cleanup ()">rsvg_cleanup</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
53<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-set-default-dpi" title="rsvg_set_default_dpi ()">rsvg_set_default_dpi</a> (<em class="parameter"><code><span class="type">double</span> dpi</code></em>);
54<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-set-default-dpi-x-y" title="rsvg_set_default_dpi_x_y ()">rsvg_set_default_dpi_x_y</a> (<em class="parameter"><code><span class="type">double</span> dpi_x</code></em>,
55 <em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);
56<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-set-dpi" title="rsvg_handle_set_dpi ()">rsvg_handle_set_dpi</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
57 <em class="parameter"><code><span class="type">double</span> dpi</code></em>);
58<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-set-dpi-x-y" title="rsvg_handle_set_dpi_x_y ()">rsvg_handle_set_dpi_x_y</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
59 <em class="parameter"><code><span class="type">double</span> dpi_x</code></em>,
60 <em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);
61<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * <a class="link" href="RsvgHandle.html#rsvg-handle-new" title="rsvg_handle_new ()">rsvg_handle_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
62<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * <a class="link" href="RsvgHandle.html#rsvg-handle-new-with-flags" title="rsvg_handle_new_with_flags ()">rsvg_handle_new_with_flags</a> (<em class="parameter"><code><a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a> flags</code></em>);
63<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-write" title="rsvg_handle_write ()">rsvg_handle_write</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
64 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
65 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
66 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
67<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-close" title="rsvg_handle_close ()">rsvg_handle_close</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
68 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
69const <span class="returnvalue">char</span> * <a class="link" href="RsvgHandle.html#rsvg-handle-get-base-uri" title="rsvg_handle_get_base_uri ()">rsvg_handle_get_base_uri</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);
70<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-set-base-uri" title="rsvg_handle_set_base_uri ()">rsvg_handle_set_base_uri</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
71 <em class="parameter"><code>const <span class="type">char</span> *base_uri</code></em>);
72<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-get-dimensions" title="rsvg_handle_get_dimensions ()">rsvg_handle_get_dimensions</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
73 <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>);
74<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-get-dimensions-sub" title="rsvg_handle_get_dimensions_sub ()">rsvg_handle_get_dimensions_sub</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
75 <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>,
76 <em class="parameter"><code>const <span class="type">char</span> *id</code></em>);
77<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-get-position-sub" title="rsvg_handle_get_position_sub ()">rsvg_handle_get_position_sub</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
78 <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData"><span class="type">RsvgPositionData</span></a> *position_data</code></em>,
79 <em class="parameter"><code>const <span class="type">char</span> *id</code></em>);
80<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-has-sub" title="rsvg_handle_has_sub ()">rsvg_handle_has_sub</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
81 <em class="parameter"><code>const <span class="type">char</span> *id</code></em>);
82const <span class="returnvalue">char</span> * <a class="link" href="RsvgHandle.html#rsvg-handle-get-title" title="rsvg_handle_get_title ()">rsvg_handle_get_title</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);
83const <span class="returnvalue">char</span> * <a class="link" href="RsvgHandle.html#rsvg-handle-get-desc" title="rsvg_handle_get_desc ()">rsvg_handle_get_desc</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);
84const <span class="returnvalue">char</span> * <a class="link" href="RsvgHandle.html#rsvg-handle-get-metadata" title="rsvg_handle_get_metadata ()">rsvg_handle_get_metadata</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);
85<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * <a class="link" href="RsvgHandle.html#rsvg-handle-new-from-data" title="rsvg_handle_new_from_data ()">rsvg_handle_new_from_data</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *data</code></em>,
86 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> data_len</code></em>,
87 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
88<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * <a class="link" href="RsvgHandle.html#rsvg-handle-new-from-file" title="rsvg_handle_new_from_file ()">rsvg_handle_new_from_file</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>,
89 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
90<a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> <a class="link" href="RsvgHandle.html#rsvg-error-get-type" title="rsvg_error_get_type ()">rsvg_error_get_type</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
91#define <a class="link" href="RsvgHandle.html#RSVG-TYPE-ERROR:CAPS" title="RSVG_TYPE_ERROR">RSVG_TYPE_ERROR</a>
92
93<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-init" title="rsvg_init ()">rsvg_init</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
94<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-term" title="rsvg_term ()">rsvg_term</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
95<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-free" title="rsvg_handle_free ()">rsvg_handle_free</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);
96<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-set-size-callback" title="rsvg_handle_set_size_callback ()">rsvg_handle_set_size_callback</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
97 <em class="parameter"><code><span class="type">RsvgSizeFunc</span> size_func</code></em>,
98 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
99 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> user_data_destroy</code></em>);
100</pre>
101</div>
36<div class="refsect1">102<div class="refsect1">
37<a name="RsvgHandle.functions"></a><h2>Functions</h2>103<a name="RsvgHandle.object-hierarchy"></a><h2>Object Hierarchy</h2>
38<div class="informaltable"><table width="100%" border="0">104<pre class="synopsis">
39<colgroup>105 GEnum
40<col width="150px" class="functions_return">106 +----RsvgError
41<col class="functions_name">107</pre>
42</colgroup>108<pre class="synopsis">
43<tbody>109 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
44<tr>110 +----RsvgHandle
45<td class="define_keyword">#define</td>111</pre>
46<td class="function_name"><a class="link" href="RsvgHandle.html#RSVG-ERROR:CAPS" title="RSVG_ERROR">RSVG_ERROR</a></td>
47</tr>
48<tr>
49<td class="function_type">
50<a href="https://developer.gnome.org/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a>
51</td>
52<td class="function_name">
53<a class="link" href="RsvgHandle.html#rsvg-error-quark" title="rsvg_error_quark ()">rsvg_error_quark</a> <span class="c_punctuation">()</span>
54</td>
55</tr>
56<tr>
57<td class="function_type">
58<span class="returnvalue">void</span>
59</td>
60<td class="function_name">
61<a class="link" href="RsvgHandle.html#rsvg-cleanup" title="rsvg_cleanup ()">rsvg_cleanup</a> <span class="c_punctuation">()</span>
62</td>
63</tr>
64<tr>
65<td class="function_type">
66<span class="returnvalue">void</span>
67</td>
68<td class="function_name">
69<a class="link" href="RsvgHandle.html#rsvg-set-default-dpi" title="rsvg_set_default_dpi ()">rsvg_set_default_dpi</a> <span class="c_punctuation">()</span>
70</td>
71</tr>
72<tr>
73<td class="function_type">
74<span class="returnvalue">void</span>
75</td>
76<td class="function_name">
77<a class="link" href="RsvgHandle.html#rsvg-set-default-dpi-x-y" title="rsvg_set_default_dpi_x_y ()">rsvg_set_default_dpi_x_y</a> <span class="c_punctuation">()</span>
78</td>
79</tr>
80<tr>
81<td class="function_type">
82<span class="returnvalue">void</span>
83</td>
84<td class="function_name">
85<a class="link" href="RsvgHandle.html#rsvg-handle-set-dpi" title="rsvg_handle_set_dpi ()">rsvg_handle_set_dpi</a> <span class="c_punctuation">()</span>
86</td>
87</tr>
88<tr>
89<td class="function_type">
90<span class="returnvalue">void</span>
91</td>
92<td class="function_name">
93<a class="link" href="RsvgHandle.html#rsvg-handle-set-dpi-x-y" title="rsvg_handle_set_dpi_x_y ()">rsvg_handle_set_dpi_x_y</a> <span class="c_punctuation">()</span>
94</td>
95</tr>
96<tr>
97<td class="function_type">
98<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
99</td>
100<td class="function_name">
101<a class="link" href="RsvgHandle.html#rsvg-handle-new" title="rsvg_handle_new ()">rsvg_handle_new</a> <span class="c_punctuation">()</span>
102</td>
103</tr>
104<tr>
105<td class="function_type">
106<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
107</td>
108<td class="function_name">
109<a class="link" href="RsvgHandle.html#rsvg-handle-new-with-flags" title="rsvg_handle_new_with_flags ()">rsvg_handle_new_with_flags</a> <span class="c_punctuation">()</span>
110</td>
111</tr>
112<tr>
113<td class="function_type">
114<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
115</td>
116<td class="function_name">
117<a class="link" href="RsvgHandle.html#rsvg-handle-write" title="rsvg_handle_write ()">rsvg_handle_write</a> <span class="c_punctuation">()</span>
118</td>
119</tr>
120<tr>
121<td class="function_type">
122<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
123</td>
124<td class="function_name">
125<a class="link" href="RsvgHandle.html#rsvg-handle-close" title="rsvg_handle_close ()">rsvg_handle_close</a> <span class="c_punctuation">()</span>
126</td>
127</tr>
128<tr>
129<td class="function_type">const <span class="returnvalue">char</span> *
130</td>
131<td class="function_name">
132<a class="link" href="RsvgHandle.html#rsvg-handle-get-base-uri" title="rsvg_handle_get_base_uri ()">rsvg_handle_get_base_uri</a> <span class="c_punctuation">()</span>
133</td>
134</tr>
135<tr>
136<td class="function_type">
137<span class="returnvalue">void</span>
138</td>
139<td class="function_name">
140<a class="link" href="RsvgHandle.html#rsvg-handle-set-base-uri" title="rsvg_handle_set_base_uri ()">rsvg_handle_set_base_uri</a> <span class="c_punctuation">()</span>
141</td>
142</tr>
143<tr>
144<td class="function_type">
145<span class="returnvalue">void</span>
146</td>
147<td class="function_name">
148<a class="link" href="RsvgHandle.html#rsvg-handle-get-dimensions" title="rsvg_handle_get_dimensions ()">rsvg_handle_get_dimensions</a> <span class="c_punctuation">()</span>
149</td>
150</tr>
151<tr>
152<td class="function_type">
153<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
154</td>
155<td class="function_name">
156<a class="link" href="RsvgHandle.html#rsvg-handle-get-dimensions-sub" title="rsvg_handle_get_dimensions_sub ()">rsvg_handle_get_dimensions_sub</a> <span class="c_punctuation">()</span>
157</td>
158</tr>
159<tr>
160<td class="function_type">
161<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
162</td>
163<td class="function_name">
164<a class="link" href="RsvgHandle.html#rsvg-handle-get-position-sub" title="rsvg_handle_get_position_sub ()">rsvg_handle_get_position_sub</a> <span class="c_punctuation">()</span>
165</td>
166</tr>
167<tr>
168<td class="function_type">
169<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
170</td>
171<td class="function_name">
172<a class="link" href="RsvgHandle.html#rsvg-handle-has-sub" title="rsvg_handle_has_sub ()">rsvg_handle_has_sub</a> <span class="c_punctuation">()</span>
173</td>
174</tr>
175<tr>
176<td class="function_type">const <span class="returnvalue">char</span> *
177</td>
178<td class="function_name">
179<a class="link" href="RsvgHandle.html#rsvg-handle-get-title" title="rsvg_handle_get_title ()">rsvg_handle_get_title</a> <span class="c_punctuation">()</span>
180</td>
181</tr>
182<tr>
183<td class="function_type">const <span class="returnvalue">char</span> *
184</td>
185<td class="function_name">
186<a class="link" href="RsvgHandle.html#rsvg-handle-get-desc" title="rsvg_handle_get_desc ()">rsvg_handle_get_desc</a> <span class="c_punctuation">()</span>
187</td>
188</tr>
189<tr>
190<td class="function_type">const <span class="returnvalue">char</span> *
191</td>
192<td class="function_name">
193<a class="link" href="RsvgHandle.html#rsvg-handle-get-metadata" title="rsvg_handle_get_metadata ()">rsvg_handle_get_metadata</a> <span class="c_punctuation">()</span>
194</td>
195</tr>
196<tr>
197<td class="function_type">
198<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
199</td>
200<td class="function_name">
201<a class="link" href="RsvgHandle.html#rsvg-handle-new-from-data" title="rsvg_handle_new_from_data ()">rsvg_handle_new_from_data</a> <span class="c_punctuation">()</span>
202</td>
203</tr>
204<tr>
205<td class="function_type">
206<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
207</td>
208<td class="function_name">
209<a class="link" href="RsvgHandle.html#rsvg-handle-new-from-file" title="rsvg_handle_new_from_file ()">rsvg_handle_new_from_file</a> <span class="c_punctuation">()</span>
210</td>
211</tr>
212<tr>
213<td class="function_type">
214<a href="https://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a>
215</td>
216<td class="function_name">
217<a class="link" href="RsvgHandle.html#rsvg-error-get-type" title="rsvg_error_get_type ()">rsvg_error_get_type</a> <span class="c_punctuation">()</span>
218</td>
219</tr>
220<tr>
221<td class="define_keyword">#define</td>
222<td class="function_name"><a class="link" href="RsvgHandle.html#RSVG-TYPE-ERROR:CAPS" title="RSVG_TYPE_ERROR">RSVG_TYPE_ERROR</a></td>
223</tr>
224<tr>
225<td class="function_type">
226<span class="returnvalue">void</span>
227</td>
228<td class="function_name">
229<a class="link" href="RsvgHandle.html#rsvg-init" title="rsvg_init ()">rsvg_init</a> <span class="c_punctuation">()</span>
230</td>
231</tr>
232<tr>
233<td class="function_type">
234<span class="returnvalue">void</span>
235</td>
236<td class="function_name">
237<a class="link" href="RsvgHandle.html#rsvg-term" title="rsvg_term ()">rsvg_term</a> <span class="c_punctuation">()</span>
238</td>
239</tr>
240<tr>
241<td class="function_type">
242<span class="returnvalue">void</span>
243</td>
244<td class="function_name">
245<a class="link" href="RsvgHandle.html#rsvg-handle-free" title="rsvg_handle_free ()">rsvg_handle_free</a> <span class="c_punctuation">()</span>
246</td>
247</tr>
248<tr>
249<td class="function_type">
250<span class="returnvalue">void</span>
251</td>
252<td class="function_name">
253<a class="link" href="RsvgHandle.html#rsvg-handle-set-size-callback" title="rsvg_handle_set_size_callback ()">rsvg_handle_set_size_callback</a> <span class="c_punctuation">()</span>
254</td>
255</tr>
256</tbody>
257</table></div>
258</div>112</div>
259<div class="refsect1">113<div class="refsect1">
260<a name="RsvgHandle.properties"></a><h2>Properties</h2>114<a name="RsvgHandle.properties"></a><h2>Properties</h2>
261<div class="informaltable"><table border="0">115<pre class="synopsis">
262<colgroup>116 "<a class="link" href="RsvgHandle.html#RsvgHandle--base-uri" title='The "base-uri" property'>base-uri</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct
263<col width="150px" class="properties_type">117 "<a class="link" href="RsvgHandle.html#RsvgHandle--desc" title='The "desc" property'>desc</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
264<col width="300px" class="properties_name">118 "<a class="link" href="RsvgHandle.html#RsvgHandle--dpi-x" title='The "dpi-x" property'>dpi-x</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write / Construct
265<col width="200px" class="properties_flags">119 "<a class="link" href="RsvgHandle.html#RsvgHandle--dpi-y" title='The "dpi-y" property'>dpi-y</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write / Construct
266</colgroup>120 "<a class="link" href="RsvgHandle.html#RsvgHandle--em" title='The "em" property'>em</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read
267<tbody>121 "<a class="link" href="RsvgHandle.html#RsvgHandle--ex" title='The "ex" property'>ex</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read
268<tr>122 "<a class="link" href="RsvgHandle.html#RsvgHandle--flags" title='The "flags" property'>flags</a>" <a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a> : Read / Write / Construct Only
269<td class="property_type">123 "<a class="link" href="RsvgHandle.html#RsvgHandle--height" title='The "height" property'>height</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read
270<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>124 "<a class="link" href="RsvgHandle.html#RsvgHandle--metadata" title='The "metadata" property'>metadata</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
271<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--base-uri" title="The “base-uri” property">base-uri</a></td>125 "<a class="link" href="RsvgHandle.html#RsvgHandle--title" title='The "title" property'>title</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
272<td class="property_flags">Read / Write / Construct</td>126 "<a class="link" href="RsvgHandle.html#RsvgHandle--width" title='The "width" property'>width</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read
273</tr>
274<tr>
275<td class="property_type">
276<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
277<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--desc" title="The “desc” property">desc</a></td>
278<td class="property_flags">Read</td>
279</tr>
280<tr>
281<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td>
282<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--dpi-x" title="The “dpi-x” property">dpi-x</a></td>
283<td class="property_flags">Read / Write / Construct</td>
284</tr>
285<tr>
286<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td>
287<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--dpi-y" title="The “dpi-y” property">dpi-y</a></td>
288<td class="property_flags">Read / Write / Construct</td>
289</tr>
290<tr>
291<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td>
292<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--em" title="The “em” property">em</a></td>
293<td class="property_flags">Read</td>
294</tr>
295<tr>
296<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td>
297<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--ex" title="The “ex” property">ex</a></td>
298<td class="property_flags">Read</td>
299</tr>
300<tr>
301<td class="property_type"><a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags" title="enum RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a></td>
302<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--flags" title="The “flags” property">flags</a></td>
303<td class="property_flags">Read / Write / Construct Only</td>
304</tr>
305<tr>
306<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
307<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--height" title="The “height” property">height</a></td>
308<td class="property_flags">Read</td>
309</tr>
310<tr>
311<td class="property_type">
312<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
313<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--metadata" title="The “metadata” property">metadata</a></td>
314<td class="property_flags">Read</td>
315</tr>
316<tr>
317<td class="property_type">
318<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
319<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--title" title="The “title” property">title</a></td>
320<td class="property_flags">Read</td>
321</tr>
322<tr>
323<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
324<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--width" title="The “width” property">width</a></td>
325<td class="property_flags">Read</td>
326</tr>
327</tbody>
328</table></div>
329</div>
330<div class="refsect1">
331<a name="RsvgHandle.other"></a><h2>Types and Values</h2>
332<div class="informaltable"><table width="100%" border="0">
333<colgroup>
334<col width="150px" class="name">
335<col class="description">
336</colgroup>
337<tbody>
338<tr>
339<td class="datatype_keyword">enum</td>
340<td class="function_name"><a class="link" href="RsvgHandle.html#RsvgError" title="enum RsvgError">RsvgError</a></td>
341</tr>
342<tr>
343<td class="datatype_keyword">struct</td>
344<td class="function_name"><a class="link" href="RsvgHandle.html#RsvgHandle-struct" title="struct RsvgHandle">RsvgHandle</a></td>
345</tr>
346<tr>
347<td class="typedef_keyword">typedef</td>
348<td class="function_name"><a class="link" href="RsvgHandle.html#RsvgHandlePrivate" title="RsvgHandlePrivate">RsvgHandlePrivate</a></td>
349</tr>
350<tr>
351<td class="datatype_keyword">struct</td>
352<td class="function_name"><a class="link" href="RsvgHandle.html#RsvgHandleClass" title="struct RsvgHandleClass">RsvgHandleClass</a></td>
353</tr>
354<tr>
355<td class="datatype_keyword">struct</td>
356<td class="function_name"><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData">RsvgDimensionData</a></td>
357</tr>
358<tr>
359<td class="datatype_keyword">struct</td>
360<td class="function_name"><a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData">RsvgPositionData</a></td>
361</tr>
362</tbody>
363</table></div>
364</div>
365<div class="refsect1">
366<a name="RsvgHandle.object-hierarchy"></a><h2>Object Hierarchy</h2>
367<pre class="screen"> <a href="https://developer.gnome.org/gobject/unstable/gobject-Enumeration-and-Flag-Types.html">GEnum</a>
368 <span class="lineart">╰──</span> RsvgError
369 <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
370 <span class="lineart">╰──</span> RsvgHandle
371</pre>127</pre>
372</div>128</div>
373<div class="refsect1">129<div class="refsect1">
374<a name="RsvgHandle.description"></a><h2>Description</h2>130<a name="RsvgHandle.description"></a><h2>Description</h2>
375<p>librsvg is a component used within software applications to enable131<p>
132librsvg is a component used within software applications to enable
376support for SVG-format scalable graphics. In contrast to raster133support for SVG-format scalable graphics. In contrast to raster
377formats, scalable vector graphics provide users and artists a way134formats, scalable vector graphics provide users and artists a way
378to create, view, and provide imagery that is not limited to the135to create, view, and provide imagery that is not limited to the
379pixel or dot density that an output device is capable of.</p>136pixel or dot density that an output device is capable of.
380<p>Many software developers use the librsvg library to render137</p>
381SVG graphics. It is lightweight and portable.</p>138<p>
139Many software developers use the librsvg library to render
140SVG graphics. It is lightweight and portable.
141</p>
382</div>142</div>
383<div class="refsect1">143<div class="refsect1">
384<a name="RsvgHandle.functions_details"></a><h2>Functions</h2>144<a name="RsvgHandle.details"></a><h2>Details</h2>
145<div class="refsect2">
146<a name="RsvgError-enum"></a><h3>enum RsvgError</h3>
147<pre class="programlisting">typedef enum {
148 RSVG_ERROR_FAILED
149} RsvgError;
150</pre>
151<p>
152An enumeration representing possible errors
153</p>
154<div class="variablelist"><table border="0" class="variablelist">
155<colgroup>
156<col align="left" valign="top">
157<col>
158</colgroup>
159<tbody><tr>
160<td><p><a name="RSVG-ERROR-FAILED:CAPS"></a><span class="term"><code class="literal">RSVG_ERROR_FAILED</code></span></p></td>
161<td>the request failed
162</td>
163</tr></tbody>
164</table></div>
165</div>
166<hr>
385<div class="refsect2">167<div class="refsect2">
386<a name="RSVG-ERROR:CAPS"></a><h3>RSVG_ERROR</h3>168<a name="RSVG-ERROR:CAPS"></a><h3>RSVG_ERROR</h3>
387<pre class="programlisting">#define RSVG_ERROR</pre>169<pre class="programlisting">#define RSVG_ERROR</pre>
388</div>170</div>
389<hr>171<hr>
390<div class="refsect2">172<div class="refsect2">
391<a name="rsvg-error-quark"></a><h3>rsvg_error_quark ()</h3>173<a name="rsvg-error-quark"></a><h3>rsvg_error_quark ()</h3>
392<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a>174<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> rsvg_error_quark (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
393rsvg_error_quark (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>175<p>
394<p>The error domain for RSVG</p>176The error domain for RSVG
395<div class="refsect3">177</p>
396<a name="id-1.2.3.8.3.5"></a><h4>Returns</h4>178<div class="variablelist"><table border="0" class="variablelist">
397<p> The error domain</p>179<colgroup>
398<p></p>180<col align="left" valign="top">
399</div>181<col>
400</div>182</colgroup>
401<hr>183<tbody><tr>
402<div class="refsect2">184<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
403<a name="rsvg-cleanup"></a><h3>rsvg_cleanup ()</h3>185<td>The error domain</td>
404<pre class="programlisting"><span class="returnvalue">void</span>186</tr></tbody>
405rsvg_cleanup (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>187</table></div>
406<p>This function should not be called from normal programs.188</div>
407See <code class="function">xmlCleanupParser()</code> for more information.</p>189<hr>
408<p class="since">Since 2.36</p>190<div class="refsect2">
409</div>191<a name="RsvgHandle-struct"></a><h3>RsvgHandle</h3>
410<hr>192<pre class="programlisting">typedef struct _RsvgHandle RsvgHandle;</pre>
411<div class="refsect2">193<p>
412<a name="rsvg-set-default-dpi"></a><h3>rsvg_set_default_dpi ()</h3>194The <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> is an object representing the parsed form of a SVG
413<pre class="programlisting"><span class="returnvalue">void</span>195</p>
414rsvg_set_default_dpi (<em class="parameter"><code><span class="type">double</span> dpi</code></em>);</pre>
415<p>Sets the DPI for the all future outgoing pixbufs. Common values are
41675, 90, and 300 DPI. Passing a number &lt;= 0 to <em class="parameter"><code>dpi</code></em>
417 will
418reset the DPI to whatever the default value happens to be.</p>
419<div class="refsect3">
420<a name="id-1.2.3.8.5.5"></a><h4>Parameters</h4>
421<div class="informaltable"><table width="100%" border="0">
422<colgroup>
423<col width="150px" class="parameters_name">
424<col class="parameters_description">
425<col width="200px" class="parameters_annotations">
426</colgroup>
427<tbody><tr>
428<td class="parameter_name"><p>dpi</p></td>
429<td class="parameter_description"><p>Dots Per Inch (aka Pixels Per Inch)</p></td>
430<td class="parameter_annotations"> </td>
431</tr></tbody>
432</table></div>
433</div>
434<p class="since">Since 2.8</p>
435</div>
436<hr>
437<div class="refsect2">
438<a name="rsvg-set-default-dpi-x-y"></a><h3>rsvg_set_default_dpi_x_y ()</h3>
439<pre class="programlisting"><span class="returnvalue">void</span>
440rsvg_set_default_dpi_x_y (<em class="parameter"><code><span class="type">double</span> dpi_x</code></em>,
441 <em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);</pre>
442<p>Sets the DPI for the all future outgoing pixbufs. Common values are
44375, 90, and 300 DPI. Passing a number &lt;= 0 to <em class="parameter"><code>dpi</code></em>
444 will
445reset the DPI to whatever the default value happens to be.</p>
446<div class="refsect3">
447<a name="id-1.2.3.8.6.5"></a><h4>Parameters</h4>
448<div class="informaltable"><table width="100%" border="0">
449<colgroup>
450<col width="150px" class="parameters_name">
451<col class="parameters_description">
452<col width="200px" class="parameters_annotations">
453</colgroup>
454<tbody>
455<tr>
456<td class="parameter_name"><p>dpi_x</p></td>
457<td class="parameter_description"><p>Dots Per Inch (aka Pixels Per Inch)</p></td>
458<td class="parameter_annotations"> </td>
459</tr>
460<tr>
461<td class="parameter_name"><p>dpi_y</p></td>
462<td class="parameter_description"><p>Dots Per Inch (aka Pixels Per Inch)</p></td>
463<td class="parameter_annotations"> </td>
464</tr>
465</tbody>
466</table></div>
467</div>
468<p class="since">Since 2.8</p>
469</div>
470<hr>
471<div class="refsect2">
472<a name="rsvg-handle-set-dpi"></a><h3>rsvg_handle_set_dpi ()</h3>
473<pre class="programlisting"><span class="returnvalue">void</span>
474rsvg_handle_set_dpi (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
475 <em class="parameter"><code><span class="type">double</span> dpi</code></em>);</pre>
476<p>Sets the DPI for the outgoing pixbuf. Common values are
47775, 90, and 300 DPI. Passing a number &lt;= 0 to <em class="parameter"><code>dpi</code></em>
478 will
479reset the DPI to whatever the default value happens to be.</p>
480<div class="refsect3">
481<a name="id-1.2.3.8.7.5"></a><h4>Parameters</h4>
482<div class="informaltable"><table width="100%" border="0">
483<colgroup>
484<col width="150px" class="parameters_name">
485<col class="parameters_description">
486<col width="200px" class="parameters_annotations">
487</colgroup>
488<tbody>
489<tr>
490<td class="parameter_name"><p>handle</p></td>
491<td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
492<td class="parameter_annotations"> </td>
493</tr>
494<tr>
495<td class="parameter_name"><p>dpi</p></td>
496<td class="parameter_description"><p>Dots Per Inch (aka Pixels Per Inch)</p></td>
497<td class="parameter_annotations"> </td>
498</tr>
499</tbody>
500</table></div>
501</div>
502<p class="since">Since 2.8</p>
503</div>
504<hr>
505<div class="refsect2">
506<a name="rsvg-handle-set-dpi-x-y"></a><h3>rsvg_handle_set_dpi_x_y ()</h3>
507<pre class="programlisting"><span class="returnvalue">void</span>
508rsvg_handle_set_dpi_x_y (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
509 <em class="parameter"><code><span class="type">double</span> dpi_x</code></em>,
510 <em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);</pre>
511<p>Sets the DPI for the outgoing pixbuf. Common values are
51275, 90, and 300 DPI. Passing a number &lt;= 0 to <span class="type">dpi_x</span> or <em class="parameter"><code>dpi_y</code></em>
513 will
514reset the DPI to whatever the default value happens to be.</p>
515<div class="refsect3">
516<a name="id-1.2.3.8.8.5"></a><h4>Parameters</h4>
517<div class="informaltable"><table width="100%" border="0">
518<colgroup>
519<col width="150px" class="parameters_name">
520<col class="parameters_description">
521<col width="200px" class="parameters_annotations">
522</colgroup>
523<tbody>
524<tr>
525<td class="parameter_name"><p>handle</p></td>
526<td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
527<td class="parameter_annotations"> </td>
528</tr>
529<tr>
530<td class="parameter_name"><p>dpi_x</p></td>
531<td class="parameter_description"><p>Dots Per Inch (aka Pixels Per Inch)</p></td>
532<td class="parameter_annotations"> </td>
533</tr>
534<tr>
535<td class="parameter_name"><p>dpi_y</p></td>
536<td class="parameter_description"><p>Dots Per Inch (aka Pixels Per Inch)</p></td>
537<td class="parameter_annotations"> </td>
538</tr>
539</tbody>
540</table></div>
541</div>
542<p class="since">Since 2.8</p>
543</div>
544<hr>
545<div class="refsect2">
546<a name="rsvg-handle-new"></a><h3>rsvg_handle_new ()</h3>
547<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
548rsvg_handle_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
549<p>Returns a new rsvg handle. Must be freed with <em class="parameter"><code>g_object_unref</code></em>
550. This
551handle can be used for dynamically loading an image. You need to feed it
552data using <em class="parameter"><code>rsvg_handle_write</code></em>
553, then call <em class="parameter"><code>rsvg_handle_close</code></em>
554 when done.
555Afterwords, you can render it using Cairo or get a GdkPixbuf from it. When
556finished, free with <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. No more than one image can be loaded
557with one handle.</p>
558<div class="refsect3">
559<a name="id-1.2.3.8.9.5"></a><h4>Returns</h4>
560<p> A new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p>
561<p></p>
562</div>
563</div>
564<hr>
565<div class="refsect2">
566<a name="rsvg-handle-new-with-flags"></a><h3>rsvg_handle_new_with_flags ()</h3>
567<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
568rsvg_handle_new_with_flags (<em class="parameter"><code><a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags" title="enum RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a> flags</code></em>);</pre>
569<p>Creates a new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> with flags <em class="parameter"><code>flags</code></em>
570.</p>
571<div class="refsect3">
572<a name="id-1.2.3.8.10.5"></a><h4>Parameters</h4>
573<div class="informaltable"><table width="100%" border="0">
574<colgroup>
575<col width="150px" class="parameters_name">
576<col class="parameters_description">
577<col width="200px" class="parameters_annotations">
578</colgroup>
579<tbody><tr>
580<td class="parameter_name"><p>flags</p></td>
581<td class="parameter_description"><p>flags from <a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags" title="enum RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a></p></td>
582<td class="parameter_annotations"> </td>
583</tr></tbody>
584</table></div>
585</div>
586<div class="refsect3">
587<a name="id-1.2.3.8.10.6"></a><h4>Returns</h4>
588<p> a new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>. </p>
589<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
590</div>
591<p class="since">Since 2.36</p>
592</div>
593<hr>
594<div class="refsect2">
595<a name="rsvg-handle-write"></a><h3>rsvg_handle_write ()</h3>
596<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
597rsvg_handle_write (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
598 <em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
599 <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
600 <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
601<p>Loads the next <em class="parameter"><code>count</code></em>
602 bytes of the image. This will return <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the data
603was loaded successful, and <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an error occurred. In the latter case,
604the loader will be closed, and will not accept further writes. If <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is
605returned, <em class="parameter"><code>error</code></em>
606 will be set to an error from the <a class="link" href="RsvgHandle.html#RsvgError" title="enum RsvgError"><span class="type">RsvgError</span></a> domain. Errors
607from <a href="https://developer.gnome.org/gio/unstable/gio-GIOError.html#GIOErrorEnum"><span class="type">GIOErrorEnum</span></a> are also possible.</p>
608<div class="refsect3">
609<a name="id-1.2.3.8.11.5"></a><h4>Parameters</h4>
610<div class="informaltable"><table width="100%" border="0">
611<colgroup>
612<col width="150px" class="parameters_name">
613<col class="parameters_description">
614<col width="200px" class="parameters_annotations">
615</colgroup>
616<tbody>
617<tr>
618<td class="parameter_name"><p>handle</p></td>
619<td class="parameter_description"><p>an <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
620<td class="parameter_annotations"> </td>
621</tr>
622<tr>
623<td class="parameter_name"><p>buf</p></td>
624<td class="parameter_description"><p> pointer to svg data. </p></td>
625<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=count][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8]</span></td>
626</tr>
627<tr>
628<td class="parameter_name"><p>count</p></td>
629<td class="parameter_description"><p>length of the <em class="parameter"><code>buf</code></em>
630buffer in bytes</p></td>
631<td class="parameter_annotations"> </td>
632</tr>
633<tr>
634<td class="parameter_name"><p>error</p></td>
635<td class="parameter_description"><p> a location to store a <a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
636<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
637</tr>
638</tbody>
639</table></div>
640</div>
641<div class="refsect3">
642<a name="id-1.2.3.8.11.6"></a><h4>Returns</h4>
643<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</p>
644<p></p>
645</div>
646</div>
647<hr>
648<div class="refsect2">
649<a name="rsvg-handle-close"></a><h3>rsvg_handle_close ()</h3>
650<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
651rsvg_handle_close (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
652 <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
653<p>Closes <em class="parameter"><code>handle</code></em>
654, to indicate that loading the image is complete. This will
655return <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the loader closed successfully. Note that <em class="parameter"><code>handle</code></em>
656 isn't
657freed until <em class="parameter"><code>g_object_unref</code></em>
658 is called.</p>
659<div class="refsect3">
660<a name="id-1.2.3.8.12.5"></a><h4>Parameters</h4>
661<div class="informaltable"><table width="100%" border="0">
662<colgroup>
663<col width="150px" class="parameters_name">
664<col class="parameters_description">
665<col width="200px" class="parameters_annotations">
666</colgroup>
667<tbody>
668<tr>
669<td class="parameter_name"><p>handle</p></td>
670<td class="parameter_description"><p>a <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
671<td class="parameter_annotations"> </td>
672</tr>
673<tr>
674<td class="parameter_name"><p>error</p></td>
675<td class="parameter_description"><p> a location to store a <a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
676<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
677</tr>
678</tbody>
679</table></div>
680</div>
681<div class="refsect3">
682<a name="id-1.2.3.8.12.6"></a><h4>Returns</h4>
683<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</p>
684<p></p>
685</div>
686</div>
687<hr>
688<div class="refsect2">
689<a name="rsvg-handle-get-base-uri"></a><h3>rsvg_handle_get_base_uri ()</h3>
690<pre class="programlisting">const <span class="returnvalue">char</span> *
691rsvg_handle_get_base_uri (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre>
692<p>Gets the base uri for this <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>.</p>
693<div class="refsect3">
694<a name="id-1.2.3.8.13.5"></a><h4>Parameters</h4>
695<div class="informaltable"><table width="100%" border="0">
696<colgroup>
697<col width="150px" class="parameters_name">
698<col class="parameters_description">
699<col width="200px" class="parameters_annotations">
700</colgroup>
701<tbody><tr>
702<td class="parameter_name"><p>handle</p></td>
703<td class="parameter_description"><p>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
704<td class="parameter_annotations"> </td>
705</tr></tbody>
706</table></div>
707</div>
708<div class="refsect3">
709<a name="id-1.2.3.8.13.6"></a><h4>Returns</h4>
710<p> the base uri, possibly null</p>
711<p></p>
712</div>
713<p class="since">Since 2.8</p>
714</div>
715<hr>
716<div class="refsect2">
717<a name="rsvg-handle-set-base-uri"></a><h3>rsvg_handle_set_base_uri ()</h3>
718<pre class="programlisting"><span class="returnvalue">void</span>
719rsvg_handle_set_base_uri (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
720 <em class="parameter"><code>const <span class="type">char</span> *base_uri</code></em>);</pre>
721<p>Set the base URI for this SVG. This can only be called before <a class="link" href="RsvgHandle.html#rsvg-handle-write" title="rsvg_handle_write ()"><code class="function">rsvg_handle_write()</code></a>
722has been called.</p>
723<div class="refsect3">
724<a name="id-1.2.3.8.14.5"></a><h4>Parameters</h4>
725<div class="informaltable"><table width="100%" border="0">
726<colgroup>
727<col width="150px" class="parameters_name">
728<col class="parameters_description">
729<col width="200px" class="parameters_annotations">
730</colgroup>
731<tbody>
732<tr>
733<td class="parameter_name"><p>handle</p></td>
734<td class="parameter_description"><p>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
735<td class="parameter_annotations"> </td>
736</tr>
737<tr>
738<td class="parameter_name"><p>base_uri</p></td>
739<td class="parameter_description"><p>The base uri</p></td>
740<td class="parameter_annotations"> </td>
741</tr>
742</tbody>
743</table></div>
744</div>
745<p class="since">Since 2.9</p>
746</div>
747<hr>
748<div class="refsect2">
749<a name="rsvg-handle-get-dimensions"></a><h3>rsvg_handle_get_dimensions ()</h3>
750<pre class="programlisting"><span class="returnvalue">void</span>
751rsvg_handle_get_dimensions (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
752 <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>);</pre>
753<p>Get the SVG's size. Do not call from within the size_func callback, because an infinite loop will occur.</p>
754<div class="refsect3">
755<a name="id-1.2.3.8.15.5"></a><h4>Parameters</h4>
756<div class="informaltable"><table width="100%" border="0">
757<colgroup>
758<col width="150px" class="parameters_name">
759<col class="parameters_description">
760<col width="200px" class="parameters_annotations">
761</colgroup>
762<tbody>
763<tr>
764<td class="parameter_name"><p>handle</p></td>
765<td class="parameter_description"><p>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
766<td class="parameter_annotations"> </td>
767</tr>
768<tr>
769<td class="parameter_name"><p>dimension_data</p></td>
770<td class="parameter_description"><p> A place to store the SVG's size. </p></td>
771<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
772</tr>
773</tbody>
774</table></div>
775</div>
776<p class="since">Since 2.14</p>
777</div>
778<hr>
779<div class="refsect2">
780<a name="rsvg-handle-get-dimensions-sub"></a><h3>rsvg_handle_get_dimensions_sub ()</h3>
781<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
782rsvg_handle_get_dimensions_sub (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
783 <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>,
784 <em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre>
785<p>Get the size of a subelement of the SVG file. Do not call from within the size_func callback, because an infinite loop will occur.</p>
786<div class="refsect3">
787<a name="id-1.2.3.8.16.5"></a><h4>Parameters</h4>
788<div class="informaltable"><table width="100%" border="0">
789<colgroup>
790<col width="150px" class="parameters_name">
791<col class="parameters_description">
792<col width="200px" class="parameters_annotations">
793</colgroup>
794<tbody>
795<tr>
796<td class="parameter_name"><p>handle</p></td>
797<td class="parameter_description"><p>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
798<td class="parameter_annotations"> </td>
799</tr>
800<tr>
801<td class="parameter_name"><p>dimension_data</p></td>
802<td class="parameter_description"><p> A place to store the SVG's size. </p></td>
803<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
804</tr>
805<tr>
806<td class="parameter_name"><p>id</p></td>
807<td class="parameter_description"><p> An element's id within the SVG, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to get
808the dimension of the whole SVG. For example, if you have a layer
809called "layer1" for that you want to get the dimension, pass
810"<span class="type">layer1</span>" as the id. </p></td>
811<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
812</tr>
813</tbody>
814</table></div>
815</div>
816<p class="since">Since 2.22</p>
817</div>
818<hr>
819<div class="refsect2">
820<a name="rsvg-handle-get-position-sub"></a><h3>rsvg_handle_get_position_sub ()</h3>
821<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
822rsvg_handle_get_position_sub (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
823 <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData"><span class="type">RsvgPositionData</span></a> *position_data</code></em>,
824 <em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre>
825<p>Get the position of a subelement of the SVG file. Do not call from within
826the size_func callback, because an infinite loop will occur.</p>
827<div class="refsect3">
828<a name="id-1.2.3.8.17.5"></a><h4>Parameters</h4>
829<div class="informaltable"><table width="100%" border="0">
830<colgroup>
831<col width="150px" class="parameters_name">
832<col class="parameters_description">
833<col width="200px" class="parameters_annotations">
834</colgroup>
835<tbody>
836<tr>
837<td class="parameter_name"><p>handle</p></td>
838<td class="parameter_description"><p>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
839<td class="parameter_annotations"> </td>
840</tr>
841<tr>
842<td class="parameter_name"><p>position_data</p></td>
843<td class="parameter_description"><p> A place to store the SVG fragment's position. </p></td>
844<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
845</tr>
846<tr>
847<td class="parameter_name"><p>id</p></td>
848<td class="parameter_description"><p>An element's id within the SVG.
849For example, if you have a layer called "layer1" for that you want to get
850the position, pass "#<span class="type">layer1</span>" as the id.</p></td>
851<td class="parameter_annotations"> </td>
852</tr>
853</tbody>
854</table></div>
855</div>
856<p class="since">Since 2.22</p>
857</div>
858<hr>
859<div class="refsect2">
860<a name="rsvg-handle-has-sub"></a><h3>rsvg_handle_has_sub ()</h3>
861<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
862rsvg_handle_has_sub (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
863 <em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre>
864<p>Checks whether the element <em class="parameter"><code>id</code></em>
865 exists in the SVG document.</p>
866<div class="refsect3">
867<a name="id-1.2.3.8.18.5"></a><h4>Parameters</h4>
868<div class="informaltable"><table width="100%" border="0">
869<colgroup>
870<col width="150px" class="parameters_name">
871<col class="parameters_description">
872<col width="200px" class="parameters_annotations">
873</colgroup>
874<tbody>
875<tr>
876<td class="parameter_name"><p>handle</p></td>
877<td class="parameter_description"><p>a <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
878<td class="parameter_annotations"> </td>
879</tr>
880<tr>
881<td class="parameter_name"><p>id</p></td>
882<td class="parameter_description"><p>an element's id within the SVG</p></td>
883<td class="parameter_annotations"> </td>
884</tr>
885</tbody>
886</table></div>
887</div>
888<div class="refsect3">
889<a name="id-1.2.3.8.18.6"></a><h4>Returns</h4>
890<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>id</code></em>
891exists in the SVG document</p>
892<p></p>
893</div>
894<p class="since">Since 2.22</p>
895</div>
896<hr>
897<div class="refsect2">
898<a name="rsvg-handle-get-title"></a><h3>rsvg_handle_get_title ()</h3>
899<pre class="programlisting">const <span class="returnvalue">char</span> *
900rsvg_handle_get_title (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre>
901<div class="warning"><p><code class="literal">rsvg_handle_get_title</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p></div>
902<p>Returns the SVG's title in UTF-8 or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. You must make a copy
903of this title if you wish to use it after <em class="parameter"><code>handle</code></em>
904 has been freed.</p>
905<div class="refsect3">
906<a name="id-1.2.3.8.19.7"></a><h4>Parameters</h4>
907<div class="informaltable"><table width="100%" border="0">
908<colgroup>
909<col width="150px" class="parameters_name">
910<col class="parameters_description">
911<col width="200px" class="parameters_annotations">
912</colgroup>
913<tbody><tr>
914<td class="parameter_name"><p>handle</p></td>
915<td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
916<td class="parameter_annotations"> </td>
917</tr></tbody>
918</table></div>
919</div>
920<div class="refsect3">
921<a name="id-1.2.3.8.19.8"></a><h4>Returns</h4>
922<p> The SVG's title. </p>
923<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
924</div>
925<p class="since">Since 2.4</p>
926</div>
927<hr>
928<div class="refsect2">
929<a name="rsvg-handle-get-desc"></a><h3>rsvg_handle_get_desc ()</h3>
930<pre class="programlisting">const <span class="returnvalue">char</span> *
931rsvg_handle_get_desc (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre>
932<div class="warning"><p><code class="literal">rsvg_handle_get_desc</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p></div>
933<p>Returns the SVG's description in UTF-8 or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. You must make a copy
934of this description if you wish to use it after <em class="parameter"><code>handle</code></em>
935 has been freed.</p>
936<div class="refsect3">
937<a name="id-1.2.3.8.20.7"></a><h4>Parameters</h4>
938<div class="informaltable"><table width="100%" border="0">
939<colgroup>
940<col width="150px" class="parameters_name">
941<col class="parameters_description">
942<col width="200px" class="parameters_annotations">
943</colgroup>
944<tbody><tr>
945<td class="parameter_name"><p>handle</p></td>
946<td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
947<td class="parameter_annotations"> </td>
948</tr></tbody>
949</table></div>
950</div>
951<div class="refsect3">
952<a name="id-1.2.3.8.20.8"></a><h4>Returns</h4>
953<p> The SVG's description. </p>
954<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
955</div>
956<p class="since">Since 2.4</p>
957</div>
958<hr>
959<div class="refsect2">
960<a name="rsvg-handle-get-metadata"></a><h3>rsvg_handle_get_metadata ()</h3>
961<pre class="programlisting">const <span class="returnvalue">char</span> *
962rsvg_handle_get_metadata (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre>
963<div class="warning"><p><code class="literal">rsvg_handle_get_metadata</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p></div>
964<p>Returns the SVG's metadata in UTF-8 or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. You must make a copy
965of this metadata if you wish to use it after <em class="parameter"><code>handle</code></em>
966 has been freed.</p>
967<div class="refsect3">
968<a name="id-1.2.3.8.21.7"></a><h4>Parameters</h4>
969<div class="informaltable"><table width="100%" border="0">
970<colgroup>
971<col width="150px" class="parameters_name">
972<col class="parameters_description">
973<col width="200px" class="parameters_annotations">
974</colgroup>
975<tbody><tr>
976<td class="parameter_name"><p>handle</p></td>
977<td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
978<td class="parameter_annotations"> </td>
979</tr></tbody>
980</table></div>
981</div>
982<div class="refsect3">
983<a name="id-1.2.3.8.21.8"></a><h4>Returns</h4>
984<p> The SVG's title. </p>
985<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
986</div>
987<p class="since">Since 2.9</p>
988</div>
989<hr>
990<div class="refsect2">
991<a name="rsvg-handle-new-from-data"></a><h3>rsvg_handle_new_from_data ()</h3>
992<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
993rsvg_handle_new_from_data (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *data</code></em>,
994 <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> data_len</code></em>,
995 <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
996<p>Loads the SVG specified by <em class="parameter"><code>data</code></em>
997.</p>
998<div class="refsect3">
999<a name="id-1.2.3.8.22.5"></a><h4>Parameters</h4>
1000<div class="informaltable"><table width="100%" border="0">
1001<colgroup>
1002<col width="150px" class="parameters_name">
1003<col class="parameters_description">
1004<col width="200px" class="parameters_annotations">
1005</colgroup>
1006<tbody>
1007<tr>
1008<td class="parameter_name"><p>data</p></td>
1009<td class="parameter_description"><p> The SVG data. </p></td>
1010<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=data_len]</span></td>
1011</tr>
1012<tr>
1013<td class="parameter_name"><p>data_len</p></td>
1014<td class="parameter_description"><p>The length of <em class="parameter"><code>data</code></em>
1015, in bytes</p></td>
1016<td class="parameter_annotations"> </td>
1017</tr>
1018<tr>
1019<td class="parameter_name"><p>error</p></td>
1020<td class="parameter_description"><p>return location for errors</p></td>
1021<td class="parameter_annotations"> </td>
1022</tr>
1023</tbody>
1024</table></div>
1025</div>
1026<div class="refsect3">
1027<a name="id-1.2.3.8.22.6"></a><h4>Returns</h4>
1028<p> A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurs.</p>
1029<p></p>
1030</div>
1031<p class="since">Since 2.14</p>
1032</div>
1033<hr>
1034<div class="refsect2">
1035<a name="rsvg-handle-new-from-file"></a><h3>rsvg_handle_new_from_file ()</h3>
1036<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
1037rsvg_handle_new_from_file (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>,
1038 <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1039<p>Loads the SVG specified by <em class="parameter"><code>file_name</code></em>
1040.</p>
1041<div class="refsect3">
1042<a name="id-1.2.3.8.23.5"></a><h4>Parameters</h4>
1043<div class="informaltable"><table width="100%" border="0">
1044<colgroup>
1045<col width="150px" class="parameters_name">
1046<col class="parameters_description">
1047<col width="200px" class="parameters_annotations">
1048</colgroup>
1049<tbody>
1050<tr>
1051<td class="parameter_name"><p>file_name</p></td>
1052<td class="parameter_description"><p>The file name to load. If built with gnome-vfs, can be a URI.</p></td>
1053<td class="parameter_annotations"> </td>
1054</tr>
1055<tr>
1056<td class="parameter_name"><p>error</p></td>
1057<td class="parameter_description"><p>return location for errors</p></td>
1058<td class="parameter_annotations"> </td>
1059</tr>
1060</tbody>
1061</table></div>
1062</div>
1063<div class="refsect3">
1064<a name="id-1.2.3.8.23.6"></a><h4>Returns</h4>
1065<p> A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurs.</p>
1066<p></p>
1067</div>
1068<p class="since">Since 2.14</p>
1069</div>
1070<hr>
1071<div class="refsect2">
1072<a name="rsvg-error-get-type"></a><h3>rsvg_error_get_type ()</h3>
1073<pre class="programlisting"><a href="https://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a>
1074rsvg_error_get_type (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
1075</div>
1076<hr>
1077<div class="refsect2">
1078<a name="RSVG-TYPE-ERROR:CAPS"></a><h3>RSVG_TYPE_ERROR</h3>
1079<pre class="programlisting">#define RSVG_TYPE_ERROR</pre>
1080</div>
1081<hr>
1082<div class="refsect2">
1083<a name="rsvg-init"></a><h3>rsvg_init ()</h3>
1084<pre class="programlisting"><span class="returnvalue">void</span>
1085rsvg_init (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
1086<div class="warning">
1087<p><code class="literal">rsvg_init</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p>
1088<p>Use <a href="https://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#g-type-init"><code class="function">g_type_init()</code></a></p>
1089</div>
1090<p>Initializes librsvg</p>
1091<p class="since">Since 2.9</p>
1092</div>
1093<hr>
1094<div class="refsect2">
1095<a name="rsvg-term"></a><h3>rsvg_term ()</h3>
1096<pre class="programlisting"><span class="returnvalue">void</span>
1097rsvg_term (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
1098<div class="warning"><p><code class="literal">rsvg_term</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p></div>
1099<p>This function does nothing.</p>
1100<p class="since">Since 2.9</p>
1101</div>
1102<hr>
1103<div class="refsect2">
1104<a name="rsvg-handle-free"></a><h3>rsvg_handle_free ()</h3>
1105<pre class="programlisting"><span class="returnvalue">void</span>
1106rsvg_handle_free (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre>
1107<div class="warning">
1108<p><code class="literal">rsvg_handle_free</code> is deprecated and should not be used in newly-written code.</p>
1109<p>Use <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> instead.</p>
1110</div>
1111<p>Frees <em class="parameter"><code>handle</code></em>
1112.</p>
1113<div class="refsect3">
1114<a name="id-1.2.3.8.28.6"></a><h4>Parameters</h4>
1115<div class="informaltable"><table width="100%" border="0">
1116<colgroup>
1117<col width="150px" class="parameters_name">
1118<col class="parameters_description">
1119<col width="200px" class="parameters_annotations">
1120</colgroup>
1121<tbody><tr>
1122<td class="parameter_name"><p>handle</p></td>
1123<td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
1124<td class="parameter_annotations"> </td>
1125</tr></tbody>
1126</table></div>
1127</div>
1128</div>
1129<hr>
1130<div class="refsect2">
1131<a name="rsvg-handle-set-size-callback"></a><h3>rsvg_handle_set_size_callback ()</h3>
1132<pre class="programlisting"><span class="returnvalue">void</span>
1133rsvg_handle_set_size_callback (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
1134 <em class="parameter"><code><span class="type">RsvgSizeFunc</span> size_func</code></em>,
1135 <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1136 <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> user_data_destroy</code></em>);</pre>
1137<div class="warning">
1138<p><code class="literal">rsvg_handle_set_size_callback</code> is deprecated and should not be used in newly-written code.</p>
1139<p>Set up a cairo matrix and use <a class="link" href="rsvg-Using-RSVG-with-cairo.html#rsvg-handle-render-cairo" title="rsvg_handle_render_cairo ()"><code class="function">rsvg_handle_render_cairo()</code></a> instead.</p>
1140</div>
1141<p>Sets the sizing function for the <em class="parameter"><code>handle</code></em>
1142. This function is called right
1143after the size of the image has been loaded. The size of the image is passed
1144in to the function, which may then modify these values to set the real size
1145of the generated pixbuf. If the image has no associated size, then the size
1146arguments are set to -1.</p>
1147<div class="refsect3">
1148<a name="id-1.2.3.8.29.6"></a><h4>Parameters</h4>
1149<div class="informaltable"><table width="100%" border="0">
1150<colgroup>
1151<col width="150px" class="parameters_name">
1152<col class="parameters_description">
1153<col width="200px" class="parameters_annotations">
1154</colgroup>
1155<tbody>
1156<tr>
1157<td class="parameter_name"><p>handle</p></td>
1158<td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
1159<td class="parameter_annotations"> </td>
1160</tr>
1161<tr>
1162<td class="parameter_name"><p>size_func</p></td>
1163<td class="parameter_description"><p> A sizing function, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
1164<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
1165</tr>
1166<tr>
1167<td class="parameter_name"><p>user_data</p></td>
1168<td class="parameter_description"><p>User data to pass to <em class="parameter"><code>size_func</code></em>
1169, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
1170<td class="parameter_annotations"> </td>
1171</tr>
1172<tr>
1173<td class="parameter_name"><p>user_data_destroy</p></td>
1174<td class="parameter_description"><p>Destroy function for <em class="parameter"><code>user_data</code></em>
1175, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
1176<td class="parameter_annotations"> </td>
1177</tr>
1178</tbody>
1179</table></div>
1180</div>
1181</div>
1182</div>
1183<div class="refsect1">
1184<a name="RsvgHandle.other_details"></a><h2>Types and Values</h2>
1185<div class="refsect2">
1186<a name="RsvgError"></a><h3>enum RsvgError</h3>
1187<p>An enumeration representing possible errors</p>
1188<div class="refsect3">
1189<a name="id-1.2.3.9.2.4"></a><h4>Members</h4>
1190<div class="informaltable"><table width="100%" border="0">
1191<colgroup>
1192<col width="300px" class="enum_members_name">
1193<col class="enum_members_description">
1194<col width="200px" class="enum_members_annotations">
1195</colgroup>
1196<tbody><tr>
1197<td class="enum_member_name"><p><a name="RSVG-ERROR-FAILED:CAPS"></a>RSVG_ERROR_FAILED</p></td>
1198<td class="enum_member_description">
1199<p>the request failed</p>
1200</td>
1201<td class="enum_member_annotations"> </td>
1202</tr></tbody>
1203</table></div>
1204</div>
1205</div>
1206<hr>
1207<div class="refsect2">
1208<a name="RsvgHandle-struct"></a><h3>struct RsvgHandle</h3>
1209<pre class="programlisting">struct RsvgHandle;</pre>
1210<p>The <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> is an object representing the parsed form of a SVG</p>
1211</div>196</div>
1212<hr>197<hr>
1213<div class="refsect2">198<div class="refsect2">
@@ -1220,23 +205,20 @@
1220 GObjectClass parent;205 GObjectClass parent;
1221};206};
1222</pre>207</pre>
1223<p>Class structure for <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p>208<p>
1224<div class="refsect3">209Class structure for <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
1225<a name="id-1.2.3.9.5.5"></a><h4>Members</h4>210</p>
1226<div class="informaltable"><table width="100%" border="0">211<div class="variablelist"><table border="0" class="variablelist">
1227<colgroup>212<colgroup>
1228<col width="300px" class="struct_members_name">213<col align="left" valign="top">
1229<col class="struct_members_description">214<col>
1230<col width="200px" class="struct_members_annotations">
1231</colgroup>215</colgroup>
1232<tbody><tr>216<tbody><tr>
1233<td class="struct_member_name"><p><a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="RsvgHandleClass.parent"></a>parent</code></em>;</p></td>217<td><p><span class="term"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="RsvgHandleClass.parent"></a>parent</code></em>;</span></p></td>
1234<td class="struct_member_description"><p>parent class</p></td>218<td>parent class</td>
1235<td class="struct_member_annotations"> </td>
1236</tr></tbody>219</tr></tbody>
1237</table></div>220</table></div>
1238</div>221</div>
1239</div>
1240<hr>222<hr>
1241<div class="refsect2">223<div class="refsect2">
1242<a name="RsvgDimensionData"></a><h3>struct RsvgDimensionData</h3>224<a name="RsvgDimensionData"></a><h3>struct RsvgDimensionData</h3>
@@ -1247,39 +229,31 @@
1247 gdouble ex;229 gdouble ex;
1248};230};
1249</pre>231</pre>
1250<div class="refsect3">232<div class="variablelist"><table border="0" class="variablelist">
1251<a name="id-1.2.3.9.6.4"></a><h4>Members</h4>
1252<div class="informaltable"><table width="100%" border="0">
1253<colgroup>233<colgroup>
1254<col width="300px" class="struct_members_name">234<col align="left" valign="top">
1255<col class="struct_members_description">235<col>
1256<col width="200px" class="struct_members_annotations">
1257</colgroup>236</colgroup>
1258<tbody>237<tbody>
1259<tr>238<tr>
1260<td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="RsvgDimensionData.width"></a>width</code></em>;</p></td>239<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="RsvgDimensionData.width"></a>width</code></em>;</span></p></td>
1261<td class="struct_member_description"><p>SVG's width, in pixels</p></td>240<td>SVG's width, in pixels</td>
1262<td class="struct_member_annotations"> </td>241</tr>
1263</tr>242<tr>
1264<tr>243<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="RsvgDimensionData.height"></a>height</code></em>;</span></p></td>
1265<td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="RsvgDimensionData.height"></a>height</code></em>;</p></td>244<td>SVG's height, in pixels</td>
1266<td class="struct_member_description"><p>SVG's height, in pixels</p></td>245</tr>
1267<td class="struct_member_annotations"> </td>246<tr>
1268</tr>247<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="RsvgDimensionData.em"></a>em</code></em>;</span></p></td>
1269<tr>248<td>em</td>
1270<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="RsvgDimensionData.em"></a>em</code></em>;</p></td>249</tr>
1271<td class="struct_member_description"><p>em</p></td>250<tr>
1272<td class="struct_member_annotations"> </td>251<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="RsvgDimensionData.ex"></a>ex</code></em>;</span></p></td>
1273</tr>252<td>ex</td>
1274<tr>
1275<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="RsvgDimensionData.ex"></a>ex</code></em>;</p></td>
1276<td class="struct_member_description"><p>ex</p></td>
1277<td class="struct_member_annotations"> </td>
1278</tr>253</tr>
1279</tbody>254</tbody>
1280</table></div>255</table></div>
1281</div>256</div>
1282</div>
1283<hr>257<hr>
1284<div class="refsect2">258<div class="refsect2">
1285<a name="RsvgPositionData"></a><h3>struct RsvgPositionData</h3>259<a name="RsvgPositionData"></a><h3>struct RsvgPositionData</h3>
@@ -1288,126 +262,837 @@
1288 int y;262 int y;
1289};263};
1290</pre>264</pre>
1291<p>Position of an SVG fragment.</p>265<p>
1292<div class="refsect3">266Position of an SVG fragment.
1293<a name="id-1.2.3.9.7.5"></a><h4>Members</h4>267</p>
1294<div class="informaltable"><table width="100%" border="0">268<div class="variablelist"><table border="0" class="variablelist">
1295<colgroup>269<colgroup>
1296<col width="300px" class="struct_members_name">270<col align="left" valign="top">
1297<col class="struct_members_description">271<col>
1298<col width="200px" class="struct_members_annotations">272</colgroup>
1299</colgroup>273<tbody>
1300<tbody>274<tr>
1301<tr>275<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="RsvgPositionData.x"></a>x</code></em>;</span></p></td>
1302<td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="RsvgPositionData.x"></a>x</code></em>;</p></td>276<td>position on the x axis</td>
1303<td class="struct_member_description"><p>position on the x axis</p></td>277</tr>
1304<td class="struct_member_annotations"> </td>278<tr>
1305</tr>279<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="RsvgPositionData.y"></a>y</code></em>;</span></p></td>
1306<tr>280<td>position on the y axis</td>
1307<td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="RsvgPositionData.y"></a>y</code></em>;</p></td>281</tr>
1308<td class="struct_member_description"><p>position on the y axis</p></td>282</tbody>
1309<td class="struct_member_annotations"> </td>283</table></div>
1310</tr>284</div>
1311</tbody>285<hr>
1312</table></div>286<div class="refsect2">
1313</div>287<a name="rsvg-cleanup"></a><h3>rsvg_cleanup ()</h3>
288<pre class="programlisting"><span class="returnvalue">void</span> rsvg_cleanup (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
289<p>
290This function should not be called from normal programs.
291See <code class="function">xmlCleanupParser()</code> for more information.
292</p>
293<p class="since">Since 2.36</p>
294</div>
295<hr>
296<div class="refsect2">
297<a name="rsvg-set-default-dpi"></a><h3>rsvg_set_default_dpi ()</h3>
298<pre class="programlisting"><span class="returnvalue">void</span> rsvg_set_default_dpi (<em class="parameter"><code><span class="type">double</span> dpi</code></em>);</pre>
299<p>
300Sets the DPI for the all future outgoing pixbufs. Common values are
30175, 90, and 300 DPI. Passing a number &lt;= 0 to <em class="parameter"><code>dpi</code></em> will
302reset the DPI to whatever the default value happens to be.
303</p>
304<div class="variablelist"><table border="0" class="variablelist">
305<colgroup>
306<col align="left" valign="top">
307<col>
308</colgroup>
309<tbody><tr>
310<td><p><span class="term"><em class="parameter"><code>dpi</code></em> :</span></p></td>
311<td>Dots Per Inch (aka Pixels Per Inch)</td>
312</tr></tbody>
313</table></div>
314<p class="since">Since 2.8</p>
315</div>
316<hr>
317<div class="refsect2">
318<a name="rsvg-set-default-dpi-x-y"></a><h3>rsvg_set_default_dpi_x_y ()</h3>
319<pre class="programlisting"><span class="returnvalue">void</span> rsvg_set_default_dpi_x_y (<em class="parameter"><code><span class="type">double</span> dpi_x</code></em>,
320 <em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);</pre>
321<p>
322Sets the DPI for the all future outgoing pixbufs. Common values are
32375, 90, and 300 DPI. Passing a number &lt;= 0 to <em class="parameter"><code>dpi</code></em> will
324reset the DPI to whatever the default value happens to be.
325</p>
326<div class="variablelist"><table border="0" class="variablelist">
327<colgroup>
328<col align="left" valign="top">
329<col>
330</colgroup>
331<tbody>
332<tr>
333<td><p><span class="term"><em class="parameter"><code>dpi_x</code></em> :</span></p></td>
334<td>Dots Per Inch (aka Pixels Per Inch)</td>
335</tr>
336<tr>
337<td><p><span class="term"><em class="parameter"><code>dpi_y</code></em> :</span></p></td>
338<td>Dots Per Inch (aka Pixels Per Inch)</td>
339</tr>
340</tbody>
341</table></div>
342<p class="since">Since 2.8</p>
343</div>
344<hr>
345<div class="refsect2">
346<a name="rsvg-handle-set-dpi"></a><h3>rsvg_handle_set_dpi ()</h3>
347<pre class="programlisting"><span class="returnvalue">void</span> rsvg_handle_set_dpi (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
348 <em class="parameter"><code><span class="type">double</span> dpi</code></em>);</pre>
349<p>
350Sets the DPI for the outgoing pixbuf. Common values are
35175, 90, and 300 DPI. Passing a number &lt;= 0 to <em class="parameter"><code>dpi</code></em> will
352reset the DPI to whatever the default value happens to be.
353</p>
354<div class="variablelist"><table border="0" class="variablelist">
355<colgroup>
356<col align="left" valign="top">
357<col>
358</colgroup>
359<tbody>
360<tr>
361<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
362<td>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
363</td>
364</tr>
365<tr>
366<td><p><span class="term"><em class="parameter"><code>dpi</code></em> :</span></p></td>
367<td>Dots Per Inch (aka Pixels Per Inch)</td>
368</tr>
369</tbody>
370</table></div>
371<p class="since">Since 2.8</p>
372</div>
373<hr>
374<div class="refsect2">
375<a name="rsvg-handle-set-dpi-x-y"></a><h3>rsvg_handle_set_dpi_x_y ()</h3>
376<pre class="programlisting"><span class="returnvalue">void</span> rsvg_handle_set_dpi_x_y (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
377 <em class="parameter"><code><span class="type">double</span> dpi_x</code></em>,
378 <em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);</pre>
379<p>
380Sets the DPI for the outgoing pixbuf. Common values are
38175, 90, and 300 DPI. Passing a number &lt;= 0 to <span class="type">dpi_x</span> or <em class="parameter"><code>dpi_y</code></em> will
382reset the DPI to whatever the default value happens to be.
383</p>
384<div class="variablelist"><table border="0" class="variablelist">
385<colgroup>
386<col align="left" valign="top">
387<col>
388</colgroup>
389<tbody>
390<tr>
391<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
392<td>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
393</td>
394</tr>
395<tr>
396<td><p><span class="term"><em class="parameter"><code>dpi_x</code></em> :</span></p></td>
397<td>Dots Per Inch (aka Pixels Per Inch)</td>
398</tr>
399<tr>
400<td><p><span class="term"><em class="parameter"><code>dpi_y</code></em> :</span></p></td>
401<td>Dots Per Inch (aka Pixels Per Inch)</td>
402</tr>
403</tbody>
404</table></div>
405<p class="since">Since 2.8</p>
406</div>
407<hr>
408<div class="refsect2">
409<a name="rsvg-handle-new"></a><h3>rsvg_handle_new ()</h3>
410<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * rsvg_handle_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
411<p>
412Returns a new rsvg handle. Must be freed with <em class="parameter"><code>g_object_unref</code></em>. This
413handle can be used for dynamically loading an image. You need to feed it
414data using <em class="parameter"><code>rsvg_handle_write</code></em>, then call <em class="parameter"><code>rsvg_handle_close</code></em> when done.
415Afterwords, you can render it using Cairo or get a GdkPixbuf from it. When
416finished, free with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. No more than one image can be loaded
417with one handle.
418</p>
419<div class="variablelist"><table border="0" class="variablelist">
420<colgroup>
421<col align="left" valign="top">
422<col>
423</colgroup>
424<tbody><tr>
425<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
426<td>A new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
427</td>
428</tr></tbody>
429</table></div>
430</div>
431<hr>
432<div class="refsect2">
433<a name="rsvg-handle-new-with-flags"></a><h3>rsvg_handle_new_with_flags ()</h3>
434<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * rsvg_handle_new_with_flags (<em class="parameter"><code><a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a> flags</code></em>);</pre>
435<p>
436Creates a new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> with flags <em class="parameter"><code>flags</code></em>.
437</p>
438<div class="variablelist"><table border="0" class="variablelist">
439<colgroup>
440<col align="left" valign="top">
441<col>
442</colgroup>
443<tbody>
444<tr>
445<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
446<td>flags from <a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a>
447</td>
448</tr>
449<tr>
450<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
451<td>a new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
452</td>
453</tr>
454</tbody>
455</table></div>
456<p class="since">Since 2.36</p>
457</div>
458<hr>
459<div class="refsect2">
460<a name="rsvg-handle-write"></a><h3>rsvg_handle_write ()</h3>
461<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rsvg_handle_write (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
462 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
463 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
464 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
465<p>
466Loads the next <em class="parameter"><code>count</code></em> bytes of the image. This will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the data
467was loaded successful, and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an error occurred. In the latter case,
468the loader will be closed, and will not accept further writes. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is
469returned, <em class="parameter"><code>error</code></em> will be set to an error from the <a class="link" href="RsvgHandle.html#RsvgError"><span class="type">RsvgError</span></a> domain. Errors
470from <a href="http://library.gnome.org/devel/gio/unstable/gio-GIOError.html#GIOErrorEnum"><span class="type">GIOErrorEnum</span></a> are also possible.
471</p>
472<div class="variablelist"><table border="0" class="variablelist">
473<colgroup>
474<col align="left" valign="top">
475<col>
476</colgroup>
477<tbody>
478<tr>
479<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
480<td>an <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
481</td>
482</tr>
483<tr>
484<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
485<td>pointer to svg data. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=count][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guchar]</span>
486</td>
487</tr>
488<tr>
489<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
490<td>length of the <em class="parameter"><code>buf</code></em> buffer in bytes</td>
491</tr>
492<tr>
493<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
494<td>a location to store a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
495</td>
496</tr>
497<tr>
498<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
499<td>
500<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</td>
501</tr>
502</tbody>
503</table></div>
504</div>
505<hr>
506<div class="refsect2">
507<a name="rsvg-handle-close"></a><h3>rsvg_handle_close ()</h3>
508<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rsvg_handle_close (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
509 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
510<p>
511Closes <em class="parameter"><code>handle</code></em>, to indicate that loading the image is complete. This will
512return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the loader closed successfully. Note that <em class="parameter"><code>handle</code></em> isn't
513freed until <em class="parameter"><code>g_object_unref</code></em> is called.
514</p>
515<div class="variablelist"><table border="0" class="variablelist">
516<colgroup>
517<col align="left" valign="top">
518<col>
519</colgroup>
520<tbody>
521<tr>
522<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
523<td>a <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
524</td>
525</tr>
526<tr>
527<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
528<td>a location to store a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
529</td>
530</tr>
531<tr>
532<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
533<td>
534<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</td>
535</tr>
536</tbody>
537</table></div>
538</div>
539<hr>
540<div class="refsect2">
541<a name="rsvg-handle-get-base-uri"></a><h3>rsvg_handle_get_base_uri ()</h3>
542<pre class="programlisting">const <span class="returnvalue">char</span> * rsvg_handle_get_base_uri (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre>
543<p>
544Gets the base uri for this <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>.
545</p>
546<div class="variablelist"><table border="0" class="variablelist">
547<colgroup>
548<col align="left" valign="top">
549<col>
550</colgroup>
551<tbody>
552<tr>
553<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
554<td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
555</td>
556</tr>
557<tr>
558<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
559<td>the base uri, possibly null</td>
560</tr>
561</tbody>
562</table></div>
563<p class="since">Since 2.8</p>
564</div>
565<hr>
566<div class="refsect2">
567<a name="rsvg-handle-set-base-uri"></a><h3>rsvg_handle_set_base_uri ()</h3>
568<pre class="programlisting"><span class="returnvalue">void</span> rsvg_handle_set_base_uri (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
569 <em class="parameter"><code>const <span class="type">char</span> *base_uri</code></em>);</pre>
570<p>
571Set the base URI for this SVG. This can only be called before <a class="link" href="RsvgHandle.html#rsvg-handle-write" title="rsvg_handle_write ()"><code class="function">rsvg_handle_write()</code></a>
572has been called.
573</p>
574<div class="variablelist"><table border="0" class="variablelist">
575<colgroup>
576<col align="left" valign="top">
577<col>
578</colgroup>
579<tbody>
580<tr>
581<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
582<td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
583</td>
584</tr>
585<tr>
586<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
587<td>The base uri</td>
588</tr>
589</tbody>
590</table></div>
591<p class="since">Since 2.9</p>
592</div>
593<hr>
594<div class="refsect2">
595<a name="rsvg-handle-get-dimensions"></a><h3>rsvg_handle_get_dimensions ()</h3>
596<pre class="programlisting"><span class="returnvalue">void</span> rsvg_handle_get_dimensions (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
597 <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>);</pre>
598<p>
599Get the SVG's size. Do not call from within the size_func callback, because an infinite loop will occur.
600</p>
601<div class="variablelist"><table border="0" class="variablelist">
602<colgroup>
603<col align="left" valign="top">
604<col>
605</colgroup>
606<tbody>
607<tr>
608<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
609<td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
610</td>
611</tr>
612<tr>
613<td><p><span class="term"><em class="parameter"><code>dimension_data</code></em> :</span></p></td>
614<td>A place to store the SVG's size. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
615</td>
616</tr>
617</tbody>
618</table></div>
619<p class="since">Since 2.14</p>
620</div>
621<hr>
622<div class="refsect2">
623<a name="rsvg-handle-get-dimensions-sub"></a><h3>rsvg_handle_get_dimensions_sub ()</h3>
624<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rsvg_handle_get_dimensions_sub (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
625 <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>,
626 <em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre>
627<p>
628Get the size of a subelement of the SVG file. Do not call from within the size_func callback, because an infinite loop will occur.
629</p>
630<div class="variablelist"><table border="0" class="variablelist">
631<colgroup>
632<col align="left" valign="top">
633<col>
634</colgroup>
635<tbody>
636<tr>
637<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
638<td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
639</td>
640</tr>
641<tr>
642<td><p><span class="term"><em class="parameter"><code>dimension_data</code></em> :</span></p></td>
643<td>A place to store the SVG's size. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
644</td>
645</tr>
646<tr>
647<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
648<td>An element's id within the SVG, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to get
649the dimension of the whole SVG. For example, if you have a layer
650called "layer1" for that you want to get the dimension, pass
651"<span class="type">layer1</span>" as the id. <span class="annotation">[nullable]</span>
652</td>
653</tr>
654</tbody>
655</table></div>
656<p class="since">Since 2.22</p>
657</div>
658<hr>
659<div class="refsect2">
660<a name="rsvg-handle-get-position-sub"></a><h3>rsvg_handle_get_position_sub ()</h3>
661<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rsvg_handle_get_position_sub (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
662 <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData"><span class="type">RsvgPositionData</span></a> *position_data</code></em>,
663 <em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre>
664<p>
665Get the position of a subelement of the SVG file. Do not call from within
666the size_func callback, because an infinite loop will occur.
667</p>
668<div class="variablelist"><table border="0" class="variablelist">
669<colgroup>
670<col align="left" valign="top">
671<col>
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: