Commit 07144bf2 authored by Jeremy C. Reed's avatar Jeremy C. Reed
Browse files

Fix --with-lcov to actually accept the specified location.

And fix setting of CPPFLAGS and LIBS. Don't use make-style
variable syntax in shell scripts as it became shell command substition.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@424 e5f2f494-b856-4b98-b285-d166d9295462
parent 241dab1f
......@@ -33,7 +33,7 @@ AC_TRY_COMPILE([
AC_MSG_RESULT(no))
AC_ARG_WITH(lcov,
[ --with-lcov enable gtest and coverage target using the specified lcov], lcov="yes", lcov="no")
[ --with-lcov[=PROGRAM] enable gtest and coverage target using the specified lcov], lcov="$withval", lcov="no")
AC_ARG_WITH(gtest,
[ --with-gtest=PATH specify a path to gtest header files (PATH/include) and library (PATH/lib)],
......@@ -65,8 +65,9 @@ if test "$lcov" != "no"; then
if test ! -x $GENHTML; then
AC_MSG_ERROR([genhtml not found, needed for lcov])
fi
CPPFLAGS="$(CPPFLAGS) -fprofile-arcs -ftest-coverage"
LIBS=" $(LIBS) -lgcov"
# GCC specific?
CPPFLAGS="$CPPFLAGS -fprofile-arcs -ftest-coverage"
LIBS=" $LIBS -lgcov"
AC_SUBST(CPPFLAGS)
AC_SUBST(LIBS)
AC_SUBST(LCOV)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment