From 79cd45bfe8d8f40c512dde6f52f4100a73ba274b Mon Sep 17 00:00:00 2001 From: tasn Date: Mon, 11 Jul 2011 14:39:53 +0000 Subject: [PATCH] Evas: Move the HAVE_TESTS define to the m4 macro. Thanks to vtorri for the spanking. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@61245 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- configure.ac | 3 --- m4/efl_tests.m4 | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index a08b631..5bfa6e9 100644 --- a/configure.ac +++ b/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/m4/efl_tests.m4 b/m4/efl_tests.m4 index 3a4dfe2..f044323 100644 --- a/m4/efl_tests.m4 +++ b/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") -- 2.7.4