[PATCH app/xhost 2/4] Link with winsock for MinGW
Jon TURNEY
jon.turney at dronecode.org.uk
Fri Feb 15 08:08:38 PST 2013
Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
configure.ac | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 1b069e8..ae3ef74 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,6 +31,15 @@ XTRANS_CONNECTION_FLAGS
# Secure RPC detection macro from xtrans.m4
XTRANS_SECURE_RPC_FLAGS
+# Link with winsock if mingw target
+case $host_os in
+ *mingw*)
+ AC_CHECK_LIB([ws2_32],[main])
+ ;;
+ *)
+ ;;
+esac
+
AC_CONFIG_FILES([
Makefile
man/Makefile])
--
1.7.9
More information about the xorg-devel
mailing list