aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-12-08 18:17:12 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-12-08 18:17:12 +0000
commitc75c7a67d5c74dc466ca81e42929d69cbade3673 (patch)
tree61f116747ea85f949d9f447ec4ee83e803d7f742 /m4
parent66f9c7f5b5fc6e498f6eafc59e4c77f8bdd419ae (diff)
downloadefl-c75c7a67d5c74dc466ca81e42929d69cbade3673.tar.gz
efl-c75c7a67d5c74dc466ca81e42929d69cbade3673.tar.xz
efl-c75c7a67d5c74dc466ca81e42929d69cbade3673.zip
elm elc_naviframe.c: Use EINA_LIST_FREE instead of EINA_LIST_FOREACH + eina_list_free.
SVN revision: 80529
Diffstat (limited to 'm4')
-rw-r--r--m4/evas_dither.m444
1 files changed, 44 insertions, 0 deletions
diff --git a/m4/evas_dither.m4 b/m4/evas_dither.m4
new file mode 100644
index 000000000..f8dcca3b7
--- /dev/null
+++ b/m4/evas_dither.m4
@@ -0,0 +1,44 @@
+dnl Copyright (C) 2009 Vincent Torri <vtorri at univ-evry dot fr>
+dnl That code is public domain and can be freely used or copied.
+
+dnl Macro that enables dithering support is wanted.
+
+dnl Usage: EVAS_CHECK_DITHER(dither, description [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
+dnl The parameter 'dither' is the type of dithering.
+dnl The parameter 'description' is the description of the dithering.
+dnl Defines BUILD_[TYPEOFDITHERING]
+
+AC_DEFUN([EVAS_CHECK_DITHER],
+[
+m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
+m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
+
+AC_ARG_ENABLE([$1],
+ AC_HELP_STRING([--enable-$1], [enable $2 @<:@default=disabled@:>@]),
+ [
+ if test "x${enableval}" = "xyes" ; then
+ _efl_enable_dither_option_[]DOWN="yes"
+ else
+ _efl_enable_dither_option_[]DOWN="no"
+ fi
+ ],
+ [_efl_enable_dither_option_[]DOWN="no"])
+
+AC_MSG_CHECKING(whether to build $2)
+AC_MSG_RESULT([${_efl_enable_dither_option_[]DOWN}])
+
+if test "x${_efl_enable_dither_option_[]DOWN}" = "xyes" ; then
+ AC_DEFINE([BUILD_]UP[], [1], [define to 1 if you have the $2 support])
+fi
+
+if test "x${_efl_enable_dither_option_[]DOWN}" = "xyes" ; then
+ m4_default([$3], [:])
+else
+ m4_default([$4], [:])
+fi
+
+m4_popdef([UP])
+m4_popdef([DOWN])
+])
+
+dnl End of evas_dither.m4