[configure.in] Add a link to the LTP homepage.

If ./configure --enable-gcov fails due to a missing LTP package, then
include a link to LTP homepage in the error message.
This commit is contained in:
Chris Wilson 2008-04-04 14:15:58 +01:00
parent c0593d16c7
commit f72799a252

View file

@ -902,23 +902,24 @@ if test "x$use_gcov" = "xyes"; then
fi
done
])
else
ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"
AC_MSG_ERROR([$ltp_msg])
fi
case $cairo_cv_ltp_version in
""|invalid[)]
ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
AC_MSG_ERROR([$ltp_msg])
LTP="exit 0;"
;;
*)
cairo_has_lcov=yes
;;
esac
if test "x$cairo_has_lcov" != "xyes"; then
AC_MSG_ERROR([[To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list.
Please install the Linux Test Project [http://ltp.sourceforge.net/], and try again.]])
fi
if test -z "$LTP_GENHTML"; then
AC_MSG_ERROR([Could not find genhtml from the LTP package])
AC_MSG_ERROR([[Could not find genhtml from the LTP package.
Please install the Linux Test Project [http://ltp.sourceforge.net/], and try again.]])
fi
AC_DEFINE(HAVE_GCOV, 1, [Whether you have gcov])