summaryrefslogtreecommitdiff
path: root/m4/evas_check_engine.m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-11-04 11:51:42 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-11-04 11:51:42 +0000
commitc15e9c6575c3b5f39ded167dda5259de3de96151 (patch)
tree5115d7ae3620af24c2bc094cd062575af7adeda9 /m4/evas_check_engine.m4
parenta5ac6a987caec5a7f7596a25d0a065b9cc94c50c (diff)
merge: and now Evas
I've tested make -j 3 install and it works nicely I've tested expedite with software and opengl xlib, and it works. Not tested other engines, so please report any problems (engines or other) on the ML. TODO: examples and tests, I'll add them later ISSUE: Eina_Unicode size check. It indirectly depends on eina_config.h, which is created at the end of the configure script. So its size is always 0. I don't know how that size is used, so I can't do a lot, for now. SVN revision: 78895
Diffstat (limited to '')
-rw-r--r--m4/evas_check_engine.m4 (renamed from legacy/evas/m4/evas_check_engine.m4)176
1 files changed, 91 insertions, 85 deletions
diff --git a/legacy/evas/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4
index f79634db45..78c4acccd3 100644
--- a/legacy/evas/m4/evas_check_engine.m4
+++ b/m4/evas_check_engine.m4
@@ -53,6 +53,11 @@ if test "x${have_dep}" = "xyes" ; then
53 evas_engine_[]$1[]_libs="${x_libs}" 53 evas_engine_[]$1[]_libs="${x_libs}"
54fi 54fi
55 55
56if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
57 requirements_libs_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_evas}"
58 requirements_libs_deps_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_deps_evas}"
59fi
60
56AC_SUBST([evas_engine_$1_cflags]) 61AC_SUBST([evas_engine_$1_cflags])
57AC_SUBST([evas_engine_$1_libs]) 62AC_SUBST([evas_engine_$1_libs])
58 63
@@ -123,15 +128,15 @@ if test "x${have_dep}" = "xyes" ; then
123fi 128fi
124 129
125if test "x${have_dep}" = "xyes" ; then 130if test "x${have_dep}" = "xyes" ; then
126 AC_CHECK_LIB([GL], [glXCreateContext], [have_dep="yes"], [have_dep="no"], -lX11 -lXext -lXrender -lm $gl_pt_lib) 131 AC_CHECK_LIB([GL], [glXCreateContext], [have_dep="yes"], [have_dep="no"], [-lX11 -lXext -lXrender -lm $gl_pt_lib])
127fi 132fi
128 133
129if test "x$gl_flavor_gles" = "xyes" ; then 134if test "x${gl_flavor_gles}" = "xyes" ; then
130 have_dep=no 135 have_dep=no
131fi 136fi
132 137
133if test "x${have_dep}" = "xyes" ; then 138if test "x${have_dep}" = "xyes" ; then
134 PKG_CHECK_MODULES([GL_EET], [eet >= 1.6.99], [have_dep="yes"], [have_dep="no"]) 139 PKG_CHECK_MODULES([GL_EET], [eet >= ${PACKAGE_VERSION}], [have_dep="yes"], [have_dep="no"])
135 if test "x${have_dep}" = "xyes" ; then 140 if test "x${have_dep}" = "xyes" ; then
136 if test "x$2" = "xyes" ; then 141 if test "x$2" = "xyes" ; then
137 x_libs="${x_libs} -lX11 -lXext -lXrender" 142 x_libs="${x_libs} -lX11 -lXext -lXrender"
@@ -168,7 +173,7 @@ else
168 if test "x${have_egl}" = "xyes" ; then 173 if test "x${have_egl}" = "xyes" ; then
169 AC_CHECK_LIB(GLESv2, glTexImage2D, [have_glesv2="yes"], , -lEGL ${x_libs} -lm $gl_pt_lib) 174 AC_CHECK_LIB(GLESv2, glTexImage2D, [have_glesv2="yes"], , -lEGL ${x_libs} -lm $gl_pt_lib)
170 if test "x${have_glesv2}" = "xyes" ; then 175 if test "x${have_glesv2}" = "xyes" ; then
171 PKG_CHECK_MODULES([GL_EET], [eet >= 1.6.99], [have_dep="yes"], [have_dep="no"]) 176 PKG_CHECK_MODULES([GL_EET], [eet >= ${PACKAGE_VERSION}], [have_dep="yes"], [have_dep="no"])
172 if test "x${have_dep}" = "xyes" ; then 177 if test "x${have_dep}" = "xyes" ; then
173 evas_engine_[]$1[]_cflags="${x_cflags}" 178 evas_engine_[]$1[]_cflags="${x_cflags}"
174 evas_engine_[]$1[]_libs="${x_libs} -lGLESv2 -lEGL -lm $gl_pt_lib" 179 evas_engine_[]$1[]_libs="${x_libs} -lGLESv2 -lEGL -lm $gl_pt_lib"
@@ -181,6 +186,11 @@ else
181 fi 186 fi
182fi 187fi
183 188
189if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
190 requirements_libs_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_evas}"
191 requirements_libs_deps_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_deps_evas}"
192fi
193
184AC_SUBST([evas_engine_$1_cflags]) 194AC_SUBST([evas_engine_$1_cflags])
185AC_SUBST([evas_engine_$1_libs]) 195AC_SUBST([evas_engine_$1_libs])
186 196
@@ -208,20 +218,20 @@ PKG_CHECK_MODULES([XCB],
208 [ 218 [
209 have_dep="yes" 219 have_dep="yes"
210 requirement="xcb xcb-shm xcb-image pixman-1" 220 requirement="xcb xcb-shm xcb-image pixman-1"
211 evas_engine_[]$1[]_cflags="${XCB_CFLAGS}" 221 ],
212 evas_engine_[]$1[]_libs="${XCB_LIBS}" 222 [have_dep="no"])
213 ],[
214 have_dep="no"
215 ]
216)
217 223
218AC_SUBST([evas_engine_$1_cflags]) 224evas_engine_[]$1[]_cflags="${XCB_CFLAGS}"
219AC_SUBST([evas_engine_$1_libs]) 225evas_engine_[]$1[]_libs="${XCB_LIBS}"
220 226
221if test "x$3" = "xstatic" ; then 227if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
222 requirement_evas="${requirement} ${requirement_evas}" 228 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
229 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
223fi 230fi
224 231
232AC_SUBST([evas_engine_$1_cflags])
233AC_SUBST([evas_engine_$1_libs])
234
225if test "x${have_dep}" = "xyes" ; then 235if test "x${have_dep}" = "xyes" ; then
226 m4_default([$4], [:]) 236 m4_default([$4], [:])
227else 237else
@@ -236,6 +246,8 @@ dnl use: EVAS_CHECK_ENGINE_DEP_GL_XCB(engine, simple, want_static[, ACTION-IF-FO
236AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_XCB], 246AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_XCB],
237[ 247[
238 248
249requirement=""
250have_dep="no"
239evas_engine_[]$1[]_cflags="" 251evas_engine_[]$1[]_cflags=""
240evas_engine_[]$1[]_libs="" 252evas_engine_[]$1[]_libs=""
241 253
@@ -293,19 +305,18 @@ PKG_CHECK_MODULES([XCB_GL],
293 [ 305 [
294 have_dep="yes" 306 have_dep="yes"
295 requirement="x11-xcb xcb xcb-glx xcb-render xcb-renderutil" 307 requirement="x11-xcb xcb xcb-glx xcb-render xcb-renderutil"
296 evas_engine_[]$1[]_cflags="${XCB_GL_CFLAGS}" 308 ],
297 evas_engine_[]$1[]_libs="${XCB_GL_LIBS}" 309 [have_dep="no"])
298 ],[ 310
299 have_dep="no" 311evas_engine_[]$1[]_cflags="${XCB_GL_CFLAGS}"
300 ] 312evas_engine_[]$1[]_libs="${XCB_GL_LIBS}"
301)
302 313
303if test "x$gl_flavor_gles" = "xyes" ; then 314if test "x$gl_flavor_gles" = "xyes" ; then
304 have_dep=no 315 have_dep=no
305fi 316fi
306 317
307if test "x${have_dep}" = "xyes" ; then 318if test "x${have_dep}" = "xyes" ; then
308 PKG_CHECK_MODULES([GL_EET], [eet >= 1.6.99], [have_dep="yes"], [have_dep="no"]) 319 PKG_CHECK_MODULES([GL_EET], [eet >= ${PACKAGE_VERSION}], [have_dep="yes"], [have_dep="no"])
309 if test "x${have_dep}" = "xyes" ; then 320 if test "x${have_dep}" = "xyes" ; then
310 if test "x$2" = "xyes" ; then 321 if test "x$2" = "xyes" ; then
311 x_libs="${x_libs} -lX11 -lXext -lXrender" 322 x_libs="${x_libs} -lX11 -lXext -lXrender"
@@ -337,7 +348,7 @@ else
337 if test "x${have_egl}" = "xyes" ; then 348 if test "x${have_egl}" = "xyes" ; then
338 AC_CHECK_LIB(GLESv2, glTexImage2D, [have_glesv2="yes"], , -lEGL ${x_libs} -lm $gl_pt_lib) 349 AC_CHECK_LIB(GLESv2, glTexImage2D, [have_glesv2="yes"], , -lEGL ${x_libs} -lm $gl_pt_lib)
339 if test "x${have_glesv2}" = "xyes" ; then 350 if test "x${have_glesv2}" = "xyes" ; then
340 PKG_CHECK_MODULES([GL_EET], [eet >= 1.6.99], [have_dep="yes"], [have_dep="no"]) 351 PKG_CHECK_MODULES([GL_EET], [eet >= ${PACKAGE_VERSION}], [have_dep="yes"], [have_dep="no"])
341 if test "x${have_dep}" = "xyes" ; then 352 if test "x${have_dep}" = "xyes" ; then
342 evas_engine_[]$1[]_cflags="${XCB_GL_CFLAGS} ${x_cflags}" 353 evas_engine_[]$1[]_cflags="${XCB_GL_CFLAGS} ${x_cflags}"
343 evas_engine_[]$1[]_libs="${XCB_GL_LIBS} ${x_libs} -lGLESv2 -lEGL -lm $gl_pt_lib" 354 evas_engine_[]$1[]_libs="${XCB_GL_LIBS} ${x_libs} -lGLESv2 -lEGL -lm $gl_pt_lib"
@@ -350,6 +361,13 @@ else
350 fi 361 fi
351fi 362fi
352 363
364if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
365 requirements_libs_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_evas}"
366 requirements_libs_deps_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_deps_evas}"
367 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
368 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
369fi
370
353AC_SUBST([evas_engine_$1_cflags]) 371AC_SUBST([evas_engine_$1_cflags])
354AC_SUBST([evas_engine_$1_libs]) 372AC_SUBST([evas_engine_$1_libs])
355 373
@@ -375,8 +393,12 @@ AC_CHECK_HEADER([windows.h],
375 [ 393 [
376 have_dep="yes" 394 have_dep="yes"
377 evas_engine_[]$1[]_libs="-lgdi32" 395 evas_engine_[]$1[]_libs="-lgdi32"
378 ] 396 ])
379) 397
398if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
399 requirements_libs_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_evas}"
400 requirements_libs_deps_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_deps_evas}"
401fi
380 402
381AC_SUBST([evas_engine_$1_cflags]) 403AC_SUBST([evas_engine_$1_cflags])
382AC_SUBST([evas_engine_$1_libs]) 404AC_SUBST([evas_engine_$1_libs])
@@ -402,8 +424,12 @@ AC_CHECK_HEADER([ddraw.h],
402 [ 424 [
403 have_dep="yes" 425 have_dep="yes"
404 evas_engine_[]$1[]_libs="-lddraw" 426 evas_engine_[]$1[]_libs="-lddraw"
405 ] 427 ])
406) 428
429if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
430 requirements_libs_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_evas}"
431 requirements_libs_deps_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_deps_evas}"
432fi
407 433
408AC_SUBST([evas_engine_$1_cflags]) 434AC_SUBST([evas_engine_$1_cflags])
409AC_SUBST([evas_engine_$1_libs]) 435AC_SUBST([evas_engine_$1_libs])
@@ -429,8 +455,12 @@ AC_CHECK_HEADERS([d3d9.h d3dx9.h],
429 have_dep="yes" 455 have_dep="yes"
430 evas_engine_[]$1[]_libs="-ld3d9 -ld3dx9 -lgdi32" 456 evas_engine_[]$1[]_libs="-ld3d9 -ld3dx9 -lgdi32"
431 ], 457 ],
432 [have_dep="no"; break] 458 [have_dep="no"; break])
433) 459
460if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
461 requirements_libs_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_evas}"
462 requirements_libs_deps_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_deps_evas}"
463fi
434 464
435AC_SUBST([evas_engine_$1_cflags]) 465AC_SUBST([evas_engine_$1_cflags])
436AC_SUBST([evas_engine_$1_libs]) 466AC_SUBST([evas_engine_$1_libs])
@@ -481,7 +511,12 @@ LIBS="$LIBS_save"
481AC_LANG_POP([Objective C]) 511AC_LANG_POP([Objective C])
482 512
483if test "x${have_dep}" = "xyes" ; then 513if test "x${have_dep}" = "xyes" ; then
484 PKG_CHECK_MODULES([GL_EET], [eet >= 1.6.99], [have_dep="yes"], [have_dep="no"]) 514 PKG_CHECK_MODULES([GL_EET], [eet >= ${PACKAGE_VERSION}], [have_dep="yes"], [have_dep="no"])
515fi
516
517if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
518 requirements_libs_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_evas}"
519 requirements_libs_deps_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_deps_evas}"
485fi 520fi
486 521
487AC_SUBST([evas_engine_$1_cflags]) 522AC_SUBST([evas_engine_$1_cflags])
@@ -510,10 +545,10 @@ PKG_CHECK_MODULES([SDL],
510 [ 545 [
511 have_dep="yes" 546 have_dep="yes"
512 requirement="sdl" 547 requirement="sdl"
513 evas_engine_[]$1[]_cflags="${SDL_CFLAGS}" 548 ])
514 evas_engine_[]$1[]_libs="${SDL_LIBS}" 549
515 ] 550evas_engine_[]$1[]_cflags="${SDL_CFLAGS}"
516) 551evas_engine_[]$1[]_libs="${SDL_LIBS}"
517 552
518gl_pt_lib=""; 553gl_pt_lib="";
519have_gl_pt="no" 554have_gl_pt="no"
@@ -577,6 +612,13 @@ else
577 fi 612 fi
578fi 613fi
579 614
615if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
616 requirements_libs_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_evas}"
617 requirements_libs_deps_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_deps_evas}"
618 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
619 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
620fi
621
580AC_SUBST([evas_engine_$1_cflags]) 622AC_SUBST([evas_engine_$1_cflags])
581AC_SUBST([evas_engine_$1_libs]) 623AC_SUBST([evas_engine_$1_libs])
582 624
@@ -631,52 +673,16 @@ PKG_CHECK_MODULES([DIRECTFB],
631 requirement="directfb" 673 requirement="directfb"
632 evas_engine_[]$1[]_cflags="${DIRECTFB_CFLAGS}" 674 evas_engine_[]$1[]_cflags="${DIRECTFB_CFLAGS}"
633 evas_engine_[]$1[]_libs="${DIRECTFB_LIBS}" 675 evas_engine_[]$1[]_libs="${DIRECTFB_LIBS}"
634 ] 676 ])
635)
636
637AC_SUBST([evas_engine_$1_cflags])
638AC_SUBST([evas_engine_$1_libs])
639
640if test "x$3" = "xstatic" ; then
641 requirement_evas="${requirement} ${requirement_evas}"
642fi
643 677
644if test "x${have_dep}" = "xyes" ; then 678if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
645 m4_default([$4], [:]) 679 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
646else 680 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
647 m4_default([$5], [:])
648fi 681fi
649 682
650])
651
652dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_8_X11(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
653
654AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_8_X11],
655[
656
657have_dep="no"
658evas_engine_[]$1[]_cflags=""
659evas_engine_[]$1[]_libs=""
660
661PKG_CHECK_MODULES([XCB],
662 [xcb xcb-shm xcb-image >= 0.2.1 pixman-1],
663 [
664 have_dep="yes"
665 requirement="xcb xcb-shm xcb-image pixman-1"
666 evas_engine_[]$1[]_cflags="${XCB_CFLAGS}"
667 evas_engine_[]$1[]_libs="${XCB_LIBS}"
668 ],[
669 have_dep="no"
670 ]
671)
672
673AC_SUBST([evas_engine_$1_cflags]) 683AC_SUBST([evas_engine_$1_cflags])
674AC_SUBST([evas_engine_$1_libs]) 684AC_SUBST([evas_engine_$1_libs])
675 685
676if test "x$3" = "xstatic" ; then
677 requirement_evas="${requirement} ${requirement_evas}"
678fi
679
680if test "x${have_dep}" = "xyes" ; then 686if test "x${have_dep}" = "xyes" ; then
681 m4_default([$4], [:]) 687 m4_default([$4], [:])
682else 688else
@@ -745,27 +751,27 @@ else
745 gl_library="gl" 751 gl_library="gl"
746fi 752fi
747 753
748PKG_CHECK_MODULES([GL_EET], [eet >= 1.6.99], [have_dep="yes"], [have_dep="no"]) 754PKG_CHECK_MODULES([GL_EET], [eet >= ${PACKAGE_VERSION}], [have_dep="yes"], [have_dep="no"])
749 755
750PKG_CHECK_MODULES([WAYLAND_EGL], 756PKG_CHECK_MODULES([WAYLAND_EGL],
751 [egl >= 7.10 ${gl_library} wayland-client wayland-egl], 757 [egl >= 7.10 ${gl_library} wayland-client wayland-egl],
752 [ 758 [
753 have_dep="yes" 759 have_dep="yes"
754 requirement="egl >= 7.10 ${gl_library} wayland-client wayland-egl" 760 requirement="egl ${gl_library} wayland-client wayland-egl"
755 evas_engine_[]$1[]_cflags="${WAYLAND_EGL_CFLAGS}" 761 ],
756 evas_engine_[]$1[]_libs="${WAYLAND_EGL_LIBS}" 762 [have_dep="no"])
757 ],[
758 have_dep="no"
759 ]
760)
761 763
762AC_SUBST([evas_engine_$1_cflags]) 764evas_engine_[]$1[]_cflags="${WAYLAND_EGL_CFLAGS}"
763AC_SUBST([evas_engine_$1_libs]) 765evas_engine_[]$1[]_libs="${WAYLAND_EGL_LIBS}"
764 766
765if test "x$3" = "xstatic" ; then 767if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
766 requirement_evas="${requirement} ${requirement_evas}" 768 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
769 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
767fi 770fi
768 771
772AC_SUBST([evas_engine_$1_cflags])
773AC_SUBST([evas_engine_$1_libs])
774
769if test "x${have_dep}" = "xyes" ; then 775if test "x${have_dep}" = "xyes" ; then
770 m4_default([$4], [:]) 776 m4_default([$4], [:])
771else 777else