summaryrefslogtreecommitdiff
path: root/m4/evas_check_loader.m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-11-05 09:25:44 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-11-05 09:25:44 +0000
commit8091219f10a6e3ba0b46830109c3cf472fd1dfd8 (patch)
treef6087662068c3ebda54da25d2719e2af2db74c4b /m4/evas_check_loader.m4
parent741703b11d5712356840a41ab66308987f1145cb (diff)
merge: evas fixes
* gl engines were checking for eet module, which does not exist when we install first the efl package. * fix pkgconfig values for static linking * add Evas output to configure SVN revision: 78918
Diffstat (limited to 'm4/evas_check_loader.m4')
-rw-r--r--m4/evas_check_loader.m4180
1 files changed, 67 insertions, 113 deletions
diff --git a/m4/evas_check_loader.m4 b/m4/evas_check_loader.m4
index 1b0831dcea..1f2ebf2261 100644
--- a/m4/evas_check_loader.m4
+++ b/m4/evas_check_loader.m4
@@ -11,11 +11,7 @@ evas_image_loader_[]$1[]_libs=""
11AC_SUBST([evas_image_loader_$1_cflags]) 11AC_SUBST([evas_image_loader_$1_cflags])
12AC_SUBST([evas_image_loader_$1_libs]) 12AC_SUBST([evas_image_loader_$1_libs])
13 13
14if test "x${have_dep}" = "xyes" ; then 14AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
15 m4_default([$3], [:])
16else
17 m4_default([$4], [:])
18fi
19 15
20]) 16])
21 17
@@ -29,23 +25,13 @@ have_dep="no"
29evas_image_loader_[]$1[]_cflags="" 25evas_image_loader_[]$1[]_cflags=""
30evas_image_loader_[]$1[]_libs="" 26evas_image_loader_[]$1[]_libs=""
31 27
32PKG_CHECK_MODULES([EET], [eet >= ${PACKAGE_VERSION}], [have_dep="yes" requirement="eet >= ${PACKAGE_VERSION}"], [have_dep="no"]) 28dnl Eet is required
33evas_image_loader_[]$1[]_cflags="${EET_CFLAGS}" 29have_dep="yes"
34evas_image_loader_[]$1[]_libs="${EET_LIBS}"
35 30
36AC_SUBST([evas_image_loader_$1_cflags]) 31AC_SUBST([evas_image_loader_$1_cflags])
37AC_SUBST([evas_image_loader_$1_libs]) 32AC_SUBST([evas_image_loader_$1_libs])
38 33
39if test "x$2" = "xstatic" && test "x${have_dep}" = "xyes" ; then 34AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
40 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
41 requirements_pc_deps_evas="${requirements_pc_deps_evas}"
42fi
43
44if test "x${have_dep}" = "xyes" ; then
45 m4_default([$3], [:])
46else
47 m4_default([$4], [:])
48fi
49 35
50]) 36])
51 37
@@ -61,11 +47,7 @@ evas_image_loader_[]$1[]_libs=""
61AC_SUBST([evas_image_loader_$1_cflags]) 47AC_SUBST([evas_image_loader_$1_cflags])
62AC_SUBST([evas_image_loader_$1_libs]) 48AC_SUBST([evas_image_loader_$1_libs])
63 49
64if test "x${have_dep}" = "xyes" ; then 50AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
65 m4_default([$3], [:])
66else
67 m4_default([$4], [:])
68fi
69 51
70]) 52])
71 53
@@ -108,11 +90,7 @@ fi
108AC_SUBST([evas_image_loader_$1_cflags]) 90AC_SUBST([evas_image_loader_$1_cflags])
109AC_SUBST([evas_image_loader_$1_libs]) 91AC_SUBST([evas_image_loader_$1_libs])
110 92
111if test "x${have_dep}" = "xyes" ; then 93AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
112 m4_default([$3], [:])
113else
114 m4_default([$4], [:])
115fi
116 94
117]) 95])
118 96
@@ -128,11 +106,7 @@ evas_image_loader_[]$1[]_libs=""
128AC_SUBST([evas_image_loader_$1_cflags]) 106AC_SUBST([evas_image_loader_$1_cflags])
129AC_SUBST([evas_image_loader_$1_libs]) 107AC_SUBST([evas_image_loader_$1_libs])
130 108
131if test "x${have_dep}" = "xyes" ; then 109AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
132 m4_default([$3], [:])
133else
134 m4_default([$4], [:])
135fi
136 110
137]) 111])
138 112
@@ -181,11 +155,7 @@ fi
181AC_SUBST([evas_image_loader_$1_cflags]) 155AC_SUBST([evas_image_loader_$1_cflags])
182AC_SUBST([evas_image_loader_$1_libs]) 156AC_SUBST([evas_image_loader_$1_libs])
183 157
184if test "x${have_dep}" = "xyes" ; then 158AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
185 m4_default([$3], [:])
186else
187 m4_default([$4], [:])
188fi
189 159
190]) 160])
191 161
@@ -201,11 +171,7 @@ evas_image_loader_[]$1[]_libs=""
201AC_SUBST([evas_image_loader_$1_cflags]) 171AC_SUBST([evas_image_loader_$1_cflags])
202AC_SUBST([evas_image_loader_$1_libs]) 172AC_SUBST([evas_image_loader_$1_libs])
203 173
204if test "x${have_dep}" = "xyes" ; then 174AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
205 m4_default([$3], [:])
206else
207 m4_default([$4], [:])
208fi
209 175
210]) 176])
211 177
@@ -215,54 +181,66 @@ AC_DEFUN([EVAS_CHECK_LOADER_DEP_PNG],
215[ 181[
216 182
217requirement="" 183requirement=""
184requirement_version=""
218have_dep="no" 185have_dep="no"
219evas_image_loader_[]$1[]_cflags="" 186evas_image_loader_[]$1[]_cflags=""
220evas_image_loader_[]$1[]_libs="" 187evas_image_loader_[]$1[]_libs=""
221 188
222dnl libpng.pc is the latest version of libpng that ahs been installed. 189dnl libpng.pc is the latest version of libpng that ahs been installed.
223dnl We check it first. 190dnl We check it first.
224PKG_CHECK_MODULES([PNG], 191PKG_CHECK_EXISTS([libpng >= 1.2.10],
225 [libpng >= 1.2.10], 192 [
226 [have_dep="yes" requirement="libpng"], 193 have_dep="yes"
194 requirement="libpng"
195 requirement_version="libpng >= 1.2.10"
196 ],
227 [have_dep="no"]) 197 [have_dep="no"])
228 198
229if test "x${have_dep}" = "xno" ; then 199if test "x${have_dep}" = "xno" ; then
230 PKG_CHECK_MODULES([PNG], 200 PKG_CHECK_EXISTS([libpng15],
231 [libpng15], 201 [
232 [have_dep="yes" requirement="libpng15"], 202 have_dep="yes"
203 requirement="libpng15"
204 requirement_version="libpng15"
205 ],
233 [have_dep="no"]) 206 [have_dep="no"])
234fi 207fi
235 208
236if test "x${have_dep}" = "xno" ; then 209if test "x${have_dep}" = "xno" ; then
237 PKG_CHECK_MODULES([PNG], 210 PKG_CHECK_EXISTS([libpng14],
238 [libpng14], 211 [
239 [have_dep="yes" requirement="libpng14"], 212 have_dep="yes"
213 requirement="libpng14"
214 requirement_version="libpng14"
215 ],
240 [have_dep="no"]) 216 [have_dep="no"])
241fi 217fi
242 218
243if test "x${have_dep}" = "xno" ; then 219if test "x${have_dep}" = "xno" ; then
244 PKG_CHECK_MODULES([PNG], 220 PKG_CHECK_EXISTS([libpng12 >= 1.2.10],
245 [libpng12 >= 1.2.10], 221 [
246 [have_dep="yes" requirement="libpng12"], 222 have_dep="yes"
223 requirement="libpng12"
224 requirement_version="libpng12"
225 ],
247 [have_dep="no"]) 226 [have_dep="no"])
248fi 227fi
249 228
250evas_image_loader_[]$1[]_cflags="${PNG_CFLAGS}" 229if test "x${have_dep}" = "xyes" ; then
251evas_image_loader_[]$1[]_libs="${PNG_LIBS}" 230 if test "x$2" = "xstatic" ; then
231 requirements_pc_evas="${requirement_version} ${requirements_pc_evas}"
232 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
233 else
234 PKG_CHECK_MODULES([PNG], [${requirement_version}])
235 evas_image_loader_[]$1[]_cflags="${PNG_CFLAGS}"
236 evas_image_loader_[]$1[]_libs="${PNG_LIBS}"
237 fi
238fi
252 239
253AC_SUBST([evas_image_loader_$1_cflags]) 240AC_SUBST([evas_image_loader_$1_cflags])
254AC_SUBST([evas_image_loader_$1_libs]) 241AC_SUBST([evas_image_loader_$1_libs])
255 242
256if test "x$2" = "xstatic" && test "x${have_dep}" = "xyes" ; then 243AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
257 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
258 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
259fi
260
261if test "x${have_dep}" = "xyes" ; then
262 m4_default([$3], [:])
263else
264 m4_default([$4], [:])
265fi
266 244
267]) 245])
268 246
@@ -278,11 +256,7 @@ evas_image_loader_[]$1[]_libs=""
278AC_SUBST([evas_image_loader_$1_cflags]) 256AC_SUBST([evas_image_loader_$1_cflags])
279AC_SUBST([evas_image_loader_$1_libs]) 257AC_SUBST([evas_image_loader_$1_libs])
280 258
281if test "x${have_dep}" = "xyes" ; then 259AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
282 m4_default([$3], [:])
283else
284 m4_default([$4], [:])
285fi
286 260
287]) 261])
288 262
@@ -292,35 +266,35 @@ AC_DEFUN([EVAS_CHECK_LOADER_DEP_SVG],
292[ 266[
293 267
294requirement="" 268requirement=""
295have_esvg="no" 269requirement_version=""
296evas_image_loader_[]$1[]_cflags="" 270evas_image_loader_[]$1[]_cflags=""
297evas_image_loader_[]$1[]_libs="" 271evas_image_loader_[]$1[]_libs=""
298version_esvg="0.0.18" 272version_esvg="0.0.18"
299version_ender="0.0.6" 273version_ender="0.0.6"
300 274
301PKG_CHECK_MODULES([SVG], 275PKG_CHECK_EXISTS([esvg >= ${version_esvg} ender >= ${version_ender}],
302 [esvg >= ${version_esvg} ender >= ${version_ender}], 276 [
303 [have_dep="yes" have_esvg="yes" requirement="esvg >= ${version_esvg} ender >= ${version_ender}"], 277 have_dep="yes"
278 requirement="esvg ender"
279 requirement_version="esvg >= ${version_esvg} ender >= ${version_ender}"
280 ],
304 [have_dep="no"]) 281 [have_dep="no"])
305 282
306if test "x${have_dep}" = "xyes" ; then 283if test "x${have_dep}" = "xyes" ; then
307 evas_image_loader_[]$1[]_cflags="${SVG_CFLAGS}" 284 if test "x$2" = "xstatic" ; then
308 evas_image_loader_[]$1[]_libs="${SVG_LIBS}" 285 requirements_pc_evas="${requirement_version} ${requirements_pc_evas}"
286 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
287 else
288 PKG_CHECK_MODULES([SVG], [${requirement_version}])
289 evas_image_loader_[]$1[]_cflags="${SVG_CFLAGS}"
290 evas_image_loader_[]$1[]_libs="${SVG_LIBS}"
291 fi
309fi 292fi
310 293
311AC_SUBST([evas_image_loader_$1_cflags]) 294AC_SUBST([evas_image_loader_$1_cflags])
312AC_SUBST([evas_image_loader_$1_libs]) 295AC_SUBST([evas_image_loader_$1_libs])
313 296
314if test "x$2" = "xstatic" && test "x${have_dep}" = "xyes" ; then 297AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
315 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
316 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
317fi
318
319if test "x${have_dep}" = "xyes" ; then
320 m4_default([$3], [:])
321else
322 m4_default([$4], [:])
323fi
324 298
325]) 299])
326 300
@@ -336,11 +310,7 @@ evas_image_loader_[]$1[]_libs=""
336AC_SUBST([evas_image_loader_$1_cflags]) 310AC_SUBST([evas_image_loader_$1_cflags])
337AC_SUBST([evas_image_loader_$1_libs]) 311AC_SUBST([evas_image_loader_$1_libs])
338 312
339if test "x${have_dep}" = "xyes" ; then 313AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
340 m4_default([$3], [:])
341else
342 m4_default([$4], [:])
343fi
344 314
345]) 315])
346 316
@@ -393,11 +363,7 @@ fi
393AC_SUBST([evas_image_loader_$1_cflags]) 363AC_SUBST([evas_image_loader_$1_cflags])
394AC_SUBST([evas_image_loader_$1_libs]) 364AC_SUBST([evas_image_loader_$1_libs])
395 365
396if test "x${have_dep}" = "xyes" ; then 366AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
397 m4_default([$3], [:])
398else
399 m4_default([$4], [:])
400fi
401 367
402]) 368])
403 369
@@ -413,11 +379,7 @@ evas_image_loader_[]$1[]_libs=""
413AC_SUBST([evas_image_loader_$1_cflags]) 379AC_SUBST([evas_image_loader_$1_cflags])
414AC_SUBST([evas_image_loader_$1_libs]) 380AC_SUBST([evas_image_loader_$1_libs])
415 381
416if test "x${have_dep}" = "xyes" ; then 382AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
417 m4_default([$3], [:])
418else
419 m4_default([$4], [:])
420fi
421 383
422]) 384])
423 385
@@ -450,11 +412,7 @@ fi
450AC_SUBST([evas_image_loader_$1_cflags]) 412AC_SUBST([evas_image_loader_$1_cflags])
451AC_SUBST([evas_image_loader_$1_libs]) 413AC_SUBST([evas_image_loader_$1_libs])
452 414
453if test "x${have_dep}" = "xyes" ; then 415AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
454 m4_default([$3], [:])
455else
456 m4_default([$4], [:])
457fi
458 416
459]) 417])
460 418
@@ -470,11 +428,7 @@ evas_image_loader_[]$1[]_libs=""
470AC_SUBST([evas_image_loader_$1_cflags]) 428AC_SUBST([evas_image_loader_$1_cflags])
471AC_SUBST([evas_image_loader_$1_libs]) 429AC_SUBST([evas_image_loader_$1_libs])
472 430
473if test "x${have_dep}" = "xyes" ; then 431AS_IF([test "x${have_dep}" = "xyes"], [$3], [$4])
474 m4_default([$3], [:])
475else
476 m4_default([$4], [:])
477fi
478 432
479]) 433])
480 434