summaryrefslogtreecommitdiff
path: root/legacy/evas/m4/evas_check_engine.m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2009-09-27 19:57:01 +0000
committerVincent Torri <vincent.torri@gmail.com>2009-09-27 19:57:01 +0000
commit449bdb7bc67e1b38df396a5471c9fde58ca140d3 (patch)
tree52389f109a2977f0282cf5fe1d0cfbabdd949007 /legacy/evas/m4/evas_check_engine.m4
parent67690abfe7f55e40322700cb8b1adbb7261c2ed4 (diff)
* use Requires.private field in evas.pc if pkg-config 0.22 is installed. We list in it the required packages needed to compile eet.
* remove uneeded flags that are in Libs.private (those from the packages that are listed in Requires.private) SVN revision: 42744
Diffstat (limited to '')
-rw-r--r--legacy/evas/m4/evas_check_engine.m4148
1 files changed, 88 insertions, 60 deletions
diff --git a/legacy/evas/m4/evas_check_engine.m4 b/legacy/evas/m4/evas_check_engine.m4
index 61fb067e21..2eb44b1e5f 100644
--- a/legacy/evas/m4/evas_check_engine.m4
+++ b/legacy/evas/m4/evas_check_engine.m4
@@ -1,5 +1,5 @@
1 1
2dnl use: EVAS_CHECK_ENGINE_DEP_BUFFER(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 2dnl use: EVAS_CHECK_ENGINE_DEP_BUFFER(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
3 3
4AC_DEFUN([EVAS_CHECK_ENGINE_DEP_BUFFER], 4AC_DEFUN([EVAS_CHECK_ENGINE_DEP_BUFFER],
5[ 5[
@@ -12,14 +12,14 @@ AC_SUBST([evas_engine_$1_cflags])
12AC_SUBST([evas_engine_$1_libs]) 12AC_SUBST([evas_engine_$1_libs])
13 13
14if test "x${have_dep}" = "xyes" ; then 14if test "x${have_dep}" = "xyes" ; then
15 m4_default([$3], [:])
16else
17 m4_default([$4], [:]) 15 m4_default([$4], [:])
16else
17 m4_default([$5], [:])
18fi 18fi
19 19
20]) 20])
21 21
22dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_XLIB(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 22dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_XLIB(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
23 23
24AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_XLIB], 24AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_XLIB],
25[ 25[
@@ -57,14 +57,14 @@ AC_SUBST([evas_engine_$1_cflags])
57AC_SUBST([evas_engine_$1_libs]) 57AC_SUBST([evas_engine_$1_libs])
58 58
59if test "x${have_dep}" = "xyes" ; then 59if test "x${have_dep}" = "xyes" ; then
60 m4_default([$3], [:])
61else
62 m4_default([$4], [:]) 60 m4_default([$4], [:])
61else
62 m4_default([$5], [:])
63fi 63fi
64 64
65]) 65])
66 66
67dnl use: EVAS_CHECK_ENGINE_DEP_XRENDER_X11(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 67dnl use: EVAS_CHECK_ENGINE_DEP_XRENDER_X11(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
68 68
69AC_DEFUN([EVAS_CHECK_ENGINE_DEP_XRENDER_X11], 69AC_DEFUN([EVAS_CHECK_ENGINE_DEP_XRENDER_X11],
70[ 70[
@@ -107,14 +107,14 @@ AC_SUBST([evas_engine_$1_cflags])
107AC_SUBST([evas_engine_$1_libs]) 107AC_SUBST([evas_engine_$1_libs])
108 108
109if test "x${have_dep}" = "xyes" ; then 109if test "x${have_dep}" = "xyes" ; then
110 m4_default([$3], [:])
111else
112 m4_default([$4], [:]) 110 m4_default([$4], [:])
111else
112 m4_default([$5], [:])
113fi 113fi
114 114
115]) 115])
116 116
117dnl use: EVAS_CHECK_ENGINE_DEP_GL_X11(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 117dnl use: EVAS_CHECK_ENGINE_DEP_GL_X11(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
118 118
119AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_X11], 119AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_X11],
120[ 120[
@@ -157,18 +157,19 @@ AC_SUBST([evas_engine_$1_cflags])
157AC_SUBST([evas_engine_$1_libs]) 157AC_SUBST([evas_engine_$1_libs])
158 158
159if test "x${have_dep}" = "xyes" ; then 159if test "x${have_dep}" = "xyes" ; then
160 m4_default([$3], [:])
161else
162 m4_default([$4], [:]) 160 m4_default([$4], [:])
161else
162 m4_default([$5], [:])
163fi 163fi
164 164
165]) 165])
166 166
167dnl use: EVAS_CHECK_ENGINE_DEP_CAIRO_X11(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 167dnl use: EVAS_CHECK_ENGINE_DEP_CAIRO_X11(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
168 168
169AC_DEFUN([EVAS_CHECK_ENGINE_DEP_CAIRO_X11], 169AC_DEFUN([EVAS_CHECK_ENGINE_DEP_CAIRO_X11],
170[ 170[
171 171
172requirement=""
172have_dep="no" 173have_dep="no"
173evas_engine_[]$1[]_cflags="" 174evas_engine_[]$1[]_cflags=""
174evas_engine_[]$1[]_libs="" 175evas_engine_[]$1[]_libs=""
@@ -179,7 +180,7 @@ AC_PATH_XTRA
179AC_CHECK_HEADER([X11/X.h], 180AC_CHECK_HEADER([X11/X.h],
180 [PKG_CHECK_MODULES([CAIRO], 181 [PKG_CHECK_MODULES([CAIRO],
181 [cairo >= 1.0.0], 182 [cairo >= 1.0.0],
182 [have_dep="yes"] 183 [have_dep="yes" requirement="cairo"]
183 )] 184 )]
184) 185)
185 186
@@ -198,19 +199,24 @@ fi
198AC_SUBST([evas_engine_$1_cflags]) 199AC_SUBST([evas_engine_$1_cflags])
199AC_SUBST([evas_engine_$1_libs]) 200AC_SUBST([evas_engine_$1_libs])
200 201
202if test "x$3" = "xstatic" ; then
203 requirement_evas="${requirement} ${requirement_evas}"
204fi
205
201if test "x${have_dep}" = "xyes" ; then 206if test "x${have_dep}" = "xyes" ; then
202 m4_default([$3], [:])
203else
204 m4_default([$4], [:]) 207 m4_default([$4], [:])
208else
209 m4_default([$5], [:])
205fi 210fi
206 211
207]) 212])
208 213
209dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_XCB(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 214dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_XCB(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
210 215
211AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_XCB], 216AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_XCB],
212[ 217[
213 218
219requirement=""
214have_dep="no" 220have_dep="no"
215evas_engine_[]$1[]_cflags="" 221evas_engine_[]$1[]_cflags=""
216evas_engine_[]$1[]_libs="" 222evas_engine_[]$1[]_libs=""
@@ -219,6 +225,7 @@ PKG_CHECK_MODULES([XCB],
219 [xcb xcb-shm xcb-image >= 0.2.1 pixman-1], 225 [xcb xcb-shm xcb-image >= 0.2.1 pixman-1],
220 [ 226 [
221 have_dep="yes" 227 have_dep="yes"
228 requirement="xcb xcb-shm xcb-image pixman-1"
222 evas_engine_[]$1[]_cflags="${XCB_CFLAGS}" 229 evas_engine_[]$1[]_cflags="${XCB_CFLAGS}"
223 evas_engine_[]$1[]_libs="${XCB_LIBS}" 230 evas_engine_[]$1[]_libs="${XCB_LIBS}"
224 ] 231 ]
@@ -227,19 +234,24 @@ PKG_CHECK_MODULES([XCB],
227AC_SUBST([evas_engine_$1_cflags]) 234AC_SUBST([evas_engine_$1_cflags])
228AC_SUBST([evas_engine_$1_libs]) 235AC_SUBST([evas_engine_$1_libs])
229 236
237if test "x$3" = "xstatic" ; then
238 requirement_evas="${requirement} ${requirement_evas}"
239fi
240
230if test "x${have_dep}" = "xyes" ; then 241if test "x${have_dep}" = "xyes" ; then
231 m4_default([$3], [:])
232else
233 m4_default([$4], [:]) 242 m4_default([$4], [:])
243else
244 m4_default([$5], [:])
234fi 245fi
235 246
236]) 247])
237 248
238dnl use: EVAS_CHECK_ENGINE_DEP_XRENDER_XCB(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 249dnl use: EVAS_CHECK_ENGINE_DEP_XRENDER_XCB(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
239 250
240AC_DEFUN([EVAS_CHECK_ENGINE_DEP_XRENDER_XCB], 251AC_DEFUN([EVAS_CHECK_ENGINE_DEP_XRENDER_XCB],
241[ 252[
242 253
254requirement=""
243have_dep="no" 255have_dep="no"
244evas_engine_[]$1[]_cflags="" 256evas_engine_[]$1[]_cflags=""
245evas_engine_[]$1[]_libs="" 257evas_engine_[]$1[]_libs=""
@@ -248,6 +260,7 @@ PKG_CHECK_MODULES([XCBRENDER],
248 [xcb xcb-shm xcb-render xcb-image >= 0.2.1 pixman-1], 260 [xcb xcb-shm xcb-render xcb-image >= 0.2.1 pixman-1],
249 [ 261 [
250 have_dep="yes" 262 have_dep="yes"
263 requirement="xcb xcb-shm xcb-render xcb-image pixman-1"
251 evas_engine_[]$1[]_cflags="${XCBRENDER_CFLAGS}" 264 evas_engine_[]$1[]_cflags="${XCBRENDER_CFLAGS}"
252 evas_engine_[]$1[]_libs="${XCBRENDER_LIBS}" 265 evas_engine_[]$1[]_libs="${XCBRENDER_LIBS}"
253 ] 266 ]
@@ -256,15 +269,19 @@ PKG_CHECK_MODULES([XCBRENDER],
256AC_SUBST([evas_engine_$1_cflags]) 269AC_SUBST([evas_engine_$1_cflags])
257AC_SUBST([evas_engine_$1_libs]) 270AC_SUBST([evas_engine_$1_libs])
258 271
272if test "x$3" = "xstatic" ; then
273 requirement_evas="${requirement} ${requirement_evas}"
274fi
275
259if test "x${have_dep}" = "xyes" ; then 276if test "x${have_dep}" = "xyes" ; then
260 m4_default([$3], [:])
261else
262 m4_default([$4], [:]) 277 m4_default([$4], [:])
278else
279 m4_default([$5], [:])
263fi 280fi
264 281
265]) 282])
266 283
267dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 284dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
268 285
269AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI], 286AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI],
270[ 287[
@@ -284,14 +301,14 @@ AC_SUBST([evas_engine_$1_cflags])
284AC_SUBST([evas_engine_$1_libs]) 301AC_SUBST([evas_engine_$1_libs])
285 302
286if test "x${have_dep}" = "xyes" ; then 303if test "x${have_dep}" = "xyes" ; then
287 m4_default([$3], [:])
288else
289 m4_default([$4], [:]) 304 m4_default([$4], [:])
305else
306 m4_default([$5], [:])
290fi 307fi
291 308
292]) 309])
293 310
294dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_DDRAW(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 311dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_DDRAW(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
295 312
296AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_DDRAW], 313AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_DDRAW],
297[ 314[
@@ -311,14 +328,14 @@ AC_SUBST([evas_engine_$1_cflags])
311AC_SUBST([evas_engine_$1_libs]) 328AC_SUBST([evas_engine_$1_libs])
312 329
313if test "x${have_dep}" = "xyes" ; then 330if test "x${have_dep}" = "xyes" ; then
314 m4_default([$3], [:])
315else
316 m4_default([$4], [:]) 331 m4_default([$4], [:])
332else
333 m4_default([$5], [:])
317fi 334fi
318 335
319]) 336])
320 337
321dnl use: EVAS_CHECK_ENGINE_DEP_DIRECT3D(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 338dnl use: EVAS_CHECK_ENGINE_DEP_DIRECT3D(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
322 339
323AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DIRECT3D], 340AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DIRECT3D],
324[ 341[
@@ -338,14 +355,14 @@ AC_SUBST([evas_engine_$1_cflags])
338AC_SUBST([evas_engine_$1_libs]) 355AC_SUBST([evas_engine_$1_libs])
339 356
340if test "x${have_dep}" = "xyes" ; then 357if test "x${have_dep}" = "xyes" ; then
341 m4_default([$3], [:])
342else
343 m4_default([$4], [:]) 358 m4_default([$4], [:])
359else
360 m4_default([$5], [:])
344fi 361fi
345 362
346]) 363])
347 364
348dnl use: EVAS_CHECK_ENGINE_DEP_QUARTZ(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 365dnl use: EVAS_CHECK_ENGINE_DEP_QUARTZ(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
349 366
350AC_DEFUN([EVAS_CHECK_ENGINE_DEP_QUARTZ], 367AC_DEFUN([EVAS_CHECK_ENGINE_DEP_QUARTZ],
351[ 368[
@@ -362,14 +379,14 @@ AC_SUBST([evas_engine_$1_cflags])
362AC_SUBST([evas_engine_$1_libs]) 379AC_SUBST([evas_engine_$1_libs])
363 380
364if test "x${have_dep}" = "xyes" ; then 381if test "x${have_dep}" = "xyes" ; then
365 m4_default([$3], [:])
366else
367 m4_default([$4], [:]) 382 m4_default([$4], [:])
383else
384 m4_default([$5], [:])
368fi 385fi
369 386
370]) 387])
371 388
372dnl use: EVAS_CHECK_ENGINE_DEP_GL_GLEW(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 389dnl use: EVAS_CHECK_ENGINE_DEP_GL_GLEW(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
373 390
374AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_GLEW], 391AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_GLEW],
375[ 392[
@@ -389,18 +406,19 @@ AC_SUBST([evas_engine_$1_cflags])
389AC_SUBST([evas_engine_$1_libs]) 406AC_SUBST([evas_engine_$1_libs])
390 407
391if test "x${have_dep}" = "xyes" ; then 408if test "x${have_dep}" = "xyes" ; then
392 m4_default([$3], [:])
393else
394 m4_default([$4], [:]) 409 m4_default([$4], [:])
410else
411 m4_default([$5], [:])
395fi 412fi
396 413
397]) 414])
398 415
399dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_SDL(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 416dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_SDL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
400 417
401AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_SDL], 418AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_SDL],
402[ 419[
403 420
421requirement=""
404have_dep="no" 422have_dep="no"
405evas_engine_[]$1[]_cflags="" 423evas_engine_[]$1[]_cflags=""
406evas_engine_[]$1[]_libs="" 424evas_engine_[]$1[]_libs=""
@@ -409,6 +427,7 @@ PKG_CHECK_MODULES([SDL],
409 [sdl >= 1.2.0], 427 [sdl >= 1.2.0],
410 [ 428 [
411 have_dep="yes" 429 have_dep="yes"
430 requirement="sdl"
412 evas_engine_[]$1[]_cflags="${SDL_CFLAGS}" 431 evas_engine_[]$1[]_cflags="${SDL_CFLAGS}"
413 evas_engine_[]$1[]_libs="${SDL_LIBS}" 432 evas_engine_[]$1[]_libs="${SDL_LIBS}"
414 ] 433 ]
@@ -417,15 +436,19 @@ PKG_CHECK_MODULES([SDL],
417AC_SUBST([evas_engine_$1_cflags]) 436AC_SUBST([evas_engine_$1_cflags])
418AC_SUBST([evas_engine_$1_libs]) 437AC_SUBST([evas_engine_$1_libs])
419 438
439if test "x$3" = "xstatic" ; then
440 requirement_evas="${requirement} ${requirement_evas}"
441fi
442
420if test "x${have_dep}" = "xyes" ; then 443if test "x${have_dep}" = "xyes" ; then
421 m4_default([$3], [:])
422else
423 m4_default([$4], [:]) 444 m4_default([$4], [:])
445else
446 m4_default([$5], [:])
424fi 447fi
425 448
426]) 449])
427 450
428dnl use: EVAS_CHECK_ENGINE_DEP_FB(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 451dnl use: EVAS_CHECK_ENGINE_DEP_FB(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
429 452
430AC_DEFUN([EVAS_CHECK_ENGINE_DEP_FB], 453AC_DEFUN([EVAS_CHECK_ENGINE_DEP_FB],
431[ 454[
@@ -440,18 +463,19 @@ AC_SUBST([evas_engine_$1_cflags])
440AC_SUBST([evas_engine_$1_libs]) 463AC_SUBST([evas_engine_$1_libs])
441 464
442if test "x${have_dep}" = "xyes" ; then 465if test "x${have_dep}" = "xyes" ; then
443 m4_default([$3], [:])
444else
445 m4_default([$4], [:]) 466 m4_default([$4], [:])
467else
468 m4_default([$5], [:])
446fi 469fi
447 470
448]) 471])
449 472
450dnl use: EVAS_CHECK_ENGINE_DEP_DIRECTFB(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 473dnl use: EVAS_CHECK_ENGINE_DEP_DIRECTFB(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
451 474
452AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DIRECTFB], 475AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DIRECTFB],
453[ 476[
454 477
478requirement=""
455have_dep="no" 479have_dep="no"
456evas_engine_[]$1[]_cflags="" 480evas_engine_[]$1[]_cflags=""
457evas_engine_[]$1[]_libs="" 481evas_engine_[]$1[]_libs=""
@@ -460,6 +484,7 @@ PKG_CHECK_MODULES([DIRECTFB],
460 [directfb >= 0.9.16], 484 [directfb >= 0.9.16],
461 [ 485 [
462 have_dep="yes" 486 have_dep="yes"
487 requirement="directfb"
463 evas_engine_[]$1[]_cflags="${DIRECTFB_CFLAGS}" 488 evas_engine_[]$1[]_cflags="${DIRECTFB_CFLAGS}"
464 evas_engine_[]$1[]_libs="${DIRECTFB_LIBS}" 489 evas_engine_[]$1[]_libs="${DIRECTFB_LIBS}"
465 ] 490 ]
@@ -468,15 +493,19 @@ PKG_CHECK_MODULES([DIRECTFB],
468AC_SUBST([evas_engine_$1_cflags]) 493AC_SUBST([evas_engine_$1_cflags])
469AC_SUBST([evas_engine_$1_libs]) 494AC_SUBST([evas_engine_$1_libs])
470 495
496if test "x$3" = "xstatic" ; then
497 requirement_evas="${requirement} ${requirement_evas}"
498fi
499
471if test "x${have_dep}" = "xyes" ; then 500if test "x${have_dep}" = "xyes" ; then
472 m4_default([$3], [:])
473else
474 m4_default([$4], [:]) 501 m4_default([$4], [:])
502else
503 m4_default([$5], [:])
475fi 504fi
476 505
477]) 506])
478 507
479dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_QTOPIA(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 508dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_QTOPIA(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
480 509
481AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_QTOPIA], 510AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_QTOPIA],
482[ 511[
@@ -521,15 +550,14 @@ AC_SUBST([evas_engine_$1_libs])
521AC_SUBST([evas_engine_$1_moc]) 550AC_SUBST([evas_engine_$1_moc])
522 551
523if test "x${have_dep}" = "xyes" ; then 552if test "x${have_dep}" = "xyes" ; then
524 m4_default([$3], [:])
525else
526 m4_default([$4], [:]) 553 m4_default([$4], [:])
554else
555 m4_default([$5], [:])
527fi 556fi
528 557
529]) 558])
530 559
531dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_16_X11(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 560dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_16_X11(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
532
533AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_16_X11], 561AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_16_X11],
534[ 562[
535 563
@@ -566,14 +594,14 @@ AC_SUBST([evas_engine_$1_cflags])
566AC_SUBST([evas_engine_$1_libs]) 594AC_SUBST([evas_engine_$1_libs])
567 595
568if test "x${have_dep}" = "xyes" ; then 596if test "x${have_dep}" = "xyes" ; then
569 m4_default([$3], [:])
570else
571 m4_default([$4], [:]) 597 m4_default([$4], [:])
598else
599 m4_default([$5], [:])
572fi 600fi
573 601
574]) 602])
575 603
576dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_16_DDRAW(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 604dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_16_DDRAW(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
577 605
578AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_16_DDRAW], 606AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_16_DDRAW],
579[ 607[
@@ -593,14 +621,14 @@ AC_SUBST([evas_engine_$1_cflags])
593AC_SUBST([evas_engine_$1_libs]) 621AC_SUBST([evas_engine_$1_libs])
594 622
595if test "x${have_dep}" = "xyes" ; then 623if test "x${have_dep}" = "xyes" ; then
596 m4_default([$3], [:])
597else
598 m4_default([$4], [:]) 624 m4_default([$4], [:])
625else
626 m4_default([$5], [:])
599fi 627fi
600 628
601]) 629])
602 630
603dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_16_WINCE(engine, simple[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 631dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_16_WINCE(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
604 632
605AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_16_WINCE], 633AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_16_WINCE],
606[ 634[
@@ -613,9 +641,9 @@ AC_SUBST([evas_engine_$1_cflags])
613AC_SUBST([evas_engine_$1_libs]) 641AC_SUBST([evas_engine_$1_libs])
614 642
615if test "x${have_dep}" = "xyes" ; then 643if test "x${have_dep}" = "xyes" ; then
616 m4_default([$3], [:])
617else
618 m4_default([$4], [:]) 644 m4_default([$4], [:])
645else
646 m4_default([$5], [:])
619fi 647fi
620 648
621]) 649])
@@ -652,7 +680,7 @@ AC_MSG_CHECKING([whether to enable $4 rendering backend])
652AC_MSG_RESULT([${want_engine}]) 680AC_MSG_RESULT([${want_engine}])
653 681
654if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then 682if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
655 m4_default([EVAS_CHECK_ENGINE_DEP_]m4_defn([UP]))(DOWN, $3, [have_engine="yes"], [have_engine="no"]) 683 m4_default([EVAS_CHECK_ENGINE_DEP_]m4_defn([UP]))(DOWN, $3, ${want_engine}, [have_engine="yes"], [have_engine="no"])
656fi 684fi
657 685
658if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then 686if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then