From 6c51bd09791ba6f547a90d575af681510ee3d52d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 21 Feb 2014 00:20:27 +0900 Subject: [PATCH] src: Disable strip http-parser mode Add --enable-strict-http-parser mode to enable it. --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index d699f2c7..037761c1 100644 --- a/configure.ac +++ b/configure.ac @@ -58,6 +58,11 @@ AC_ARG_ENABLE([debug], [Turn on debug output])], [debug=$enableval], [debug=no]) +AC_ARG_ENABLE([strict-http-parser], + [AS_HELP_STRING([--enable-strict-http-parser], + [Turn on strict http parser mode])], + [strict_http_parser=$enableval], [strict_http_parser=no]) + AC_ARG_ENABLE([app], [AS_HELP_STRING([--enable-app], [Build applications (nghttp, nghttpd and nghttpx) [default=check]])], @@ -391,6 +396,10 @@ if test "x$debug" != "xno"; then CFLAGS="$CFLAGS -DDEBUGBUILD" fi +if test "x$strict_http_parser" = "xno"; then + CFLAGS="$CFLAGS -DHTTP_PARSER_STRICT=0" +fi + AC_SUBST([TESTS_LIBS]) AC_SUBST([SRC_LIBS])