summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-07-01 13:34:52 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-07-01 13:34:52 +0000
commit6964b15728810aae76f1148e8e17c76c95c661c1 (patch)
treede2ff701bcd72e10e809a458eaa272979d9675e5 /m4
parentd3036076b28f1796aa448af828d6d93bcf8533db (diff)
downloadeet-6964b15728810aae76f1148e8e17c76c95c661c1.tar.gz
Eet: fix CFLAGS value when --enable-assert is used
SVN revision: 73113
Diffstat (limited to 'm4')
-rw-r--r--m4/efl_tests.m410
1 files changed, 5 insertions, 5 deletions
diff --git a/m4/efl_tests.m4 b/m4/efl_tests.m4
index edd57f2..d8554e1 100644
--- a/m4/efl_tests.m4
+++ b/m4/efl_tests.m4
@@ -44,17 +44,17 @@ if test "x${_efl_enable_tests}" = "xyes" ; then
m4_defn([UPEFL])[]_CFLAGS="${m4_defn([UPEFL])[]_CFLAGS} -fprofile-arcs -ftest-coverage"
m4_defn([UPEFL])[]_LIBS="${m4_defn([UPEFL])[]_LIBS} -lgcov"
# remove any optimisation flag and force debug symbols
- m4_defn([UPEFL])[]_CFLAGS="${m4_defn([UPEFL])[]_CFLAGS} -g -O0 -DDEBUG"
+ if test "x${prefer_assert}" = "xno"; then
+ m4_defn([UPEFL])[]_CFLAGS="${m4_defn([UPEFL])[]_CFLAGS} -DNDEBUG"
+ else
+ m4_defn([UPEFL])[]_CFLAGS="${m4_defn([UPEFL])[]_CFLAGS} -g -O0 -DDEBUG"
+ fi
efl_enable_coverage="yes"
else
AC_MSG_WARN([lcov is not found, disable profiling instrumentation])
fi
fi
-dnl Substitution
-AC_SUBST(EFL_COVERAGE_CFLAGS)
-AC_SUBST(EFL_COVERAGE_LIBS)
-
AM_CONDITIONAL(EFL_ENABLE_TESTS, test "x${_efl_enable_tests}" = "xyes")
AS_IF([test "x$_efl_enable_tests" = "xyes"], [$2], [$3])