Remove dependency on libevent, add -pthread when necessary.
[tinc] / configure.in
index 5aacff6..8e718c8 100644 (file)
@@ -71,6 +71,15 @@ case $host_os in
   ;;
 esac
 
+case $host_os in
+  *mingw*)
+  ;;
+  *)
+    LIBS="-pthread $LIBS"
+    CFLAGS="-pthread $CFLAGS"
+  ;;
+esac 
+
 AC_ARG_ENABLE(tunemu,
   AS_HELP_STRING([--enable-tunemu], [enable support for the tunemu driver]),
   [ AC_DEFINE(ENABLE_TUNEMU, 1, [Support for tunemu])
@@ -152,7 +161,6 @@ dnl These are defined in files in m4/
 
 AC_ARG_WITH(libgcrypt, AC_HELP_STRING([--with-libgcrypt], [enable use of libgcrypt instead of OpenSSL])], [])
 
-tinc_LIBEVENT
 tinc_ZLIB
 tinc_LZO