autotools-openssl-mac.patch 849 B

123456789101112131415161718192021222324252627
  1. From 506df426dbeb0187bbd3654bd286b4100628fb16 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= <carenas@gmail.com>
  3. Date: Tue, 29 Aug 2017 00:44:57 -0700
  4. Subject: [PATCH] autotools: confirm openssl is working before using
  5. latest versions of macOS provide pkg-config and libraries for an ancient
  6. version of openssl as part of the system, but no headers
  7. diff --git a/m4/libevent_openssl.m4 b/m4/libevent_openssl.m4
  8. index c2040595..7b458134 100644
  9. --- a/m4/libevent_openssl.m4
  10. +++ b/m4/libevent_openssl.m4
  11. @@ -39,6 +39,10 @@ case "$enable_openssl" in
  12. done
  13. ;;
  14. esac
  15. + CPPFLAGS_SAVE=$CPPFLAGS
  16. + CPPFLAGS+=$OPENSSL_INCS
  17. + AC_CHECK_HEADERS([openssl/ssl.h], [], [have_openssl=no])
  18. + CPPFLAGS=$CPPFLAGS_SAVE
  19. AC_SUBST(OPENSSL_INCS)
  20. AC_SUBST(OPENSSL_LIBS)
  21. case "$have_openssl" in
  22. --
  23. 2.17.0