summaryrefslogtreecommitdiff
path: root/m4/evas_check_engine.m4
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-18 13:48:14 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-18 13:48:14 +0000
commitdb38bdd6de782b880ab03c1c4217823d30d5eae0 (patch)
tree1df90ff44139e1f1528f8d9af4ad8dc48cfddec1 /m4/evas_check_engine.m4
parentac4df627f71e4dfc331ef48027fc48b52227a6f1 (diff)
cosmetic: simplify and colorize features.
EFL_ADD_FEATURE(PKG, NAME, [VALUE]) will do an amazing work to produce colored output in a standard way. if value == yes, it's green and shows "+name" if value == no, it's red and shows "-name" else it shows cyan and shows "name=value" if not provided, will use ${have_name:-${want_name}} SVN revision: 82976
Diffstat (limited to 'm4/evas_check_engine.m4')
-rw-r--r--m4/evas_check_engine.m419
1 files changed, 9 insertions, 10 deletions
diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4
index 90d4b528c4..c37e550ac6 100644
--- a/m4/evas_check_engine.m4
+++ b/m4/evas_check_engine.m4
@@ -560,7 +560,7 @@ dnl will call DEPENDENCY-CHECK-CODE if it should be built,
560dnl if some dependency fail just call AC_MSG_ERROR() to abort. 560dnl if some dependency fail just call AC_MSG_ERROR() to abort.
561 561
562AC_DEFUN([EVAS_ENGINE], 562AC_DEFUN([EVAS_ENGINE],
563[ 563[dnl
564m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl 564m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
565m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl 565m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
566 566
@@ -595,16 +595,16 @@ AM_CONDITIONAL(EVAS_STATIC_BUILD_[]UP, [test "${want_static_engine}" = "yes"])
595AC_SUBST([evas_engine_]m4_defn([DOWN])[_cflags]) 595AC_SUBST([evas_engine_]m4_defn([DOWN])[_cflags])
596AC_SUBST([evas_engine_]m4_defn([DOWN])[_libs]) 596AC_SUBST([evas_engine_]m4_defn([DOWN])[_libs])
597 597
598m4_popdef([UP]) 598EFL_ADD_FEATURE([EVAS_ENGINE], [$1], [${have_evas_engine_]DOWN[}])dnl
599m4_popdef([DOWN]) 599m4_popdef([UP])dnl
600m4_popdef([DOWN])dnl
600]) 601])
601 602
602 603
603 604
604dnl use: EVAS_CHECK_ENGINE(engine, want_engine, simple, description) 605dnl use: EVAS_CHECK_ENGINE(engine, want_engine, simple, description)
605AC_DEFUN([EVAS_CHECK_ENGINE], 606AC_DEFUN([EVAS_CHECK_ENGINE],
606[ 607[dnl
607
608m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl 608m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
609m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl 609m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
610 610
@@ -647,9 +647,8 @@ if test "x${want_static_engine}" = "xyes" ; then
647 have_static_module="yes" 647 have_static_module="yes"
648fi 648fi
649 649
650AM_CONDITIONAL(EVAS_STATIC_BUILD_[]UP, [test "x${want_static_engine}" = "xyes"]) 650EFL_ADD_FEATURE([EVAS_ENGINE], [$1], [${have_evas_engine_]DOWN[}])
651 651AM_CONDITIONAL(EVAS_STATIC_BUILD_[]UP, [test "x${want_static_engine}" = "xyes"])dnl
652m4_popdef([UP]) 652m4_popdef([UP])dnl
653m4_popdef([DOWN]) 653m4_popdef([DOWN])dnl
654
655]) 654])