1031: Replace jsrt with spidermonkey_runtime
[elinks.git] / config / m4 / win32.m4
blob18296e51addeaaa86c34419a3100071e25e22b1b
2 AC_DEFUN([EL_CONFIG_OS_WIN32],
4         AC_MSG_CHECKING([for win32 threads])
6         EL_SAVE_FLAGS
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()])
13         else
14                 EL_RESTORE_FLAGS
15         fi
17         AC_CHECK_HEADERS(windows.h ws2tcpip.h)
19         # TODO: Check this?
20         # TODO: Check -lws2_32 for IPv6 support
21         LIBS="$LIBS -lwsock32"