Commit ad265aa9 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Build third-party if either examples or apps is enabled

parent 1f7e6ea3
......@@ -477,6 +477,16 @@ fi
AM_CONDITIONAL([ENABLE_EXAMPLES], [ test "x${enable_examples}" = "xyes" ])
# third-party only be built if either enable_examples or enable_app is
# yes
enable_third_party=no
if test "x${enable_examples}" = "xyes" || test "x${enable_app}" = "xyes"; then
enable_third_party=yes
fi
AM_CONDITIONAL([ENABLE_THIRD_PARTY], [ test "x${enable_third_party}" = "xyes" ])
# Python bindings
enable_python_bindings=no
if test "x${request_python_bindings}" != "xno" &&
......@@ -750,4 +760,5 @@ AC_MSG_NOTICE([summary of build options:
Examples: ${enable_examples}
Python bindings:${enable_python_bindings}
Threading: ${enable_threads}
Third-party: ${enable_third_party}
])
......@@ -23,10 +23,14 @@
AM_CPPFLAGS = -Wall @DEFS@
if ENABLE_THIRD_PARTY
noinst_LTLIBRARIES = libhttp-parser.la
libhttp_parser_la_SOURCES = \
http-parser/http_parser.c \
http-parser/http_parser.h
endif # ENABLE_THIRD_PARTY
dist_pkgdata_SCRIPTS = h2o/fetch-ocsp-response
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment