diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2011-04-27 12:32:39 +0100 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-06-20 20:56:17 -0700 |
commit | 2c29b8b71575d73db6b9542b24fa3312a2cf2f86 (patch) | |
tree | 14a4713c19851add87a0fc4947c9b411e0456f92 | |
parent | 4ee8867047eaff3b121478b7199201d669e2c85d (diff) |
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 <jon.turney@dronecode.org.uk>
Reviewed-by: Cyril Brulebois <kibi@debian.org
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | configure.ac | 9 |
1 files changed, 8 insertions, 1 deletions
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]), |