From: Tom Hacohen Date: Mon, 11 Jul 2011 14:39:53 +0000 (+0000) Subject: Evas: Move the HAVE_TESTS define to the m4 macro. X-Git-Tag: submit/devel/efl/20131022.203902~8891 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d082b5da711862f6dc6640c6935c26bb3b17a87;p=platform%2Fupstream%2Fefl.git Evas: Move the HAVE_TESTS define to the m4 macro. Thanks to vtorri for the spanking. SVN revision: 61245 --- diff --git a/legacy/evas/configure.ac b/legacy/evas/configure.ac index a08b631..5bfa6e9 100644 --- a/legacy/evas/configure.ac +++ b/legacy/evas/configure.ac @@ -1680,9 +1680,6 @@ AM_CONDITIONAL([BUILD_EXAMPLES], [test "x${build_examples}" = "xyes"]) ## Unit tests, coverage EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"]) -if test "x$enable_tests" = "xyes" ; then - AC_DEFINE(HAVE_TESTS, 1, [Set to 1 if we enabled unit testing.]) -fi EFL_CHECK_COVERAGE([${enable_tests}], [enable_coverage="yes"], [enable_coverage="no"]) EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_COVERAGE_CFLAGS}" diff --git a/legacy/evas/m4/efl_tests.m4 b/legacy/evas/m4/efl_tests.m4 index 3a4dfe2..f044323 100644 --- a/legacy/evas/m4/efl_tests.m4 +++ b/legacy/evas/m4/efl_tests.m4 @@ -34,6 +34,9 @@ if test "x${_efl_enable_tests}" = "xyes" ; then [dummy="yes"], [_efl_enable_tests="no"]) fi +if test "x${_efl_enable_tests}" = "xyes" ; then + AC_DEFINE(HAVE_TESTS, 1, [Set to 1 if we enabled unit testing.]) +fi AM_CONDITIONAL(EFL_ENABLE_TESTS, test "x${_efl_enable_tests}" = "xyes")