Always close all sockets in terminate_connection().
[tinc] / m4 / openssl.m4
index bf5ce9f..2ef9c37 100644 (file)
@@ -28,4 +28,14 @@ AC_DEFUN(tinc_OPENSSL,
     [LIBS="$LIBS -lcrypto"],
     [AC_MSG_ERROR("OpenSSL libraries not found.")]
   )
+
+  AC_CHECK_FUNCS(RAND_pseudo_bytes)
+
+  AC_CHECK_FUNC(dlopen,
+    [],
+    AC_CHECK_LIB(dl, dlopen,
+      [LIBS="$LIBS -ldl"],
+      [AC_MSG_ERROR("OpenSSL depends on libdl.")]
+    )
+  )
 ])