2 AC_DEFUN([EL_CONFIG_OS_WIN32],
4 AC_MSG_CHECKING([for win32 threads])
8 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>]], [[_beginthread(NULL, NULL, 0, NULL)]])],[cf_result=yes],[cf_result=no])
9 AC_MSG_RESULT($cf_result)
11 if test "$cf_result" = yes; then
12 EL_DEFINE(HAVE_BEGINTHREAD, [_beginthread()])
17 AC_CHECK_HEADERS(windows.h ws2tcpip.h)
20 # TODO: Check -lws2_32 for IPv6 support
21 LIBS="$LIBS -lwsock32"