Edit

kc3-lang/libevent/include/include.am

Branch :

  • Show log

    Commit

  • Author : Jay Freeman (saurik)
    Date : 2022-02-12 22:53:11
    Hash : 3da71856
    Message : 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

  • include/include.am
  • # include/include.am for libevent
    # Copyright 2000-2007 Niels Provos
    # Copyright 2007-2012 Niels Provos and Nick Mathewson
    #
    # See LICENSE for copying information.
    
    include_event2dir = $(includedir)/event2
    
    EVENT2_EXPORT = \
    	include/event2/buffer.h \
    	include/event2/buffer_compat.h \
    	include/event2/bufferevent.h \
    	include/event2/bufferevent_compat.h \
    	include/event2/bufferevent_struct.h \
    	include/event2/dns.h \
    	include/event2/dns_compat.h \
    	include/event2/dns_struct.h \
    	include/event2/event.h \
    	include/event2/event_compat.h \
    	include/event2/event_struct.h \
    	include/event2/watch.h \
    	include/event2/http.h \
    	include/event2/http_compat.h \
    	include/event2/http_struct.h \
    	include/event2/keyvalq_struct.h \
    	include/event2/listener.h \
    	include/event2/rpc.h \
    	include/event2/rpc_compat.h \
    	include/event2/rpc_struct.h \
    	include/event2/tag.h \
    	include/event2/tag_compat.h \
    	include/event2/thread.h \
    	include/event2/util.h \
    	include/event2/visibility.h
    
    if OPENSSL
    EVENT2_EXPORT += include/event2/bufferevent_ssl.h
    else
    if MBEDTLS
    EVENT2_EXPORT += include/event2/bufferevent_ssl.h
    endif
    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.
    
    if INSTALL_LIBEVENT
    include_event2_HEADERS =	$(EVENT2_EXPORT)
    nodist_include_event2_HEADERS = include/event2/event-config.h
    else
    noinst_HEADERS +=		$(EVENT2_EXPORT)
    nodist_noinst_HEADERS =		include/event2/event-config.h
    endif