options 24 KB

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