+ [Define to true if you want to use functions from atomic.h])])])
+
+AC_ARG_WITH([docs],
+ [AS_HELP_STRING([--with-docs],
+ [Generate documentation (yes|no) @<:@default=yes@:>@])],
+ [with_docs=$withval],
+ [with_docs=yes])
+
+AS_IF([test "$with_docs" = "yes"],
+ [
+ REQUIRE_POD2MAN
+ REQUIRE_PODCHECKER
+ ])
+AM_CONDITIONAL(BUILD_DOCS, test "$with_docs" = "yes")
+
+AC_CHECK_HEADERS_ONCE(winsock2.h poll.h sys/wait.h fnmatch.h)
+AM_CONDITIONAL(BUILD_POLL, test "x$ac_cv_header_poll_h" = "xno")
+AM_CONDITIONAL(BUILD_WIN32_WRAPPERS, test "x$ac_cv_header_winsock2_h" = "xyes")
+AS_IF(test "x$ac_cv_header_winsock2_h" = "xyes",
+ [AM_LDFLAGS="$AM_LDFLAGS -lws2_32"
+ AM_CFLAGS="$AM_CFLAGS $NO_WERROR"
+ AM_CXXFLAGS="$AM_CXXFLAGS $NO_WERROR"
+ ])
+DETECT_EAGAIN