Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.13.12 ]​[ nginx-1.12.2 ]​

0001 
0002 # Copyright (C) Igor Sysoev
0003 # Copyright (C) Nginx, Inc.
0004 
0005 
0006 help=no
0007 
0008 NGX_PREFIX=
0009 NGX_SBIN_PATH=
0010 NGX_MODULES_PATH=
0011 NGX_CONF_PREFIX=
0012 NGX_CONF_PATH=
0013 NGX_ERROR_LOG_PATH=
0014 NGX_PID_PATH=
0015 NGX_LOCK_PATH=
0016 NGX_USER=
0017 NGX_GROUP=
0018 NGX_BUILD=
0019 
0020 CC=${CC:-cc}
0021 CPP=
0022 NGX_OBJS=objs
0023 
0024 NGX_DEBUG=NO
0025 NGX_CC_OPT=
0026 NGX_LD_OPT=
0027 CPU=NO
0028 
0029 NGX_RPATH=NO
0030 
0031 NGX_TEST_BUILD_DEVPOLL=NO
0032 NGX_TEST_BUILD_EVENTPORT=NO
0033 NGX_TEST_BUILD_EPOLL=NO
0034 NGX_TEST_BUILD_SOLARIS_SENDFILEV=NO
0035 
0036 NGX_PLATFORM=
0037 NGX_WINE=
0038 
0039 EVENT_FOUND=NO
0040 
0041 EVENT_SELECT=NO
0042 EVENT_POLL=NO
0043 
0044 USE_THREADS=NO
0045 
0046 NGX_FILE_AIO=NO
0047 
0048 HTTP=YES
0049 
0050 NGX_HTTP_LOG_PATH=
0051 NGX_HTTP_CLIENT_TEMP_PATH=
0052 NGX_HTTP_PROXY_TEMP_PATH=
0053 NGX_HTTP_FASTCGI_TEMP_PATH=
0054 NGX_HTTP_UWSGI_TEMP_PATH=
0055 NGX_HTTP_SCGI_TEMP_PATH=
0056 
0057 HTTP_CACHE=YES
0058 HTTP_CHARSET=YES
0059 HTTP_GZIP=YES
0060 HTTP_SSL=NO
0061 HTTP_V2=NO
0062 HTTP_SSI=YES
0063 HTTP_POSTPONE=NO
0064 HTTP_REALIP=NO
0065 HTTP_XSLT=NO
0066 HTTP_IMAGE_FILTER=NO
0067 HTTP_SUB=NO
0068 HTTP_ADDITION=NO
0069 HTTP_DAV=NO
0070 HTTP_ACCESS=YES
0071 HTTP_AUTH_BASIC=YES
0072 HTTP_AUTH_REQUEST=NO
0073 HTTP_MIRROR=YES
0074 HTTP_USERID=YES
0075 HTTP_SLICE=NO
0076 HTTP_AUTOINDEX=YES
0077 HTTP_RANDOM_INDEX=NO
0078 HTTP_STATUS=NO
0079 HTTP_GEO=YES
0080 HTTP_GEOIP=NO
0081 HTTP_MAP=YES
0082 HTTP_SPLIT_CLIENTS=YES
0083 HTTP_REFERER=YES
0084 HTTP_REWRITE=YES
0085 HTTP_PROXY=YES
0086 HTTP_FASTCGI=YES
0087 HTTP_UWSGI=YES
0088 HTTP_SCGI=YES
0089 HTTP_GRPC=YES
0090 HTTP_PERL=NO
0091 HTTP_MEMCACHED=YES
0092 HTTP_LIMIT_CONN=YES
0093 HTTP_LIMIT_REQ=YES
0094 HTTP_EMPTY_GIF=YES
0095 HTTP_BROWSER=YES
0096 HTTP_SECURE_LINK=NO
0097 HTTP_DEGRADATION=NO
0098 HTTP_FLV=NO
0099 HTTP_MP4=NO
0100 HTTP_GUNZIP=NO
0101 HTTP_GZIP_STATIC=NO
0102 HTTP_UPSTREAM_HASH=YES
0103 HTTP_UPSTREAM_IP_HASH=YES
0104 HTTP_UPSTREAM_LEAST_CONN=YES
0105 HTTP_UPSTREAM_KEEPALIVE=YES
0106 HTTP_UPSTREAM_ZONE=YES
0107 
0108 # STUB
0109 HTTP_STUB_STATUS=NO
0110 
0111 MAIL=NO
0112 MAIL_SSL=NO
0113 MAIL_POP3=YES
0114 MAIL_IMAP=YES
0115 MAIL_SMTP=YES
0116 
0117 STREAM=NO
0118 STREAM_SSL=NO
0119 STREAM_REALIP=NO
0120 STREAM_LIMIT_CONN=YES
0121 STREAM_ACCESS=YES
0122 STREAM_GEO=YES
0123 STREAM_GEOIP=NO
0124 STREAM_MAP=YES
0125 STREAM_SPLIT_CLIENTS=YES
0126 STREAM_RETURN=YES
0127 STREAM_UPSTREAM_HASH=YES
0128 STREAM_UPSTREAM_LEAST_CONN=YES
0129 STREAM_UPSTREAM_ZONE=YES
0130 STREAM_SSL_PREREAD=NO
0131 
0132 DYNAMIC_MODULES=
0133 
0134 NGX_ADDONS=
0135 NGX_ADDON_DEPS=
0136 DYNAMIC_ADDONS=
0137 
0138 NGX_COMPAT=NO
0139 
0140 USE_PCRE=NO
0141 PCRE=NONE
0142 PCRE_OPT=
0143 PCRE_CONF_OPT=
0144 PCRE_JIT=NO
0145 
0146 USE_OPENSSL=NO
0147 OPENSSL=NONE
0148 
0149 USE_ZLIB=NO
0150 ZLIB=NONE
0151 ZLIB_OPT=
0152 ZLIB_ASM=NO
0153 
0154 USE_PERL=NO
0155 NGX_PERL=perl
0156 
0157 USE_LIBXSLT=NO
0158 USE_LIBGD=NO
0159 USE_GEOIP=NO
0160 
0161 NGX_GOOGLE_PERFTOOLS=NO
0162 NGX_CPP_TEST=NO
0163 
0164 NGX_LIBATOMIC=NO
0165 
0166 NGX_CPU_CACHE_LINE=
0167 
0168 NGX_POST_CONF_MSG=
0169 
0170 opt=
0171 
0172 for option
0173 do
0174     opt="$opt `echo $option | sed -e \"s/\(--[^=]*=\)\(.* .*\)/\1'\2'/\"`"
0175 
0176     case "$option" in
0177         -*=*) value=`echo "$option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
0178            *) value="" ;;
0179     esac
0180 
0181     case "$option" in
0182         --help)                          help=yes                   ;;
0183 
0184         --prefix=)                       NGX_PREFIX="!"             ;;
0185         --prefix=*)                      NGX_PREFIX="$value"        ;;
0186         --sbin-path=*)                   NGX_SBIN_PATH="$value"     ;;
0187         --modules-path=*)                NGX_MODULES_PATH="$value"  ;;
0188         --conf-path=*)                   NGX_CONF_PATH="$value"     ;;
0189         --error-log-path=*)              NGX_ERROR_LOG_PATH="$value";;
0190         --pid-path=*)                    NGX_PID_PATH="$value"      ;;
0191         --lock-path=*)                   NGX_LOCK_PATH="$value"     ;;
0192         --user=*)                        NGX_USER="$value"          ;;
0193         --group=*)                       NGX_GROUP="$value"         ;;
0194 
0195         --crossbuild=*)                  NGX_PLATFORM="$value"      ;;
0196 
0197         --build=*)                       NGX_BUILD="$value"         ;;
0198         --builddir=*)                    NGX_OBJS="$value"          ;;
0199 
0200         --with-select_module)            EVENT_SELECT=YES           ;;
0201         --without-select_module)         EVENT_SELECT=NONE          ;;
0202         --with-poll_module)              EVENT_POLL=YES             ;;
0203         --without-poll_module)           EVENT_POLL=NONE            ;;
0204 
0205         --with-threads)                  USE_THREADS=YES            ;;
0206 
0207         --with-file-aio)                 NGX_FILE_AIO=YES           ;;
0208 
0209         --with-ipv6)
0210             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0211 $0: warning: the \"--with-ipv6\" option is deprecated"
0212         ;;
0213 
0214         --without-http)                  HTTP=NO                    ;;
0215         --without-http-cache)            HTTP_CACHE=NO              ;;
0216 
0217         --http-log-path=*)               NGX_HTTP_LOG_PATH="$value" ;;
0218         --http-client-body-temp-path=*)  NGX_HTTP_CLIENT_TEMP_PATH="$value" ;;
0219         --http-proxy-temp-path=*)        NGX_HTTP_PROXY_TEMP_PATH="$value" ;;
0220         --http-fastcgi-temp-path=*)      NGX_HTTP_FASTCGI_TEMP_PATH="$value" ;;
0221         --http-uwsgi-temp-path=*)        NGX_HTTP_UWSGI_TEMP_PATH="$value" ;;
0222         --http-scgi-temp-path=*)         NGX_HTTP_SCGI_TEMP_PATH="$value" ;;
0223 
0224         --with-http_ssl_module)          HTTP_SSL=YES               ;;
0225         --with-http_v2_module)           HTTP_V2=YES                ;;
0226         --with-http_realip_module)       HTTP_REALIP=YES            ;;
0227         --with-http_addition_module)     HTTP_ADDITION=YES          ;;
0228         --with-http_xslt_module)         HTTP_XSLT=YES              ;;
0229         --with-http_xslt_module=dynamic) HTTP_XSLT=DYNAMIC          ;;
0230         --with-http_image_filter_module) HTTP_IMAGE_FILTER=YES      ;;
0231         --with-http_image_filter_module=dynamic)
0232                                          HTTP_IMAGE_FILTER=DYNAMIC  ;;
0233         --with-http_geoip_module)        HTTP_GEOIP=YES             ;;
0234         --with-http_geoip_module=dynamic)
0235                                          HTTP_GEOIP=DYNAMIC         ;;
0236         --with-http_sub_module)          HTTP_SUB=YES               ;;
0237         --with-http_dav_module)          HTTP_DAV=YES               ;;
0238         --with-http_flv_module)          HTTP_FLV=YES               ;;
0239         --with-http_mp4_module)          HTTP_MP4=YES               ;;
0240         --with-http_gunzip_module)       HTTP_GUNZIP=YES            ;;
0241         --with-http_gzip_static_module)  HTTP_GZIP_STATIC=YES       ;;
0242         --with-http_auth_request_module) HTTP_AUTH_REQUEST=YES      ;;
0243         --with-http_random_index_module) HTTP_RANDOM_INDEX=YES      ;;
0244         --with-http_secure_link_module)  HTTP_SECURE_LINK=YES       ;;
0245         --with-http_degradation_module)  HTTP_DEGRADATION=YES       ;;
0246         --with-http_slice_module)        HTTP_SLICE=YES             ;;
0247 
0248         --without-http_charset_module)   HTTP_CHARSET=NO            ;;
0249         --without-http_gzip_module)      HTTP_GZIP=NO               ;;
0250         --without-http_ssi_module)       HTTP_SSI=NO                ;;
0251         --without-http_userid_module)    HTTP_USERID=NO             ;;
0252         --without-http_access_module)    HTTP_ACCESS=NO             ;;
0253         --without-http_auth_basic_module) HTTP_AUTH_BASIC=NO        ;;
0254         --without-http_mirror_module)    HTTP_MIRROR=NO             ;;
0255         --without-http_autoindex_module) HTTP_AUTOINDEX=NO          ;;
0256         --without-http_status_module)    HTTP_STATUS=NO             ;;
0257         --without-http_geo_module)       HTTP_GEO=NO                ;;
0258         --without-http_map_module)       HTTP_MAP=NO                ;;
0259         --without-http_split_clients_module) HTTP_SPLIT_CLIENTS=NO  ;;
0260         --without-http_referer_module)   HTTP_REFERER=NO            ;;
0261         --without-http_rewrite_module)   HTTP_REWRITE=NO            ;;
0262         --without-http_proxy_module)     HTTP_PROXY=NO              ;;
0263         --without-http_fastcgi_module)   HTTP_FASTCGI=NO            ;;
0264         --without-http_uwsgi_module)     HTTP_UWSGI=NO              ;;
0265         --without-http_scgi_module)      HTTP_SCGI=NO               ;;
0266         --without-http_grpc_module)      HTTP_GRPC=NO               ;;
0267         --without-http_memcached_module) HTTP_MEMCACHED=NO          ;;
0268         --without-http_limit_conn_module) HTTP_LIMIT_CONN=NO        ;;
0269         --without-http_limit_req_module) HTTP_LIMIT_REQ=NO         ;;
0270         --without-http_empty_gif_module) HTTP_EMPTY_GIF=NO          ;;
0271         --without-http_browser_module)   HTTP_BROWSER=NO            ;;
0272         --without-http_upstream_hash_module) HTTP_UPSTREAM_HASH=NO  ;;
0273         --without-http_upstream_ip_hash_module) HTTP_UPSTREAM_IP_HASH=NO ;;
0274         --without-http_upstream_least_conn_module)
0275                                          HTTP_UPSTREAM_LEAST_CONN=NO ;;
0276         --without-http_upstream_keepalive_module) HTTP_UPSTREAM_KEEPALIVE=NO ;;
0277         --without-http_upstream_zone_module) HTTP_UPSTREAM_ZONE=NO  ;;
0278 
0279         --with-http_perl_module)         HTTP_PERL=YES              ;;
0280         --with-http_perl_module=dynamic) HTTP_PERL=DYNAMIC          ;;
0281         --with-perl_modules_path=*)      NGX_PERL_MODULES="$value"  ;;
0282         --with-perl=*)                   NGX_PERL="$value"          ;;
0283 
0284         # STUB
0285         --with-http_stub_status_module)  HTTP_STUB_STATUS=YES       ;;
0286 
0287         --with-mail)                     MAIL=YES                   ;;
0288         --with-mail=dynamic)             MAIL=DYNAMIC               ;;
0289         --with-mail_ssl_module)          MAIL_SSL=YES               ;;
0290         # STUB
0291         --with-imap)
0292             MAIL=YES
0293             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0294 $0: warning: the \"--with-imap\" option is deprecated, \
0295 use the \"--with-mail\" option instead"
0296         ;;
0297         --with-imap_ssl_module)
0298             MAIL_SSL=YES
0299             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0300 $0: warning: the \"--with-imap_ssl_module\" option is deprecated, \
0301 use the \"--with-mail_ssl_module\" option instead"
0302         ;;
0303         --without-mail_pop3_module)      MAIL_POP3=NO               ;;
0304         --without-mail_imap_module)      MAIL_IMAP=NO               ;;
0305         --without-mail_smtp_module)      MAIL_SMTP=NO               ;;
0306 
0307         --with-stream)                   STREAM=YES                 ;;
0308         --with-stream=dynamic)           STREAM=DYNAMIC             ;;
0309         --with-stream_ssl_module)        STREAM_SSL=YES             ;;
0310         --with-stream_realip_module)     STREAM_REALIP=YES          ;;
0311         --with-stream_geoip_module)      STREAM_GEOIP=YES           ;;
0312         --with-stream_geoip_module=dynamic)
0313                                          STREAM_GEOIP=DYNAMIC       ;;
0314         --with-stream_ssl_preread_module)
0315                                          STREAM_SSL_PREREAD=YES     ;;
0316         --without-stream_limit_conn_module)
0317                                          STREAM_LIMIT_CONN=NO       ;;
0318         --without-stream_access_module)  STREAM_ACCESS=NO           ;;
0319         --without-stream_geo_module)     STREAM_GEO=NO              ;;
0320         --without-stream_map_module)     STREAM_MAP=NO              ;;
0321         --without-stream_split_clients_module)
0322                                          STREAM_SPLIT_CLIENTS=NO    ;;
0323         --without-stream_return_module)  STREAM_RETURN=NO           ;;
0324         --without-stream_upstream_hash_module)
0325                                          STREAM_UPSTREAM_HASH=NO    ;;
0326         --without-stream_upstream_least_conn_module)
0327                                          STREAM_UPSTREAM_LEAST_CONN=NO ;;
0328         --without-stream_upstream_zone_module)
0329                                          STREAM_UPSTREAM_ZONE=NO    ;;
0330 
0331         --with-google_perftools_module)  NGX_GOOGLE_PERFTOOLS=YES   ;;
0332         --with-cpp_test_module)          NGX_CPP_TEST=YES           ;;
0333 
0334         --add-module=*)                  NGX_ADDONS="$NGX_ADDONS $value" ;;
0335         --add-dynamic-module=*)          DYNAMIC_ADDONS="$DYNAMIC_ADDONS $value" ;;
0336 
0337         --with-compat)                   NGX_COMPAT=YES             ;;
0338 
0339         --with-cc=*)                     CC="$value"                ;;
0340         --with-cpp=*)                    CPP="$value"               ;;
0341         --with-cc-opt=*)                 NGX_CC_OPT="$value"        ;;
0342         --with-ld-opt=*)                 NGX_LD_OPT="$value"        ;;
0343         --with-cpu-opt=*)                CPU="$value"               ;;
0344         --with-debug)                    NGX_DEBUG=YES              ;;
0345 
0346         --without-pcre)                  USE_PCRE=DISABLED          ;;
0347         --with-pcre)                     USE_PCRE=YES               ;;
0348         --with-pcre=*)                   PCRE="$value"              ;;
0349         --with-pcre-opt=*)               PCRE_OPT="$value"          ;;
0350         --with-pcre-jit)                 PCRE_JIT=YES               ;;
0351 
0352         --with-openssl=*)                OPENSSL="$value"           ;;
0353         --with-openssl-opt=*)            OPENSSL_OPT="$value"       ;;
0354 
0355         --with-md5=*)
0356             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0357 $0: warning: the \"--with-md5\" option is deprecated"
0358         ;;
0359         --with-md5-opt=*)
0360             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0361 $0: warning: the \"--with-md5-opt\" option is deprecated"
0362         ;;
0363         --with-md5-asm)
0364             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0365 $0: warning: the \"--with-md5-asm\" option is deprecated"
0366         ;;
0367 
0368         --with-sha1=*)
0369             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0370 $0: warning: the \"--with-sha1\" option is deprecated"
0371         ;;
0372         --with-sha1-opt=*)
0373             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0374 $0: warning: the \"--with-sha1-opt\" option is deprecated"
0375         ;;
0376         --with-sha1-asm)
0377             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0378 $0: warning: the \"--with-sha1-asm\" option is deprecated"
0379         ;;
0380 
0381         --with-zlib=*)                   ZLIB="$value"              ;;
0382         --with-zlib-opt=*)               ZLIB_OPT="$value"          ;;
0383         --with-zlib-asm=*)               ZLIB_ASM="$value"          ;;
0384 
0385         --with-libatomic)                NGX_LIBATOMIC=YES          ;;
0386         --with-libatomic=*)              NGX_LIBATOMIC="$value"     ;;
0387 
0388         --test-build-devpoll)            NGX_TEST_BUILD_DEVPOLL=YES ;;
0389         --test-build-eventport)          NGX_TEST_BUILD_EVENTPORT=YES ;;
0390         --test-build-epoll)              NGX_TEST_BUILD_EPOLL=YES   ;;
0391         --test-build-solaris-sendfilev)  NGX_TEST_BUILD_SOLARIS_SENDFILEV=YES ;;
0392 
0393         *)
0394             echo "$0: error: invalid option \"$option\""
0395             exit 1
0396         ;;
0397     esac
0398 done
0399 
0400 
0401 NGX_CONFIGURE="$opt"
0402 
0403 
0404 if [ $help = yes ]; then
0405 
0406 cat << END
0407 
0408   --help                             print this message
0409 
0410   --prefix=PATH                      set installation prefix
0411   --sbin-path=PATH                   set nginx binary pathname
0412   --modules-path=PATH                set modules path
0413   --conf-path=PATH                   set nginx.conf pathname
0414   --error-log-path=PATH              set error log pathname
0415   --pid-path=PATH                    set nginx.pid pathname
0416   --lock-path=PATH                   set nginx.lock pathname
0417 
0418   --user=USER                        set non-privileged user for
0419                                      worker processes
0420   --group=GROUP                      set non-privileged group for
0421                                      worker processes
0422 
0423   --build=NAME                       set build name
0424   --builddir=DIR                     set build directory
0425 
0426   --with-select_module               enable select module
0427   --without-select_module            disable select module
0428   --with-poll_module                 enable poll module
0429   --without-poll_module              disable poll module
0430 
0431   --with-threads                     enable thread pool support
0432 
0433   --with-file-aio                    enable file AIO support
0434 
0435   --with-http_ssl_module             enable ngx_http_ssl_module
0436   --with-http_v2_module              enable ngx_http_v2_module
0437   --with-http_realip_module          enable ngx_http_realip_module
0438   --with-http_addition_module        enable ngx_http_addition_module
0439   --with-http_xslt_module            enable ngx_http_xslt_module
0440   --with-http_xslt_module=dynamic    enable dynamic ngx_http_xslt_module
0441   --with-http_image_filter_module    enable ngx_http_image_filter_module
0442   --with-http_image_filter_module=dynamic
0443                                      enable dynamic ngx_http_image_filter_module
0444   --with-http_geoip_module           enable ngx_http_geoip_module
0445   --with-http_geoip_module=dynamic   enable dynamic ngx_http_geoip_module
0446   --with-http_sub_module             enable ngx_http_sub_module
0447   --with-http_dav_module             enable ngx_http_dav_module
0448   --with-http_flv_module             enable ngx_http_flv_module
0449   --with-http_mp4_module             enable ngx_http_mp4_module
0450   --with-http_gunzip_module          enable ngx_http_gunzip_module
0451   --with-http_gzip_static_module     enable ngx_http_gzip_static_module
0452   --with-http_auth_request_module    enable ngx_http_auth_request_module
0453   --with-http_random_index_module    enable ngx_http_random_index_module
0454   --with-http_secure_link_module     enable ngx_http_secure_link_module
0455   --with-http_degradation_module     enable ngx_http_degradation_module
0456   --with-http_slice_module           enable ngx_http_slice_module
0457   --with-http_stub_status_module     enable ngx_http_stub_status_module
0458 
0459   --without-http_charset_module      disable ngx_http_charset_module
0460   --without-http_gzip_module         disable ngx_http_gzip_module
0461   --without-http_ssi_module          disable ngx_http_ssi_module
0462   --without-http_userid_module       disable ngx_http_userid_module
0463   --without-http_access_module       disable ngx_http_access_module
0464   --without-http_auth_basic_module   disable ngx_http_auth_basic_module
0465   --without-http_mirror_module       disable ngx_http_mirror_module
0466   --without-http_autoindex_module    disable ngx_http_autoindex_module
0467   --without-http_geo_module          disable ngx_http_geo_module
0468   --without-http_map_module          disable ngx_http_map_module
0469   --without-http_split_clients_module disable ngx_http_split_clients_module
0470   --without-http_referer_module      disable ngx_http_referer_module
0471   --without-http_rewrite_module      disable ngx_http_rewrite_module
0472   --without-http_proxy_module        disable ngx_http_proxy_module
0473   --without-http_fastcgi_module      disable ngx_http_fastcgi_module
0474   --without-http_uwsgi_module        disable ngx_http_uwsgi_module
0475   --without-http_scgi_module         disable ngx_http_scgi_module
0476   --without-http_grpc_module         disable ngx_http_grpc_module
0477   --without-http_memcached_module    disable ngx_http_memcached_module
0478   --without-http_limit_conn_module   disable ngx_http_limit_conn_module
0479   --without-http_limit_req_module    disable ngx_http_limit_req_module
0480   --without-http_empty_gif_module    disable ngx_http_empty_gif_module
0481   --without-http_browser_module      disable ngx_http_browser_module
0482   --without-http_upstream_hash_module
0483                                      disable ngx_http_upstream_hash_module
0484   --without-http_upstream_ip_hash_module
0485                                      disable ngx_http_upstream_ip_hash_module
0486   --without-http_upstream_least_conn_module
0487                                      disable ngx_http_upstream_least_conn_module
0488   --without-http_upstream_keepalive_module
0489                                      disable ngx_http_upstream_keepalive_module
0490   --without-http_upstream_zone_module
0491                                      disable ngx_http_upstream_zone_module
0492 
0493   --with-http_perl_module            enable ngx_http_perl_module
0494   --with-http_perl_module=dynamic    enable dynamic ngx_http_perl_module
0495   --with-perl_modules_path=PATH      set Perl modules path
0496   --with-perl=PATH                   set perl binary pathname
0497 
0498   --http-log-path=PATH               set http access log pathname
0499   --http-client-body-temp-path=PATH  set path to store
0500                                      http client request body temporary files
0501   --http-proxy-temp-path=PATH        set path to store
0502                                      http proxy temporary files
0503   --http-fastcgi-temp-path=PATH      set path to store
0504                                      http fastcgi temporary files
0505   --http-uwsgi-temp-path=PATH        set path to store
0506                                      http uwsgi temporary files
0507   --http-scgi-temp-path=PATH         set path to store
0508                                      http scgi temporary files
0509 
0510   --without-http                     disable HTTP server
0511   --without-http-cache               disable HTTP cache
0512 
0513   --with-mail                        enable POP3/IMAP4/SMTP proxy module
0514   --with-mail=dynamic                enable dynamic POP3/IMAP4/SMTP proxy module
0515   --with-mail_ssl_module             enable ngx_mail_ssl_module
0516   --without-mail_pop3_module         disable ngx_mail_pop3_module
0517   --without-mail_imap_module         disable ngx_mail_imap_module
0518   --without-mail_smtp_module         disable ngx_mail_smtp_module
0519 
0520   --with-stream                      enable TCP/UDP proxy module
0521   --with-stream=dynamic              enable dynamic TCP/UDP proxy module
0522   --with-stream_ssl_module           enable ngx_stream_ssl_module
0523   --with-stream_realip_module        enable ngx_stream_realip_module
0524   --with-stream_geoip_module         enable ngx_stream_geoip_module
0525   --with-stream_geoip_module=dynamic enable dynamic ngx_stream_geoip_module
0526   --with-stream_ssl_preread_module   enable ngx_stream_ssl_preread_module
0527   --without-stream_limit_conn_module disable ngx_stream_limit_conn_module
0528   --without-stream_access_module     disable ngx_stream_access_module
0529   --without-stream_geo_module        disable ngx_stream_geo_module
0530   --without-stream_map_module        disable ngx_stream_map_module
0531   --without-stream_split_clients_module
0532                                      disable ngx_stream_split_clients_module
0533   --without-stream_return_module     disable ngx_stream_return_module
0534   --without-stream_upstream_hash_module
0535                                      disable ngx_stream_upstream_hash_module
0536   --without-stream_upstream_least_conn_module
0537                                      disable ngx_stream_upstream_least_conn_module
0538   --without-stream_upstream_zone_module
0539                                      disable ngx_stream_upstream_zone_module
0540 
0541   --with-google_perftools_module     enable ngx_google_perftools_module
0542   --with-cpp_test_module             enable ngx_cpp_test_module
0543 
0544   --add-module=PATH                  enable external module
0545   --add-dynamic-module=PATH          enable dynamic external module
0546 
0547   --with-compat                      dynamic modules compatibility
0548 
0549   --with-cc=PATH                     set C compiler pathname
0550   --with-cpp=PATH                    set C preprocessor pathname
0551   --with-cc-opt=OPTIONS              set additional C compiler options
0552   --with-ld-opt=OPTIONS              set additional linker options
0553   --with-cpu-opt=CPU                 build for the specified CPU, valid values:
0554                                      pentium, pentiumpro, pentium3, pentium4,
0555                                      athlon, opteron, sparc32, sparc64, ppc64
0556 
0557   --without-pcre                     disable PCRE library usage
0558   --with-pcre                        force PCRE library usage
0559   --with-pcre=DIR                    set path to PCRE library sources
0560   --with-pcre-opt=OPTIONS            set additional build options for PCRE
0561   --with-pcre-jit                    build PCRE with JIT compilation support
0562 
0563   --with-zlib=DIR                    set path to zlib library sources
0564   --with-zlib-opt=OPTIONS            set additional build options for zlib
0565   --with-zlib-asm=CPU                use zlib assembler sources optimized
0566                                      for the specified CPU, valid values:
0567                                      pentium, pentiumpro
0568 
0569   --with-libatomic                   force libatomic_ops library usage
0570   --with-libatomic=DIR               set path to libatomic_ops library sources
0571 
0572   --with-openssl=DIR                 set path to OpenSSL library sources
0573   --with-openssl-opt=OPTIONS         set additional build options for OpenSSL
0574 
0575   --with-debug                       enable debug logging
0576 
0577 END
0578 
0579     exit 1
0580 fi
0581 
0582 
0583 if [ ".$NGX_PLATFORM" = ".win32" ]; then
0584     NGX_WINE=$WINE
0585 fi
0586 
0587 
0588 NGX_SBIN_PATH=${NGX_SBIN_PATH:-sbin/nginx}
0589 NGX_MODULES_PATH=${NGX_MODULES_PATH:-modules}
0590 NGX_CONF_PATH=${NGX_CONF_PATH:-conf/nginx.conf}
0591 NGX_CONF_PREFIX=`dirname $NGX_CONF_PATH`
0592 NGX_PID_PATH=${NGX_PID_PATH:-logs/nginx.pid}
0593 NGX_LOCK_PATH=${NGX_LOCK_PATH:-logs/nginx.lock}
0594 
0595 if [ ".$NGX_ERROR_LOG_PATH" = ".stderr" ]; then
0596     NGX_ERROR_LOG_PATH=
0597 else
0598     NGX_ERROR_LOG_PATH=${NGX_ERROR_LOG_PATH:-logs/error.log}
0599 fi
0600 
0601 NGX_HTTP_LOG_PATH=${NGX_HTTP_LOG_PATH:-logs/access.log}
0602 NGX_HTTP_CLIENT_TEMP_PATH=${NGX_HTTP_CLIENT_TEMP_PATH:-client_body_temp}
0603 NGX_HTTP_PROXY_TEMP_PATH=${NGX_HTTP_PROXY_TEMP_PATH:-proxy_temp}
0604 NGX_HTTP_FASTCGI_TEMP_PATH=${NGX_HTTP_FASTCGI_TEMP_PATH:-fastcgi_temp}
0605 NGX_HTTP_UWSGI_TEMP_PATH=${NGX_HTTP_UWSGI_TEMP_PATH:-uwsgi_temp}
0606 NGX_HTTP_SCGI_TEMP_PATH=${NGX_HTTP_SCGI_TEMP_PATH:-scgi_temp}
0607 
0608 case ".$NGX_PERL_MODULES" in
0609     ./*)
0610     ;;
0611 
0612     .)
0613     ;;
0614 
0615     *)
0616         NGX_PERL_MODULES=$NGX_PREFIX/$NGX_PERL_MODULES
0617     ;;
0618 esac