mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
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 (cherry picked from commit 506df426dbeb0187bbd3654bd286b4100628fb16)
This commit is contained in:
parent
8983e5117b
commit
b39ccf8e0b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user