]> git.ipfire.org Git - thirdparty/pdns.git/blame - m4/pdns_enable_unit_tests.m4
Merge pull request #9106 from omoerbeek/release-cycles
[thirdparty/pdns.git] / m4 / pdns_enable_unit_tests.m4
CommitLineData
fedea66a
RK
1AC_DEFUN([PDNS_ENABLE_UNIT_TESTS], [
2 AC_MSG_CHECKING([whether to enable unit test building])
3 AC_ARG_ENABLE([unit-tests],
4 AS_HELP_STRING([--enable-unit-tests],
5 [enable unit test building @<:@default=no@:>@]),
fd9b086f 6 [enable_unit_tests=$enableval],
fedea66a
RK
7 [enable_unit_tests=no]
8 )
9 AC_MSG_RESULT([$enable_unit_tests])
b553fa9d 10 AM_CONDITIONAL([UNIT_TESTS], [test "x$enable_unit_tests" != "xno"])
e1176384 11
662d9972 12 AS_IF([test "x$enable_unit_tests" != "xno"], [
94ac5f34 13 BOOST_TEST([mt])
b2ab38c3
PL
14 AS_IF([test "$boost_cv_lib_unit_test_framework" = "no"], [
15 AC_MSG_ERROR([Boost Unit Test library not found])
16 ])
fedea66a
RK
17 ])
18])