configure.ac: use pkg-config for libcheck

This commit is contained in:
Benjamin Dauvergne 2015-08-24 10:24:29 +02:00
parent 3946807122
commit 67d0a0349d
1 changed files with 1 additions and 3 deletions

View File

@ -605,9 +605,7 @@ dnl Check if user disabled the tests.
AC_ARG_ENABLE(tests, [ --disable-tests disable the test suite],,
enable_tests="yes")
if test "x$enable_tests" = xyes ; then
AC_CHECK_LIB(check, srunner_set_log, enable_tests="yes", enable_tests="no")
CHECK_CFLAGS=""
CHECK_LIBS="-lcheck"
PKG_CHECK_MODULES(CHECK, check)
AC_SUBST(CHECK_CFLAGS)
AC_SUBST(CHECK_LIBS)
AC_CHECK_LIB(check, srunner_set_xml, [AC_DEFINE(CHECK_IS_XML, [], [Define if check available with XML support])])