summaryrefslogtreecommitdiff
path: root/legacy/evas/m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-05-16 21:28:36 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-05-16 21:28:36 +0000
commit61656c2ecce7b5dc6a3a365bff0130be0e54e897 (patch)
treef553d48ff9caf2cf1e0f1f4a840b0ad02998253f /legacy/evas/m4
parent2dc0014f4a1944474305b1a3c94c9c2e54fe1b19 (diff)
Evas: use Esvg for svg rendering.
If Esvg is not found, librsvg is used (if found) See README to see how to installe Esvg SVN revision: 71180
Diffstat (limited to 'legacy/evas/m4')
-rw-r--r--legacy/evas/m4/evas_check_loader.m420
1 files changed, 14 insertions, 6 deletions
diff --git a/legacy/evas/m4/evas_check_loader.m4 b/legacy/evas/m4/evas_check_loader.m4
index a265094..ea50157 100644
--- a/legacy/evas/m4/evas_check_loader.m4
+++ b/legacy/evas/m4/evas_check_loader.m4
@@ -228,15 +228,21 @@ AC_DEFUN([EVAS_CHECK_LOADER_DEP_SVG],
228[ 228[
229 229
230requirement="" 230requirement=""
231have_dep="no" 231have_esvg="no"
232evas_image_loader_[]$1[]_cflags="" 232evas_image_loader_[]$1[]_cflags=""
233evas_image_loader_[]$1[]_libs="" 233evas_image_loader_[]$1[]_libs=""
234 234
235PKG_CHECK_MODULES([SVG], [librsvg-2.0 >= 2.14.0 235PKG_CHECK_MODULES([SVG],
236 cairo >= 1.0.0], 236 [esvg >= 0.0.16],
237 [have_dep="yes" requirement="librsvg-2.0 cairo"], 237 [have_dep="yes" have_esvg="yes" requirement="esvg"],
238 [have_svg="no"] 238 [have_dep="no"])
239) 239
240if test "x${have_dep}" = "xno" ; then
241 PKG_CHECK_MODULES([SVG],
242 [librsvg-2.0 >= 2.14.0 cairo >= 1.0.0],
243 [have_dep="yes" requirement="librsvg-2.0 cairo"],
244 [have_dep="no"])
245fi
240 246
241if test "x${have_dep}" = "xyes" ; then 247if test "x${have_dep}" = "xyes" ; then
242 evas_image_loader_[]$1[]_cflags="${SVG_CFLAGS}" 248 evas_image_loader_[]$1[]_cflags="${SVG_CFLAGS}"
@@ -250,6 +256,8 @@ if test "x$2" = "xstatic" ; then
250 requirement_evas="${requirement} ${requirement_evas}" 256 requirement_evas="${requirement} ${requirement_evas}"
251fi 257fi
252 258
259AM_CONDITIONAL(BUILD_LOADER_SVG_ESVG, [test "x${have_esvg}" = "xyes"])
260
253if test "x${have_dep}" = "xyes" ; then 261if test "x${have_dep}" = "xyes" ; then
254 m4_default([$3], [:]) 262 m4_default([$3], [:])
255else 263else