options 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  1. # Copyright (C) Igor Sysoev
  2. # Copyright (C) Nginx, Inc.
  3. help=no
  4. NGX_PREFIX=
  5. NGX_SBIN_PATH=
  6. NGX_MODULES_PATH=
  7. NGX_CONF_PREFIX=
  8. NGX_CONF_PATH=
  9. NGX_ERROR_LOG_PATH=
  10. NGX_PID_PATH=
  11. NGX_LOCK_PATH=
  12. NGX_USER=
  13. NGX_GROUP=
  14. NGX_BUILD=
  15. CC=${CC:-cc}
  16. CPP=
  17. NGX_OBJS=objs
  18. NGX_DEBUG=NO
  19. NGX_CC_OPT=
  20. NGX_LD_OPT=
  21. CPU=NO
  22. NGX_RPATH=NO
  23. NGX_TEST_BUILD_DEVPOLL=NO
  24. NGX_TEST_BUILD_EVENTPORT=NO
  25. NGX_TEST_BUILD_EPOLL=NO
  26. NGX_TEST_BUILD_SOLARIS_SENDFILEV=NO
  27. NGX_PLATFORM=
  28. NGX_WINE=
  29. EVENT_FOUND=NO
  30. EVENT_SELECT=NO
  31. EVENT_POLL=NO
  32. USE_THREADS=NO
  33. NGX_FILE_AIO=NO
  34. HTTP=YES
  35. NGX_HTTP_LOG_PATH=
  36. NGX_HTTP_CLIENT_TEMP_PATH=
  37. NGX_HTTP_PROXY_TEMP_PATH=
  38. NGX_HTTP_FASTCGI_TEMP_PATH=
  39. NGX_HTTP_UWSGI_TEMP_PATH=
  40. NGX_HTTP_SCGI_TEMP_PATH=
  41. HTTP_CACHE=YES
  42. HTTP_CHARSET=YES
  43. HTTP_GZIP=YES
  44. HTTP_SSL=NO
  45. HTTP_V2=NO
  46. HTTP_SSI=YES
  47. HTTP_REALIP=NO
  48. HTTP_XSLT=NO
  49. HTTP_IMAGE_FILTER=NO
  50. HTTP_SUB=NO
  51. HTTP_ADDITION=NO
  52. HTTP_DAV=NO
  53. HTTP_ACCESS=YES
  54. HTTP_AUTH_BASIC=YES
  55. HTTP_AUTH_REQUEST=NO
  56. HTTP_MIRROR=YES
  57. HTTP_USERID=YES
  58. HTTP_SLICE=NO
  59. HTTP_AUTOINDEX=YES
  60. HTTP_RANDOM_INDEX=NO
  61. HTTP_STATUS=NO
  62. HTTP_GEO=YES
  63. HTTP_GEOIP=NO
  64. HTTP_MAP=YES
  65. HTTP_SPLIT_CLIENTS=YES
  66. HTTP_REFERER=YES
  67. HTTP_REWRITE=YES
  68. HTTP_PROXY=YES
  69. HTTP_FASTCGI=YES
  70. HTTP_UWSGI=YES
  71. HTTP_SCGI=YES
  72. HTTP_GRPC=YES
  73. HTTP_PERL=NO
  74. HTTP_MEMCACHED=YES
  75. HTTP_LIMIT_CONN=YES
  76. HTTP_LIMIT_REQ=YES
  77. HTTP_EMPTY_GIF=YES
  78. HTTP_BROWSER=YES
  79. HTTP_SECURE_LINK=NO
  80. HTTP_DEGRADATION=NO
  81. HTTP_FLV=NO
  82. HTTP_MP4=NO
  83. HTTP_GUNZIP=NO
  84. HTTP_GZIP_STATIC=NO
  85. HTTP_UPSTREAM_HASH=YES
  86. HTTP_UPSTREAM_IP_HASH=YES
  87. HTTP_UPSTREAM_LEAST_CONN=YES
  88. HTTP_UPSTREAM_RANDOM=YES
  89. HTTP_UPSTREAM_KEEPALIVE=YES
  90. HTTP_UPSTREAM_ZONE=YES
  91. # STUB
  92. HTTP_STUB_STATUS=NO
  93. MAIL=NO
  94. MAIL_SSL=NO
  95. MAIL_POP3=YES
  96. MAIL_IMAP=YES
  97. MAIL_SMTP=YES
  98. STREAM=NO
  99. STREAM_SSL=NO
  100. STREAM_REALIP=NO
  101. STREAM_LIMIT_CONN=YES
  102. STREAM_ACCESS=YES
  103. STREAM_GEO=YES
  104. STREAM_GEOIP=NO
  105. STREAM_MAP=YES
  106. STREAM_SPLIT_CLIENTS=YES
  107. STREAM_RETURN=YES
  108. STREAM_SET=YES
  109. STREAM_UPSTREAM_HASH=YES
  110. STREAM_UPSTREAM_LEAST_CONN=YES
  111. STREAM_UPSTREAM_RANDOM=YES
  112. STREAM_UPSTREAM_ZONE=YES
  113. STREAM_SSL_PREREAD=NO
  114. DYNAMIC_MODULES=
  115. DYNAMIC_MODULES_SRCS=
  116. NGX_ADDONS=
  117. NGX_ADDON_SRCS=
  118. NGX_ADDON_DEPS=
  119. DYNAMIC_ADDONS=
  120. NGX_COMPAT=NO
  121. USE_PCRE=NO
  122. PCRE=NONE
  123. PCRE_OPT=
  124. PCRE_CONF_OPT=
  125. PCRE_JIT=NO
  126. USE_OPENSSL=NO
  127. OPENSSL=NONE
  128. USE_ZLIB=NO
  129. ZLIB=NONE
  130. ZLIB_OPT=
  131. ZLIB_ASM=NO
  132. USE_PERL=NO
  133. NGX_PERL=perl
  134. USE_LIBXSLT=NO
  135. USE_LIBGD=NO
  136. USE_GEOIP=NO
  137. NGX_GOOGLE_PERFTOOLS=NO
  138. NGX_CPP_TEST=NO
  139. NGX_LIBATOMIC=NO
  140. NGX_CPU_CACHE_LINE=
  141. NGX_POST_CONF_MSG=
  142. opt=
  143. for option
  144. do
  145. opt="$opt `echo $option | sed -e \"s/\(--[^=]*=\)\(.* .*\)/\1'\2'/\"`"
  146. case "$option" in
  147. -*=*) value=`echo "$option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  148. *) value="" ;;
  149. esac
  150. case "$option" in
  151. --help) help=yes ;;
  152. --prefix=) NGX_PREFIX="!" ;;
  153. --prefix=*) NGX_PREFIX="$value" ;;
  154. --sbin-path=*) NGX_SBIN_PATH="$value" ;;
  155. --modules-path=*) NGX_MODULES_PATH="$value" ;;
  156. --conf-path=*) NGX_CONF_PATH="$value" ;;
  157. --error-log-path=*) NGX_ERROR_LOG_PATH="$value";;
  158. --pid-path=*) NGX_PID_PATH="$value" ;;
  159. --lock-path=*) NGX_LOCK_PATH="$value" ;;
  160. --user=*) NGX_USER="$value" ;;
  161. --group=*) NGX_GROUP="$value" ;;
  162. --crossbuild=*) NGX_PLATFORM="$value" ;;
  163. --build=*) NGX_BUILD="$value" ;;
  164. --builddir=*) NGX_OBJS="$value" ;;
  165. --with-select_module) EVENT_SELECT=YES ;;
  166. --without-select_module) EVENT_SELECT=NONE ;;
  167. --with-poll_module) EVENT_POLL=YES ;;
  168. --without-poll_module) EVENT_POLL=NONE ;;
  169. --with-threads) USE_THREADS=YES ;;
  170. --with-file-aio) NGX_FILE_AIO=YES ;;
  171. --with-ipv6)
  172. NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
  173. $0: warning: the \"--with-ipv6\" option is deprecated"
  174. ;;
  175. --without-http) HTTP=NO ;;
  176. --without-http-cache) HTTP_CACHE=NO ;;
  177. --http-log-path=*) NGX_HTTP_LOG_PATH="$value" ;;
  178. --http-client-body-temp-path=*) NGX_HTTP_CLIENT_TEMP_PATH="$value" ;;
  179. --http-proxy-temp-path=*) NGX_HTTP_PROXY_TEMP_PATH="$value" ;;
  180. --http-fastcgi-temp-path=*) NGX_HTTP_FASTCGI_TEMP_PATH="$value" ;;
  181. --http-uwsgi-temp-path=*) NGX_HTTP_UWSGI_TEMP_PATH="$value" ;;
  182. --http-scgi-temp-path=*) NGX_HTTP_SCGI_TEMP_PATH="$value" ;;
  183. --with-http_ssl_module) HTTP_SSL=YES ;;
  184. --with-http_v2_module) HTTP_V2=YES ;;
  185. --with-http_realip_module) HTTP_REALIP=YES ;;
  186. --with-http_addition_module) HTTP_ADDITION=YES ;;
  187. --with-http_xslt_module) HTTP_XSLT=YES ;;
  188. --with-http_xslt_module=dynamic) HTTP_XSLT=DYNAMIC ;;
  189. --with-http_image_filter_module) HTTP_IMAGE_FILTER=YES ;;
  190. --with-http_image_filter_module=dynamic)
  191. HTTP_IMAGE_FILTER=DYNAMIC ;;
  192. --with-http_geoip_module) HTTP_GEOIP=YES ;;
  193. --with-http_geoip_module=dynamic)
  194. HTTP_GEOIP=DYNAMIC ;;
  195. --with-http_sub_module) HTTP_SUB=YES ;;
  196. --with-http_dav_module) HTTP_DAV=YES ;;
  197. --with-http_flv_module) HTTP_FLV=YES ;;
  198. --with-http_mp4_module) HTTP_MP4=YES ;;
  199. --with-http_gunzip_module) HTTP_GUNZIP=YES ;;
  200. --with-http_gzip_static_module) HTTP_GZIP_STATIC=YES ;;
  201. --with-http_auth_request_module) HTTP_AUTH_REQUEST=YES ;;
  202. --with-http_random_index_module) HTTP_RANDOM_INDEX=YES ;;
  203. --with-http_secure_link_module) HTTP_SECURE_LINK=YES ;;
  204. --with-http_degradation_module) HTTP_DEGRADATION=YES ;;
  205. --with-http_slice_module) HTTP_SLICE=YES ;;
  206. --without-http_charset_module) HTTP_CHARSET=NO ;;
  207. --without-http_gzip_module) HTTP_GZIP=NO ;;
  208. --without-http_ssi_module) HTTP_SSI=NO ;;
  209. --without-http_userid_module) HTTP_USERID=NO ;;
  210. --without-http_access_module) HTTP_ACCESS=NO ;;
  211. --without-http_auth_basic_module) HTTP_AUTH_BASIC=NO ;;
  212. --without-http_mirror_module) HTTP_MIRROR=NO ;;
  213. --without-http_autoindex_module) HTTP_AUTOINDEX=NO ;;
  214. --without-http_status_module) HTTP_STATUS=NO ;;
  215. --without-http_geo_module) HTTP_GEO=NO ;;
  216. --without-http_map_module) HTTP_MAP=NO ;;
  217. --without-http_split_clients_module) HTTP_SPLIT_CLIENTS=NO ;;
  218. --without-http_referer_module) HTTP_REFERER=NO ;;
  219. --without-http_rewrite_module) HTTP_REWRITE=NO ;;
  220. --without-http_proxy_module) HTTP_PROXY=NO ;;
  221. --without-http_fastcgi_module) HTTP_FASTCGI=NO ;;
  222. --without-http_uwsgi_module) HTTP_UWSGI=NO ;;
  223. --without-http_scgi_module) HTTP_SCGI=NO ;;
  224. --without-http_grpc_module) HTTP_GRPC=NO ;;
  225. --without-http_memcached_module) HTTP_MEMCACHED=NO ;;
  226. --without-http_limit_conn_module) HTTP_LIMIT_CONN=NO ;;
  227. --without-http_limit_req_module) HTTP_LIMIT_REQ=NO ;;
  228. --without-http_empty_gif_module) HTTP_EMPTY_GIF=NO ;;
  229. --without-http_browser_module) HTTP_BROWSER=NO ;;
  230. --without-http_upstream_hash_module) HTTP_UPSTREAM_HASH=NO ;;
  231. --without-http_upstream_ip_hash_module) HTTP_UPSTREAM_IP_HASH=NO ;;
  232. --without-http_upstream_least_conn_module)
  233. HTTP_UPSTREAM_LEAST_CONN=NO ;;
  234. --without-http_upstream_random_module)
  235. HTTP_UPSTREAM_RANDOM=NO ;;
  236. --without-http_upstream_keepalive_module) HTTP_UPSTREAM_KEEPALIVE=NO ;;
  237. --without-http_upstream_zone_module) HTTP_UPSTREAM_ZONE=NO ;;
  238. --with-http_perl_module) HTTP_PERL=YES ;;
  239. --with-http_perl_module=dynamic) HTTP_PERL=DYNAMIC ;;
  240. --with-perl_modules_path=*) NGX_PERL_MODULES="$value" ;;
  241. --with-perl=*) NGX_PERL="$value" ;;
  242. # STUB
  243. --with-http_stub_status_module) HTTP_STUB_STATUS=YES ;;
  244. --with-mail) MAIL=YES ;;
  245. --with-mail=dynamic) MAIL=DYNAMIC ;;
  246. --with-mail_ssl_module) MAIL_SSL=YES ;;
  247. # STUB
  248. --with-imap)
  249. MAIL=YES
  250. NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
  251. $0: warning: the \"--with-imap\" option is deprecated, \
  252. use the \"--with-mail\" option instead"
  253. ;;
  254. --with-imap_ssl_module)
  255. MAIL_SSL=YES
  256. NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
  257. $0: warning: the \"--with-imap_ssl_module\" option is deprecated, \
  258. use the \"--with-mail_ssl_module\" option instead"
  259. ;;
  260. --without-mail_pop3_module) MAIL_POP3=NO ;;
  261. --without-mail_imap_module) MAIL_IMAP=NO ;;
  262. --without-mail_smtp_module) MAIL_SMTP=NO ;;
  263. --with-stream) STREAM=YES ;;
  264. --with-stream=dynamic) STREAM=DYNAMIC ;;
  265. --with-stream_ssl_module) STREAM_SSL=YES ;;
  266. --with-stream_realip_module) STREAM_REALIP=YES ;;
  267. --with-stream_geoip_module) STREAM_GEOIP=YES ;;
  268. --with-stream_geoip_module=dynamic)
  269. STREAM_GEOIP=DYNAMIC ;;
  270. --with-stream_ssl_preread_module)
  271. STREAM_SSL_PREREAD=YES ;;
  272. --without-stream_limit_conn_module)
  273. STREAM_LIMIT_CONN=NO ;;
  274. --without-stream_access_module) STREAM_ACCESS=NO ;;
  275. --without-stream_geo_module) STREAM_GEO=NO ;;
  276. --without-stream_map_module) STREAM_MAP=NO ;;
  277. --without-stream_split_clients_module)
  278. STREAM_SPLIT_CLIENTS=NO ;;
  279. --without-stream_return_module) STREAM_RETURN=NO ;;
  280. --without-stream_set_module) STREAM_SET=NO ;;
  281. --without-stream_upstream_hash_module)
  282. STREAM_UPSTREAM_HASH=NO ;;
  283. --without-stream_upstream_least_conn_module)
  284. STREAM_UPSTREAM_LEAST_CONN=NO ;;
  285. --without-stream_upstream_random_module)
  286. STREAM_UPSTREAM_RANDOM=NO ;;
  287. --without-stream_upstream_zone_module)
  288. STREAM_UPSTREAM_ZONE=NO ;;
  289. --with-google_perftools_module) NGX_GOOGLE_PERFTOOLS=YES ;;
  290. --with-cpp_test_module) NGX_CPP_TEST=YES ;;
  291. --add-module=*) NGX_ADDONS="$NGX_ADDONS $value" ;;
  292. --add-dynamic-module=*) DYNAMIC_ADDONS="$DYNAMIC_ADDONS $value" ;;
  293. --with-compat) NGX_COMPAT=YES ;;
  294. --with-cc=*) CC="$value" ;;
  295. --with-cpp=*) CPP="$value" ;;
  296. --with-cc-opt=*) NGX_CC_OPT="$value" ;;
  297. --with-ld-opt=*) NGX_LD_OPT="$value" ;;
  298. --with-cpu-opt=*) CPU="$value" ;;
  299. --with-debug) NGX_DEBUG=YES ;;
  300. --without-pcre) USE_PCRE=DISABLED ;;
  301. --with-pcre) USE_PCRE=YES ;;
  302. --with-pcre=*) PCRE="$value" ;;
  303. --with-pcre-opt=*) PCRE_OPT="$value" ;;
  304. --with-pcre-jit) PCRE_JIT=YES ;;
  305. --with-openssl=*) OPENSSL="$value" ;;
  306. --with-openssl-opt=*) OPENSSL_OPT="$value" ;;
  307. --with-md5=*)
  308. NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
  309. $0: warning: the \"--with-md5\" option is deprecated"
  310. ;;
  311. --with-md5-opt=*)
  312. NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
  313. $0: warning: the \"--with-md5-opt\" option is deprecated"
  314. ;;
  315. --with-md5-asm)
  316. NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
  317. $0: warning: the \"--with-md5-asm\" option is deprecated"
  318. ;;
  319. --with-sha1=*)
  320. NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
  321. $0: warning: the \"--with-sha1\" option is deprecated"
  322. ;;
  323. --with-sha1-opt=*)
  324. NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
  325. $0: warning: the \"--with-sha1-opt\" option is deprecated"
  326. ;;
  327. --with-sha1-asm)
  328. NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
  329. $0: warning: the \"--with-sha1-asm\" option is deprecated"
  330. ;;
  331. --with-zlib=*) ZLIB="$value" ;;
  332. --with-zlib-opt=*) ZLIB_OPT="$value" ;;
  333. --with-zlib-asm=*) ZLIB_ASM="$value" ;;
  334. --with-libatomic) NGX_LIBATOMIC=YES ;;
  335. --with-libatomic=*) NGX_LIBATOMIC="$value" ;;
  336. --test-build-devpoll) NGX_TEST_BUILD_DEVPOLL=YES ;;
  337. --test-build-eventport) NGX_TEST_BUILD_EVENTPORT=YES ;;
  338. --test-build-epoll) NGX_TEST_BUILD_EPOLL=YES ;;
  339. --test-build-solaris-sendfilev) NGX_TEST_BUILD_SOLARIS_SENDFILEV=YES ;;
  340. *)
  341. echo "$0: error: invalid option \"$option\""
  342. exit 1
  343. ;;
  344. esac
  345. done
  346. NGX_CONFIGURE="$opt"
  347. if [ $help = yes ]; then
  348. cat << END
  349. --help print this message
  350. --prefix=PATH set installation prefix
  351. --sbin-path=PATH set nginx binary pathname
  352. --modules-path=PATH set modules path
  353. --conf-path=PATH set nginx.conf pathname
  354. --error-log-path=PATH set error log pathname
  355. --pid-path=PATH set nginx.pid pathname
  356. --lock-path=PATH set nginx.lock pathname
  357. --user=USER set non-privileged user for
  358. worker processes
  359. --group=GROUP set non-privileged group for
  360. worker processes
  361. --build=NAME set build name
  362. --builddir=DIR set build directory
  363. --with-select_module enable select module
  364. --without-select_module disable select module
  365. --with-poll_module enable poll module
  366. --without-poll_module disable poll module
  367. --with-threads enable thread pool support
  368. --with-file-aio enable file AIO support
  369. --with-http_ssl_module enable ngx_http_ssl_module
  370. --with-http_v2_module enable ngx_http_v2_module
  371. --with-http_realip_module enable ngx_http_realip_module
  372. --with-http_addition_module enable ngx_http_addition_module
  373. --with-http_xslt_module enable ngx_http_xslt_module
  374. --with-http_xslt_module=dynamic enable dynamic ngx_http_xslt_module
  375. --with-http_image_filter_module enable ngx_http_image_filter_module
  376. --with-http_image_filter_module=dynamic
  377. enable dynamic ngx_http_image_filter_module
  378. --with-http_geoip_module enable ngx_http_geoip_module
  379. --with-http_geoip_module=dynamic enable dynamic ngx_http_geoip_module
  380. --with-http_sub_module enable ngx_http_sub_module
  381. --with-http_dav_module enable ngx_http_dav_module
  382. --with-http_flv_module enable ngx_http_flv_module
  383. --with-http_mp4_module enable ngx_http_mp4_module
  384. --with-http_gunzip_module enable ngx_http_gunzip_module
  385. --with-http_gzip_static_module enable ngx_http_gzip_static_module
  386. --with-http_auth_request_module enable ngx_http_auth_request_module
  387. --with-http_random_index_module enable ngx_http_random_index_module
  388. --with-http_secure_link_module enable ngx_http_secure_link_module
  389. --with-http_degradation_module enable ngx_http_degradation_module
  390. --with-http_slice_module enable ngx_http_slice_module
  391. --with-http_stub_status_module enable ngx_http_stub_status_module
  392. --without-http_charset_module disable ngx_http_charset_module
  393. --without-http_gzip_module disable ngx_http_gzip_module
  394. --without-http_ssi_module disable ngx_http_ssi_module
  395. --without-http_userid_module disable ngx_http_userid_module
  396. --without-http_access_module disable ngx_http_access_module
  397. --without-http_auth_basic_module disable ngx_http_auth_basic_module
  398. --without-http_mirror_module disable ngx_http_mirror_module
  399. --without-http_autoindex_module disable ngx_http_autoindex_module
  400. --without-http_geo_module disable ngx_http_geo_module
  401. --without-http_map_module disable ngx_http_map_module
  402. --without-http_split_clients_module disable ngx_http_split_clients_module
  403. --without-http_referer_module disable ngx_http_referer_module
  404. --without-http_rewrite_module disable ngx_http_rewrite_module
  405. --without-http_proxy_module disable ngx_http_proxy_module
  406. --without-http_fastcgi_module disable ngx_http_fastcgi_module
  407. --without-http_uwsgi_module disable ngx_http_uwsgi_module
  408. --without-http_scgi_module disable ngx_http_scgi_module
  409. --without-http_grpc_module disable ngx_http_grpc_module
  410. --without-http_memcached_module disable ngx_http_memcached_module
  411. --without-http_limit_conn_module disable ngx_http_limit_conn_module
  412. --without-http_limit_req_module disable ngx_http_limit_req_module
  413. --without-http_empty_gif_module disable ngx_http_empty_gif_module
  414. --without-http_browser_module disable ngx_http_browser_module
  415. --without-http_upstream_hash_module
  416. disable ngx_http_upstream_hash_module
  417. --without-http_upstream_ip_hash_module
  418. disable ngx_http_upstream_ip_hash_module
  419. --without-http_upstream_least_conn_module
  420. disable ngx_http_upstream_least_conn_module
  421. --without-http_upstream_random_module
  422. disable ngx_http_upstream_random_module
  423. --without-http_upstream_keepalive_module
  424. disable ngx_http_upstream_keepalive_module
  425. --without-http_upstream_zone_module
  426. disable ngx_http_upstream_zone_module
  427. --with-http_perl_module enable ngx_http_perl_module
  428. --with-http_perl_module=dynamic enable dynamic ngx_http_perl_module
  429. --with-perl_modules_path=PATH set Perl modules path
  430. --with-perl=PATH set perl binary pathname
  431. --http-log-path=PATH set http access log pathname
  432. --http-client-body-temp-path=PATH set path to store
  433. http client request body temporary files
  434. --http-proxy-temp-path=PATH set path to store
  435. http proxy temporary files
  436. --http-fastcgi-temp-path=PATH set path to store
  437. http fastcgi temporary files
  438. --http-uwsgi-temp-path=PATH set path to store
  439. http uwsgi temporary files
  440. --http-scgi-temp-path=PATH set path to store
  441. http scgi temporary files
  442. --without-http disable HTTP server
  443. --without-http-cache disable HTTP cache
  444. --with-mail enable POP3/IMAP4/SMTP proxy module
  445. --with-mail=dynamic enable dynamic POP3/IMAP4/SMTP proxy module
  446. --with-mail_ssl_module enable ngx_mail_ssl_module
  447. --without-mail_pop3_module disable ngx_mail_pop3_module
  448. --without-mail_imap_module disable ngx_mail_imap_module
  449. --without-mail_smtp_module disable ngx_mail_smtp_module
  450. --with-stream enable TCP/UDP proxy module
  451. --with-stream=dynamic enable dynamic TCP/UDP proxy module
  452. --with-stream_ssl_module enable ngx_stream_ssl_module
  453. --with-stream_realip_module enable ngx_stream_realip_module
  454. --with-stream_geoip_module enable ngx_stream_geoip_module
  455. --with-stream_geoip_module=dynamic enable dynamic ngx_stream_geoip_module
  456. --with-stream_ssl_preread_module enable ngx_stream_ssl_preread_module
  457. --without-stream_limit_conn_module disable ngx_stream_limit_conn_module
  458. --without-stream_access_module disable ngx_stream_access_module
  459. --without-stream_geo_module disable ngx_stream_geo_module
  460. --without-stream_map_module disable ngx_stream_map_module
  461. --without-stream_split_clients_module
  462. disable ngx_stream_split_clients_module
  463. --without-stream_return_module disable ngx_stream_return_module
  464. --without-stream_set_module disable ngx_stream_set_module
  465. --without-stream_upstream_hash_module
  466. disable ngx_stream_upstream_hash_module
  467. --without-stream_upstream_least_conn_module
  468. disable ngx_stream_upstream_least_conn_module
  469. --without-stream_upstream_random_module
  470. disable ngx_stream_upstream_random_module
  471. --without-stream_upstream_zone_module
  472. disable ngx_stream_upstream_zone_module
  473. --with-google_perftools_module enable ngx_google_perftools_module
  474. --with-cpp_test_module enable ngx_cpp_test_module
  475. --add-module=PATH enable external module
  476. --add-dynamic-module=PATH enable dynamic external module
  477. --with-compat dynamic modules compatibility
  478. --with-cc=PATH set C compiler pathname
  479. --with-cpp=PATH set C preprocessor pathname
  480. --with-cc-opt=OPTIONS set additional C compiler options
  481. --with-ld-opt=OPTIONS set additional linker options
  482. --with-cpu-opt=CPU build for the specified CPU, valid values:
  483. pentium, pentiumpro, pentium3, pentium4,
  484. athlon, opteron, sparc32, sparc64, ppc64
  485. --without-pcre disable PCRE library usage
  486. --with-pcre force PCRE library usage
  487. --with-pcre=DIR set path to PCRE library sources
  488. --with-pcre-opt=OPTIONS set additional build options for PCRE
  489. --with-pcre-jit build PCRE with JIT compilation support
  490. --with-zlib=DIR set path to zlib library sources
  491. --with-zlib-opt=OPTIONS set additional build options for zlib
  492. --with-zlib-asm=CPU use zlib assembler sources optimized
  493. for the specified CPU, valid values:
  494. pentium, pentiumpro
  495. --with-libatomic force libatomic_ops library usage
  496. --with-libatomic=DIR set path to libatomic_ops library sources
  497. --with-openssl=DIR set path to OpenSSL library sources
  498. --with-openssl-opt=OPTIONS set additional build options for OpenSSL
  499. --with-debug enable debug logging
  500. END
  501. exit 1
  502. fi
  503. if [ ".$NGX_PLATFORM" = ".win32" ]; then
  504. NGX_WINE=$WINE
  505. fi
  506. NGX_SBIN_PATH=${NGX_SBIN_PATH:-sbin/nginx}
  507. NGX_MODULES_PATH=${NGX_MODULES_PATH:-modules}
  508. NGX_CONF_PATH=${NGX_CONF_PATH:-conf/nginx.conf}
  509. NGX_CONF_PREFIX=`dirname $NGX_CONF_PATH`
  510. NGX_PID_PATH=${NGX_PID_PATH:-logs/nginx.pid}
  511. NGX_LOCK_PATH=${NGX_LOCK_PATH:-logs/nginx.lock}
  512. if [ ".$NGX_ERROR_LOG_PATH" = ".stderr" ]; then
  513. NGX_ERROR_LOG_PATH=
  514. else
  515. NGX_ERROR_LOG_PATH=${NGX_ERROR_LOG_PATH:-logs/error.log}
  516. fi
  517. NGX_HTTP_LOG_PATH=${NGX_HTTP_LOG_PATH:-logs/access.log}
  518. NGX_HTTP_CLIENT_TEMP_PATH=${NGX_HTTP_CLIENT_TEMP_PATH:-client_body_temp}
  519. NGX_HTTP_PROXY_TEMP_PATH=${NGX_HTTP_PROXY_TEMP_PATH:-proxy_temp}
  520. NGX_HTTP_FASTCGI_TEMP_PATH=${NGX_HTTP_FASTCGI_TEMP_PATH:-fastcgi_temp}
  521. NGX_HTTP_UWSGI_TEMP_PATH=${NGX_HTTP_UWSGI_TEMP_PATH:-uwsgi_temp}
  522. NGX_HTTP_SCGI_TEMP_PATH=${NGX_HTTP_SCGI_TEMP_PATH:-scgi_temp}
  523. case ".$NGX_PERL_MODULES" in
  524. ./*)
  525. ;;
  526. .)
  527. ;;
  528. *)
  529. NGX_PERL_MODULES=$NGX_PREFIX/$NGX_PERL_MODULES
  530. ;;
  531. esac