1AC_DEFUN([PDNS_ENABLE_IXFRDIST], [ 2 AC_MSG_CHECKING([whether we will be building ixfrdist]) 3 AC_ARG_ENABLE([ixfrdist], 4 [AS_HELP_STRING([--enable-ixfrdist], [if we should build and install ixfrdist @<:@default=no@:>@]) 5 ], [ 6 enable_ixfrdist=$enableval 7 ], [ 8 enable_ixfrdist=no 9 ]) 10 11 AC_MSG_RESULT([$enable_ixfrdist]) 12 AM_CONDITIONAL([IXFRDIST], [test "x$enable_ixfrdist" != "xno"]) 13 AS_IF([test "x$enable_ixfrdist" != "xno"], [ 14 PKG_CHECK_MODULES([YAML], [yaml-cpp >= 0.5], [ : ], [ 15 AC_MSG_ERROR([Could not find yaml-cpp >= 0.5, required for ixfrdist]) 16 ]) 17 ]) 18]) 19