summaryrefslogtreecommitdiff
path: root/legacy/eet/m4/efl_tests.m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2008-10-16 08:41:40 +0000
committerVincent Torri <vincent.torri@gmail.com>2008-10-16 08:41:40 +0000
commit3e4465c4fac433a17bd93da7df2a6b4d5e4b26df (patch)
tree375048807db7bed4ddf33e55604c3c70226d7527 /legacy/eet/m4/efl_tests.m4
parenta3f8f5f27b34f658950da3be95aea9bf93a59d8b (diff)
* add m4 macro for documentation, unit tests and coverage
* put documentation related files in doc, remove gendoc and add a doc rule to create the documentation and a doc tarball named eet-doc-$(version).tar.bz2 * minor cleanup in the autotools SVN revision: 36706
Diffstat (limited to 'legacy/eet/m4/efl_tests.m4')
-rw-r--r--legacy/eet/m4/efl_tests.m444
1 files changed, 44 insertions, 0 deletions
diff --git a/legacy/eet/m4/efl_tests.m4 b/legacy/eet/m4/efl_tests.m4
new file mode 100644
index 0000000000..3478b54a16
--- /dev/null
+++ b/legacy/eet/m4/efl_tests.m4
@@ -0,0 +1,44 @@
1dnl Copyright (C) 2008 Vincent Torri <vtorri at univ-evry dot fr>
2dnl That code is public domain and can be freely used or copied.
3
4dnl Macro that check if tests programs are wanted and if yes, if
5dnl the Check library is available.
6
7dnl Usage: EFL_CHECK_TESTS([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
8dnl Define the automake conditionnal EFL_ENABLE_TESTS
9
10AC_DEFUN([EFL_CHECK_TESTS],
11[
12
13dnl configure option
14
15AC_ARG_ENABLE([tests],
16 [AC_HELP_STRING([--enable-tests], [enable tests @<:@default=no@:>@])],
17 [
18 if test "x${enableval}" = "xyes" ; then
19 _efl_enable_tests="yes"
20 else
21 _efl_enable_tests="no"
22 fi
23 ],
24 [_efl_enable_tests="no"]
25)
26AC_MSG_CHECKING([whether tests are built])
27AC_MSG_RESULT([${_efl_enable_tests}])
28
29if test "x${_efl_enable_tests}" = "xyes" ; then
30 PKG_CHECK_MODULES([CHECK],
31 [check >= 0.9.5],
32 [dummy="yes"],
33 [_efl_enable_tests="no"]
34 )
35fi
36
37AM_CONDITIONAL(EFL_ENABLE_TESTS, test "x${_efl_enable_tests}" = "xyes")
38
39if test "x${_efl_enable_tests}" = "xyes" ; then
40 ifelse([$1], , :, [$1])
41else
42 ifelse([$2], , :, [$2])
43fi
44])