diff options
author | Nicolas Aguirre <aguirre.nicolas@gmail.com> | 2011-11-02 18:23:54 +0000 |
---|---|---|
committer | Nicolas Aguirre <aguirre.nicolas@gmail.com> | 2011-11-02 18:23:54 +0000 |
commit | bdfeb1df1453bc5ae5fc7246ffd8dd10484c312c (patch) | |
tree | 90f34c5450cb3660087bbfcbceaa57de1c60859b /legacy/evas/m4/evas_check_engine.m4 | |
parent | 8d3cd7339d88495948195fb1fd706ce3cf36409e (diff) |
evas: Add gl_cocoa engine
SVN revision: 64653
Diffstat (limited to '')
-rw-r--r-- | legacy/evas/m4/evas_check_engine.m4 | 55 |
1 files changed, 53 insertions, 2 deletions
diff --git a/legacy/evas/m4/evas_check_engine.m4 b/legacy/evas/m4/evas_check_engine.m4 index 5d3c450b4c..7330a3f066 100644 --- a/legacy/evas/m4/evas_check_engine.m4 +++ b/legacy/evas/m4/evas_check_engine.m4 | |||
@@ -328,8 +328,6 @@ fi | |||
328 | ]) | 328 | ]) |
329 | 329 | ||
330 | 330 | ||
331 | |||
332 | |||
333 | dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | 331 | dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
334 | 332 | ||
335 | AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI], | 333 | AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI], |
@@ -411,6 +409,59 @@ fi | |||
411 | 409 | ||
412 | ]) | 410 | ]) |
413 | 411 | ||
412 | |||
413 | dnl use: EVAS_CHECK_ENGINE_DEP_GL_COCOA(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | ||
414 | |||
415 | AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_COCOA], | ||
416 | [ | ||
417 | |||
418 | evas_engine_[]$1[]_cflags="" | ||
419 | evas_engine_[]$1[]_libs="" | ||
420 | |||
421 | AC_LANG_PUSH([Objective C]) | ||
422 | |||
423 | LIBS_save="$LIBS" | ||
424 | LIBS="$LIBS -framework Cocoa" | ||
425 | AC_LINK_IFELSE( | ||
426 | [AC_LANG_PROGRAM( | ||
427 | [[ | ||
428 | #include <Cocoa/Cocoa.h> | ||
429 | ]], | ||
430 | [[ | ||
431 | NSWindow *window; | ||
432 | window = [[NSWindow alloc] | ||
433 | initWithContentRect:NSMakeRect(0, 0, 1, 1) | ||
434 | styleMask:(NSTitledWindowMask) | ||
435 | backing:NSBackingStoreBuffered | ||
436 | defer:NO | ||
437 | screen:nil | ||
438 | ]; | ||
439 | ]])], | ||
440 | [ | ||
441 | have_dep="yes" | ||
442 | evas_engine_[]$1[]_libs="-framework Cocoa" | ||
443 | ], | ||
444 | [have_dep="no"]) | ||
445 | LIBS="$LIBS_save" | ||
446 | |||
447 | AC_LANG_POP([Objective C]) | ||
448 | |||
449 | if test "x${have_dep}" = "xyes" ; then | ||
450 | PKG_CHECK_MODULES([GL_EET], [eet >= 1.4.0], [have_dep="yes"], [have_dep="no"]) | ||
451 | fi | ||
452 | |||
453 | AC_SUBST([evas_engine_$1_cflags]) | ||
454 | AC_SUBST([evas_engine_$1_libs]) | ||
455 | |||
456 | if test "x${have_dep}" = "xyes" ; then | ||
457 | m4_default([$4], [:]) | ||
458 | else | ||
459 | m4_default([$5], [:]) | ||
460 | fi | ||
461 | |||
462 | ]) | ||
463 | |||
464 | |||
414 | dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_SDL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | 465 | dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_SDL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
415 | 466 | ||
416 | AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_SDL], | 467 | AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_SDL], |