summaryrefslogtreecommitdiff
path: root/legacy/evas/m4/evas_check_loader.m4
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-11-13 23:52:18 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-11-13 23:52:18 +0000
commitcd926b304dc8f072d99d55f90ef4bd6ad9d3a62f (patch)
treeab108ceeb5d9b72e9998c7e5c58d7ba3aaeed5e7 /legacy/evas/m4/evas_check_loader.m4
parent30965869f0e3aaea6adb2765e98a6797e9f03749 (diff)
move libs already in EFL into... IN-EFL - this will stop/prevent/limit
thnigs like people using them and patching them, etc. SVN revision: 79255
Diffstat (limited to '')
-rw-r--r--legacy/evas/m4/evas_check_loader.m4232
1 files changed, 0 insertions, 232 deletions
diff --git a/legacy/evas/m4/evas_check_loader.m4 b/legacy/evas/m4/evas_check_loader.m4
deleted file mode 100644
index c4fd834412..0000000000
--- a/legacy/evas/m4/evas_check_loader.m4
+++ /dev/null
@@ -1,232 +0,0 @@
1dnl use: EVAS_CHECK_LOADER_DEP_GIF(loader, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
2
3AC_DEFUN([EVAS_CHECK_LOADER_DEP_GIF],
4[
5
6have_dep="no"
7evas_image_loader_[]$1[]_cflags=""
8evas_image_loader_[]$1[]_libs=""
9
10AC_CHECK_HEADER([gif_lib.h], [have_dep="yes"])
11
12if test "x${have_dep}" = "xyes" ; then
13 AC_CHECK_LIB([gif],
14 [DGifOpenFileName],
15 [
16 evas_image_loader_[]$1[]_libs="-lgif"
17 ],
18 [have_dep="no"]
19 )
20
21 if test "x${have_dep}" = "xno" ; then
22 AC_CHECK_LIB([ungif],
23 [DGifOpenFileName],
24 [
25 have_dep="yes"
26 evas_image_loader_[]$1[]_libs="-lungif"
27 ]
28 )
29 fi
30fi
31
32AC_SUBST([evas_image_loader_$1_cflags])
33AC_SUBST([evas_image_loader_$1_libs])
34
35if test "x${have_dep}" = "xyes" ; then
36 m4_default([$3], [:])
37else
38 m4_default([$4], [:])
39fi
40
41])
42
43dnl use: EVAS_CHECK_LOADER_DEP_SVG(loader, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
44
45AC_DEFUN([EVAS_CHECK_LOADER_DEP_SVG],
46[
47
48requirement=""
49have_esvg="no"
50evas_image_loader_[]$1[]_cflags=""
51evas_image_loader_[]$1[]_libs=""
52version_esvg="0.0.18"
53version_ender="0.0.6"
54
55PKG_CHECK_MODULES([SVG],
56 [esvg >= ${version_esvg} ender >= ${version_ender}],
57 [have_dep="yes" have_esvg="yes" requirement="esvg >= ${version_esvg} ender >= ${version_ender}"],
58 [have_dep="no"])
59
60if test "x${have_dep}" = "xyes" ; then
61 evas_image_loader_[]$1[]_cflags="${SVG_CFLAGS}"
62 evas_image_loader_[]$1[]_libs="${SVG_LIBS}"
63fi
64
65AC_SUBST([evas_image_loader_$1_cflags])
66AC_SUBST([evas_image_loader_$1_libs])
67
68if test "x$2" = "xstatic" ; then
69 requirement_evas="${requirement} ${requirement_evas}"
70fi
71
72if test "x${have_dep}" = "xyes" ; then
73 m4_default([$3], [:])
74else
75 m4_default([$4], [:])
76fi
77
78])
79
80dnl use: EVAS_CHECK_LOADER_DEP_TIFF(loader, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
81
82AC_DEFUN([EVAS_CHECK_LOADER_DEP_TIFF],
83[
84
85have_dep="no"
86evas_image_loader_[]$1[]_cflags=""
87evas_image_loader_[]$1[]_libs=""
88
89AC_CHECK_HEADER([tiffio.h], [have_dep="yes"])
90
91if test "x${have_dep}" = "xyes" ; then
92 AC_CHECK_LIB([tiff],
93 [TIFFReadScanline],
94 [
95 evas_image_loader_[]$1[]_libs="-ltiff"
96 ],
97 [have_dep="no"]
98 )
99
100 if test "x${have_dep}" = "xno" ; then
101 AC_CHECK_LIB([tiff],
102 [TIFFReadScanline],
103 [
104 have_dep="yes"
105 evas_image_loader_[]$1[]_libs="-ltiff -ljpeg -lz -lm"
106 ]
107 )
108 fi
109
110 if test "x${have_dep}" = "xno" ; then
111 AC_CHECK_LIB([tiff34],
112 [TIFFReadScanline],
113 [
114 have_dep="yes"
115 evas_image_loader_[]$1[]_libs="-ltiff34 -ljpeg -lz -lm"
116 ]
117 )
118 fi
119fi
120
121AC_SUBST([evas_image_loader_$1_cflags])
122AC_SUBST([evas_image_loader_$1_libs])
123
124if test "x${have_dep}" = "xyes" ; then
125 m4_default([$3], [:])
126else
127 m4_default([$4], [:])
128fi
129
130])
131
132dnl use: EVAS_CHECK_LOADER_DEP_WEBP(loader, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
133
134AC_DEFUN([EVAS_CHECK_LOADER_DEP_WEBP],
135[
136
137have_dep="no"
138evas_image_loader_[]$1[]_cflags=""
139evas_image_loader_[]$1[]_libs=""
140
141AC_CHECK_HEADER([webp/decode.h], [have_dep="yes"])
142
143if test "x${have_dep}" = "xyes" ; then
144 AC_CHECK_LIB([webp],
145 [WebPDecodeRGBA],
146 [
147 evas_image_loader_[]$1[]_libs="-lwebp"
148 ],
149 [have_dep="no"]
150 )
151fi
152
153AC_SUBST([evas_image_loader_$1_cflags])
154AC_SUBST([evas_image_loader_$1_libs])
155
156if test "x${have_dep}" = "xyes" ; then
157 m4_default([$3], [:])
158else
159 m4_default([$4], [:])
160fi
161
162])
163
164dnl use: EVAS_CHECK_IMAGE_LOADER(loader, want_loader, macro)
165
166
167AC_DEFUN([EVAS_CHECK_IMAGE_LOADER],
168[
169
170m4_pushdef([UP], m4_toupper([$1]))
171m4_pushdef([DOWN], m4_tolower([$1]))
172
173want_loader="$2"
174want_static_loader="no"
175have_loader="no"
176have_evas_image_loader_[]DOWN="no"
177
178AC_ARG_ENABLE([image-loader-[]DOWN],
179 [AC_HELP_STRING([--enable-image-loader-[]DOWN], [enable $1 image loader])],
180 [
181 if test "x${enableval}" = "xyes" ; then
182 want_loader="yes"
183 else
184 if test "x${enableval}" = "xstatic" ; then
185 want_loader="static"
186 else
187 want_loader="no"
188 fi
189 fi
190 ]
191)
192
193AC_MSG_CHECKING([whether to enable $1 image loader])
194AC_MSG_RESULT([${want_loader}])
195
196if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
197 m4_default([EVAS_CHECK_LOADER_DEP_]m4_defn([UP]))(DOWN, ${want_loader}, [have_loader="yes"], [have_loader="no"])
198fi
199
200if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
201 AC_MSG_ERROR([$1 dependencies not found (strict dependencies checking)])
202fi
203
204AC_MSG_CHECKING([whether $1 image loader will be built])
205AC_MSG_RESULT([${have_loader}])
206
207if test "x${have_loader}" = "xyes" ; then
208 if test "x${want_loader}" = "xstatic" ; then
209 have_evas_image_loader_[]DOWN="static"
210 want_static_loader="yes"
211 else
212 have_evas_image_loader_[]DOWN="yes"
213 fi
214fi
215
216if test "x${have_loader}" = "xyes" ; then
217 AC_DEFINE(BUILD_LOADER_[]UP, [1], [UP Image Loader Support])
218fi
219
220AM_CONDITIONAL(BUILD_LOADER_[]UP, [test "x${have_loader}" = "xyes"])
221
222if test "x${want_static_loader}" = "xyes" ; then
223 AC_DEFINE(EVAS_STATIC_BUILD_[]UP, [1], [Build $1 image loader inside libevas])
224 have_static_module="yes"
225fi
226
227AM_CONDITIONAL(EVAS_STATIC_BUILD_[]UP, [test "x${want_static_loader}" = "xyes"])
228
229m4_popdef([UP])
230m4_popdef([DOWN])
231
232])