#
# Check for libgcrypt
#
-AC_CHECK_HEADERS(gcrypt.h)
+AC_CHECK_HEADERS(gcrypt.h, [], [AC_MSG_ERROR("gcrypt.h is required for librouteros to compile")])
socket_needs_socket="no"
AC_CHECK_FUNCS(socket, [],
], [])
AM_CONDITIONAL(BUILD_WITH_DEBUG, test "x$enable_debug" = "xyes")
-AC_OUTPUT(Makefile src/Makefile src/routeros_version.h)
+AC_OUTPUT(Makefile doc/Makefile src/Makefile src/routeros_version.h)