summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@gmail.com>2016-01-22 21:06:35 +0100
committerCedric BAIL <cedric@osg.samsung.com>2016-03-02 13:56:42 -0800
commitaca6fc8c3611b5e7d4faaed61e52dedf057d7219 (patch)
tree8c79c539e868000be62ae6bf23cb9d8c6d268d54 /configure.ac
parent2d338afb7c3fdcd3b19ee1850b594aeeb5d68415 (diff)
autotools: fix code coverage on OSX
OSX uses clang as a default compiler instead of gcc. Gcov does not exist for clang, but clang has an alternative which requires additional compilier and linker flags. Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 19bf480..4b25b55 100644
--- a/configure.ac
+++ b/configure.ac
@@ -327,8 +327,10 @@ EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
327if test "${want_coverage}" = "yes" ; then 327if test "${want_coverage}" = "yes" ; then
328 AC_CHECK_PROG([have_lcov], [lcov], [yes], [no]) 328 AC_CHECK_PROG([have_lcov], [lcov], [yes], [no])
329 if test "x${have_lcov}" = "xyes" ; then 329 if test "x${have_lcov}" = "xyes" ; then
330 EFLALL_COV_CFLAGS="${EFLALL_COV_CFLAGS} -fprofile-arcs -ftest-coverage" 330 AC_SEARCH_LIBS([gcov], [_gcov_init])
331 EFLALL_COV_LIBS="${EFLALL_COV_LIBS} -lgcov" 331 EFL_CHECK_COMPILER_FLAGS([EFLALL], [-fprofile-arcs -ftest-coverage])
332 EFL_CHECK_COMPILER_FLAGS([EFLALL], [-fprofile-instr-generate -fcoverage-mapping])
333 EFL_CHECK_LINKER_FLAGS([EFLALL], [-fprofile-instr-generate -fcoverage-mapping])
332 if test "x${prefer_assert}" = "xno"; then 334 if test "x${prefer_assert}" = "xno"; then
333 EFLALL_COV_CFLAGS="${EFLALL_COV_CFLAGS} -DNDEBUG" 335 EFLALL_COV_CFLAGS="${EFLALL_COV_CFLAGS} -DNDEBUG"
334 else 336 else