blob: 379bb2318efd4fe34da4f373a560e24980f98da5 [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=
9NGX_CONF_PATH=
10NGX_ERROR_LOG_PATH=
11NGX_PID_PATH=
Igor Sysoevffe71442006-02-08 15:33:12 +000012NGX_LOCK_PATH=
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000013NGX_USER=
14NGX_GROUP=
Igor Sysoev090849d2004-05-18 20:28:54 +000015
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000016CC=${CC:-gcc}
Igor Sysoeva893eab2004-03-11 21:34:52 +000017CPP=
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000018NGX_OBJS=objs
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000019
Igor Sysoevf6906042004-11-25 16:17:31 +000020NGX_DEBUG=NO
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000021NGX_CC_OPT=
22NGX_LD_OPT=
Igor Sysoev7b908342004-03-10 20:56:39 +000023CPU=NO
Igor Sysoev24b56c92004-03-10 17:55:19 +000024
Igor Sysoevf6906042004-11-25 16:17:31 +000025NGX_TEST_BUILD_DEVPOLL=NO
Igor Sysoev4524fb02006-09-26 12:20:12 +000026NGX_TEST_BUILD_EVENTPORT=NO
Igor Sysoevf6906042004-11-25 16:17:31 +000027NGX_TEST_BUILD_EPOLL=NO
28NGX_TEST_BUILD_RTSIG=NO
Igor Sysoev42b12b32004-12-02 18:40:46 +000029NGX_TEST_BUILD_SOLARIS_SENDFILEV=NO
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000030
Igor Sysoevf6906042004-11-25 16:17:31 +000031NGX_PLATFORM=
Igor Sysoev1b735832004-11-11 14:07:14 +000032NGX_WINE=
33
Igor Sysoeva4b16df2004-02-02 21:19:52 +000034EVENT_FOUND=NO
35
Igor Sysoev9139cd22004-02-17 17:53:12 +000036EVENT_RTSIG=NO
Igor Sysoeva4b16df2004-02-02 21:19:52 +000037EVENT_SELECT=NO
38EVENT_POLL=NO
39EVENT_AIO=NO
Igor Sysoev5c8c52f2004-01-23 09:26:18 +000040
Igor Sysoevb54698b2004-02-23 20:57:12 +000041USE_THREADS=NO
42
Igor Sysoev980a9242004-09-05 19:54:02 +000043HTTP=YES
Igor Sysoev02025fd2005-01-18 13:03:58 +000044
45NGX_HTTP_LOG_PATH=
46NGX_HTTP_CLIENT_TEMP_PATH=
47NGX_HTTP_PROXY_TEMP_PATH=
48NGX_HTTP_FASTCGI_TEMP_PATH=
49
Igor Sysoev3d5c0fc2004-06-22 16:43:09 +000050HTTP_CHARSET=YES
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000051HTTP_GZIP=YES
Igor Sysoev75569452004-07-08 15:17:47 +000052HTTP_SSL=NO
Igor Sysoev11d75322005-03-01 15:20:36 +000053HTTP_SSI=YES
Igor Sysoev899b44e2005-05-12 14:58:06 +000054HTTP_POSTPONE=NO
Igor Sysoev09c684b2005-11-09 17:25:55 +000055HTTP_REALIP=NO
Igor Sysoev6d16e1e2006-04-05 13:40:54 +000056HTTP_ADDITION=NO
Igor Sysoev8a2b2fb2006-04-14 09:53:38 +000057HTTP_DAV=NO
Igor Sysoev59f3aa32004-06-24 16:07:04 +000058HTTP_ACCESS=YES
Igor Sysoev4d656dc2005-03-22 16:02:46 +000059HTTP_AUTH_BASIC=YES
Igor Sysoev967fd632004-08-27 15:40:59 +000060HTTP_USERID=YES
Igor Sysoev723e6cc2004-10-25 15:29:23 +000061HTTP_AUTOINDEX=YES
Igor Sysoev6d2a14a2004-09-27 16:03:21 +000062HTTP_STATUS=NO
Igor Sysoev805d9db2005-02-03 19:33:37 +000063HTTP_GEO=YES
Igor Sysoev24025022005-12-16 15:07:08 +000064HTTP_MAP=YES
Igor Sysoev0e5dc5c2005-11-15 13:30:52 +000065HTTP_REFERER=YES
Igor Sysoevc83f6832004-06-24 07:53:37 +000066HTTP_REWRITE=YES
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000067HTTP_PROXY=YES
Igor Sysoev02025fd2005-01-18 13:03:58 +000068HTTP_FASTCGI=YES
Igor Sysoev9bf11aa2006-01-16 14:56:53 +000069HTTP_PERL=NO
Igor Sysoevc31a9bb2005-11-26 10:11:11 +000070HTTP_MEMCACHED=YES
Igor Sysoev138e3842007-01-06 18:52:46 +000071HTTP_LIMIT_ZONE=YES
Igor Sysoev0e5dc5c2005-11-15 13:30:52 +000072HTTP_EMPTY_GIF=YES
Igor Sysoev3383ff62006-09-18 12:25:07 +000073HTTP_BROWSER=YES
Igor Sysoevb5050062006-10-09 14:17:36 +000074HTTP_FLV=NO
Igor Sysoev3d2fd182006-12-04 16:46:13 +000075HTTP_UPSTREAM_IP_HASH=YES
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000076
Igor Sysoevaa828612005-02-09 14:31:07 +000077# STUB
78HTTP_STUB_STATUS=NO
79
Igor Sysoev02c8d182007-03-19 13:36:56 +000080MAIL=NO
81MAIL_SSL=NO
Igor Sysoev59cf56c2004-09-07 15:29:22 +000082
Igor Sysoev1ebfead2005-02-16 13:40:36 +000083NGX_ADDONS=
Igor Sysoevd43bee82004-11-20 19:52:20 +000084
Igor Sysoeve9b2cb12004-02-09 20:47:18 +000085USE_PCRE=NO
Igor Sysoev43c3cd92004-02-19 08:45:27 +000086PCRE=NONE
Igor Sysoeva893eab2004-03-11 21:34:52 +000087PCRE_OPT=
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000088
Igor Sysoev0599b112004-07-25 18:34:14 +000089USE_OPENSSL=NO
90OPENSSL=NONE
91
Igor Sysoeva4b16df2004-02-02 21:19:52 +000092USE_MD5=NO
Igor Sysoev7af6b162004-02-09 07:46:43 +000093MD5=NONE
Igor Sysoeva893eab2004-03-11 21:34:52 +000094MD5_OPT=
Igor Sysoev7b908342004-03-10 20:56:39 +000095MD5_ASM=NO
Igor Sysoeva8fa0a62003-11-25 20:44:56 +000096
Igor Sysoevafd7ec52006-05-29 17:28:12 +000097USE_SHA1=NO
98SHA1=NONE
99SHA1_OPT=
100SHA1_ASM=NO
101
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000102USE_ZLIB=NO
Igor Sysoev7af6b162004-02-09 07:46:43 +0000103ZLIB=NONE
Igor Sysoeva893eab2004-03-11 21:34:52 +0000104ZLIB_OPT=
Igor Sysoev7b908342004-03-10 20:56:39 +0000105ZLIB_ASM=NO
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000106
Igor Sysoev9bf11aa2006-01-16 14:56:53 +0000107USE_PERL=NO
108NGX_PERL=perl
109
Igor Sysoev24025022005-12-16 15:07:08 +0000110NGX_CPU_CACHE_LINE=
111
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000112
113for option
114do
115 case "$option" in
116 -*=*) value=`echo "$option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
117 *) value="" ;;
118 esac
119
120 case "$option" in
Igor Sysoevdc867cd2003-12-14 20:10:27 +0000121 --help) help=yes ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000122
Igor Sysoevf6906042004-11-25 16:17:31 +0000123 --prefix=*) NGX_PREFIX="$value" ;;
124 --sbin-path=*) NGX_SBIN_PATH="$value" ;;
125 --conf-path=*) NGX_CONF_PATH="$value" ;;
126 --error-log-path=*) NGX_ERROR_LOG_PATH="$value";;
127 --pid-path=*) NGX_PID_PATH="$value" ;;
Igor Sysoevffe71442006-02-08 15:33:12 +0000128 --lock-path=*) NGX_LOCK_PATH="$value" ;;
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000129 --user=*) NGX_USER="$value" ;;
130 --group=*) NGX_GROUP="$value" ;;
Igor Sysoev090849d2004-05-18 20:28:54 +0000131
Igor Sysoevf6906042004-11-25 16:17:31 +0000132 --crossbuild=*) NGX_PLATFORM="$value" ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000133
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000134 --builddir=*) NGX_OBJS="$value" ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000135
Igor Sysoev9139cd22004-02-17 17:53:12 +0000136 --with-rtsig_module) EVENT_RTSIG=YES ;;
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000137 --with-select_module) EVENT_SELECT=YES ;;
Igor Sysoeve9b2cb12004-02-09 20:47:18 +0000138 --without-select_module) EVENT_SELECT=NONE ;;
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000139 --with-poll_module) EVENT_POLL=YES ;;
Igor Sysoeve9b2cb12004-02-09 20:47:18 +0000140 --without-poll_module) EVENT_POLL=NONE ;;
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000141 --with-aio_module) EVENT_AIO=YES ;;
Igor Sysoev5c8c52f2004-01-23 09:26:18 +0000142
Igor Sysoevb54698b2004-02-23 20:57:12 +0000143 --with-threads=*) USE_THREADS="$value" ;;
144 --with-threads) USE_THREADS="pthreads" ;;
145
Igor Sysoev980a9242004-09-05 19:54:02 +0000146 --without-http) HTTP=NO ;;
Igor Sysoevf6906042004-11-25 16:17:31 +0000147 --http-log-path=*) NGX_HTTP_LOG_PATH="$value" ;;
Igor Sysoev02025fd2005-01-18 13:03:58 +0000148 --http-client-body-temp-path=*) NGX_HTTP_CLIENT_TEMP_PATH="$value" ;;
149 --http-proxy-temp-path=*) NGX_HTTP_PROXY_TEMP_PATH="$value" ;;
150 --http-fastcgi-temp-path=*) NGX_HTTP_FASTCGI_TEMP_PATH="$value" ;;
Igor Sysoev980a9242004-09-05 19:54:02 +0000151
Igor Sysoev75569452004-07-08 15:17:47 +0000152 --with-http_ssl_module) HTTP_SSL=YES ;;
Igor Sysoev09c684b2005-11-09 17:25:55 +0000153 --with-http_realip_module) HTTP_REALIP=YES ;;
Igor Sysoev6d16e1e2006-04-05 13:40:54 +0000154 --with-http_addition_module) HTTP_ADDITION=YES ;;
Igor Sysoev8a2b2fb2006-04-14 09:53:38 +0000155 --with-http_dav_module) HTTP_DAV=YES ;;
Igor Sysoevb5050062006-10-09 14:17:36 +0000156 --with-http_flv_module) HTTP_FLV=YES ;;
Igor Sysoev8a2b2fb2006-04-14 09:53:38 +0000157
Igor Sysoev3d5c0fc2004-06-22 16:43:09 +0000158 --without-http_charset_module) HTTP_CHARSET=NO ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000159 --without-http_gzip_module) HTTP_GZIP=NO ;;
Igor Sysoev75569452004-07-08 15:17:47 +0000160 --without-http_ssi_module) HTTP_SSI=NO ;;
Igor Sysoev967fd632004-08-27 15:40:59 +0000161 --without-http_userid_module) HTTP_USERID=NO ;;
Igor Sysoeva7c4a2a2004-08-29 03:55:41 +0000162 --without-http_access_module) HTTP_ACCESS=NO ;;
Igor Sysoev4d656dc2005-03-22 16:02:46 +0000163 --without-http_auth_basic_module) HTTP_AUTH_BASIC=NO ;;
Igor Sysoev723e6cc2004-10-25 15:29:23 +0000164 --without-http_autoindex_module) HTTP_AUTOINDEX=NO ;;
Igor Sysoevc83f6832004-06-24 07:53:37 +0000165 --without-http_status_module) HTTP_STATUS=NO ;;
Igor Sysoev805d9db2005-02-03 19:33:37 +0000166 --without-http_geo_module) HTTP_GEO=NO ;;
Igor Sysoev24025022005-12-16 15:07:08 +0000167 --without-http_map_module) HTTP_MAP=NO ;;
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000168 --without-http_referer_module) HTTP_REFERER=NO ;;
Igor Sysoevc83f6832004-06-24 07:53:37 +0000169 --without-http_rewrite_module) HTTP_REWRITE=NO ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000170 --without-http_proxy_module) HTTP_PROXY=NO ;;
Igor Sysoev02025fd2005-01-18 13:03:58 +0000171 --without-http_fastcgi_module) HTTP_FASTCGI=NO ;;
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000172 --without-http_memcached_module) HTTP_MEMCACHED=NO ;;
Igor Sysoev138e3842007-01-06 18:52:46 +0000173 --without-http_limit_zone_module) HTTP_LIMIT_ZONE=NO ;;
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000174 --without-http_empty_gif_module) HTTP_EMPTY_GIF=NO ;;
Igor Sysoev3383ff62006-09-18 12:25:07 +0000175 --without-http_browser_module) HTTP_BROWSER=NO ;;
Igor Sysoev3d2fd182006-12-04 16:46:13 +0000176 --without-http_upstream_ip_hash_module) HTTP_UPSTREAM_IP_HASH=NO ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000177
Igor Sysoev9bf11aa2006-01-16 14:56:53 +0000178 --with-http_perl_module) HTTP_PERL=YES ;;
179 --with-perl_modules_path=*) NGX_PERL_MODULES="$value" ;;
180 --with-perl=*) NGX_PERL="$value" ;;
181
Igor Sysoevaa828612005-02-09 14:31:07 +0000182 # STUB
183 --with-http_stub_status_module) HTTP_STUB_STATUS=YES ;;
184
Igor Sysoev02c8d182007-03-19 13:36:56 +0000185 --with-mail) MAIL=YES ;;
186 --with-mail_ssl_module) MAIL_SSL=YES ;;
187 # STUB
188 --with-imap) MAIL=YES ;;
189 --with-imap_ssl_module) MAIL_SSL=YES ;;
Igor Sysoev59cf56c2004-09-07 15:29:22 +0000190
Igor Sysoev1ebfead2005-02-16 13:40:36 +0000191 --add-module=*) NGX_ADDONS="$NGX_ADDONS $value" ;;
Igor Sysoevd43bee82004-11-20 19:52:20 +0000192
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000193 --with-cc=*) CC="$value" ;;
Igor Sysoeva893eab2004-03-11 21:34:52 +0000194 --with-cpp=*) CPP="$value" ;;
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000195 --with-cc-opt=*) NGX_CC_OPT="$value" ;;
196 --with-ld-opt=*) NGX_LD_OPT="$value" ;;
Igor Sysoev7b908342004-03-10 20:56:39 +0000197 --with-cpu-opt=*) CPU="$value" ;;
Igor Sysoevf6906042004-11-25 16:17:31 +0000198 --with-debug) NGX_DEBUG=YES ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000199
Igor Sysoevbb1ba3f2004-02-19 16:48:14 +0000200 --without-pcre) USE_PCRE=DISABLED ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000201 --with-pcre=*) PCRE="$value" ;;
Igor Sysoev7b908342004-03-10 20:56:39 +0000202 --with-pcre-opt=*) PCRE_OPT="$value" ;;
203
Igor Sysoev0599b112004-07-25 18:34:14 +0000204 --with-openssl=*) OPENSSL="$value" ;;
Igor Sysoevc1571722005-03-19 12:38:37 +0000205 --with-openssl-opt=*) OPENSSL_OPT="$value" ;;
Igor Sysoev0599b112004-07-25 18:34:14 +0000206
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000207 --with-md5=*) MD5="$value" ;;
Igor Sysoev7b908342004-03-10 20:56:39 +0000208 --with-md5-opt=*) MD5_OPT="$value" ;;
209 --with-md5-asm) MD5_ASM=YES ;;
210
Igor Sysoevafd7ec52006-05-29 17:28:12 +0000211 --with-sha1=*) SHA1="$value" ;;
212 --with-sha1-opt=*) SHA1_OPT="$value" ;;
213 --with-sha1-asm) SHA1_ASM=YES ;;
214
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000215 --with-zlib=*) ZLIB="$value" ;;
Igor Sysoev24b56c92004-03-10 17:55:19 +0000216 --with-zlib-opt=*) ZLIB_OPT="$value" ;;
Igor Sysoev7b908342004-03-10 20:56:39 +0000217 --with-zlib-asm=*) ZLIB_ASM="$value" ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000218
Igor Sysoevf6906042004-11-25 16:17:31 +0000219 --test-build-devpoll) NGX_TEST_BUILD_DEVPOLL=YES ;;
Igor Sysoev4524fb02006-09-26 12:20:12 +0000220 --test-build-eventport) NGX_TEST_BUILD_EVENTPORT=YES ;;
Igor Sysoevf6906042004-11-25 16:17:31 +0000221 --test-build-epoll) NGX_TEST_BUILD_EPOLL=YES ;;
222 --test-build-rtsig) NGX_TEST_BUILD_RTSIG=YES ;;
Igor Sysoev42b12b32004-12-02 18:40:46 +0000223 --test-build-solaris-sendfilev) NGX_TEST_BUILD_SOLARIS_SENDFILEV=YES ;;
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000224
225 *)
226 echo "$0: error: invalid option \"$option\""
227 exit 1
228 ;;
229 esac
230done
231
232
Igor Sysoevdc867cd2003-12-14 20:10:27 +0000233if [ $help = yes ]; then
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000234
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000235cat << END
Igor Sysoev5c8c52f2004-01-23 09:26:18 +0000236
Igor Sysoev02025fd2005-01-18 13:03:58 +0000237 --help this message
Igor Sysoev5c8c52f2004-01-23 09:26:18 +0000238
Igor Sysoev02025fd2005-01-18 13:03:58 +0000239 --prefix=PATH set the installation prefix
240 --sbin-path=PATH set path to the nginx binary file
241 --conf-path=PATH set path to the nginx.conf file
242 --error-log-path=PATH set path to the error log
243 --pid-path=PATH set path to nginx.pid file
Igor Sysoevffe71442006-02-08 15:33:12 +0000244 --lock-path=PATH set path to nginx.lock file
Igor Sysoev5c8c52f2004-01-23 09:26:18 +0000245
Igor Sysoev02025fd2005-01-18 13:03:58 +0000246 --user=USER set non-privilege user
247 for the worker processes
248 --group=GROUP set non-privilege group
249 for the worker processes
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000250
Igor Sysoev02025fd2005-01-18 13:03:58 +0000251 --builddir=DIR set the build directory
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000252
Igor Sysoev02025fd2005-01-18 13:03:58 +0000253 --with-rtsig_module enable rtsig module
254 --with-select_module enable select module
255 --without-select_module disable select module
256 --with-poll_module enable poll module
257 --without-poll_module disable poll module
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000258
Igor Sysoev02025fd2005-01-18 13:03:58 +0000259 --with-http_ssl_module enable ngx_http_ssl_module
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000260 --with-http_realip_module enable ngx_http_realip_module
Igor Sysoevcdf609a2006-04-17 19:55:41 +0000261 --with-http_addition_module enable ngx_http_addition_module
262 --with-http_dav_module enable ngx_http_dav_module
Igor Sysoevb5050062006-10-09 14:17:36 +0000263 --with-http_flv_module enable ngx_http_flv_module
Igor Sysoevcdf609a2006-04-17 19:55:41 +0000264
Igor Sysoev02025fd2005-01-18 13:03:58 +0000265 --without-http_charset_module disable ngx_http_charset_module
266 --without-http_gzip_module disable ngx_http_gzip_module
Igor Sysoevc1571722005-03-19 12:38:37 +0000267 --without-http_ssi_module disable ngx_http_ssi_module
Igor Sysoev02025fd2005-01-18 13:03:58 +0000268 --without-http_userid_module disable ngx_http_userid_module
269 --without-http_access_module disable ngx_http_access_module
Igor Sysoev4d656dc2005-03-22 16:02:46 +0000270 --without-http_auth_basic_module disable ngx_http_auth_basic_module
Igor Sysoev02025fd2005-01-18 13:03:58 +0000271 --without-http_autoindex_module disable ngx_http_autoindex_module
Igor Sysoev805d9db2005-02-03 19:33:37 +0000272 --without-http_geo_module disable ngx_http_geo_module
Igor Sysoev347f7fe2006-09-26 21:15:02 +0000273 --without-http_map_module disable ngx_http_map_module
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000274 --without-http_referer_module disable ngx_http_referer_module
Igor Sysoev02025fd2005-01-18 13:03:58 +0000275 --without-http_rewrite_module disable ngx_http_rewrite_module
276 --without-http_proxy_module disable ngx_http_proxy_module
277 --without-http_fastcgi_module disable ngx_http_fastcgi_module
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000278 --without-http_memcached_module disable ngx_http_memcached_module
Igor Sysoev138e3842007-01-06 18:52:46 +0000279 --without-http_limit_zone_module disable ngx_http_limit_zone_module
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000280 --without-http_empty_gif_module disable ngx_http_empty_gif_module
Igor Sysoev347f7fe2006-09-26 21:15:02 +0000281 --without-http_browser_module disable ngx_http_browser_module
Igor Sysoev3d2fd182006-12-04 16:46:13 +0000282 --without-http_upstream_ip_hash_module
283 disable ngx_http_upstream_ip_hash_module
Igor Sysoev02025fd2005-01-18 13:03:58 +0000284
Igor Sysoev9bf11aa2006-01-16 14:56:53 +0000285 --with-http_perl_module enable ngx_http_perl_module
286 --with-perl_modules_path=PATH set path to the perl modules
287 --with-perl=PATH set path to the perl binary
288
Igor Sysoev02025fd2005-01-18 13:03:58 +0000289 --http-log-path=PATH set path to the http access log
290 --http-client-body-temp-path=PATH set path to the http client request body
Igor Sysoevcdf609a2006-04-17 19:55:41 +0000291 temporary files
292 --http-proxy-temp-path=PATH set path to the http proxy temporary files
Igor Sysoev02025fd2005-01-18 13:03:58 +0000293 --http-fastcgi-temp-path=PATH set path to the http fastcgi temporary
Igor Sysoevcdf609a2006-04-17 19:55:41 +0000294 files
Igor Sysoev02025fd2005-01-18 13:03:58 +0000295
Igor Sysoev187b7d92005-07-14 12:51:53 +0000296 --without-http disable HTTP server
297
Igor Sysoev02c8d182007-03-19 13:36:56 +0000298 --with-mail enable IMAP4/POP3/SMTP proxy module
299 --with-mail_ssl_module enable ngx_mail_ssl_module
Igor Sysoev187b7d92005-07-14 12:51:53 +0000300
Igor Sysoev02025fd2005-01-18 13:03:58 +0000301 --with-cc=PATH set path to C compiler
302 --with-cpp=PATH set path to C preprocessor
303 --with-cc-opt=OPTIONS set additional options for C compiler
304 --with-ld-opt=OPTIONS set additional options for linker
305 --with-cpu-opt=CPU build for specified CPU, the valid values:
Igor Sysoevc2807ec2006-02-16 15:26:46 +0000306 pentium, pentiumpro, pentium3, pentium4,
307 athlon, opteron, sparc32, sparc64, ppc64
Igor Sysoev02025fd2005-01-18 13:03:58 +0000308
309 --without-pcre disable PCRE libarary usage
310 --with-pcre=DIR set path to PCRE library sources
311 --with-pcre-opt=OPTIONS set additional options for PCRE building
312
313 --with-md5=DIR set path to md5 library sources
314 --with-md5-opt=OPTIONS set additional options for md5 building
315 --with-md5-asm use md5 assembler sources
316
Igor Sysoevafd7ec52006-05-29 17:28:12 +0000317 --with-sha1=DIR set path to sha1 library sources
318 --with-sha1-opt=OPTIONS set additional options for sha1 building
319 --with-sha1-asm use sha1 assembler sources
320
Igor Sysoev02025fd2005-01-18 13:03:58 +0000321 --with-zlib=DIR set path to zlib library sources
322 --with-zlib-opt=OPTIONS set additional options for zlib building
323 --with-zlib-asm=CPU use zlib assembler sources optimized
324 for specified CPU, the valid values:
325 pentium, pentiumpro
326
327 --with-openssl=DIR set path to OpenSSL library sources
Igor Sysoevc1571722005-03-19 12:38:37 +0000328 --with-openssl-opt=OPTIONS set additional options for OpenSSL building
Igor Sysoev02025fd2005-01-18 13:03:58 +0000329
330 --with-debug enable the debugging logging
Igor Sysoevc0edbcc2004-10-21 15:34:38 +0000331
332END
Igor Sysoeva8fa0a62003-11-25 20:44:56 +0000333
334 exit 1
335fi
Igor Sysoev732a2712004-04-21 18:54:33 +0000336
337
Igor Sysoev562626a2004-09-14 05:45:22 +0000338if [ $HTTP = NO ]; then
339 HTTP_CHARSET=NO
340 HTTP_GZIP=NO
341 HTTP_SSI=NO
342 HTTP_USERID=NO
343 HTTP_ACCESS=NO
344 HTTP_STATUS=NO
345 HTTP_REWRITE=NO
346 HTTP_PROXY=NO
Igor Sysoev02025fd2005-01-18 13:03:58 +0000347 HTTP_FASTCGI=NO
Igor Sysoev562626a2004-09-14 05:45:22 +0000348fi
349
350
Igor Sysoevf6906042004-11-25 16:17:31 +0000351if [ ".$NGX_PLATFORM" = ".win32" ]; then
Igor Sysoev1b735832004-11-11 14:07:14 +0000352 NGX_WINE=$WINE
Igor Sysoev732a2712004-04-21 18:54:33 +0000353fi
Igor Sysoev090849d2004-05-18 20:28:54 +0000354
355
Igor Sysoevb1dfe472004-12-21 12:30:30 +0000356NGX_PREFIX=${NGX_PREFIX:-/usr/local/nginx}
Igor Sysoev090849d2004-05-18 20:28:54 +0000357
Igor Sysoev090849d2004-05-18 20:28:54 +0000358
Igor Sysoevf6906042004-11-25 16:17:31 +0000359case ".$NGX_SBIN_PATH" in
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000360 ./*)
361 ;;
Igor Sysoev090849d2004-05-18 20:28:54 +0000362
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000363 .)
Igor Sysoevf6906042004-11-25 16:17:31 +0000364 NGX_SBIN_PATH=$NGX_PREFIX/sbin/nginx
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000365 ;;
Igor Sysoev090849d2004-05-18 20:28:54 +0000366
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000367 *)
Igor Sysoevf6906042004-11-25 16:17:31 +0000368 NGX_SBIN_PATH=$NGX_PREFIX/$NGX_SBIN_PATH
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000369 ;;
370esac
Igor Sysoev090849d2004-05-18 20:28:54 +0000371
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000372
Igor Sysoevf6906042004-11-25 16:17:31 +0000373case ".$NGX_CONF_PATH" in
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000374 ./*)
375 ;;
376
377 .)
Igor Sysoevf6906042004-11-25 16:17:31 +0000378 NGX_CONF_PATH=$NGX_PREFIX/conf/nginx.conf
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000379 ;;
380
381 *)
Igor Sysoevf6906042004-11-25 16:17:31 +0000382 NGX_CONF_PATH=$NGX_PREFIX/$NGX_CONF_PATH
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000383 ;;
384esac
385
386
Igor Sysoevf6906042004-11-25 16:17:31 +0000387case ".$NGX_PID_PATH" in
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000388 ./*)
389 ;;
390
391 .)
Igor Sysoevf6906042004-11-25 16:17:31 +0000392 NGX_PID_PATH=$NGX_PREFIX/logs/nginx.pid
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000393 ;;
394
395 *)
Igor Sysoevf6906042004-11-25 16:17:31 +0000396 NGX_PID_PATH=$NGX_PREFIX/$NGX_PID_PATH
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000397 ;;
398esac
399
400
Igor Sysoevffe71442006-02-08 15:33:12 +0000401case ".$NGX_LOCK_PATH" in
402 ./*)
403 ;;
404
405 .)
406 NGX_LOCK_PATH=$NGX_PREFIX/logs/nginx.lock
407 ;;
408
409 *)
410 NGX_LOCK_PATH=$NGX_PREFIX/$NGX_LOCK_PATH
411 ;;
412esac
413
414
Igor Sysoevf6906042004-11-25 16:17:31 +0000415case ".$NGX_ERROR_LOG_PATH" in
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000416 ./*)
417 ;;
418
419 .)
Igor Sysoevf6906042004-11-25 16:17:31 +0000420 NGX_ERROR_LOG_PATH=$NGX_PREFIX/logs/error.log
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000421 ;;
422
Igor Sysoevff8da912004-09-29 16:00:49 +0000423 .stderr)
Igor Sysoevf6906042004-11-25 16:17:31 +0000424 NGX_ERROR_LOG_PATH=
Igor Sysoevff8da912004-09-29 16:00:49 +0000425 ;;
426
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000427 *)
Igor Sysoevf6906042004-11-25 16:17:31 +0000428 NGX_ERROR_LOG_PATH=$NGX_PREFIX/$NGX_ERROR_LOG_PATH
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000429 ;;
430esac
431
432
Igor Sysoevf6906042004-11-25 16:17:31 +0000433case ".$NGX_HTTP_LOG_PATH" in
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000434 ./*)
435 ;;
436
437 .)
Igor Sysoevf6906042004-11-25 16:17:31 +0000438 NGX_HTTP_LOG_PATH=$NGX_PREFIX/logs/access.log
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000439 ;;
440
441 *)
Igor Sysoevf6906042004-11-25 16:17:31 +0000442 NGX_HTTP_LOG_PATH=$NGX_PREFIX/$NGX_HTTP_LOG_PATH
Igor Sysoev6d2a14a2004-09-27 16:03:21 +0000443 ;;
444esac
Igor Sysoev02025fd2005-01-18 13:03:58 +0000445
446
447case ".$NGX_HTTP_CLIENT_TEMP_PATH" in
448 ./*)
449 ;;
450
451 .)
452 NGX_HTTP_CLIENT_TEMP_PATH=$NGX_PREFIX/client_body_temp
453 ;;
454
455 *)
456 NGX_HTTP_CLIENT_TEMP_PATH=$NGX_PREFIX/$NGX_HTTP_CLIENT_TEMP_PATH
457 ;;
458esac
459
460
461case ".$NGX_HTTP_PROXY_TEMP_PATH" in
462 ./*)
463 ;;
464
465 .)
466 NGX_HTTP_PROXY_TEMP_PATH=$NGX_PREFIX/proxy_temp
467 ;;
468
469 *)
470 NGX_HTTP_PROXY_TEMP_PATH=$NGX_PREFIX/$NGX_HTTP_PROXY_TEMP_PATH
471 ;;
472esac
473
474
475case ".$NGX_HTTP_FASTCGI_TEMP_PATH" in
476 ./*)
477 ;;
478
479 .)
480 NGX_HTTP_FASTCGI_TEMP_PATH=$NGX_PREFIX/fastcgi_temp
481 ;;
482
483 *)
484 NGX_HTTP_FASTCGI_TEMP_PATH=$NGX_PREFIX/$NGX_HTTP_FASTCGI_TEMP_PATH
485 ;;
486esac
Igor Sysoev9bf11aa2006-01-16 14:56:53 +0000487
488
489case ".$NGX_PERL_MODULES" in
490 ./*)
491 ;;
492
493 .)
494 ;;
495
496 *)
497 NGX_PERL_MODULES=$NGX_PREFIX/$NGX_PERL_MODULES
498 ;;
499esac