Build third-party if either examples or apps is enabled
This commit is contained in:
parent
1f7e6ea3fe
commit
ad265aa9d0
11
configure.ac
11
configure.ac
|
@ -477,6 +477,16 @@ fi
|
||||||
|
|
||||||
AM_CONDITIONAL([ENABLE_EXAMPLES], [ test "x${enable_examples}" = "xyes" ])
|
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
|
# Python bindings
|
||||||
enable_python_bindings=no
|
enable_python_bindings=no
|
||||||
if test "x${request_python_bindings}" != "xno" &&
|
if test "x${request_python_bindings}" != "xno" &&
|
||||||
|
@ -750,4 +760,5 @@ AC_MSG_NOTICE([summary of build options:
|
||||||
Examples: ${enable_examples}
|
Examples: ${enable_examples}
|
||||||
Python bindings:${enable_python_bindings}
|
Python bindings:${enable_python_bindings}
|
||||||
Threading: ${enable_threads}
|
Threading: ${enable_threads}
|
||||||
|
Third-party: ${enable_third_party}
|
||||||
])
|
])
|
||||||
|
|
|
@ -23,10 +23,14 @@
|
||||||
|
|
||||||
AM_CPPFLAGS = -Wall @DEFS@
|
AM_CPPFLAGS = -Wall @DEFS@
|
||||||
|
|
||||||
|
if ENABLE_THIRD_PARTY
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libhttp-parser.la
|
noinst_LTLIBRARIES = libhttp-parser.la
|
||||||
libhttp_parser_la_SOURCES = \
|
libhttp_parser_la_SOURCES = \
|
||||||
http-parser/http_parser.c \
|
http-parser/http_parser.c \
|
||||||
http-parser/http_parser.h
|
http-parser/http_parser.h
|
||||||
|
|
||||||
|
|
||||||
|
endif # ENABLE_THIRD_PARTY
|
||||||
|
|
||||||
dist_pkgdata_SCRIPTS = h2o/fetch-ocsp-response
|
dist_pkgdata_SCRIPTS = h2o/fetch-ocsp-response
|
||||||
|
|
Loading…
Reference in New Issue