aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/eina/m4/eina_bench.m4
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-04 18:41:13 +1000
committerDavid Walter Seikel2012-01-04 18:41:13 +1000
commitdd7595a3475407a7fa96a97393bae8c5220e8762 (patch)
treee341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/eina/m4/eina_bench.m4
parentAdd the skeleton. (diff)
downloadSledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/eina/m4/eina_bench.m4')
-rw-r--r--libraries/eina/m4/eina_bench.m431
1 files changed, 31 insertions, 0 deletions
diff --git a/libraries/eina/m4/eina_bench.m4 b/libraries/eina/m4/eina_bench.m4
new file mode 100644
index 0000000..e586eff
--- /dev/null
+++ b/libraries/eina/m4/eina_bench.m4
@@ -0,0 +1,31 @@
1dnl use: EINA_BENCH_MODULE(foo-bar, have_bench, pkg_file [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
2AC_DEFUN([EINA_BENCH_MODULE],
3[
4m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
5m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
6
7want_module="$2"
8have_module="no"
9
10AC_ARG_ENABLE([$1],
11 [AC_HELP_STRING([--disable-benchmark-$1], [disable benchmarking against ]DOWN[ @<:@default=yes@:>@])],
12 [
13 if test "x${enableval}" = "xyes" ; then
14 enable_module="yes"
15 else
16 enable_module="no"
17 fi
18 ],
19 [enable_module="yes"])
20
21if test "x${enable_module}" = "xyes" && test "x${want_module}" = "xyes"; then
22 PKG_CHECK_MODULES([]UP[], [$3], [have_module="yes"], [have_module="no"])
23fi
24
25AM_CONDITIONAL([EINA_HAVE_]UP[], [test "x${have_module}" = "xyes"])
26
27AS_IF([test "x$have_module" = "xyes"], [$4], [$5])
28
29m4_popdef([UP])
30m4_popdef([DOWN])
31])