autotools: confirm openssl is working before using

latest versions of macOS provide pkg-config and libraries for an ancient
version of openssl as part of the system, but no headers
This commit is contained in:
Carlo Marcelo Arenas Belón 2017-08-29 00:44:57 -07:00 committed by Azat Khuzhin
parent 63c4bf78d6
commit 506df426db

View File

@ -39,6 +39,10 @@ case "$enable_openssl" in
done
;;
esac
CPPFLAGS_SAVE=$CPPFLAGS
CPPFLAGS+=$OPENSSL_INCS
AC_CHECK_HEADERS([openssl/ssl.h], [], [have_openssl=no])
CPPFLAGS=$CPPFLAGS_SAVE
AC_SUBST(OPENSSL_INCS)
AC_SUBST(OPENSSL_LIBS)
case "$have_openssl" in