Skip to content
This repository has been archived by the owner on Mar 2, 2018. It is now read-only.

Commit

Permalink
Update configure to properly detect libressl without breaking openssl…
Browse files Browse the repository at this point in the history
… compatiblity.
  • Loading branch information
maurerpe committed Aug 12, 2014
1 parent 5f0bd98 commit 0556166
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.ac
Expand Up @@ -220,16 +220,17 @@ AM_CONDITIONAL(HAVE_PYTHON, test "$enable_python" = yes)
## Note: -lssl is needed on Linux
## -lcrypto is needed on MacOS
## -lmd is needed on some older systems
## -lssl and -lcrypto are needed if using libressl
## Always check for headers, then libs, then functions
###

AC_CHECK_HEADERS([openssl/aes.h openssl/bio.h openssl/evp.h openssl/hmac.h openssl/md5.h openssl/rand.h openssl/rsa.h openssl/sha.h openssl/pem.h openssl/x509.h])

AC_CHECK_LIB([crypto],[EVP_get_digestbyname])

AC_CHECK_LIB([ssl],[SSL_library_init],,
AC_MSG_ERROR([OpenSSL developer library 'libssl-dev' or 'openssl-devel' not installed; cannot continue.]))

AC_CHECK_LIB([crypto],[EVP_get_digestbyname])
AC_CHECK_LIB([md],[MD5]) # if libmd is available, get it

AC_CHECK_FUNCS([MD5 SHA1 AES_encrypt RAND_pseudo_bytes des_read_pw_string EVP_read_pw_string EVP_MD_size])
Expand Down

0 comments on commit 0556166

Please sign in to comment.