Fix build w/o OpenSSL by w/ MbedTLS

In 78fa3971be892194aa168c04fc34bf5f2cd99b99 from
https://github.com/libevent/libevent/pull/1241#commitcomment-63865496 a
new "if MBEDTLS" block was added to include/include.am. This is not
parsed by automake as it isn't on the first column, resulting in a
subsequent error in the build.

From [1]:

> The if, else, and endif statements should not be indented, i.e., start on column one.

  [1]: https://www.gnu.org/software/automake/manual/html_node/Usage-of-Conditionals.html

Fixes: #1251
Fixes: google/oss-fuzz#7149
This commit is contained in:
Jay Freeman (saurik) 2022-02-12 22:53:11 +03:00 committed by Azat Khuzhin
parent 6d09efe868
commit 3da71856a7

View File

@ -36,9 +36,9 @@ EVENT2_EXPORT = \
if OPENSSL if OPENSSL
EVENT2_EXPORT += include/event2/bufferevent_ssl.h EVENT2_EXPORT += include/event2/bufferevent_ssl.h
else else
if MBEDTLS if MBEDTLS
EVENT2_EXPORT += include/event2/bufferevent_ssl.h EVENT2_EXPORT += include/event2/bufferevent_ssl.h
endif endif
endif endif
## Without the nobase_ prefixing, Automake would strip "include/event2/" from ## Without the nobase_ prefixing, Automake would strip "include/event2/" from