]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
In the past, OpenSSL was not needed by the main libarchive when the hash
authorJoerg Sonnenberger <joerg@bec.de>
Tue, 21 Jun 2016 13:12:20 +0000 (15:12 +0200)
committerJoerg Sonnenberger <joerg@bec.de>
Tue, 21 Jun 2016 13:12:20 +0000 (15:12 +0200)
functions were provided by libc, e.g. on NetBSD. With the introduction
of the de-/encryption support, this is no longer the case. As such,
explicitly check for the necessary EVP routines as well to make sure
that -lcrypto is added as necessary.

configure.ac

index 2fc42957f69ddca6c445f081b5489d2ee040d37b..64775fa63829512cb020f1004c9979582e516863 100644 (file)
@@ -846,6 +846,7 @@ if test "x$with_openssl" != "xno"; then
     else
       AC_CHECK_FUNCS([PKCS5_PBKDF2_HMAC_SHA1])
     fi
+    AC_CHECK_LIB(crypto,EVP_CIPHER_CTX_init)
 fi
 
 # Probe libmd AFTER OpenSSL/libcrypto.