diff options
author | Yang Tse <yangsita@gmail.com> | 2009-06-21 02:42:35 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-06-21 02:42:35 +0000 |
commit | f474f738a5a5096eaa8ca84577aa6c1e807e8e72 (patch) | |
tree | 1dfcd97f4bf39a7a4c29e7fbd579df3722e9d5da | |
parent | cdcc3aca8ce7811103a51f36fc832a12da0212ae (diff) | |
download | c-ares-f474f738a5a5096eaa8ca84577aa6c1e807e8e72.tar.gz c-ares-f474f738a5a5096eaa8ca84577aa6c1e807e8e72.tar.bz2 c-ares-f474f738a5a5096eaa8ca84577aa6c1e807e8e72.zip |
Refactor how libraries are checked for connect() function, follow-up.
-rw-r--r-- | acinclude.m4 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 4c5e8c7..336dfab 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1676,6 +1676,7 @@ dnl Verify if network connect function is already available dnl using current libraries or if another one is required. AC_DEFUN([CARES_CHECK_LIBS_CONNECT], [ + AC_REQUIRE([CARES_INCLUDES_WINSOCK2])dnl AC_MSG_CHECKING([for connect in libraries]) tst_connect_save_LIBS="$LIBS" tst_connect_need_LIBS="unknown" @@ -1684,6 +1685,10 @@ AC_DEFUN([CARES_CHECK_LIBS_CONNECT], [ LIBS="$tst_lib $tst_connect_save_LIBS" AC_LINK_IFELSE([ AC_LANG_PROGRAM([[ + $cares_includes_winsock2 + #ifndef HAVE_WINDOWS_H + int connect(int, void*, int); + #endif ]],[[ if(0 != connect(0, 0, 0)) return 1; |