diff options
Diffstat (limited to 'auto')
| -rw-r--r-- | auto/modules | 13 | ||||
| -rw-r--r-- | auto/sources | 3 |
2 files changed, 8 insertions, 8 deletions
diff --git a/auto/modules b/auto/modules index 95c237c80..19967fa40 100644 --- a/auto/modules +++ b/auto/modules @@ -102,6 +102,11 @@ if [ $HTTP = YES ]; then fi + if [ $HTTP_V2 = YES -o $HTTP_V3 = YES ]; then + HTTP_SRCS="$HTTP_SRCS $HTTP_HUFF_SRCS" + fi + + # the module order is important # ngx_http_static_module # ngx_http_gzip_static_module @@ -427,8 +432,6 @@ if [ $HTTP = YES ]; then ngx_module_srcs="src/http/v2/ngx_http_v2.c \ src/http/v2/ngx_http_v2_table.c \ src/http/v2/ngx_http_v2_encode.c \ - src/http/v2/ngx_http_v2_huff_decode.c \ - src/http/v2/ngx_http_v2_huff_encode.c \ src/http/v2/ngx_http_v2_module.c" ngx_module_libs= ngx_module_link=$HTTP_V2 @@ -460,12 +463,6 @@ if [ $HTTP = YES ]; then ngx_module_libs= ngx_module_link=$HTTP_V3 - if [ $HTTP_V2 = NO ]; then - ngx_module_srcs="$ngx_module_srcs \ - src/http/v2/ngx_http_v2_huff_decode.c \ - src/http/v2/ngx_http_v2_huff_encode.c" - fi - . auto/module fi diff --git a/auto/sources b/auto/sources index 3c7a37e6d..46408ee53 100644 --- a/auto/sources +++ b/auto/sources @@ -256,3 +256,6 @@ NGX_WIN32_RC="src/os/win32/nginx.rc" HTTP_FILE_CACHE_SRCS=src/http/ngx_http_file_cache.c + +HTTP_HUFF_SRCS="src/http/ngx_http_huff_decode.c + src/http/ngx_http_huff_encode.c" |
