diff options
author | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2012-12-07 17:18:17 +0000 |
---|---|---|
committer | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2012-12-07 17:18:17 +0000 |
commit | 892c64297ece6c9f1ef1bbb8cdd0355de69133ec (patch) | |
tree | df933358ff4cdf5ca9491c8acf9f1e8a9b9b9c59 /m4/evas_check_engine.m4 | |
parent | 65507985183367fc2376daddaa366630fae81431 (diff) |
efl: begin (still partial!) to make an uniform choice of engines ecore/evas
still lots to do, but some improvements:
- ecore_evas does not inherit pkg-config from modules since modules are SO
- renamed internal ecore evas define from SOFTWARE_BUFFER to BUFFER,
to make consistent.
SVN revision: 80473
Diffstat (limited to '')
-rw-r--r-- | m4/evas_check_engine.m4 | 120 |
1 files changed, 49 insertions, 71 deletions
diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4 index 73623776e8..4a654c5b0b 100644 --- a/m4/evas_check_engine.m4 +++ b/m4/evas_check_engine.m4 | |||
@@ -1,20 +1,4 @@ | |||
1 | 1 | ||
2 | dnl use: EVAS_CHECK_ENGINE_DEP_BUFFER(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | ||
3 | |||
4 | AC_DEFUN([EVAS_CHECK_ENGINE_DEP_BUFFER], | ||
5 | [ | ||
6 | |||
7 | have_dep="yes" | ||
8 | evas_engine_[]$1[]_cflags="" | ||
9 | evas_engine_[]$1[]_libs="" | ||
10 | |||
11 | AC_SUBST([evas_engine_$1_cflags]) | ||
12 | AC_SUBST([evas_engine_$1_libs]) | ||
13 | |||
14 | AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5]) | ||
15 | |||
16 | ]) | ||
17 | |||
18 | dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_XLIB(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | 2 | dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_XLIB(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
19 | 3 | ||
20 | AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_XLIB], | 4 | AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_XLIB], |
@@ -581,60 +565,6 @@ AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5]) | |||
581 | 565 | ||
582 | ]) | 566 | ]) |
583 | 567 | ||
584 | dnl use: EVAS_CHECK_ENGINE_DEP_FB(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | ||
585 | |||
586 | AC_DEFUN([EVAS_CHECK_ENGINE_DEP_FB], | ||
587 | [ | ||
588 | |||
589 | have_dep="no" | ||
590 | evas_engine_[]$1[]_cflags="" | ||
591 | evas_engine_[]$1[]_libs="" | ||
592 | |||
593 | AC_CHECK_HEADER([linux/fb.h], [have_dep="yes"]) | ||
594 | |||
595 | AC_SUBST([evas_engine_$1_cflags]) | ||
596 | AC_SUBST([evas_engine_$1_libs]) | ||
597 | |||
598 | AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5]) | ||
599 | |||
600 | ]) | ||
601 | |||
602 | |||
603 | dnl use: EVAS_CHECK_ENGINE_DEP_PSL1GHT(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | ||
604 | |||
605 | AC_DEFUN([EVAS_CHECK_ENGINE_DEP_PSL1GHT], | ||
606 | [ | ||
607 | |||
608 | have_dep="no" | ||
609 | evas_engine_[]$1[]_cflags="" | ||
610 | evas_engine_[]$1[]_libs="" | ||
611 | |||
612 | AC_CHECK_HEADER([rsx/rsx.h], [have_dep="yes"]) | ||
613 | |||
614 | AC_SUBST([evas_engine_$1_cflags]) | ||
615 | AC_SUBST([evas_engine_$1_libs]) | ||
616 | |||
617 | AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5]) | ||
618 | |||
619 | ]) | ||
620 | |||
621 | |||
622 | dnl use: EVAS_CHECK_ENGINE_DEP_WAYLAND_SHM(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | ||
623 | |||
624 | AC_DEFUN([EVAS_CHECK_ENGINE_DEP_WAYLAND_SHM], | ||
625 | [ | ||
626 | |||
627 | have_dep="yes" | ||
628 | evas_engine_[]$1[]_cflags="" | ||
629 | evas_engine_[]$1[]_libs="" | ||
630 | |||
631 | AC_SUBST([evas_engine_$1_cflags]) | ||
632 | AC_SUBST([evas_engine_$1_libs]) | ||
633 | |||
634 | AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5]) | ||
635 | |||
636 | ]) | ||
637 | |||
638 | 568 | ||
639 | dnl use: EVAS_CHECK_ENGINE_DEP_WAYLAND_EGL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | 569 | dnl use: EVAS_CHECK_ENGINE_DEP_WAYLAND_EGL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
640 | 570 | ||
@@ -678,9 +608,57 @@ AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5]) | |||
678 | ]) | 608 | ]) |
679 | 609 | ||
680 | 610 | ||
681 | dnl use: EVAS_CHECK_ENGINE(engine, want_engine, simple, description) | 611 | dnl use: EVAS_ENGINE(name, want_engine, [DEPENDENCY-CHECK-CODE]) |
612 | dnl | ||
613 | dnl defines BUILD_ENGINE_NAME if it should be built | ||
614 | dnl defines BUILD_STATIC_BUILD_NAME if should be built statically | ||
615 | dnl | ||
616 | dnl will call DEPENDENCY-CHECK-CODE if it should be built, | ||
617 | dnl if some dependency fail just call AC_MSG_ERROR() to abort. | ||
682 | 618 | ||
619 | AC_DEFUN([EVAS_ENGINE], | ||
620 | [ | ||
621 | m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl | ||
622 | m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl | ||
683 | 623 | ||
624 | want_engine="$2" | ||
625 | want_static_engine="no" | ||
626 | have_engine="no" | ||
627 | have_evas_engine_[]DOWN="no" | ||
628 | |||
629 | evas_engine_[]m4_defn([DOWN])[]_cflags="" | ||
630 | evas_engine_[]m4_defn([DOWN])[]_libs="" | ||
631 | |||
632 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic"; then | ||
633 | $3 | ||
634 | |||
635 | have_engine="yes" | ||
636 | if test "x${want_engine}" = "xstatic" ; then | ||
637 | have_evas_engine_[]DOWN="static" | ||
638 | want_static_engine="yes" | ||
639 | else | ||
640 | have_evas_engine_[]DOWN="yes" | ||
641 | fi | ||
642 | fi | ||
643 | |||
644 | AC_DEFINE_IF(BUILD_ENGINE_[]UP, [test "${have_engine}" = "yes"], | ||
645 | [1], [Build $1 Evas engine]) | ||
646 | AM_CONDITIONAL(BUILD_ENGINE_[]UP, [test "${have_engine}" = "yes"]) | ||
647 | |||
648 | AC_DEFINE_IF(EVAS_STATIC_BUILD_[]UP, [test "${want_static_engine}" = "yes"], | ||
649 | [1], [Build $1 Evas engine inside libevas]) | ||
650 | AM_CONDITIONAL(EVAS_STATIC_BUILD_[]UP, [test "${want_static_engine}" = "yes"]) | ||
651 | |||
652 | AC_SUBST([evas_engine_]m4_defn([DOWN])[_cflags]) | ||
653 | AC_SUBST([evas_engine_]m4_defn([DOWN])[_libs]) | ||
654 | |||
655 | m4_popdef([UP]) | ||
656 | m4_popdef([DOWN]) | ||
657 | ]) | ||
658 | |||
659 | |||
660 | |||
661 | dnl use: EVAS_CHECK_ENGINE(engine, want_engine, simple, description) | ||
684 | AC_DEFUN([EVAS_CHECK_ENGINE], | 662 | AC_DEFUN([EVAS_CHECK_ENGINE], |
685 | [ | 663 | [ |
686 | 664 | ||