blob: aca314b9332f663232e96b1689549a1c97863c1e [file] [log] [blame]
Igor Sysoeva8fa0a62003-11-25 20:44:56 +00001
Igor Sysoevff8da912004-09-29 16:00:49 +00002# Copyright (C) Igor Sysoev
3
Igor Sysoevc0edbcc2004-10-21 15:34:38 +00004
Igor Sysoevdc867cd2003-12-14 20:10:27 +00005help=no
Igor Sysoeva8fa0a62003-11-25 20:44:56 +00006
Igor Sysoevf6906042004-11-25 16:17:31 +00007NGX_PREFIX=
8NGX_SBIN_PATH=
Igor Sysoeva1df4162007-07-29 18:05:45 +00009NGX_CONF_PREFIX=
Igor Sysoevf6906042004-11-25 16:17:31 +000010NGX_CONF_PATH=
11NGX_ERROR_LOG_PATH=
12NGX_PID_PATH=
Igor Sysoevffe71442006-02-08 15:33:12 +000013NGX_LOCK_PATH=
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000014NGX_USER=
15NGX_GROUP=
Igor Sysoev090849d2004-05-18 20:28:54 +000016
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000017CC=${CC:-gcc}
Igor Sysoeva893eab2004-03-11 21:34:52 +000018CPP=
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000019NGX_OBJS=objs
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000020
Igor Sysoevf6906042004-11-25 16:17:31 +000021NGX_DEBUG=NO
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000022NGX_CC_OPT=
23NGX_LD_OPT=
Igor Sysoev7b908342004-03-10 20:56:39 +000024CPU=NO
Igor Sysoev24b56c92004-03-10 17:55:19 +000025
Igor Sysoev274b63e2007-09-19 12:14:05 +000026NGX_RPATH=NO
27
Igor Sysoevf6906042004-11-25 16:17:31 +000028NGX_TEST_BUILD_DEVPOLL=NO
Igor Sysoev4524fb02006-09-26 12:20:12 +000029NGX_TEST_BUILD_EVENTPORT=NO
Igor Sysoevf6906042004-11-25 16:17:31 +000030NGX_TEST_BUILD_EPOLL=NO
31NGX_TEST_BUILD_RTSIG=NO
Igor Sysoev42b12b32004-12-02 18:40:46 +000032NGX_TEST_BUILD_SOLARIS_SENDFILEV=NO
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000033
Igor Sysoevf6906042004-11-25 16:17:31 +000034NGX_PLATFORM=
Igor Sysoev1b735832004-11-11 14:07:14 +000035NGX_WINE=
36
Igor Sysoeva4b16df2004-02-02 21:19:52 +000037EVENT_FOUND=NO
38
Igor Sysoev9139cd22004-02-17 17:53:12 +000039EVENT_RTSIG=NO
Igor Sysoeva4b16df2004-02-02 21:19:52 +000040EVENT_SELECT=NO
41EVENT_POLL=NO
42EVENT_AIO=NO
Igor Sysoev5c8c52f2004-01-23 09:26:18 +000043
Igor Sysoevb54698b2004-02-23 20:57:12 +000044USE_THREADS=NO
45
Igor Sysoeva35eacc2009-02-21 07:02:02 +000046NGX_IPV6=NO
47
Igor Sysoev980a9242004-09-05 19:54:02 +000048HTTP=YES
Igor Sysoev02025fd2005-01-18 13:03:58 +000049
50NGX_HTTP_LOG_PATH=
51NGX_HTTP_CLIENT_TEMP_PATH=
52NGX_HTTP_PROXY_TEMP_PATH=
53NGX_HTTP_FASTCGI_TEMP_PATH=
54
Igor Sysoev52859f22009-03-23 13:14:51 +000055HTTP_CACHE=YES
Igor Sysoev3d5c0fc2004-06-22 16:43:09 +000056HTTP_CHARSET=YES
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000057HTTP_GZIP=YES
Igor Sysoev75569452004-07-08 15:17:47 +000058HTTP_SSL=NO
Igor Sysoev11d75322005-03-01 15:20:36 +000059HTTP_SSI=YES
Igor Sysoev899b44e2005-05-12 14:58:06 +000060HTTP_POSTPONE=NO
Igor Sysoev09c684b2005-11-09 17:25:55 +000061HTTP_REALIP=NO
Igor Sysoev1ae389d2008-08-04 14:48:15 +000062HTTP_XSLT=NO
Igor Sysoeve2ada612009-05-01 18:42:09 +000063HTTP_IMAGE_FILTER=NO
Igor Sysoevd9bb8e32007-04-19 17:54:23 +000064HTTP_SUB=NO
Igor Sysoev6d16e1e2006-04-05 13:40:54 +000065HTTP_ADDITION=NO
Igor Sysoev8a2b2fb2006-04-14 09:53:38 +000066HTTP_DAV=NO
Igor Sysoev59f3aa32004-06-24 16:07:04 +000067HTTP_ACCESS=YES
Igor Sysoev4d656dc2005-03-22 16:02:46 +000068HTTP_AUTH_BASIC=YES
Igor Sysoev967fd632004-08-27 15:40:59 +000069HTTP_USERID=YES
Igor Sysoev723e6cc2004-10-25 15:29:23 +000070HTTP_AUTOINDEX=YES
Igor Sysoev2e2b81d2008-09-05 15:45:55 +000071HTTP_RANDOM_INDEX=NO
Igor Sysoev6d2a14a2004-09-27 16:03:21 +000072HTTP_STATUS=NO
Igor Sysoev805d9db2005-02-03 19:33:37 +000073HTTP_GEO=YES
Igor Sysoev24025022005-12-16 15:07:08 +000074HTTP_MAP=YES
Igor Sysoev0e5dc5c2005-11-15 13:30:52 +000075HTTP_REFERER=YES
Igor Sysoevc83f6832004-06-24 07:53:37 +000076HTTP_REWRITE=YES
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000077HTTP_PROXY=YES
Igor Sysoev02025fd2005-01-18 13:03:58 +000078HTTP_FASTCGI=YES
Igor Sysoev9bf11aa2006-01-16 14:56:53 +000079HTTP_PERL=NO
Igor Sysoevc31a9bb2005-11-26 10:11:11 +000080HTTP_MEMCACHED=YES
Igor Sysoev138e3842007-01-06 18:52:46 +000081HTTP_LIMIT_ZONE=YES
Igor Sysoevabe378e2008-11-10 15:22:33 +000082HTTP_LIMIT_REQ=YES
Igor Sysoev0e5dc5c2005-11-15 13:30:52 +000083HTTP_EMPTY_GIF=YES
Igor Sysoev3383ff62006-09-18 12:25:07 +000084HTTP_BROWSER=YES
Igor Sysoeve52991e2008-09-27 13:22:10 +000085HTTP_SECURE_LINK=NO
Igor Sysoevb5050062006-10-09 14:17:36 +000086HTTP_FLV=NO
Igor Sysoevc16b0052007-12-27 14:21:59 +000087HTTP_GZIP_STATIC=NO
Igor Sysoev3d2fd182006-12-04 16:46:13 +000088HTTP_UPSTREAM_IP_HASH=YES
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000089
Igor Sysoevaa828612005-02-09 14:31:07 +000090# STUB
91HTTP_STUB_STATUS=NO
92
Igor Sysoev02c8d182007-03-19 13:36:56 +000093MAIL=NO
94MAIL_SSL=NO
Igor Sysoev48714082007-09-15 16:51:16 +000095MAIL_POP3=YES
96MAIL_IMAP=YES
97MAIL_SMTP=YES
Igor Sysoev59cf56c2004-09-07 15:29:22 +000098
Igor Sysoev1ebfead2005-02-16 13:40:36 +000099NGX_ADDONS=
Igor Sysoevd43bee82004-11-20 19:52:20 +0000100
Igor Sysoeve9b2cb12004-02-09 20:47:18 +0000101USE_PCRE=NO
Igor Sysoev43c3cd92004-02-19 08:45:27 +0000102PCRE=NONE
Igor Sysoeva893eab2004-03-11 21:34:52 +0000103PCRE_OPT=
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000104
Igor Sysoev0599b112004-07-25 18:34:14 +0000105USE_OPENSSL=NO
106OPENSSL=NONE
107
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000108USE_MD5=NO
Igor Sysoev7af6b162004-02-09 07:46:43 +0000109MD5=NONE
Igor Sysoeva893eab2004-03-11 21:34:52 +0000110MD5_OPT=
Igor Sysoev7b908342004-03-10 20:56:39 +0000111MD5_ASM=NO
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000112
Igor Sysoevafd7ec52006-05-29 17:28:12 +0000113USE_SHA1=NO
114SHA1=NONE
115SHA1_OPT=
116SHA1_ASM=NO
117
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000118USE_ZLIB=NO
Igor Sysoev7af6b162004-02-09 07:46:43 +0000119ZLIB=NONE
Igor Sysoeva893eab2004-03-11 21:34:52 +0000120ZLIB_OPT=
Igor Sysoev7b908342004-03-10 20:56:39 +0000121ZLIB_ASM=NO
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000122
Igor Sysoev9bf11aa2006-01-16 14:56:53 +0000123USE_PERL=NO
124NGX_PERL=perl
125
Igor Sysoev1ae389d2008-08-04 14:48:15 +0000126USE_LIBXSLT=NO
Igor Sysoeve2ada612009-05-01 18:42:09 +0000127USE_LIBGD=NO
Igor Sysoev1ae389d2008-08-04 14:48:15 +0000128
Igor Sysoev85dd8fc2008-03-18 10:36:27 +0000129NGX_GOOGLE_PERFTOOLS=NO
Igor Sysoeve24b57a2008-08-05 19:32:50 +0000130NGX_CPP_TEST=NO
Igor Sysoev85dd8fc2008-03-18 10:36:27 +0000131
Igor Sysoev24025022005-12-16 15:07:08 +0000132NGX_CPU_CACHE_LINE=
133
Igor Sysoev0e60e4f2009-04-26 19:37:38 +0000134opt=
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000135
136for option
137do
Igor Sysoevcfa2ee22009-05-18 16:50:32 +0000138 opt="$opt `echo $option | sed -e \"s/\(--[^=]*=\)\(.* .*\)/\1'\2'/\"`"
Igor Sysoev0e60e4f2009-04-26 19:37:38 +0000139
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000140 case "$option" in
141 -*=*) value=`echo "$option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
142 *) value="" ;;
143 esac
144
145 case "$option" in
Igor Sysoevdc867cd2003-12-14 20:10:27 +0000146 --help) help=yes ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000147
Igor Sysoev5ef370d2009-04-27 11:32:33 +0000148 --prefix=) NGX_PREFIX="!" ;;
Igor Sysoevf6906042004-11-25 16:17:31 +0000149 --prefix=*) NGX_PREFIX="$value" ;;
150 --sbin-path=*) NGX_SBIN_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" ;;
Igor Sysoevffe71442006-02-08 15:33:12 +0000154 --lock-path=*) NGX_LOCK_PATH="$value" ;;
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000155 --user=*) NGX_USER="$value" ;;
156 --group=*) NGX_GROUP="$value" ;;
Igor Sysoev090849d2004-05-18 20:28:54 +0000157
Igor Sysoevf6906042004-11-25 16:17:31 +0000158 --crossbuild=*) NGX_PLATFORM="$value" ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000159
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000160 --builddir=*) NGX_OBJS="$value" ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000161
Igor Sysoev9139cd22004-02-17 17:53:12 +0000162 --with-rtsig_module) EVENT_RTSIG=YES ;;
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000163 --with-select_module) EVENT_SELECT=YES ;;
Igor Sysoeve9b2cb12004-02-09 20:47:18 +0000164 --without-select_module) EVENT_SELECT=NONE ;;
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000165 --with-poll_module) EVENT_POLL=YES ;;
Igor Sysoeve9b2cb12004-02-09 20:47:18 +0000166 --without-poll_module) EVENT_POLL=NONE ;;
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000167 --with-aio_module) EVENT_AIO=YES ;;
Igor Sysoev5c8c52f2004-01-23 09:26:18 +0000168
Igor Sysoev84433602008-04-29 09:27:55 +0000169 #--with-threads=*) USE_THREADS="$value" ;;
170 #--with-threads) USE_THREADS="pthreads" ;;
Igor Sysoevb54698b2004-02-23 20:57:12 +0000171
Igor Sysoeva35eacc2009-02-21 07:02:02 +0000172 --with-ipv6) NGX_IPV6=YES ;;
173
Igor Sysoev980a9242004-09-05 19:54:02 +0000174 --without-http) HTTP=NO ;;
Igor Sysoev52859f22009-03-23 13:14:51 +0000175 --without-http-cache) HTTP_CACHE=NO ;;
176
Igor Sysoevf6906042004-11-25 16:17:31 +0000177 --http-log-path=*) NGX_HTTP_LOG_PATH="$value" ;;
Igor Sysoev02025fd2005-01-18 13:03:58 +0000178 --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" ;;
Igor Sysoev980a9242004-09-05 19:54:02 +0000181
Igor Sysoev75569452004-07-08 15:17:47 +0000182 --with-http_ssl_module) HTTP_SSL=YES ;;
Igor Sysoev09c684b2005-11-09 17:25:55 +0000183 --with-http_realip_module) HTTP_REALIP=YES ;;
Igor Sysoev6d16e1e2006-04-05 13:40:54 +0000184 --with-http_addition_module) HTTP_ADDITION=YES ;;
Igor Sysoev1ae389d2008-08-04 14:48:15 +0000185 --with-http_xslt_module) HTTP_XSLT=YES ;;
Igor Sysoeve2ada612009-05-01 18:42:09 +0000186 --with-http_image_filter_module) HTTP_IMAGE_FILTER=YES ;;
Igor Sysoevd9bb8e32007-04-19 17:54:23 +0000187 --with-http_sub_module) HTTP_SUB=YES ;;
Igor Sysoev8a2b2fb2006-04-14 09:53:38 +0000188 --with-http_dav_module) HTTP_DAV=YES ;;
Igor Sysoevb5050062006-10-09 14:17:36 +0000189 --with-http_flv_module) HTTP_FLV=YES ;;
Igor Sysoevc16b0052007-12-27 14:21:59 +0000190 --with-http_gzip_static_module) HTTP_GZIP_STATIC=YES ;;
Igor Sysoev2e2b81d2008-09-05 15:45:55 +0000191 --with-http_random_index_module) HTTP_RANDOM_INDEX=YES ;;
Igor Sysoeve52991e2008-09-27 13:22:10 +0000192 --with-http_secure_link_module) HTTP_SECURE_LINK=YES ;;
Igor Sysoev8a2b2fb2006-04-14 09:53:38 +0000193
Igor Sysoev3d5c0fc2004-06-22 16:43:09 +0000194 --without-http_charset_module) HTTP_CHARSET=NO ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000195 --without-http_gzip_module) HTTP_GZIP=NO ;;
Igor Sysoev75569452004-07-08 15:17:47 +0000196 --without-http_ssi_module) HTTP_SSI=NO ;;
Igor Sysoev967fd632004-08-27 15:40:59 +0000197 --without-http_userid_module) HTTP_USERID=NO ;;
Igor Sysoeva7c4a2a2004-08-29 03:55:41 +0000198 --without-http_access_module) HTTP_ACCESS=NO ;;
Igor Sysoev4d656dc2005-03-22 16:02:46 +0000199 --without-http_auth_basic_module) HTTP_AUTH_BASIC=NO ;;
Igor Sysoev723e6cc2004-10-25 15:29:23 +0000200 --without-http_autoindex_module) HTTP_AUTOINDEX=NO ;;
Igor Sysoevc83f6832004-06-24 07:53:37 +0000201 --without-http_status_module) HTTP_STATUS=NO ;;
Igor Sysoev805d9db2005-02-03 19:33:37 +0000202 --without-http_geo_module) HTTP_GEO=NO ;;
Igor Sysoev24025022005-12-16 15:07:08 +0000203 --without-http_map_module) HTTP_MAP=NO ;;
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000204 --without-http_referer_module) HTTP_REFERER=NO ;;
Igor Sysoevc83f6832004-06-24 07:53:37 +0000205 --without-http_rewrite_module) HTTP_REWRITE=NO ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000206 --without-http_proxy_module) HTTP_PROXY=NO ;;
Igor Sysoev02025fd2005-01-18 13:03:58 +0000207 --without-http_fastcgi_module) HTTP_FASTCGI=NO ;;
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000208 --without-http_memcached_module) HTTP_MEMCACHED=NO ;;
Igor Sysoev138e3842007-01-06 18:52:46 +0000209 --without-http_limit_zone_module) HTTP_LIMIT_ZONE=NO ;;
Igor Sysoevabe378e2008-11-10 15:22:33 +0000210 --without-http_limit_req_module) HTTP_LIMIT_REQ=NO ;;
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000211 --without-http_empty_gif_module) HTTP_EMPTY_GIF=NO ;;
Igor Sysoev3383ff62006-09-18 12:25:07 +0000212 --without-http_browser_module) HTTP_BROWSER=NO ;;
Igor Sysoev3d2fd182006-12-04 16:46:13 +0000213 --without-http_upstream_ip_hash_module) HTTP_UPSTREAM_IP_HASH=NO ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000214
Igor Sysoev9bf11aa2006-01-16 14:56:53 +0000215 --with-http_perl_module) HTTP_PERL=YES ;;
216 --with-perl_modules_path=*) NGX_PERL_MODULES="$value" ;;
217 --with-perl=*) NGX_PERL="$value" ;;
218
Igor Sysoevaa828612005-02-09 14:31:07 +0000219 # STUB
220 --with-http_stub_status_module) HTTP_STUB_STATUS=YES ;;
221
Igor Sysoev02c8d182007-03-19 13:36:56 +0000222 --with-mail) MAIL=YES ;;
223 --with-mail_ssl_module) MAIL_SSL=YES ;;
224 # STUB
225 --with-imap) MAIL=YES ;;
226 --with-imap_ssl_module) MAIL_SSL=YES ;;
Igor Sysoev48714082007-09-15 16:51:16 +0000227 --without-mail_pop3_module) MAIL_POP3=NO ;;
228 --without-mail_imap_module) MAIL_IMAP=NO ;;
229 --without-mail_smtp_module) MAIL_SMTP=NO ;;
Igor Sysoev59cf56c2004-09-07 15:29:22 +0000230
Igor Sysoev85dd8fc2008-03-18 10:36:27 +0000231 --with-google_perftools_module) NGX_GOOGLE_PERFTOOLS=YES ;;
Igor Sysoev49f06852008-08-13 08:29:27 +0000232 --with-cpp_test_module) NGX_CPP_TEST=YES ;;
Igor Sysoev85dd8fc2008-03-18 10:36:27 +0000233
Igor Sysoev1ebfead2005-02-16 13:40:36 +0000234 --add-module=*) NGX_ADDONS="$NGX_ADDONS $value" ;;
Igor Sysoevd43bee82004-11-20 19:52:20 +0000235
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000236 --with-cc=*) CC="$value" ;;
Igor Sysoeva893eab2004-03-11 21:34:52 +0000237 --with-cpp=*) CPP="$value" ;;
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000238 --with-cc-opt=*) NGX_CC_OPT="$value" ;;
239 --with-ld-opt=*) NGX_LD_OPT="$value" ;;
Igor Sysoev7b908342004-03-10 20:56:39 +0000240 --with-cpu-opt=*) CPU="$value" ;;
Igor Sysoevf6906042004-11-25 16:17:31 +0000241 --with-debug) NGX_DEBUG=YES ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000242
Igor Sysoevbb1ba3f2004-02-19 16:48:14 +0000243 --without-pcre) USE_PCRE=DISABLED ;;
Igor Sysoeve231e582009-03-19 16:06:32 +0000244 --with-pcre) USE_PCRE=YES ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000245 --with-pcre=*) PCRE="$value" ;;
Igor Sysoev7b908342004-03-10 20:56:39 +0000246 --with-pcre-opt=*) PCRE_OPT="$value" ;;
247
Igor Sysoev0599b112004-07-25 18:34:14 +0000248 --with-openssl=*) OPENSSL="$value" ;;
Igor Sysoevc1571722005-03-19 12:38:37 +0000249 --with-openssl-opt=*) OPENSSL_OPT="$value" ;;
Igor Sysoev0599b112004-07-25 18:34:14 +0000250
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000251 --with-md5=*) MD5="$value" ;;
Igor Sysoev7b908342004-03-10 20:56:39 +0000252 --with-md5-opt=*) MD5_OPT="$value" ;;
253 --with-md5-asm) MD5_ASM=YES ;;
254
Igor Sysoevafd7ec52006-05-29 17:28:12 +0000255 --with-sha1=*) SHA1="$value" ;;
256 --with-sha1-opt=*) SHA1_OPT="$value" ;;
257 --with-sha1-asm) SHA1_ASM=YES ;;
258
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000259 --with-zlib=*) ZLIB="$value" ;;
Igor Sysoev24b56c92004-03-10 17:55:19 +0000260 --with-zlib-opt=*) ZLIB_OPT="$value" ;;
Igor Sysoev7b908342004-03-10 20:56:39 +0000261 --with-zlib-asm=*) ZLIB_ASM="$value" ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000262
Igor Sysoevf6906042004-11-25 16:17:31 +0000263 --test-build-devpoll) NGX_TEST_BUILD_DEVPOLL=YES ;;
Igor Sysoev4524fb02006-09-26 12:20:12 +0000264 --test-build-eventport) NGX_TEST_BUILD_EVENTPORT=YES ;;
Igor Sysoevf6906042004-11-25 16:17:31 +0000265 --test-build-epoll) NGX_TEST_BUILD_EPOLL=YES ;;
266 --test-build-rtsig) NGX_TEST_BUILD_RTSIG=YES ;;
Igor Sysoev42b12b32004-12-02 18:40:46 +0000267 --test-build-solaris-sendfilev) NGX_TEST_BUILD_SOLARIS_SENDFILEV=YES ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000268
269 *)
270 echo "$0: error: invalid option \"$option\""
271 exit 1
272 ;;
273 esac
274done
275
276
Igor Sysoev0e60e4f2009-04-26 19:37:38 +0000277NGX_CONFIGURE="$opt"
278
279
Igor Sysoevdc867cd2003-12-14 20:10:27 +0000280if [ $help = yes ]; then
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000281
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000282cat << END
Igor Sysoev5c8c52f2004-01-23 09:26:18 +0000283
Igor Sysoev02025fd2005-01-18 13:03:58 +0000284 --help this message
Igor Sysoev5c8c52f2004-01-23 09:26:18 +0000285
Igor Sysoev02025fd2005-01-18 13:03:58 +0000286 --prefix=PATH set the installation prefix
287 --sbin-path=PATH set path to the nginx binary file
288 --conf-path=PATH set path to the nginx.conf file
289 --error-log-path=PATH set path to the error log
290 --pid-path=PATH set path to nginx.pid file
Igor Sysoevffe71442006-02-08 15:33:12 +0000291 --lock-path=PATH set path to nginx.lock file
Igor Sysoev5c8c52f2004-01-23 09:26:18 +0000292
Igor Sysoev02025fd2005-01-18 13:03:58 +0000293 --user=USER set non-privilege user
294 for the worker processes
295 --group=GROUP set non-privilege group
296 for the worker processes
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000297
Igor Sysoev02025fd2005-01-18 13:03:58 +0000298 --builddir=DIR set the build directory
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000299
Igor Sysoev02025fd2005-01-18 13:03:58 +0000300 --with-rtsig_module enable rtsig module
301 --with-select_module enable select module
302 --without-select_module disable select module
303 --with-poll_module enable poll module
304 --without-poll_module disable poll module
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000305
Igor Sysoeva35eacc2009-02-21 07:02:02 +0000306 --with-ipv6 enable ipv6 support
307
Igor Sysoev02025fd2005-01-18 13:03:58 +0000308 --with-http_ssl_module enable ngx_http_ssl_module
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000309 --with-http_realip_module enable ngx_http_realip_module
Igor Sysoevcdf609a2006-04-17 19:55:41 +0000310 --with-http_addition_module enable ngx_http_addition_module
Igor Sysoev1ae389d2008-08-04 14:48:15 +0000311 --with-http_xslt_module enable ngx_http_xslt_module
Igor Sysoev59eed352009-05-01 19:14:10 +0000312 --with-http_image_filter_module enable ngx_http_image_filter_module
Igor Sysoevd9bb8e32007-04-19 17:54:23 +0000313 --with-http_sub_module enable ngx_http_sub_module
Igor Sysoevcdf609a2006-04-17 19:55:41 +0000314 --with-http_dav_module enable ngx_http_dav_module
Igor Sysoevb5050062006-10-09 14:17:36 +0000315 --with-http_flv_module enable ngx_http_flv_module
Igor Sysoevc16b0052007-12-27 14:21:59 +0000316 --with-http_gzip_static_module enable ngx_http_gzip_static_module
Igor Sysoev2e2b81d2008-09-05 15:45:55 +0000317 --with-http_random_index_module enable ngx_http_random_index_module
Igor Sysoeve52991e2008-09-27 13:22:10 +0000318 --with-http_secure_link_module enable ngx_http_secure_link_module
Igor Sysoev60e84402007-05-01 19:55:25 +0000319 --with-http_stub_status_module enable ngx_http_stub_status_module
Igor Sysoevcdf609a2006-04-17 19:55:41 +0000320
Igor Sysoev02025fd2005-01-18 13:03:58 +0000321 --without-http_charset_module disable ngx_http_charset_module
322 --without-http_gzip_module disable ngx_http_gzip_module
Igor Sysoevc1571722005-03-19 12:38:37 +0000323 --without-http_ssi_module disable ngx_http_ssi_module
Igor Sysoev02025fd2005-01-18 13:03:58 +0000324 --without-http_userid_module disable ngx_http_userid_module
325 --without-http_access_module disable ngx_http_access_module
Igor Sysoev4d656dc2005-03-22 16:02:46 +0000326 --without-http_auth_basic_module disable ngx_http_auth_basic_module
Igor Sysoev02025fd2005-01-18 13:03:58 +0000327 --without-http_autoindex_module disable ngx_http_autoindex_module
Igor Sysoev805d9db2005-02-03 19:33:37 +0000328 --without-http_geo_module disable ngx_http_geo_module
Igor Sysoev347f7fe2006-09-26 21:15:02 +0000329 --without-http_map_module disable ngx_http_map_module
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000330 --without-http_referer_module disable ngx_http_referer_module
Igor Sysoev02025fd2005-01-18 13:03:58 +0000331 --without-http_rewrite_module disable ngx_http_rewrite_module
332 --without-http_proxy_module disable ngx_http_proxy_module
333 --without-http_fastcgi_module disable ngx_http_fastcgi_module
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000334 --without-http_memcached_module disable ngx_http_memcached_module
Igor Sysoev138e3842007-01-06 18:52:46 +0000335 --without-http_limit_zone_module disable ngx_http_limit_zone_module
Igor Sysoevabe378e2008-11-10 15:22:33 +0000336 --without-http_limit_req_module disable ngx_http_limit_req_module
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000337 --without-http_empty_gif_module disable ngx_http_empty_gif_module
Igor Sysoev347f7fe2006-09-26 21:15:02 +0000338 --without-http_browser_module disable ngx_http_browser_module
Igor Sysoev3d2fd182006-12-04 16:46:13 +0000339 --without-http_upstream_ip_hash_module
340 disable ngx_http_upstream_ip_hash_module
Igor Sysoev02025fd2005-01-18 13:03:58 +0000341
Igor Sysoev9bf11aa2006-01-16 14:56:53 +0000342 --with-http_perl_module enable ngx_http_perl_module
343 --with-perl_modules_path=PATH set path to the perl modules
344 --with-perl=PATH set path to the perl binary
345
Igor Sysoev02025fd2005-01-18 13:03:58 +0000346 --http-log-path=PATH set path to the http access log
347 --http-client-body-temp-path=PATH set path to the http client request body
Igor Sysoevcdf609a2006-04-17 19:55:41 +0000348 temporary files
349 --http-proxy-temp-path=PATH set path to the http proxy temporary files
Igor Sysoev02025fd2005-01-18 13:03:58 +0000350 --http-fastcgi-temp-path=PATH set path to the http fastcgi temporary
Igor Sysoevcdf609a2006-04-17 19:55:41 +0000351 files
Igor Sysoev02025fd2005-01-18 13:03:58 +0000352
Igor Sysoev187b7d92005-07-14 12:51:53 +0000353 --without-http disable HTTP server
Igor Sysoev52859f22009-03-23 13:14:51 +0000354 --without-http-cache disable HTTP cache
Igor Sysoev187b7d92005-07-14 12:51:53 +0000355
Igor Sysoev884d6342007-09-21 16:14:17 +0000356 --with-mail enable POP3/IMAP4/SMTP proxy module
Igor Sysoev02c8d182007-03-19 13:36:56 +0000357 --with-mail_ssl_module enable ngx_mail_ssl_module
Igor Sysoev884d6342007-09-21 16:14:17 +0000358 --without-mail_pop3_module disable ngx_mail_pop3_module
359 --without-mail_imap_module disable ngx_mail_imap_module
360 --without-mail_smtp_module disable ngx_mail_smtp_module
Igor Sysoev187b7d92005-07-14 12:51:53 +0000361
Igor Sysoev85dd8fc2008-03-18 10:36:27 +0000362 --with-google_perftools_module enable ngx_google_perftools_module
Igor Sysoeve24b57a2008-08-05 19:32:50 +0000363 --with-cpp_test_module enable ngx_cpp_test_module
Igor Sysoev85dd8fc2008-03-18 10:36:27 +0000364
Igor Sysoev60e84402007-05-01 19:55:25 +0000365 --add-module=PATH enable an external module
366
Igor Sysoev02025fd2005-01-18 13:03:58 +0000367 --with-cc=PATH set path to C compiler
368 --with-cpp=PATH set path to C preprocessor
369 --with-cc-opt=OPTIONS set additional options for C compiler
370 --with-ld-opt=OPTIONS set additional options for linker
371 --with-cpu-opt=CPU build for specified CPU, the valid values:
Igor Sysoevc2807ec2006-02-16 15:26:46 +0000372 pentium, pentiumpro, pentium3, pentium4,
373 athlon, opteron, sparc32, sparc64, ppc64
Igor Sysoev02025fd2005-01-18 13:03:58 +0000374
Igor Sysoev58e19b72009-03-19 16:02:40 +0000375 --without-pcre disable PCRE library usage
Igor Sysoeve231e582009-03-19 16:06:32 +0000376 --with-pcre force PCRE library usage
Igor Sysoev02025fd2005-01-18 13:03:58 +0000377 --with-pcre=DIR set path to PCRE library sources
378 --with-pcre-opt=OPTIONS set additional options for PCRE building
379
380 --with-md5=DIR set path to md5 library sources
381 --with-md5-opt=OPTIONS set additional options for md5 building
382 --with-md5-asm use md5 assembler sources
383
Igor Sysoevafd7ec52006-05-29 17:28:12 +0000384 --with-sha1=DIR set path to sha1 library sources
385 --with-sha1-opt=OPTIONS set additional options for sha1 building
386 --with-sha1-asm use sha1 assembler sources
387
Igor Sysoev02025fd2005-01-18 13:03:58 +0000388 --with-zlib=DIR set path to zlib library sources
389 --with-zlib-opt=OPTIONS set additional options for zlib building
390 --with-zlib-asm=CPU use zlib assembler sources optimized
391 for specified CPU, the valid values:
392 pentium, pentiumpro
393
394 --with-openssl=DIR set path to OpenSSL library sources
Igor Sysoevc1571722005-03-19 12:38:37 +0000395 --with-openssl-opt=OPTIONS set additional options for OpenSSL building
Igor Sysoev02025fd2005-01-18 13:03:58 +0000396
397 --with-debug enable the debugging logging
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000398
399END
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000400
401 exit 1
402fi
Igor Sysoev732a2712004-04-21 18:54:33 +0000403
404
Igor Sysoev562626a2004-09-14 05:45:22 +0000405if [ $HTTP = NO ]; then
406 HTTP_CHARSET=NO
407 HTTP_GZIP=NO
408 HTTP_SSI=NO
409 HTTP_USERID=NO
410 HTTP_ACCESS=NO
411 HTTP_STATUS=NO
412 HTTP_REWRITE=NO
413 HTTP_PROXY=NO
Igor Sysoev02025fd2005-01-18 13:03:58 +0000414 HTTP_FASTCGI=NO
Igor Sysoev562626a2004-09-14 05:45:22 +0000415fi
416
417
Igor Sysoevf6906042004-11-25 16:17:31 +0000418if [ ".$NGX_PLATFORM" = ".win32" ]; then
Igor Sysoev1b735832004-11-11 14:07:14 +0000419 NGX_WINE=$WINE
Igor Sysoev732a2712004-04-21 18:54:33 +0000420fi
Igor Sysoev090849d2004-05-18 20:28:54 +0000421
422
Igor Sysoev5ef370d2009-04-27 11:32:33 +0000423NGX_CONF_PATH=${NGX_CONF_PATH:-conf/nginx.conf}
Igor Sysoev5cf4d1a2007-08-14 19:26:20 +0000424NGX_CONF_PREFIX=`dirname $NGX_CONF_PATH`
Igor Sysoev5ef370d2009-04-27 11:32:33 +0000425NGX_PID_PATH=${NGX_PID_PATH:-logs/nginx.pid}
426NGX_LOCK_PATH=${NGX_LOCK_PATH:-logs/nginx.lock}
Igor Sysoev5cf4d1a2007-08-14 19:26:20 +0000427
Igor Sysoev5ef370d2009-04-27 11:32:33 +0000428if [ ".$NGX_ERROR_LOG_PATH" = ".stderr" ]; then
429 NGX_ERROR_LOG_PATH=
430else
431 NGX_ERROR_LOG_PATH=${NGX_ERROR_LOG_PATH:-logs/error.log}
432fi
Igor Sysoev5cf4d1a2007-08-14 19:26:20 +0000433
Igor Sysoev5ef370d2009-04-27 11:32:33 +0000434NGX_HTTP_LOG_PATH=${NGX_HTTP_LOG_PATH:-logs/access.log}
435NGX_HTTP_CLIENT_TEMP_PATH=${NGX_HTTP_CLIENT_TEMP_PATH:-client_body_temp}
436NGX_HTTP_PROXY_TEMP_PATH=${NGX_HTTP_PROXY_TEMP_PATH:-proxy_temp}
437NGX_HTTP_FASTCGI_TEMP_PATH=${NGX_HTTP_FASTCGI_TEMP_PATH:-fastcgi_temp}
Igor Sysoev9bf11aa2006-01-16 14:56:53 +0000438
439case ".$NGX_PERL_MODULES" in
440 ./*)
441 ;;
442
443 .)
444 ;;
445
446 *)
447 NGX_PERL_MODULES=$NGX_PREFIX/$NGX_PERL_MODULES
448 ;;
449esac