diff options
author | Yang Tse <yangsita@gmail.com> | 2006-08-03 21:19:40 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-08-03 21:19:40 +0000 |
commit | 4c75f1c7b77e08f72e916aadeca63a9e3cf703a3 (patch) | |
tree | bbffadb108df0c707427dc1e609a8d80edb47d5d /ares | |
parent | ed7bff1fec093483b8ee8ac937a3469b9b889f8a (diff) |
MinGW/MSYS needs lib ws2_32 for proper operation of configure script.
Diffstat (limited to 'ares')
-rw-r--r-- | ares/configure.ac | 12 |
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 |