options 23 KB

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