Configure: fixed --without_http.

Instead of turning off some randomly selected http modules
when --without-http is specified, just don't process the
whole http modules section.
This commit is contained in:
Ruslan Ermilov 2017-03-16 20:38:31 +03:00
parent 99e20ba5f9
commit 435670165a
2 changed files with 823 additions and 839 deletions

View File

@ -56,13 +56,14 @@ if [ $NGX_TEST_BUILD_SOLARIS_SENDFILEV = YES ]; then
fi fi
HTTP_MODULES= if [ $HTTP = YES ]; then
HTTP_DEPS= HTTP_MODULES=
HTTP_INCS= HTTP_DEPS=
HTTP_INCS=
ngx_module_type=HTTP ngx_module_type=HTTP
if :; then if :; then
ngx_module_name="ngx_http_module \ ngx_module_name="ngx_http_module \
ngx_http_core_module \ ngx_http_core_module \
ngx_http_log_module \ ngx_http_log_module \
@ -92,74 +93,68 @@ if :; then
ngx_module_link=YES ngx_module_link=YES
. auto/module . auto/module
fi fi
if [ $HTTP != YES ]; then if [ $HTTP_CACHE = YES ]; then
have=NGX_CRYPT . auto/nohave
CRYPT_LIB=
fi
if [ $HTTP_CACHE = YES ]; then
have=NGX_HTTP_CACHE . auto/have have=NGX_HTTP_CACHE . auto/have
HTTP_SRCS="$HTTP_SRCS $HTTP_FILE_CACHE_SRCS" HTTP_SRCS="$HTTP_SRCS $HTTP_FILE_CACHE_SRCS"
fi fi
if [ $HTTP_SSI = YES ]; then if [ $HTTP_SSI = YES ]; then
HTTP_POSTPONE=YES HTTP_POSTPONE=YES
fi fi
if [ $HTTP_SLICE = YES ]; then if [ $HTTP_SLICE = YES ]; then
HTTP_POSTPONE=YES HTTP_POSTPONE=YES
fi fi
if [ $HTTP_ADDITION = YES ]; then if [ $HTTP_ADDITION = YES ]; then
HTTP_POSTPONE=YES HTTP_POSTPONE=YES
fi fi
# the module order is important # the module order is important
# ngx_http_static_module # ngx_http_static_module
# ngx_http_gzip_static_module # ngx_http_gzip_static_module
# ngx_http_dav_module # ngx_http_dav_module
# ngx_http_autoindex_module # ngx_http_autoindex_module
# ngx_http_index_module # ngx_http_index_module
# ngx_http_random_index_module # ngx_http_random_index_module
# #
# ngx_http_access_module # ngx_http_access_module
# ngx_http_realip_module # ngx_http_realip_module
# #
# #
# the filter order is important # the filter order is important
# ngx_http_write_filter # ngx_http_write_filter
# ngx_http_header_filter # ngx_http_header_filter
# ngx_http_chunked_filter # ngx_http_chunked_filter
# ngx_http_v2_filter # ngx_http_v2_filter
# ngx_http_range_header_filter # ngx_http_range_header_filter
# ngx_http_gzip_filter # ngx_http_gzip_filter
# ngx_http_postpone_filter # ngx_http_postpone_filter
# ngx_http_ssi_filter # ngx_http_ssi_filter
# ngx_http_charset_filter # ngx_http_charset_filter
# ngx_http_xslt_filter # ngx_http_xslt_filter
# ngx_http_image_filter # ngx_http_image_filter
# ngx_http_sub_filter # ngx_http_sub_filter
# ngx_http_addition_filter # ngx_http_addition_filter
# ngx_http_gunzip_filter # ngx_http_gunzip_filter
# ngx_http_userid_filter # ngx_http_userid_filter
# ngx_http_headers_filter # ngx_http_headers_filter
# ngx_http_copy_filter # ngx_http_copy_filter
# ngx_http_range_body_filter # ngx_http_range_body_filter
# ngx_http_not_modified_filter # ngx_http_not_modified_filter
# ngx_http_slice_filter # ngx_http_slice_filter
ngx_module_type=HTTP_FILTER ngx_module_type=HTTP_FILTER
HTTP_FILTER_MODULES= HTTP_FILTER_MODULES=
ngx_module_order="ngx_http_static_module \ ngx_module_order="ngx_http_static_module \
ngx_http_gzip_static_module \ ngx_http_gzip_static_module \
ngx_http_dav_module \ ngx_http_dav_module \
ngx_http_autoindex_module \ ngx_http_autoindex_module \
@ -188,7 +183,7 @@ ngx_module_order="ngx_http_static_module \
ngx_http_not_modified_filter_module \ ngx_http_not_modified_filter_module \
ngx_http_slice_filter_module" ngx_http_slice_filter_module"
if :; then if :; then
ngx_module_name=ngx_http_write_filter_module ngx_module_name=ngx_http_write_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -197,9 +192,9 @@ if :; then
ngx_module_link=YES ngx_module_link=YES
. auto/module . auto/module
fi fi
if :; then if :; then
ngx_module_name=ngx_http_header_filter_module ngx_module_name=ngx_http_header_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -208,9 +203,9 @@ if :; then
ngx_module_link=YES ngx_module_link=YES
. auto/module . auto/module
fi fi
if :; then if :; then
ngx_module_name=ngx_http_chunked_filter_module ngx_module_name=ngx_http_chunked_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -219,9 +214,9 @@ if :; then
ngx_module_link=YES ngx_module_link=YES
. auto/module . auto/module
fi fi
if [ $HTTP_V2 = YES ]; then if [ $HTTP_V2 = YES ]; then
ngx_module_name=ngx_http_v2_filter_module ngx_module_name=ngx_http_v2_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -230,9 +225,9 @@ if [ $HTTP_V2 = YES ]; then
ngx_module_link=$HTTP_V2 ngx_module_link=$HTTP_V2
. auto/module . auto/module
fi fi
if :; then if :; then
ngx_module_name=ngx_http_range_header_filter_module ngx_module_name=ngx_http_range_header_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -241,9 +236,9 @@ if :; then
ngx_module_link=YES ngx_module_link=YES
. auto/module . auto/module
fi fi
if [ $HTTP_GZIP = YES ]; then if [ $HTTP_GZIP = YES ]; then
have=NGX_HTTP_GZIP . auto/have have=NGX_HTTP_GZIP . auto/have
USE_ZLIB=YES USE_ZLIB=YES
@ -255,9 +250,9 @@ if [ $HTTP_GZIP = YES ]; then
ngx_module_link=$HTTP_GZIP ngx_module_link=$HTTP_GZIP
. auto/module . auto/module
fi fi
if [ $HTTP_POSTPONE = YES ]; then if [ $HTTP_POSTPONE = YES ]; then
ngx_module_name=ngx_http_postpone_filter_module ngx_module_name=ngx_http_postpone_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -266,9 +261,9 @@ if [ $HTTP_POSTPONE = YES ]; then
ngx_module_link=$HTTP_POSTPONE ngx_module_link=$HTTP_POSTPONE
. auto/module . auto/module
fi fi
if [ $HTTP_SSI = YES ]; then if [ $HTTP_SSI = YES ]; then
have=NGX_HTTP_SSI . auto/have have=NGX_HTTP_SSI . auto/have
ngx_module_name=ngx_http_ssi_filter_module ngx_module_name=ngx_http_ssi_filter_module
@ -279,9 +274,9 @@ if [ $HTTP_SSI = YES ]; then
ngx_module_link=$HTTP_SSI ngx_module_link=$HTTP_SSI
. auto/module . auto/module
fi fi
if [ $HTTP_CHARSET = YES ]; then if [ $HTTP_CHARSET = YES ]; then
ngx_module_name=ngx_http_charset_filter_module ngx_module_name=ngx_http_charset_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -290,9 +285,9 @@ if [ $HTTP_CHARSET = YES ]; then
ngx_module_link=$HTTP_CHARSET ngx_module_link=$HTTP_CHARSET
. auto/module . auto/module
fi fi
if [ $HTTP_XSLT != NO ]; then if [ $HTTP_XSLT != NO ]; then
ngx_module_name=ngx_http_xslt_filter_module ngx_module_name=ngx_http_xslt_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -301,9 +296,9 @@ if [ $HTTP_XSLT != NO ]; then
ngx_module_link=$HTTP_XSLT ngx_module_link=$HTTP_XSLT
. auto/module . auto/module
fi fi
if [ $HTTP_IMAGE_FILTER != NO ]; then if [ $HTTP_IMAGE_FILTER != NO ]; then
ngx_module_name=ngx_http_image_filter_module ngx_module_name=ngx_http_image_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -312,9 +307,9 @@ if [ $HTTP_IMAGE_FILTER != NO ]; then
ngx_module_link=$HTTP_IMAGE_FILTER ngx_module_link=$HTTP_IMAGE_FILTER
. auto/module . auto/module
fi fi
if [ $HTTP_SUB = YES ]; then if [ $HTTP_SUB = YES ]; then
ngx_module_name=ngx_http_sub_filter_module ngx_module_name=ngx_http_sub_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -323,9 +318,9 @@ if [ $HTTP_SUB = YES ]; then
ngx_module_link=$HTTP_SUB ngx_module_link=$HTTP_SUB
. auto/module . auto/module
fi fi
if [ $HTTP_ADDITION = YES ]; then if [ $HTTP_ADDITION = YES ]; then
ngx_module_name=ngx_http_addition_filter_module ngx_module_name=ngx_http_addition_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -334,9 +329,9 @@ if [ $HTTP_ADDITION = YES ]; then
ngx_module_link=$HTTP_ADDITION ngx_module_link=$HTTP_ADDITION
. auto/module . auto/module
fi fi
if [ $HTTP_GUNZIP = YES ]; then if [ $HTTP_GUNZIP = YES ]; then
have=NGX_HTTP_GZIP . auto/have have=NGX_HTTP_GZIP . auto/have
USE_ZLIB=YES USE_ZLIB=YES
@ -348,9 +343,9 @@ if [ $HTTP_GUNZIP = YES ]; then
ngx_module_link=$HTTP_GUNZIP ngx_module_link=$HTTP_GUNZIP
. auto/module . auto/module
fi fi
if [ $HTTP_USERID = YES ]; then if [ $HTTP_USERID = YES ]; then
ngx_module_name=ngx_http_userid_filter_module ngx_module_name=ngx_http_userid_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -359,9 +354,9 @@ if [ $HTTP_USERID = YES ]; then
ngx_module_link=$HTTP_USERID ngx_module_link=$HTTP_USERID
. auto/module . auto/module
fi fi
if :; then if :; then
ngx_module_name=ngx_http_headers_filter_module ngx_module_name=ngx_http_headers_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -370,13 +365,13 @@ if :; then
ngx_module_link=YES ngx_module_link=YES
. auto/module . auto/module
fi fi
ngx_module_type=HTTP_INIT_FILTER ngx_module_type=HTTP_INIT_FILTER
HTTP_INIT_FILTER_MODULES= HTTP_INIT_FILTER_MODULES=
if :; then if :; then
ngx_module_name=ngx_http_copy_filter_module ngx_module_name=ngx_http_copy_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -385,9 +380,9 @@ if :; then
ngx_module_link=YES ngx_module_link=YES
. auto/module . auto/module
fi fi
if :; then if :; then
ngx_module_name=ngx_http_range_body_filter_module ngx_module_name=ngx_http_range_body_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -396,9 +391,9 @@ if :; then
ngx_module_link=YES ngx_module_link=YES
. auto/module . auto/module
fi fi
if :; then if :; then
ngx_module_name=ngx_http_not_modified_filter_module ngx_module_name=ngx_http_not_modified_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -407,9 +402,9 @@ if :; then
ngx_module_link=YES ngx_module_link=YES
. auto/module . auto/module
fi fi
if [ $HTTP_SLICE = YES ]; then if [ $HTTP_SLICE = YES ]; then
ngx_module_name=ngx_http_slice_filter_module ngx_module_name=ngx_http_slice_filter_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -418,17 +413,18 @@ if [ $HTTP_SLICE = YES ]; then
ngx_module_link=$HTTP_SLICE ngx_module_link=$HTTP_SLICE
. auto/module . auto/module
fi fi
ngx_module_type=HTTP ngx_module_type=HTTP
if [ $HTTP_V2 = YES ]; then if [ $HTTP_V2 = YES ]; then
have=NGX_HTTP_V2 . auto/have have=NGX_HTTP_V2 . auto/have
ngx_module_name=ngx_http_v2_module ngx_module_name=ngx_http_v2_module
ngx_module_incs=src/http/v2 ngx_module_incs=src/http/v2
ngx_module_deps="src/http/v2/ngx_http_v2.h src/http/v2/ngx_http_v2_module.h" ngx_module_deps="src/http/v2/ngx_http_v2.h \
src/http/v2/ngx_http_v2_module.h"
ngx_module_srcs="src/http/v2/ngx_http_v2.c \ ngx_module_srcs="src/http/v2/ngx_http_v2.c \
src/http/v2/ngx_http_v2_table.c \ src/http/v2/ngx_http_v2_table.c \
src/http/v2/ngx_http_v2_huff_decode.c \ src/http/v2/ngx_http_v2_huff_decode.c \
@ -438,9 +434,9 @@ if [ $HTTP_V2 = YES ]; then
ngx_module_link=$HTTP_V2 ngx_module_link=$HTTP_V2
. auto/module . auto/module
fi fi
if :; then if :; then
ngx_module_name=ngx_http_static_module ngx_module_name=ngx_http_static_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -449,9 +445,9 @@ if :; then
ngx_module_link=YES ngx_module_link=YES
. auto/module . auto/module
fi fi
if [ $HTTP_GZIP_STATIC = YES ]; then if [ $HTTP_GZIP_STATIC = YES ]; then
have=NGX_HTTP_GZIP . auto/have have=NGX_HTTP_GZIP . auto/have
ngx_module_name=ngx_http_gzip_static_module ngx_module_name=ngx_http_gzip_static_module
@ -462,9 +458,9 @@ if [ $HTTP_GZIP_STATIC = YES ]; then
ngx_module_link=$HTTP_GZIP_STATIC ngx_module_link=$HTTP_GZIP_STATIC
. auto/module . auto/module
fi fi
if [ $HTTP_DAV = YES ]; then if [ $HTTP_DAV = YES ]; then
have=NGX_HTTP_DAV . auto/have have=NGX_HTTP_DAV . auto/have
ngx_module_name=ngx_http_dav_module ngx_module_name=ngx_http_dav_module
@ -475,9 +471,9 @@ if [ $HTTP_DAV = YES ]; then
ngx_module_link=$HTTP_DAV ngx_module_link=$HTTP_DAV
. auto/module . auto/module
fi fi
if [ $HTTP_AUTOINDEX = YES ]; then if [ $HTTP_AUTOINDEX = YES ]; then
ngx_module_name=ngx_http_autoindex_module ngx_module_name=ngx_http_autoindex_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -486,9 +482,9 @@ if [ $HTTP_AUTOINDEX = YES ]; then
ngx_module_link=$HTTP_AUTOINDEX ngx_module_link=$HTTP_AUTOINDEX
. auto/module . auto/module
fi fi
if :; then if :; then
ngx_module_name=ngx_http_index_module ngx_module_name=ngx_http_index_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -497,9 +493,9 @@ if :; then
ngx_module_link=YES ngx_module_link=YES
. auto/module . auto/module
fi fi
if [ $HTTP_RANDOM_INDEX = YES ]; then if [ $HTTP_RANDOM_INDEX = YES ]; then
ngx_module_name=ngx_http_random_index_module ngx_module_name=ngx_http_random_index_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -508,9 +504,9 @@ if [ $HTTP_RANDOM_INDEX = YES ]; then
ngx_module_link=$HTTP_RANDOM_INDEX ngx_module_link=$HTTP_RANDOM_INDEX
. auto/module . auto/module
fi fi
if [ $HTTP_AUTH_REQUEST = YES ]; then if [ $HTTP_AUTH_REQUEST = YES ]; then
ngx_module_name=ngx_http_auth_request_module ngx_module_name=ngx_http_auth_request_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -519,9 +515,9 @@ if [ $HTTP_AUTH_REQUEST = YES ]; then
ngx_module_link=$HTTP_AUTH_REQUEST ngx_module_link=$HTTP_AUTH_REQUEST
. auto/module . auto/module
fi fi
if [ $HTTP_AUTH_BASIC = YES ]; then if [ $HTTP_AUTH_BASIC = YES ]; then
have=NGX_CRYPT . auto/have have=NGX_CRYPT . auto/have
ngx_module_name=ngx_http_auth_basic_module ngx_module_name=ngx_http_auth_basic_module
@ -532,9 +528,9 @@ if [ $HTTP_AUTH_BASIC = YES ]; then
ngx_module_link=$HTTP_AUTH_BASIC ngx_module_link=$HTTP_AUTH_BASIC
. auto/module . auto/module
fi fi
if [ $HTTP_ACCESS = YES ]; then if [ $HTTP_ACCESS = YES ]; then
ngx_module_name=ngx_http_access_module ngx_module_name=ngx_http_access_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -543,9 +539,9 @@ if [ $HTTP_ACCESS = YES ]; then
ngx_module_link=$HTTP_ACCESS ngx_module_link=$HTTP_ACCESS
. auto/module . auto/module
fi fi
if [ $HTTP_LIMIT_CONN = YES ]; then if [ $HTTP_LIMIT_CONN = YES ]; then
ngx_module_name=ngx_http_limit_conn_module ngx_module_name=ngx_http_limit_conn_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -554,9 +550,9 @@ if [ $HTTP_LIMIT_CONN = YES ]; then
ngx_module_link=$HTTP_LIMIT_CONN ngx_module_link=$HTTP_LIMIT_CONN
. auto/module . auto/module
fi fi
if [ $HTTP_LIMIT_REQ = YES ]; then if [ $HTTP_LIMIT_REQ = YES ]; then
ngx_module_name=ngx_http_limit_req_module ngx_module_name=ngx_http_limit_req_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -565,9 +561,9 @@ if [ $HTTP_LIMIT_REQ = YES ]; then
ngx_module_link=$HTTP_LIMIT_REQ ngx_module_link=$HTTP_LIMIT_REQ
. auto/module . auto/module
fi fi
if [ $HTTP_REALIP = YES ]; then if [ $HTTP_REALIP = YES ]; then
have=NGX_HTTP_REALIP . auto/have have=NGX_HTTP_REALIP . auto/have
have=NGX_HTTP_X_FORWARDED_FOR . auto/have have=NGX_HTTP_X_FORWARDED_FOR . auto/have
@ -579,9 +575,9 @@ if [ $HTTP_REALIP = YES ]; then
ngx_module_link=$HTTP_REALIP ngx_module_link=$HTTP_REALIP
. auto/module . auto/module
fi fi
if [ $HTTP_STATUS = YES ]; then if [ $HTTP_STATUS = YES ]; then
ngx_module_name=ngx_http_status_module ngx_module_name=ngx_http_status_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -590,9 +586,9 @@ if [ $HTTP_STATUS = YES ]; then
ngx_module_link=$HTTP_STATUS ngx_module_link=$HTTP_STATUS
. auto/module . auto/module
fi fi
if [ $HTTP_GEO = YES ]; then if [ $HTTP_GEO = YES ]; then
have=NGX_HTTP_X_FORWARDED_FOR . auto/have have=NGX_HTTP_X_FORWARDED_FOR . auto/have
ngx_module_name=ngx_http_geo_module ngx_module_name=ngx_http_geo_module
@ -603,9 +599,9 @@ if [ $HTTP_GEO = YES ]; then
ngx_module_link=$HTTP_GEO ngx_module_link=$HTTP_GEO
. auto/module . auto/module
fi fi
if [ $HTTP_GEOIP != NO ]; then if [ $HTTP_GEOIP != NO ]; then
have=NGX_HTTP_X_FORWARDED_FOR . auto/have have=NGX_HTTP_X_FORWARDED_FOR . auto/have
ngx_module_name=ngx_http_geoip_module ngx_module_name=ngx_http_geoip_module
@ -616,9 +612,9 @@ if [ $HTTP_GEOIP != NO ]; then
ngx_module_link=$HTTP_GEOIP ngx_module_link=$HTTP_GEOIP
. auto/module . auto/module
fi fi
if [ $HTTP_MAP = YES ]; then if [ $HTTP_MAP = YES ]; then
ngx_module_name=ngx_http_map_module ngx_module_name=ngx_http_map_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -627,9 +623,9 @@ if [ $HTTP_MAP = YES ]; then
ngx_module_link=$HTTP_MAP ngx_module_link=$HTTP_MAP
. auto/module . auto/module
fi fi
if [ $HTTP_SPLIT_CLIENTS = YES ]; then if [ $HTTP_SPLIT_CLIENTS = YES ]; then
ngx_module_name=ngx_http_split_clients_module ngx_module_name=ngx_http_split_clients_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -638,9 +634,9 @@ if [ $HTTP_SPLIT_CLIENTS = YES ]; then
ngx_module_link=$HTTP_SPLIT_CLIENTS ngx_module_link=$HTTP_SPLIT_CLIENTS
. auto/module . auto/module
fi fi
if [ $HTTP_REFERER = YES ]; then if [ $HTTP_REFERER = YES ]; then
ngx_module_name=ngx_http_referer_module ngx_module_name=ngx_http_referer_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -649,9 +645,9 @@ if [ $HTTP_REFERER = YES ]; then
ngx_module_link=$HTTP_REFERER ngx_module_link=$HTTP_REFERER
. auto/module . auto/module
fi fi
if [ $HTTP_REWRITE = YES -a $USE_PCRE != DISABLED ]; then if [ $HTTP_REWRITE = YES -a $USE_PCRE != DISABLED ]; then
USE_PCRE=YES USE_PCRE=YES
ngx_module_name=ngx_http_rewrite_module ngx_module_name=ngx_http_rewrite_module
@ -662,9 +658,9 @@ if [ $HTTP_REWRITE = YES -a $USE_PCRE != DISABLED ]; then
ngx_module_link=$HTTP_REWRITE ngx_module_link=$HTTP_REWRITE
. auto/module . auto/module
fi fi
if [ $HTTP_SSL = YES ]; then if [ $HTTP_SSL = YES ]; then
USE_OPENSSL=YES USE_OPENSSL=YES
have=NGX_HTTP_SSL . auto/have have=NGX_HTTP_SSL . auto/have
@ -676,9 +672,9 @@ if [ $HTTP_SSL = YES ]; then
ngx_module_link=$HTTP_SSL ngx_module_link=$HTTP_SSL
. auto/module . auto/module
fi fi
if [ $HTTP_PROXY = YES ]; then if [ $HTTP_PROXY = YES ]; then
have=NGX_HTTP_X_FORWARDED_FOR . auto/have have=NGX_HTTP_X_FORWARDED_FOR . auto/have
ngx_module_name=ngx_http_proxy_module ngx_module_name=ngx_http_proxy_module
@ -689,9 +685,9 @@ if [ $HTTP_PROXY = YES ]; then
ngx_module_link=$HTTP_PROXY ngx_module_link=$HTTP_PROXY
. auto/module . auto/module
fi fi
if [ $HTTP_FASTCGI = YES ]; then if [ $HTTP_FASTCGI = YES ]; then
ngx_module_name=ngx_http_fastcgi_module ngx_module_name=ngx_http_fastcgi_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -700,9 +696,9 @@ if [ $HTTP_FASTCGI = YES ]; then
ngx_module_link=$HTTP_FASTCGI ngx_module_link=$HTTP_FASTCGI
. auto/module . auto/module
fi fi
if [ $HTTP_UWSGI = YES ]; then if [ $HTTP_UWSGI = YES ]; then
ngx_module_name=ngx_http_uwsgi_module ngx_module_name=ngx_http_uwsgi_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -711,9 +707,9 @@ if [ $HTTP_UWSGI = YES ]; then
ngx_module_link=$HTTP_UWSGI ngx_module_link=$HTTP_UWSGI
. auto/module . auto/module
fi fi
if [ $HTTP_SCGI = YES ]; then if [ $HTTP_SCGI = YES ]; then
ngx_module_name=ngx_http_scgi_module ngx_module_name=ngx_http_scgi_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -722,9 +718,9 @@ if [ $HTTP_SCGI = YES ]; then
ngx_module_link=$HTTP_SCGI ngx_module_link=$HTTP_SCGI
. auto/module . auto/module
fi fi
if [ $HTTP_PERL != NO ]; then if [ $HTTP_PERL != NO ]; then
ngx_module_name=ngx_http_perl_module ngx_module_name=ngx_http_perl_module
ngx_module_incs=src/http/modules/perl ngx_module_incs=src/http/modules/perl
ngx_module_deps=src/http/modules/perl/ngx_http_perl_module.h ngx_module_deps=src/http/modules/perl/ngx_http_perl_module.h
@ -733,9 +729,9 @@ if [ $HTTP_PERL != NO ]; then
ngx_module_link=$HTTP_PERL ngx_module_link=$HTTP_PERL
. auto/module . auto/module
fi fi
if [ $HTTP_MEMCACHED = YES ]; then if [ $HTTP_MEMCACHED = YES ]; then
ngx_module_name=ngx_http_memcached_module ngx_module_name=ngx_http_memcached_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -744,9 +740,9 @@ if [ $HTTP_MEMCACHED = YES ]; then
ngx_module_link=$HTTP_MEMCACHED ngx_module_link=$HTTP_MEMCACHED
. auto/module . auto/module
fi fi
if [ $HTTP_EMPTY_GIF = YES ]; then if [ $HTTP_EMPTY_GIF = YES ]; then
ngx_module_name=ngx_http_empty_gif_module ngx_module_name=ngx_http_empty_gif_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -755,9 +751,9 @@ if [ $HTTP_EMPTY_GIF = YES ]; then
ngx_module_link=$HTTP_EMPTY_GIF ngx_module_link=$HTTP_EMPTY_GIF
. auto/module . auto/module
fi fi
if [ $HTTP_BROWSER = YES ]; then if [ $HTTP_BROWSER = YES ]; then
ngx_module_name=ngx_http_browser_module ngx_module_name=ngx_http_browser_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -766,9 +762,9 @@ if [ $HTTP_BROWSER = YES ]; then
ngx_module_link=$HTTP_BROWSER ngx_module_link=$HTTP_BROWSER
. auto/module . auto/module
fi fi
if [ $HTTP_SECURE_LINK = YES ]; then if [ $HTTP_SECURE_LINK = YES ]; then
ngx_module_name=ngx_http_secure_link_module ngx_module_name=ngx_http_secure_link_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -777,9 +773,9 @@ if [ $HTTP_SECURE_LINK = YES ]; then
ngx_module_link=$HTTP_SECURE_LINK ngx_module_link=$HTTP_SECURE_LINK
. auto/module . auto/module
fi fi
if [ $HTTP_DEGRADATION = YES ]; then if [ $HTTP_DEGRADATION = YES ]; then
have=NGX_HTTP_DEGRADATION . auto/have have=NGX_HTTP_DEGRADATION . auto/have
ngx_module_name=ngx_http_degradation_module ngx_module_name=ngx_http_degradation_module
@ -790,9 +786,9 @@ if [ $HTTP_DEGRADATION = YES ]; then
ngx_module_link=$HTTP_DEGRADATION ngx_module_link=$HTTP_DEGRADATION
. auto/module . auto/module
fi fi
if [ $HTTP_FLV = YES ]; then if [ $HTTP_FLV = YES ]; then
ngx_module_name=ngx_http_flv_module ngx_module_name=ngx_http_flv_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -801,9 +797,9 @@ if [ $HTTP_FLV = YES ]; then
ngx_module_link=$HTTP_FLV ngx_module_link=$HTTP_FLV
. auto/module . auto/module
fi fi
if [ $HTTP_MP4 = YES ]; then if [ $HTTP_MP4 = YES ]; then
ngx_module_name=ngx_http_mp4_module ngx_module_name=ngx_http_mp4_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -812,9 +808,9 @@ if [ $HTTP_MP4 = YES ]; then
ngx_module_link=$HTTP_MP4 ngx_module_link=$HTTP_MP4
. auto/module . auto/module
fi fi
if [ $HTTP_UPSTREAM_HASH = YES ]; then if [ $HTTP_UPSTREAM_HASH = YES ]; then
ngx_module_name=ngx_http_upstream_hash_module ngx_module_name=ngx_http_upstream_hash_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -823,9 +819,9 @@ if [ $HTTP_UPSTREAM_HASH = YES ]; then
ngx_module_link=$HTTP_UPSTREAM_HASH ngx_module_link=$HTTP_UPSTREAM_HASH
. auto/module . auto/module
fi fi
if [ $HTTP_UPSTREAM_IP_HASH = YES ]; then if [ $HTTP_UPSTREAM_IP_HASH = YES ]; then
ngx_module_name=ngx_http_upstream_ip_hash_module ngx_module_name=ngx_http_upstream_ip_hash_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -834,9 +830,9 @@ if [ $HTTP_UPSTREAM_IP_HASH = YES ]; then
ngx_module_link=$HTTP_UPSTREAM_IP_HASH ngx_module_link=$HTTP_UPSTREAM_IP_HASH
. auto/module . auto/module
fi fi
if [ $HTTP_UPSTREAM_LEAST_CONN = YES ]; then if [ $HTTP_UPSTREAM_LEAST_CONN = YES ]; then
ngx_module_name=ngx_http_upstream_least_conn_module ngx_module_name=ngx_http_upstream_least_conn_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -845,9 +841,9 @@ if [ $HTTP_UPSTREAM_LEAST_CONN = YES ]; then
ngx_module_link=$HTTP_UPSTREAM_LEAST_CONN ngx_module_link=$HTTP_UPSTREAM_LEAST_CONN
. auto/module . auto/module
fi fi
if [ $HTTP_UPSTREAM_KEEPALIVE = YES ]; then if [ $HTTP_UPSTREAM_KEEPALIVE = YES ]; then
ngx_module_name=ngx_http_upstream_keepalive_module ngx_module_name=ngx_http_upstream_keepalive_module
ngx_module_incs= ngx_module_incs=
ngx_module_deps= ngx_module_deps=
@ -856,9 +852,9 @@ if [ $HTTP_UPSTREAM_KEEPALIVE = YES ]; then
ngx_module_link=$HTTP_UPSTREAM_KEEPALIVE ngx_module_link=$HTTP_UPSTREAM_KEEPALIVE
. auto/module . auto/module
fi fi
if [ $HTTP_UPSTREAM_ZONE = YES ]; then if [ $HTTP_UPSTREAM_ZONE = YES ]; then
have=NGX_HTTP_UPSTREAM_ZONE . auto/have have=NGX_HTTP_UPSTREAM_ZONE . auto/have
ngx_module_name=ngx_http_upstream_zone_module ngx_module_name=ngx_http_upstream_zone_module
@ -869,9 +865,9 @@ if [ $HTTP_UPSTREAM_ZONE = YES ]; then
ngx_module_link=$HTTP_UPSTREAM_ZONE ngx_module_link=$HTTP_UPSTREAM_ZONE
. auto/module . auto/module
fi fi
if [ $HTTP_STUB_STATUS = YES ]; then if [ $HTTP_STUB_STATUS = YES ]; then
have=NGX_STAT_STUB . auto/have have=NGX_STAT_STUB . auto/have
ngx_module_name=ngx_http_stub_status_module ngx_module_name=ngx_http_stub_status_module
@ -882,6 +878,7 @@ if [ $HTTP_STUB_STATUS = YES ]; then
ngx_module_link=$HTTP_STUB_STATUS ngx_module_link=$HTTP_STUB_STATUS
. auto/module . auto/module
fi
fi fi

View File

@ -574,19 +574,6 @@ END
fi fi
if [ $HTTP = NO ]; then
HTTP_CHARSET=NO
HTTP_GZIP=NO
HTTP_SSI=NO
HTTP_USERID=NO
HTTP_ACCESS=NO
HTTP_STATUS=NO
HTTP_REWRITE=NO
HTTP_PROXY=NO
HTTP_FASTCGI=NO
fi
if [ ".$NGX_PLATFORM" = ".win32" ]; then if [ ".$NGX_PLATFORM" = ".win32" ]; then
NGX_WINE=$WINE NGX_WINE=$WINE
fi fi