]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - configure.ac
Link against OpenSSL
[people/ms/libloc.git] / configure.ac
index 97faf93b6d455a5396a6fba1da9ee174a4a920fc..e55f4163b02e99db36f83b53b5bc982cb27db5d4 100644 (file)
@@ -160,6 +160,11 @@ case "${host}" in
 esac
 RESOLV_LIBS="${LIBS}"
 
+dnl Checking for OpenSSL
+LIBS=
+AC_CHECK_LIB(crypto, EVP_EncryptInit,, AC_MSG_ERROR([libcrypto has not been found]))
+OPENSSL_LIBS="${LIBS}"
+
 AC_CONFIG_HEADERS(config.h)
 AC_CONFIG_FILES([
         Makefile