diff options
author | Yang Tse <yangsita@gmail.com> | 2008-05-19 02:50:29 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-05-19 02:50:29 +0000 |
commit | f209547d0fa6721915a3a8fbc00ed38eb5bb6bba (patch) | |
tree | 56c56b9775989cd038d878a584fa1778466564d4 /configure.ac | |
parent | 0458805686697c09bd3afff858469277a120f10d (diff) | |
download | c-ares-f209547d0fa6721915a3a8fbc00ed38eb5bb6bba.tar.gz c-ares-f209547d0fa6721915a3a8fbc00ed38eb5bb6bba.tar.bz2 c-ares-f209547d0fa6721915a3a8fbc00ed38eb5bb6bba.zip |
if WINSOCK2 API is used link with 'ws2_32', else
if WINSOCK API is used under WinCE link with 'winsock', else
if WINSOCK API is used link with 'wsock32'.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 5689a9e..9653a2a 100644 --- a/configure.ac +++ b/configure.ac @@ -19,9 +19,9 @@ AM_PROG_CC_C_O AC_PROG_INSTALL case $host_os in -solaris*) - AC_DEFINE(ETC_INET, 1, [if a /etc/inet dir is being used]) - ;; + solaris*) + AC_DEFINE(ETC_INET, 1, [if a /etc/inet dir is being used]) + ;; esac dnl support building of Windows DLLs @@ -228,9 +228,16 @@ if test "$HAVE_GETHOSTBYNAME" != "1" then dnl This is for winsock systems if test "$ac_cv_header_windows_h" = "yes"; then - if test "$ac_cv_header_winsock_h" = "yes"; then - winsock_LIB="-lwinsock" - fi + if test "$ac_cv_header_winsock_h" = "yes"; then + case $host in + *-*-mingw32ce*) + winsock_LIB="-lwinsock" + ;; + *) + winsock_LIB="-lwsock32" + ;; + esac + fi if test "$ac_cv_header_winsock2_h" = "yes"; then winsock_LIB="-lws2_32" fi |