AC_GNU_SOURCE
AC_PROG_LIBTOOL
AC_CHECK_PROG(SETCAP, setcap, yes, no)
+AC_CHECK_PROG(DOCBOOK, docbook2man, yes, no)
+AM_CONDITIONAL(ENABLE_DOCBOOK, test x$DOCBOOK = xyes)
AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink headers not found]),
[#include <linux/types.h>
AC_CONFIG_COMMANDS([default],[[]],[[]])
AC_OUTPUT
+if test "x$DOCBOOK" = "xno"; then
+ AC_MSG_NOTICE([
+
+Warning:
+--------
+The docbook tool is not installed, the man pages won't be generated.
+
+])
+
+fi
+
if test "x$SETCAP" = "xno"; then
AC_MSG_NOTICE([