summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2015-03-17 17:49:14 +0000
committerUli Schlachter <psychon@znc.in>2015-07-04 16:14:05 +0200
commitc5d923d8ff4a9b9fc1aef1c6c6918bab15098d34 (patch)
treeefa1dc6dd2e59dbf4d06d310247bd4354d60ddcc
parent5b40681c887192307f3ae147d2158870aa79c05f (diff)
Link with winsock library for socket functions on MinGW
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6e7e9c3..cce0ddb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -206,6 +206,15 @@ case $host_os in
;;
esac
+dnl Link with winsock for socket functions on MinGW
+case $host_os in
+ *mingw*)
+ AC_CHECK_LIB([ws2_32],[main])
+ ;;
+ *)
+ ;;
+esac
+
XCB_EXTENSION(Composite, yes)
XCB_EXTENSION(Damage, yes)
XCB_EXTENSION(DPMS, yes)