Evas: Added HAVE_TESTS to config.h
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 11 Jul 2011 14:08:13 +0000 (14:08 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 11 Jul 2011 14:08:13 +0000 (14:08 +0000)
This is set to 1 if tests are enabled.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@61244 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac

index 5bfa6e9..a08b631 100644 (file)
@@ -1680,6 +1680,9 @@ 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}"