1 AC_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@:>@]),
6 [enable_unit_tests=$enableval],
9 AC_MSG_RESULT([$enable_unit_tests])
10 AM_CONDITIONAL([UNIT_TESTS], [test "x$enable_unit_tests" != "xno"])
12 AS_IF([test "x$enable_unit_tests" != "xno"], [
14 AS_IF([test "$boost_cv_lib_unit_test_framework" = "no"], [
15 AC_MSG_ERROR([Boost Unit Test library not found])