aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/evas/m4/evas_dither.m4
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-04 18:41:13 +1000
committerDavid Walter Seikel2012-01-04 18:41:13 +1000
commitdd7595a3475407a7fa96a97393bae8c5220e8762 (patch)
treee341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/evas/m4/evas_dither.m4
parentAdd the skeleton. (diff)
downloadSledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/evas/m4/evas_dither.m4')
-rw-r--r--libraries/evas/m4/evas_dither.m444
1 files changed, 44 insertions, 0 deletions
diff --git a/libraries/evas/m4/evas_dither.m4 b/libraries/evas/m4/evas_dither.m4
new file mode 100644
index 0000000..f8dcca3
--- /dev/null
+++ b/libraries/evas/m4/evas_dither.m4
@@ -0,0 +1,44 @@
1dnl Copyright (C) 2009 Vincent Torri <vtorri at univ-evry dot fr>
2dnl That code is public domain and can be freely used or copied.
3
4dnl Macro that enables dithering support is wanted.
5
6dnl Usage: EVAS_CHECK_DITHER(dither, description [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
7dnl The parameter 'dither' is the type of dithering.
8dnl The parameter 'description' is the description of the dithering.
9dnl Defines BUILD_[TYPEOFDITHERING]
10
11AC_DEFUN([EVAS_CHECK_DITHER],
12[
13m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
14m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
15
16AC_ARG_ENABLE([$1],
17 AC_HELP_STRING([--enable-$1], [enable $2 @<:@default=disabled@:>@]),
18 [
19 if test "x${enableval}" = "xyes" ; then
20 _efl_enable_dither_option_[]DOWN="yes"
21 else
22 _efl_enable_dither_option_[]DOWN="no"
23 fi
24 ],
25 [_efl_enable_dither_option_[]DOWN="no"])
26
27AC_MSG_CHECKING(whether to build $2)
28AC_MSG_RESULT([${_efl_enable_dither_option_[]DOWN}])
29
30if test "x${_efl_enable_dither_option_[]DOWN}" = "xyes" ; then
31 AC_DEFINE([BUILD_]UP[], [1], [define to 1 if you have the $2 support])
32fi
33
34if test "x${_efl_enable_dither_option_[]DOWN}" = "xyes" ; then
35 m4_default([$3], [:])
36else
37 m4_default([$4], [:])
38fi
39
40m4_popdef([UP])
41m4_popdef([DOWN])
42])
43
44dnl End of evas_dither.m4