summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-05-30 23:31:32 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2013-05-30 23:31:32 +0200
commit2ff44b6face98cdf556412ce0266bc8c9ab3012e (patch)
tree247aa94d346966a32f5d66d34fda6d1e15c2c9aa /m4
parent29a4edb27465a9db9d717642ff8fb36255e33d4f (diff)
image loaders m4: add ARG_ENABLE_EVAS_IMAGE_LOADER to rule them all
possibles values: yes | static | auto | no
Diffstat (limited to 'm4')
-rw-r--r--m4/evas_check_loader.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/m4/evas_check_loader.m4 b/m4/evas_check_loader.m4
index 31d64e9..59ca99f 100644
--- a/m4/evas_check_loader.m4
+++ b/m4/evas_check_loader.m4
@@ -1,4 +1,31 @@
1 1
2dnl use: ARG_ENABLE_EVAS_IMAGE_LOADER(loader, default_value)
3
4AC_DEFUN([ARG_ENABLE_EVAS_IMAGE_LOADER],
5[dnl
6m4_pushdef([DOWN], m4_tolower([$1]))dnl
7
8AC_ARG_ENABLE([image-loader-[]DOWN],
9 [AC_HELP_STRING([--enable-image-loader-[]DOWN], [enable $1 image loader. @<:@default=$2@:>@])],
10 [
11 if test "x${enableval}" = "xyes" ; then
12 want_evas_image_loader_[]DOWN="yes"
13 else
14 if test "x${enableval}" = "xstatic" ; then
15 want_evas_image_loader_[]DOWN="static"
16 else
17 if test "x${enableval}" = "xauto" ; then
18 want_evas_image_loader_[]DOWN="auto"
19 else
20 want_evas_image_loader_[]DOWN="no"
21 fi
22 fi
23 fi
24 ],
25 [want_evas_image_loader_[]DOWN="$2"])
26m4_popdef([DOWN])dnl
27])
28
2dnl use: EVAS_CHECK_LOADER_DEP_BMP(loader, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 29dnl use: EVAS_CHECK_LOADER_DEP_BMP(loader, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
3 30
4AC_DEFUN([EVAS_CHECK_LOADER_DEP_BMP], 31AC_DEFUN([EVAS_CHECK_LOADER_DEP_BMP],