aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
Diffstat (limited to 'ares')
-rw-r--r--ares/configure.ac12
1 files changed, 12 insertions, 0 deletions
diff --git a/ares/configure.ac b/ares/configure.ac
index e2867d10f..989dee2ad 100644
--- a/ares/configure.ac
+++ b/ares/configure.ac
@@ -81,6 +81,18 @@ esac
AC_MSG_RESULT($need_no_undefined)
AM_CONDITIONAL(NO_UNDEFINED, test x$need_no_undefined = xyes)
+AC_MSG_CHECKING([if we need ws2_32 lib])
+case $host in
+ *-*-mingw* | *-*-pw32*)
+ need_lib_ws2_32=yes
+ LIBS="$LIBS -lws2_32"
+ ;;
+ *)
+ need_lib_ws2_32=no
+ ;;
+esac
+AC_MSG_RESULT($need_lib_ws2_32)
+
dnl Checks for header files.
AC_HEADER_STDC