check for OpenSSL headers in auto-detection

OpenSSL headers have been removed on El Capitane which renders it
unusable for us.
This commit is contained in:
Frank Morgner 2015-10-14 09:16:23 +02:00
parent bccf2120cd
commit b9b3b2a86e
1 changed files with 4 additions and 0 deletions

View File

@ -494,6 +494,10 @@ case "${enable_openssl}" in
have_openssl="no"
;;
detect)
saved_CFLAGS="${CFLAGS}"
CFLAGS="${CFLAGS} ${OPENSSL_CFLAGS}"
AC_CHECK_HEADERS([openssl/crypto.h],,[have_openssl="no"])
CFLAGS="${saved_CFLAGS}"
if test "${have_openssl}" = "yes"; then
enable_openssl="yes"
else