]> granicus.if.org Git - libevent/commitdiff
autotools: do not install bufferevent_ssl.h under --disable-openssl
authorAzat Khuzhin <azat@libevent.org>
Wed, 26 Jun 2019 06:36:49 +0000 (09:36 +0300)
committerAzat Khuzhin <azat@libevent.org>
Wed, 26 Jun 2019 06:47:36 +0000 (09:47 +0300)
Refs: https://github.com/libevent/libevent/issues/760#issuecomment-502345788

include/include.am

index 8c9d4f7fd1292706b9c7517001df0cf50a555ce7..3f4a55226a8ec7fce0b684a44772d2dcb88f3528 100644 (file)
@@ -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.