summaryrefslogtreecommitdiff
path: root/legacy/evas/m4/evas_check_loader.m4
diff options
context:
space:
mode:
authorIgor Murzov <e-mail@date.by>2012-09-03 06:22:59 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-09-03 06:22:59 +0000
commite42648154ff65e676ce1dec02ea00d5bc8308d46 (patch)
treeadf0710a752ba580703b4097c8f1fe959bf3ded8 /legacy/evas/m4/evas_check_loader.m4
parente7d316dbc211331dcdd8410f41deb881bbd888eb (diff)
From: Igor Murzov <e-mail@date.by>
Subject: [E-devel] [PATCH][RESEND][Evas] WebP image loader This patch adds a WebP image loader to Evas. No saver, no animation support for now, just loader. Tested with the libwebp-0.2.0 only, but should work fine with older versions. SVN revision: 75951
Diffstat (limited to '')
-rw-r--r--legacy/evas/m4/evas_check_loader.m432
1 files changed, 32 insertions, 0 deletions
diff --git a/legacy/evas/m4/evas_check_loader.m4 b/legacy/evas/m4/evas_check_loader.m4
index cf4924ecc9..01304847e2 100644
--- a/legacy/evas/m4/evas_check_loader.m4
+++ b/legacy/evas/m4/evas_check_loader.m4
@@ -429,6 +429,38 @@ fi
429 429
430]) 430])
431 431
432dnl use: EVAS_CHECK_LOADER_DEP_WEBP(loader, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
433
434AC_DEFUN([EVAS_CHECK_LOADER_DEP_WEBP],
435[
436
437have_dep="no"
438evas_image_loader_[]$1[]_cflags=""
439evas_image_loader_[]$1[]_libs=""
440
441AC_CHECK_HEADER([webp/decode.h], [have_dep="yes"])
442
443if test "x${have_dep}" = "xyes" ; then
444 AC_CHECK_LIB([webp],
445 [WebPDecodeRGBA],
446 [
447 evas_image_loader_[]$1[]_libs="-lwebp"
448 ],
449 [have_dep="no"]
450 )
451fi
452
453AC_SUBST([evas_image_loader_$1_cflags])
454AC_SUBST([evas_image_loader_$1_libs])
455
456if test "x${have_dep}" = "xyes" ; then
457 m4_default([$3], [:])
458else
459 m4_default([$4], [:])
460fi
461
462])
463
432dnl use: EVAS_CHECK_LOADER_DEP_GENERIC(loader, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 464dnl use: EVAS_CHECK_LOADER_DEP_GENERIC(loader, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
433 465
434AC_DEFUN([EVAS_CHECK_LOADER_DEP_GENERIC], 466AC_DEFUN([EVAS_CHECK_LOADER_DEP_GENERIC],