diff options
Diffstat (limited to 'libraries/evas/m4/evas_converter.m4')
-rw-r--r-- | libraries/evas/m4/evas_converter.m4 | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/libraries/evas/m4/evas_converter.m4 b/libraries/evas/m4/evas_converter.m4 new file mode 100644 index 0000000..4a5a390 --- /dev/null +++ b/libraries/evas/m4/evas_converter.m4 | |||
@@ -0,0 +1,83 @@ | |||
1 | dnl use: EVAS_CONVERT_COLOR(bpp, colorspace, components[, default-enabled]) | ||
2 | AC_DEFUN([EVAS_CONVERT_COLOR], | ||
3 | [ | ||
4 | pushdef([UP], translit([$1_$2_$3], [a-z], [A-Z]))dnl | ||
5 | pushdef([DOWN_D], translit([$1-$2-$3], [A-Z], [a-z]))dnl | ||
6 | pushdef([DOWN_U], translit([$1_$2_$3], [A-Z], [a-z]))dnl | ||
7 | |||
8 | conv_[]DOWN_U="no" | ||
9 | |||
10 | ifelse("x$4", "xno", | ||
11 | [ | ||
12 | AC_ARG_ENABLE(convert-[]DOWN_D, | ||
13 | AC_HELP_STRING( | ||
14 | [--enable-convert-[]DOWN_D], | ||
15 | [enable the $1bpp $2 $3 converter code] | ||
16 | ), | ||
17 | [ conv_[]DOWN_U=$enableval ], | ||
18 | [ conv_[]DOWN_U=no ] | ||
19 | ) | ||
20 | ], [ | ||
21 | AC_ARG_ENABLE(convert-[]DOWN_D, | ||
22 | AC_HELP_STRING( | ||
23 | [--disable-convert-[]DOWN_D], | ||
24 | [disable the $1bpp $2 $3 converter code] | ||
25 | ), | ||
26 | [ conv_[]DOWN_U=$enableval ], | ||
27 | [ conv_[]DOWN_U=yes ] | ||
28 | ) | ||
29 | ]) | ||
30 | |||
31 | AC_MSG_CHECKING(whether to build $1bpp $2 $3 converter code) | ||
32 | AC_MSG_RESULT($conv_[]DOWN_U) | ||
33 | |||
34 | if test "x$conv_[]DOWN_U" = "xyes" ; then | ||
35 | AC_DEFINE(BUILD_CONVERT_[]UP, 1, [$1bpp $2 $3 Converter Support]) | ||
36 | fi | ||
37 | |||
38 | popdef([UP]) | ||
39 | popdef([DOWN_D]) | ||
40 | popdef([DOWN_U]) | ||
41 | ]) | ||
42 | |||
43 | dnl use: EVAS_CONVERT_ROT(bpp, colorspace, rot[, default-enabled]) | ||
44 | AC_DEFUN([EVAS_CONVERT_ROT], | ||
45 | [ | ||
46 | pushdef([UP], translit([$1_$2_ROT$3], [a-z], [A-Z]))dnl | ||
47 | pushdef([DOWN_D], translit([$1-$2-rot-$3], [A-Z], [a-z]))dnl | ||
48 | pushdef([DOWN_U], translit([$1_$2_rot_$3], [A-Z], [a-z]))dnl | ||
49 | |||
50 | conv_[]DOWN_U="no" | ||
51 | |||
52 | ifelse("x$4", "xno", | ||
53 | [ | ||
54 | AC_ARG_ENABLE(convert-[]DOWN_D, | ||
55 | AC_HELP_STRING( | ||
56 | [--enable-convert-[]DOWN_D], | ||
57 | [enable the $1bpp $2 rotation $3 converter code] | ||
58 | ), | ||
59 | [ conv_[]DOWN_U=$enableval ], | ||
60 | [ conv_[]DOWN_U=no ] | ||
61 | ) | ||
62 | ], [ | ||
63 | AC_ARG_ENABLE(convert-[]DOWN_D, | ||
64 | AC_HELP_STRING( | ||
65 | [--disable-convert-[]DOWN_D], | ||
66 | [disable the $1bpp $2 rotation $3 converter code] | ||
67 | ), | ||
68 | [ conv_[]DOWN_U=$enableval ], | ||
69 | [ conv_[]DOWN_U=yes ] | ||
70 | ) | ||
71 | ]) | ||
72 | |||
73 | AC_MSG_CHECKING(whether to build $1bpp $2 rotation $3 converter code) | ||
74 | AC_MSG_RESULT($conv_[]DOWN_U) | ||
75 | |||
76 | if test "x$conv_[]DOWN_U" = "xyes" ; then | ||
77 | AC_DEFINE(BUILD_CONVERT_[]UP, 1, [$1bpp $2 Rotation $3 Converter Support]) | ||
78 | fi | ||
79 | |||
80 | popdef([UP]) | ||
81 | popdef([DOWN_D]) | ||
82 | popdef([DOWN_U]) | ||
83 | ]) | ||