From 5388a002f5ad3bdfc756584dc58485fc3db135d0 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Wed, 26 Jun 2019 09:36:49 +0300 Subject: [PATCH] autotools: do not install bufferevent_ssl.h under --disable-openssl Refs: https://github.com/libevent/libevent/issues/760#issuecomment-502345788 --- include/include.am | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/include.am b/include/include.am index 8c9d4f7f..3f4a5522 100644 --- a/include/include.am +++ b/include/include.am @@ -1,4 +1,4 @@ -# include/Makefile.am for libevent +# include/include.am for libevent # Copyright 2000-2007 Niels Provos # Copyright 2007-2012 Niels Provos and Nick Mathewson # @@ -11,7 +11,6 @@ EVENT2_EXPORT = \ include/event2/buffer_compat.h \ include/event2/bufferevent.h \ include/event2/bufferevent_compat.h \ - include/event2/bufferevent_ssl.h \ include/event2/bufferevent_struct.h \ include/event2/dns.h \ include/event2/dns_compat.h \ @@ -34,6 +33,10 @@ EVENT2_EXPORT = \ include/event2/util.h \ include/event2/visibility.h +if OPENSSL +EVENT2_EXPORT += include/event2/bufferevent_ssl.h +endif + ## Without the nobase_ prefixing, Automake would strip "include/event2/" from ## the source header filename to derive the installed header filename. ## With nobase_ the installed path is $(includedir)/include/event2/ev*.h. -- 2.40.0