[AS_HELP_STRING([--with-rsvg=yes],[rsvg library])],
[], [with_rsvg=yes])
+have_svg_2_36="no"
if test "x$with_rsvg" != "xyes"; then
use_rsvg="No (disabled)"
else
],[
use_rsvg="No (rsvg library not available)"
])
+ PKG_CHECK_MODULES([SVG_2_36], [librsvg-2.0 >= 2.36.0 cairo >= 1.0.0],[
+ have_svg_2_36="yes"
+ AC_DEFINE(HAVE_SVG_2_36, 1, [Have librsvg >= 2.36])
+ ],[
+ have_svg_2_36="no"
+ ])
fi
AM_CONDITIONAL(WITH_RSVG, [test "x$use_rsvg" = "xYes"])
#ifdef HAVE_PANGOCAIRO
#ifdef HAVE_RSVG
#include <librsvg/rsvg.h>
+#ifndef RSVG_CAIRO_H
#include <librsvg/rsvg-cairo.h>
+#endif
#include <cairo/cairo-svg.h>
#ifdef WIN32
switch (us->type) {
case FT_SVG:
+
#if HAVE_G_TYPE_INIT
+/* g_type_init() was deprecated in glib 2.36.0 */
+#if !GLIB_CHECK_VERSION (2, 36, 0)
g_type_init();
+#endif
#else
rsvg_init();
#endif
#if HAVE_G_TYPE_TERM
g_type_term();
#else
+#ifndef HAVE_SVG_2_36
rsvg_term();
+#endif
#endif
return NULL;
}
#if HAVE_G_TYPE_TERM
g_type_term();
#else
- rsvg_term();
+#ifndef HAVE_SVG_2_36
+ rsvg_term();
+#endif
#endif
return NULL;
}
#if HAVE_G_TYPE_TERM
g_type_term();
#else
- rsvg_term();
+#ifndef HAVE_SVG_2_36
+ rsvg_term();
+#endif
#endif
return NULL;
}
#if HAVE_G_TYPE_TERM
g_type_term();
#else
- rsvg_term();
+#ifndef HAVE_SVG_2_36
+ rsvg_term();
+#endif
#endif
return NULL;
}