From 2c29b8b71575d73db6b9542b24fa3312a2cf2f86 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Wed, 27 Apr 2011 12:32:39 +0100 Subject: Only link with ws2_32 for mingw target For the Cygwin target, we will be using the socket functions provided by the Cygwin DLL, so linking with ws2_32 is unnecessary, even though it may be present. Signed-off-by: Jon TURNEY Reviewed-by: Cyril Brulebois --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d18b0fe..84a9f4f 100644 --- a/configure.ac +++ b/configure.ac @@ -86,7 +86,14 @@ case $host_os in ;; esac -AC_HAVE_LIBRARY(ws2_32) +# Link with winsock if mingw target +case $host_os in + *mingw*) + AC_HAVE_LIBRARY(ws2_32) + ;; + *) + ;; +esac # Options AC_ARG_ENABLE(xkb, AS_HELP_STRING([--disable-xkb], [Disable XKB support]), -- cgit v1.2.3