Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 1 | |
Igor Sysoev | ff8da91 | 2004-09-29 16:00:49 +0000 | [diff] [blame] | 2 | # Copyright (C) Igor Sysoev |
Maxim Konovalov | f8d59e3 | 2012-01-18 15:07:43 +0000 | [diff] [blame] | 3 | # Copyright (C) Nginx, Inc. |
Igor Sysoev | ff8da91 | 2004-09-29 16:00:49 +0000 | [diff] [blame] | 4 | |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 5 | |
Igor Sysoev | dc867cd | 2003-12-14 20:10:27 +0000 | [diff] [blame] | 6 | help=no |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 7 | |
Igor Sysoev | f690604 | 2004-11-25 16:17:31 +0000 | [diff] [blame] | 8 | NGX_PREFIX= |
| 9 | NGX_SBIN_PATH= |
Igor Sysoev | a1df416 | 2007-07-29 18:05:45 +0000 | [diff] [blame] | 10 | NGX_CONF_PREFIX= |
Igor Sysoev | f690604 | 2004-11-25 16:17:31 +0000 | [diff] [blame] | 11 | NGX_CONF_PATH= |
| 12 | NGX_ERROR_LOG_PATH= |
| 13 | NGX_PID_PATH= |
Igor Sysoev | ffe7144 | 2006-02-08 15:33:12 +0000 | [diff] [blame] | 14 | NGX_LOCK_PATH= |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 15 | NGX_USER= |
| 16 | NGX_GROUP= |
Igor Sysoev | 090849d | 2004-05-18 20:28:54 +0000 | [diff] [blame] | 17 | |
Gleb Smirnoff | 35c17ea | 2013-02-18 11:35:28 +0000 | [diff] [blame] | 18 | CC=${CC:-cc} |
Igor Sysoev | a893eab | 2004-03-11 21:34:52 +0000 | [diff] [blame] | 19 | CPP= |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 20 | NGX_OBJS=objs |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 21 | |
Igor Sysoev | f690604 | 2004-11-25 16:17:31 +0000 | [diff] [blame] | 22 | NGX_DEBUG=NO |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 23 | NGX_CC_OPT= |
| 24 | NGX_LD_OPT= |
Igor Sysoev | 7b90834 | 2004-03-10 20:56:39 +0000 | [diff] [blame] | 25 | CPU=NO |
Igor Sysoev | 24b56c9 | 2004-03-10 17:55:19 +0000 | [diff] [blame] | 26 | |
Igor Sysoev | 274b63e | 2007-09-19 12:14:05 +0000 | [diff] [blame] | 27 | NGX_RPATH=NO |
| 28 | |
Igor Sysoev | f690604 | 2004-11-25 16:17:31 +0000 | [diff] [blame] | 29 | NGX_TEST_BUILD_DEVPOLL=NO |
Igor Sysoev | 4524fb0 | 2006-09-26 12:20:12 +0000 | [diff] [blame] | 30 | NGX_TEST_BUILD_EVENTPORT=NO |
Igor Sysoev | f690604 | 2004-11-25 16:17:31 +0000 | [diff] [blame] | 31 | NGX_TEST_BUILD_EPOLL=NO |
| 32 | NGX_TEST_BUILD_RTSIG=NO |
Igor Sysoev | 42b12b3 | 2004-12-02 18:40:46 +0000 | [diff] [blame] | 33 | NGX_TEST_BUILD_SOLARIS_SENDFILEV=NO |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 34 | |
Igor Sysoev | f690604 | 2004-11-25 16:17:31 +0000 | [diff] [blame] | 35 | NGX_PLATFORM= |
Igor Sysoev | 1b73583 | 2004-11-11 14:07:14 +0000 | [diff] [blame] | 36 | NGX_WINE= |
| 37 | |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 38 | EVENT_FOUND=NO |
| 39 | |
Igor Sysoev | 9139cd2 | 2004-02-17 17:53:12 +0000 | [diff] [blame] | 40 | EVENT_RTSIG=NO |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 41 | EVENT_SELECT=NO |
| 42 | EVENT_POLL=NO |
| 43 | EVENT_AIO=NO |
Igor Sysoev | 5c8c52f | 2004-01-23 09:26:18 +0000 | [diff] [blame] | 44 | |
Igor Sysoev | b54698b | 2004-02-23 20:57:12 +0000 | [diff] [blame] | 45 | USE_THREADS=NO |
| 46 | |
Igor Sysoev | a962506 | 2009-08-28 08:12:35 +0000 | [diff] [blame] | 47 | NGX_FILE_AIO=NO |
Igor Sysoev | a35eacc | 2009-02-21 07:02:02 +0000 | [diff] [blame] | 48 | NGX_IPV6=NO |
| 49 | |
Igor Sysoev | 980a924 | 2004-09-05 19:54:02 +0000 | [diff] [blame] | 50 | HTTP=YES |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 51 | |
| 52 | NGX_HTTP_LOG_PATH= |
| 53 | NGX_HTTP_CLIENT_TEMP_PATH= |
| 54 | NGX_HTTP_PROXY_TEMP_PATH= |
| 55 | NGX_HTTP_FASTCGI_TEMP_PATH= |
Igor Sysoev | e45b892 | 2010-06-01 17:44:51 +0000 | [diff] [blame] | 56 | NGX_HTTP_UWSGI_TEMP_PATH= |
Igor Sysoev | ee5f9e5 | 2010-06-18 15:51:14 +0000 | [diff] [blame] | 57 | NGX_HTTP_SCGI_TEMP_PATH= |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 58 | |
Igor Sysoev | 52859f2 | 2009-03-23 13:14:51 +0000 | [diff] [blame] | 59 | HTTP_CACHE=YES |
Igor Sysoev | 3d5c0fc | 2004-06-22 16:43:09 +0000 | [diff] [blame] | 60 | HTTP_CHARSET=YES |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 61 | HTTP_GZIP=YES |
Igor Sysoev | 7556945 | 2004-07-08 15:17:47 +0000 | [diff] [blame] | 62 | HTTP_SSL=NO |
Valentin Bartenev | 2686cb4 | 2013-03-20 10:36:57 +0000 | [diff] [blame] | 63 | HTTP_SPDY=NO |
Igor Sysoev | 11d7532 | 2005-03-01 15:20:36 +0000 | [diff] [blame] | 64 | HTTP_SSI=YES |
Igor Sysoev | 899b44e | 2005-05-12 14:58:06 +0000 | [diff] [blame] | 65 | HTTP_POSTPONE=NO |
Igor Sysoev | 09c684b | 2005-11-09 17:25:55 +0000 | [diff] [blame] | 66 | HTTP_REALIP=NO |
Igor Sysoev | 1ae389d | 2008-08-04 14:48:15 +0000 | [diff] [blame] | 67 | HTTP_XSLT=NO |
Igor Sysoev | e2ada61 | 2009-05-01 18:42:09 +0000 | [diff] [blame] | 68 | HTTP_IMAGE_FILTER=NO |
Igor Sysoev | d9bb8e3 | 2007-04-19 17:54:23 +0000 | [diff] [blame] | 69 | HTTP_SUB=NO |
Igor Sysoev | 6d16e1e | 2006-04-05 13:40:54 +0000 | [diff] [blame] | 70 | HTTP_ADDITION=NO |
Igor Sysoev | 8a2b2fb | 2006-04-14 09:53:38 +0000 | [diff] [blame] | 71 | HTTP_DAV=NO |
Igor Sysoev | 59f3aa3 | 2004-06-24 16:07:04 +0000 | [diff] [blame] | 72 | HTTP_ACCESS=YES |
Igor Sysoev | 4d656dc | 2005-03-22 16:02:46 +0000 | [diff] [blame] | 73 | HTTP_AUTH_BASIC=YES |
Maxim Dounin | 4c53a38 | 2013-08-21 19:19:47 +0400 | [diff] [blame] | 74 | HTTP_AUTH_REQUEST=NO |
Igor Sysoev | 967fd63 | 2004-08-27 15:40:59 +0000 | [diff] [blame] | 75 | HTTP_USERID=YES |
Igor Sysoev | 723e6cc | 2004-10-25 15:29:23 +0000 | [diff] [blame] | 76 | HTTP_AUTOINDEX=YES |
Igor Sysoev | 2e2b81d | 2008-09-05 15:45:55 +0000 | [diff] [blame] | 77 | HTTP_RANDOM_INDEX=NO |
Igor Sysoev | 6d2a14a | 2004-09-27 16:03:21 +0000 | [diff] [blame] | 78 | HTTP_STATUS=NO |
Igor Sysoev | 805d9db | 2005-02-03 19:33:37 +0000 | [diff] [blame] | 79 | HTTP_GEO=YES |
Igor Sysoev | bc10147 | 2009-07-20 07:10:43 +0000 | [diff] [blame] | 80 | HTTP_GEOIP=NO |
Igor Sysoev | 2402502 | 2005-12-16 15:07:08 +0000 | [diff] [blame] | 81 | HTTP_MAP=YES |
Igor Sysoev | fadd4bd | 2010-05-14 09:02:10 +0000 | [diff] [blame] | 82 | HTTP_SPLIT_CLIENTS=YES |
Igor Sysoev | 0e5dc5c | 2005-11-15 13:30:52 +0000 | [diff] [blame] | 83 | HTTP_REFERER=YES |
Igor Sysoev | c83f683 | 2004-06-24 07:53:37 +0000 | [diff] [blame] | 84 | HTTP_REWRITE=YES |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 85 | HTTP_PROXY=YES |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 86 | HTTP_FASTCGI=YES |
Igor Sysoev | 3a881d3 | 2010-06-01 15:53:11 +0000 | [diff] [blame] | 87 | HTTP_UWSGI=YES |
Igor Sysoev | ee5f9e5 | 2010-06-18 15:51:14 +0000 | [diff] [blame] | 88 | HTTP_SCGI=YES |
Igor Sysoev | 9bf11aa | 2006-01-16 14:56:53 +0000 | [diff] [blame] | 89 | HTTP_PERL=NO |
Igor Sysoev | c31a9bb | 2005-11-26 10:11:11 +0000 | [diff] [blame] | 90 | HTTP_MEMCACHED=YES |
Valentin Bartenev | 255e20a | 2011-11-14 14:04:42 +0000 | [diff] [blame] | 91 | HTTP_LIMIT_CONN=YES |
Igor Sysoev | abe378e | 2008-11-10 15:22:33 +0000 | [diff] [blame] | 92 | HTTP_LIMIT_REQ=YES |
Igor Sysoev | 0e5dc5c | 2005-11-15 13:30:52 +0000 | [diff] [blame] | 93 | HTTP_EMPTY_GIF=YES |
Igor Sysoev | 3383ff6 | 2006-09-18 12:25:07 +0000 | [diff] [blame] | 94 | HTTP_BROWSER=YES |
Igor Sysoev | e52991e | 2008-09-27 13:22:10 +0000 | [diff] [blame] | 95 | HTTP_SECURE_LINK=NO |
Igor Sysoev | 4985109 | 2009-11-16 12:20:00 +0000 | [diff] [blame] | 96 | HTTP_DEGRADATION=NO |
Igor Sysoev | b505006 | 2006-10-09 14:17:36 +0000 | [diff] [blame] | 97 | HTTP_FLV=NO |
Igor Sysoev | dde4d7e | 2011-09-09 10:22:34 +0000 | [diff] [blame] | 98 | HTTP_MP4=NO |
Maxim Dounin | 90bd33e | 2012-09-10 16:52:47 +0000 | [diff] [blame] | 99 | HTTP_GUNZIP=NO |
Igor Sysoev | c16b005 | 2007-12-27 14:21:59 +0000 | [diff] [blame] | 100 | HTTP_GZIP_STATIC=NO |
Igor Sysoev | 3d2fd18 | 2006-12-04 16:46:13 +0000 | [diff] [blame] | 101 | HTTP_UPSTREAM_IP_HASH=YES |
Maxim Dounin | 4cb4e8d | 2012-06-03 23:21:26 +0000 | [diff] [blame] | 102 | HTTP_UPSTREAM_LEAST_CONN=YES |
Maxim Dounin | 44002e5 | 2011-09-15 19:28:18 +0000 | [diff] [blame] | 103 | HTTP_UPSTREAM_KEEPALIVE=YES |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 104 | |
Igor Sysoev | aa82861 | 2005-02-09 14:31:07 +0000 | [diff] [blame] | 105 | # STUB |
| 106 | HTTP_STUB_STATUS=NO |
| 107 | |
Igor Sysoev | 02c8d18 | 2007-03-19 13:36:56 +0000 | [diff] [blame] | 108 | MAIL=NO |
| 109 | MAIL_SSL=NO |
Igor Sysoev | 4871408 | 2007-09-15 16:51:16 +0000 | [diff] [blame] | 110 | MAIL_POP3=YES |
| 111 | MAIL_IMAP=YES |
| 112 | MAIL_SMTP=YES |
Igor Sysoev | 59cf56c | 2004-09-07 15:29:22 +0000 | [diff] [blame] | 113 | |
Igor Sysoev | 1ebfead | 2005-02-16 13:40:36 +0000 | [diff] [blame] | 114 | NGX_ADDONS= |
Igor Sysoev | d43bee8 | 2004-11-20 19:52:20 +0000 | [diff] [blame] | 115 | |
Igor Sysoev | e9b2cb1 | 2004-02-09 20:47:18 +0000 | [diff] [blame] | 116 | USE_PCRE=NO |
Igor Sysoev | 43c3cd9 | 2004-02-19 08:45:27 +0000 | [diff] [blame] | 117 | PCRE=NONE |
Igor Sysoev | a893eab | 2004-03-11 21:34:52 +0000 | [diff] [blame] | 118 | PCRE_OPT= |
Valentin Bartenev | bc5191c | 2011-12-26 13:10:36 +0000 | [diff] [blame] | 119 | PCRE_CONF_OPT= |
| 120 | PCRE_JIT=NO |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 121 | |
Igor Sysoev | 0599b11 | 2004-07-25 18:34:14 +0000 | [diff] [blame] | 122 | USE_OPENSSL=NO |
| 123 | OPENSSL=NONE |
| 124 | |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 125 | USE_MD5=NO |
Igor Sysoev | 7af6b16 | 2004-02-09 07:46:43 +0000 | [diff] [blame] | 126 | MD5=NONE |
Igor Sysoev | a893eab | 2004-03-11 21:34:52 +0000 | [diff] [blame] | 127 | MD5_OPT= |
Igor Sysoev | 7b90834 | 2004-03-10 20:56:39 +0000 | [diff] [blame] | 128 | MD5_ASM=NO |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 129 | |
Igor Sysoev | afd7ec5 | 2006-05-29 17:28:12 +0000 | [diff] [blame] | 130 | USE_SHA1=NO |
| 131 | SHA1=NONE |
| 132 | SHA1_OPT= |
| 133 | SHA1_ASM=NO |
| 134 | |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 135 | USE_ZLIB=NO |
Igor Sysoev | 7af6b16 | 2004-02-09 07:46:43 +0000 | [diff] [blame] | 136 | ZLIB=NONE |
Igor Sysoev | a893eab | 2004-03-11 21:34:52 +0000 | [diff] [blame] | 137 | ZLIB_OPT= |
Igor Sysoev | 7b90834 | 2004-03-10 20:56:39 +0000 | [diff] [blame] | 138 | ZLIB_ASM=NO |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 139 | |
Igor Sysoev | 9bf11aa | 2006-01-16 14:56:53 +0000 | [diff] [blame] | 140 | USE_PERL=NO |
| 141 | NGX_PERL=perl |
| 142 | |
Igor Sysoev | 1ae389d | 2008-08-04 14:48:15 +0000 | [diff] [blame] | 143 | USE_LIBXSLT=NO |
Igor Sysoev | e2ada61 | 2009-05-01 18:42:09 +0000 | [diff] [blame] | 144 | USE_LIBGD=NO |
Igor Sysoev | 1ae389d | 2008-08-04 14:48:15 +0000 | [diff] [blame] | 145 | |
Igor Sysoev | 85dd8fc | 2008-03-18 10:36:27 +0000 | [diff] [blame] | 146 | NGX_GOOGLE_PERFTOOLS=NO |
Igor Sysoev | e24b57a | 2008-08-05 19:32:50 +0000 | [diff] [blame] | 147 | NGX_CPP_TEST=NO |
Igor Sysoev | 85dd8fc | 2008-03-18 10:36:27 +0000 | [diff] [blame] | 148 | |
Igor Sysoev | 213cad8 | 2009-11-25 17:55:25 +0000 | [diff] [blame] | 149 | NGX_LIBATOMIC=NO |
| 150 | |
Igor Sysoev | 2402502 | 2005-12-16 15:07:08 +0000 | [diff] [blame] | 151 | NGX_CPU_CACHE_LINE= |
| 152 | |
Valentin Bartenev | 255e20a | 2011-11-14 14:04:42 +0000 | [diff] [blame] | 153 | NGX_POST_CONF_MSG= |
| 154 | |
Igor Sysoev | 0e60e4f | 2009-04-26 19:37:38 +0000 | [diff] [blame] | 155 | opt= |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 156 | |
| 157 | for option |
| 158 | do |
Igor Sysoev | cfa2ee2 | 2009-05-18 16:50:32 +0000 | [diff] [blame] | 159 | opt="$opt `echo $option | sed -e \"s/\(--[^=]*=\)\(.* .*\)/\1'\2'/\"`" |
Igor Sysoev | 0e60e4f | 2009-04-26 19:37:38 +0000 | [diff] [blame] | 160 | |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 161 | case "$option" in |
| 162 | -*=*) value=`echo "$option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;; |
| 163 | *) value="" ;; |
| 164 | esac |
| 165 | |
| 166 | case "$option" in |
Igor Sysoev | dc867cd | 2003-12-14 20:10:27 +0000 | [diff] [blame] | 167 | --help) help=yes ;; |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 168 | |
Igor Sysoev | 5ef370d | 2009-04-27 11:32:33 +0000 | [diff] [blame] | 169 | --prefix=) NGX_PREFIX="!" ;; |
Igor Sysoev | f690604 | 2004-11-25 16:17:31 +0000 | [diff] [blame] | 170 | --prefix=*) NGX_PREFIX="$value" ;; |
| 171 | --sbin-path=*) NGX_SBIN_PATH="$value" ;; |
| 172 | --conf-path=*) NGX_CONF_PATH="$value" ;; |
| 173 | --error-log-path=*) NGX_ERROR_LOG_PATH="$value";; |
| 174 | --pid-path=*) NGX_PID_PATH="$value" ;; |
Igor Sysoev | ffe7144 | 2006-02-08 15:33:12 +0000 | [diff] [blame] | 175 | --lock-path=*) NGX_LOCK_PATH="$value" ;; |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 176 | --user=*) NGX_USER="$value" ;; |
| 177 | --group=*) NGX_GROUP="$value" ;; |
Igor Sysoev | 090849d | 2004-05-18 20:28:54 +0000 | [diff] [blame] | 178 | |
Igor Sysoev | f690604 | 2004-11-25 16:17:31 +0000 | [diff] [blame] | 179 | --crossbuild=*) NGX_PLATFORM="$value" ;; |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 180 | |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 181 | --builddir=*) NGX_OBJS="$value" ;; |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 182 | |
Igor Sysoev | 9139cd2 | 2004-02-17 17:53:12 +0000 | [diff] [blame] | 183 | --with-rtsig_module) EVENT_RTSIG=YES ;; |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 184 | --with-select_module) EVENT_SELECT=YES ;; |
Igor Sysoev | e9b2cb1 | 2004-02-09 20:47:18 +0000 | [diff] [blame] | 185 | --without-select_module) EVENT_SELECT=NONE ;; |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 186 | --with-poll_module) EVENT_POLL=YES ;; |
Igor Sysoev | e9b2cb1 | 2004-02-09 20:47:18 +0000 | [diff] [blame] | 187 | --without-poll_module) EVENT_POLL=NONE ;; |
Igor Sysoev | a4b16df | 2004-02-02 21:19:52 +0000 | [diff] [blame] | 188 | --with-aio_module) EVENT_AIO=YES ;; |
Igor Sysoev | 5c8c52f | 2004-01-23 09:26:18 +0000 | [diff] [blame] | 189 | |
Igor Sysoev | 8443360 | 2008-04-29 09:27:55 +0000 | [diff] [blame] | 190 | #--with-threads=*) USE_THREADS="$value" ;; |
| 191 | #--with-threads) USE_THREADS="pthreads" ;; |
Igor Sysoev | b54698b | 2004-02-23 20:57:12 +0000 | [diff] [blame] | 192 | |
Igor Sysoev | a962506 | 2009-08-28 08:12:35 +0000 | [diff] [blame] | 193 | --with-file-aio) NGX_FILE_AIO=YES ;; |
Igor Sysoev | a35eacc | 2009-02-21 07:02:02 +0000 | [diff] [blame] | 194 | --with-ipv6) NGX_IPV6=YES ;; |
| 195 | |
Igor Sysoev | 980a924 | 2004-09-05 19:54:02 +0000 | [diff] [blame] | 196 | --without-http) HTTP=NO ;; |
Igor Sysoev | 52859f2 | 2009-03-23 13:14:51 +0000 | [diff] [blame] | 197 | --without-http-cache) HTTP_CACHE=NO ;; |
| 198 | |
Igor Sysoev | f690604 | 2004-11-25 16:17:31 +0000 | [diff] [blame] | 199 | --http-log-path=*) NGX_HTTP_LOG_PATH="$value" ;; |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 200 | --http-client-body-temp-path=*) NGX_HTTP_CLIENT_TEMP_PATH="$value" ;; |
| 201 | --http-proxy-temp-path=*) NGX_HTTP_PROXY_TEMP_PATH="$value" ;; |
| 202 | --http-fastcgi-temp-path=*) NGX_HTTP_FASTCGI_TEMP_PATH="$value" ;; |
Igor Sysoev | e45b892 | 2010-06-01 17:44:51 +0000 | [diff] [blame] | 203 | --http-uwsgi-temp-path=*) NGX_HTTP_UWSGI_TEMP_PATH="$value" ;; |
Igor Sysoev | ee5f9e5 | 2010-06-18 15:51:14 +0000 | [diff] [blame] | 204 | --http-scgi-temp-path=*) NGX_HTTP_SCGI_TEMP_PATH="$value" ;; |
Igor Sysoev | 980a924 | 2004-09-05 19:54:02 +0000 | [diff] [blame] | 205 | |
Igor Sysoev | 7556945 | 2004-07-08 15:17:47 +0000 | [diff] [blame] | 206 | --with-http_ssl_module) HTTP_SSL=YES ;; |
Valentin Bartenev | 2686cb4 | 2013-03-20 10:36:57 +0000 | [diff] [blame] | 207 | --with-http_spdy_module) HTTP_SPDY=YES ;; |
Igor Sysoev | 09c684b | 2005-11-09 17:25:55 +0000 | [diff] [blame] | 208 | --with-http_realip_module) HTTP_REALIP=YES ;; |
Igor Sysoev | 6d16e1e | 2006-04-05 13:40:54 +0000 | [diff] [blame] | 209 | --with-http_addition_module) HTTP_ADDITION=YES ;; |
Igor Sysoev | 1ae389d | 2008-08-04 14:48:15 +0000 | [diff] [blame] | 210 | --with-http_xslt_module) HTTP_XSLT=YES ;; |
Igor Sysoev | e2ada61 | 2009-05-01 18:42:09 +0000 | [diff] [blame] | 211 | --with-http_image_filter_module) HTTP_IMAGE_FILTER=YES ;; |
Igor Sysoev | bc10147 | 2009-07-20 07:10:43 +0000 | [diff] [blame] | 212 | --with-http_geoip_module) HTTP_GEOIP=YES ;; |
Igor Sysoev | d9bb8e3 | 2007-04-19 17:54:23 +0000 | [diff] [blame] | 213 | --with-http_sub_module) HTTP_SUB=YES ;; |
Igor Sysoev | 8a2b2fb | 2006-04-14 09:53:38 +0000 | [diff] [blame] | 214 | --with-http_dav_module) HTTP_DAV=YES ;; |
Igor Sysoev | b505006 | 2006-10-09 14:17:36 +0000 | [diff] [blame] | 215 | --with-http_flv_module) HTTP_FLV=YES ;; |
Igor Sysoev | dde4d7e | 2011-09-09 10:22:34 +0000 | [diff] [blame] | 216 | --with-http_mp4_module) HTTP_MP4=YES ;; |
Maxim Dounin | 90bd33e | 2012-09-10 16:52:47 +0000 | [diff] [blame] | 217 | --with-http_gunzip_module) HTTP_GUNZIP=YES ;; |
Igor Sysoev | c16b005 | 2007-12-27 14:21:59 +0000 | [diff] [blame] | 218 | --with-http_gzip_static_module) HTTP_GZIP_STATIC=YES ;; |
Maxim Dounin | 4c53a38 | 2013-08-21 19:19:47 +0400 | [diff] [blame] | 219 | --with-http_auth_request_module) HTTP_AUTH_REQUEST=YES ;; |
Igor Sysoev | 2e2b81d | 2008-09-05 15:45:55 +0000 | [diff] [blame] | 220 | --with-http_random_index_module) HTTP_RANDOM_INDEX=YES ;; |
Igor Sysoev | e52991e | 2008-09-27 13:22:10 +0000 | [diff] [blame] | 221 | --with-http_secure_link_module) HTTP_SECURE_LINK=YES ;; |
Igor Sysoev | 4985109 | 2009-11-16 12:20:00 +0000 | [diff] [blame] | 222 | --with-http_degradation_module) HTTP_DEGRADATION=YES ;; |
Igor Sysoev | 8a2b2fb | 2006-04-14 09:53:38 +0000 | [diff] [blame] | 223 | |
Igor Sysoev | 3d5c0fc | 2004-06-22 16:43:09 +0000 | [diff] [blame] | 224 | --without-http_charset_module) HTTP_CHARSET=NO ;; |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 225 | --without-http_gzip_module) HTTP_GZIP=NO ;; |
Igor Sysoev | 7556945 | 2004-07-08 15:17:47 +0000 | [diff] [blame] | 226 | --without-http_ssi_module) HTTP_SSI=NO ;; |
Igor Sysoev | 967fd63 | 2004-08-27 15:40:59 +0000 | [diff] [blame] | 227 | --without-http_userid_module) HTTP_USERID=NO ;; |
Igor Sysoev | a7c4a2a | 2004-08-29 03:55:41 +0000 | [diff] [blame] | 228 | --without-http_access_module) HTTP_ACCESS=NO ;; |
Igor Sysoev | 4d656dc | 2005-03-22 16:02:46 +0000 | [diff] [blame] | 229 | --without-http_auth_basic_module) HTTP_AUTH_BASIC=NO ;; |
Igor Sysoev | 723e6cc | 2004-10-25 15:29:23 +0000 | [diff] [blame] | 230 | --without-http_autoindex_module) HTTP_AUTOINDEX=NO ;; |
Igor Sysoev | c83f683 | 2004-06-24 07:53:37 +0000 | [diff] [blame] | 231 | --without-http_status_module) HTTP_STATUS=NO ;; |
Igor Sysoev | 805d9db | 2005-02-03 19:33:37 +0000 | [diff] [blame] | 232 | --without-http_geo_module) HTTP_GEO=NO ;; |
Igor Sysoev | 2402502 | 2005-12-16 15:07:08 +0000 | [diff] [blame] | 233 | --without-http_map_module) HTTP_MAP=NO ;; |
Igor Sysoev | fadd4bd | 2010-05-14 09:02:10 +0000 | [diff] [blame] | 234 | --without-http_split_clients_module) HTTP_SPLIT_CLIENTS=NO ;; |
Igor Sysoev | c31a9bb | 2005-11-26 10:11:11 +0000 | [diff] [blame] | 235 | --without-http_referer_module) HTTP_REFERER=NO ;; |
Igor Sysoev | c83f683 | 2004-06-24 07:53:37 +0000 | [diff] [blame] | 236 | --without-http_rewrite_module) HTTP_REWRITE=NO ;; |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 237 | --without-http_proxy_module) HTTP_PROXY=NO ;; |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 238 | --without-http_fastcgi_module) HTTP_FASTCGI=NO ;; |
Igor Sysoev | 3a881d3 | 2010-06-01 15:53:11 +0000 | [diff] [blame] | 239 | --without-http_uwsgi_module) HTTP_UWSGI=NO ;; |
Igor Sysoev | ee5f9e5 | 2010-06-18 15:51:14 +0000 | [diff] [blame] | 240 | --without-http_scgi_module) HTTP_SCGI=NO ;; |
Igor Sysoev | c31a9bb | 2005-11-26 10:11:11 +0000 | [diff] [blame] | 241 | --without-http_memcached_module) HTTP_MEMCACHED=NO ;; |
Valentin Bartenev | 255e20a | 2011-11-14 14:04:42 +0000 | [diff] [blame] | 242 | --without-http_limit_zone_module) |
| 243 | HTTP_LIMIT_CONN=NO |
| 244 | NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG |
| 245 | $0: warning: the \"--without-http_limit_zone_module\" option is deprecated, \ |
| 246 | use the \"--without-http_limit_conn_module\" option instead" |
| 247 | ;; |
| 248 | --without-http_limit_conn_module) HTTP_LIMIT_CONN=NO ;; |
Igor Sysoev | abe378e | 2008-11-10 15:22:33 +0000 | [diff] [blame] | 249 | --without-http_limit_req_module) HTTP_LIMIT_REQ=NO ;; |
Igor Sysoev | c31a9bb | 2005-11-26 10:11:11 +0000 | [diff] [blame] | 250 | --without-http_empty_gif_module) HTTP_EMPTY_GIF=NO ;; |
Igor Sysoev | 3383ff6 | 2006-09-18 12:25:07 +0000 | [diff] [blame] | 251 | --without-http_browser_module) HTTP_BROWSER=NO ;; |
Igor Sysoev | 3d2fd18 | 2006-12-04 16:46:13 +0000 | [diff] [blame] | 252 | --without-http_upstream_ip_hash_module) HTTP_UPSTREAM_IP_HASH=NO ;; |
Maxim Dounin | 4cb4e8d | 2012-06-03 23:21:26 +0000 | [diff] [blame] | 253 | --without-http_upstream_least_conn_module) |
| 254 | HTTP_UPSTREAM_LEAST_CONN=NO ;; |
Maxim Dounin | 44002e5 | 2011-09-15 19:28:18 +0000 | [diff] [blame] | 255 | --without-http_upstream_keepalive_module) HTTP_UPSTREAM_KEEPALIVE=NO ;; |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 256 | |
Igor Sysoev | 9bf11aa | 2006-01-16 14:56:53 +0000 | [diff] [blame] | 257 | --with-http_perl_module) HTTP_PERL=YES ;; |
| 258 | --with-perl_modules_path=*) NGX_PERL_MODULES="$value" ;; |
| 259 | --with-perl=*) NGX_PERL="$value" ;; |
| 260 | |
Igor Sysoev | aa82861 | 2005-02-09 14:31:07 +0000 | [diff] [blame] | 261 | # STUB |
| 262 | --with-http_stub_status_module) HTTP_STUB_STATUS=YES ;; |
| 263 | |
Igor Sysoev | 02c8d18 | 2007-03-19 13:36:56 +0000 | [diff] [blame] | 264 | --with-mail) MAIL=YES ;; |
| 265 | --with-mail_ssl_module) MAIL_SSL=YES ;; |
| 266 | # STUB |
| 267 | --with-imap) MAIL=YES ;; |
| 268 | --with-imap_ssl_module) MAIL_SSL=YES ;; |
Igor Sysoev | 4871408 | 2007-09-15 16:51:16 +0000 | [diff] [blame] | 269 | --without-mail_pop3_module) MAIL_POP3=NO ;; |
| 270 | --without-mail_imap_module) MAIL_IMAP=NO ;; |
| 271 | --without-mail_smtp_module) MAIL_SMTP=NO ;; |
Igor Sysoev | 59cf56c | 2004-09-07 15:29:22 +0000 | [diff] [blame] | 272 | |
Igor Sysoev | 85dd8fc | 2008-03-18 10:36:27 +0000 | [diff] [blame] | 273 | --with-google_perftools_module) NGX_GOOGLE_PERFTOOLS=YES ;; |
Igor Sysoev | 49f0685 | 2008-08-13 08:29:27 +0000 | [diff] [blame] | 274 | --with-cpp_test_module) NGX_CPP_TEST=YES ;; |
Igor Sysoev | 85dd8fc | 2008-03-18 10:36:27 +0000 | [diff] [blame] | 275 | |
Igor Sysoev | 1ebfead | 2005-02-16 13:40:36 +0000 | [diff] [blame] | 276 | --add-module=*) NGX_ADDONS="$NGX_ADDONS $value" ;; |
Igor Sysoev | d43bee8 | 2004-11-20 19:52:20 +0000 | [diff] [blame] | 277 | |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 278 | --with-cc=*) CC="$value" ;; |
Igor Sysoev | a893eab | 2004-03-11 21:34:52 +0000 | [diff] [blame] | 279 | --with-cpp=*) CPP="$value" ;; |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 280 | --with-cc-opt=*) NGX_CC_OPT="$value" ;; |
| 281 | --with-ld-opt=*) NGX_LD_OPT="$value" ;; |
Igor Sysoev | 7b90834 | 2004-03-10 20:56:39 +0000 | [diff] [blame] | 282 | --with-cpu-opt=*) CPU="$value" ;; |
Igor Sysoev | f690604 | 2004-11-25 16:17:31 +0000 | [diff] [blame] | 283 | --with-debug) NGX_DEBUG=YES ;; |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 284 | |
Igor Sysoev | bb1ba3f | 2004-02-19 16:48:14 +0000 | [diff] [blame] | 285 | --without-pcre) USE_PCRE=DISABLED ;; |
Igor Sysoev | e231e58 | 2009-03-19 16:06:32 +0000 | [diff] [blame] | 286 | --with-pcre) USE_PCRE=YES ;; |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 287 | --with-pcre=*) PCRE="$value" ;; |
Igor Sysoev | 7b90834 | 2004-03-10 20:56:39 +0000 | [diff] [blame] | 288 | --with-pcre-opt=*) PCRE_OPT="$value" ;; |
Valentin Bartenev | bc5191c | 2011-12-26 13:10:36 +0000 | [diff] [blame] | 289 | --with-pcre-jit) PCRE_JIT=YES ;; |
Igor Sysoev | 7b90834 | 2004-03-10 20:56:39 +0000 | [diff] [blame] | 290 | |
Igor Sysoev | 0599b11 | 2004-07-25 18:34:14 +0000 | [diff] [blame] | 291 | --with-openssl=*) OPENSSL="$value" ;; |
Igor Sysoev | c157172 | 2005-03-19 12:38:37 +0000 | [diff] [blame] | 292 | --with-openssl-opt=*) OPENSSL_OPT="$value" ;; |
Igor Sysoev | 0599b11 | 2004-07-25 18:34:14 +0000 | [diff] [blame] | 293 | |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 294 | --with-md5=*) MD5="$value" ;; |
Igor Sysoev | 7b90834 | 2004-03-10 20:56:39 +0000 | [diff] [blame] | 295 | --with-md5-opt=*) MD5_OPT="$value" ;; |
| 296 | --with-md5-asm) MD5_ASM=YES ;; |
| 297 | |
Igor Sysoev | afd7ec5 | 2006-05-29 17:28:12 +0000 | [diff] [blame] | 298 | --with-sha1=*) SHA1="$value" ;; |
| 299 | --with-sha1-opt=*) SHA1_OPT="$value" ;; |
| 300 | --with-sha1-asm) SHA1_ASM=YES ;; |
| 301 | |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 302 | --with-zlib=*) ZLIB="$value" ;; |
Igor Sysoev | 24b56c9 | 2004-03-10 17:55:19 +0000 | [diff] [blame] | 303 | --with-zlib-opt=*) ZLIB_OPT="$value" ;; |
Igor Sysoev | 7b90834 | 2004-03-10 20:56:39 +0000 | [diff] [blame] | 304 | --with-zlib-asm=*) ZLIB_ASM="$value" ;; |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 305 | |
Igor Sysoev | 213cad8 | 2009-11-25 17:55:25 +0000 | [diff] [blame] | 306 | --with-libatomic) NGX_LIBATOMIC=YES ;; |
| 307 | --with-libatomic=*) NGX_LIBATOMIC="$value" ;; |
| 308 | |
Igor Sysoev | f690604 | 2004-11-25 16:17:31 +0000 | [diff] [blame] | 309 | --test-build-devpoll) NGX_TEST_BUILD_DEVPOLL=YES ;; |
Igor Sysoev | 4524fb0 | 2006-09-26 12:20:12 +0000 | [diff] [blame] | 310 | --test-build-eventport) NGX_TEST_BUILD_EVENTPORT=YES ;; |
Igor Sysoev | f690604 | 2004-11-25 16:17:31 +0000 | [diff] [blame] | 311 | --test-build-epoll) NGX_TEST_BUILD_EPOLL=YES ;; |
| 312 | --test-build-rtsig) NGX_TEST_BUILD_RTSIG=YES ;; |
Igor Sysoev | 42b12b3 | 2004-12-02 18:40:46 +0000 | [diff] [blame] | 313 | --test-build-solaris-sendfilev) NGX_TEST_BUILD_SOLARIS_SENDFILEV=YES ;; |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 314 | |
| 315 | *) |
| 316 | echo "$0: error: invalid option \"$option\"" |
| 317 | exit 1 |
| 318 | ;; |
| 319 | esac |
| 320 | done |
| 321 | |
| 322 | |
Igor Sysoev | 0e60e4f | 2009-04-26 19:37:38 +0000 | [diff] [blame] | 323 | NGX_CONFIGURE="$opt" |
| 324 | |
| 325 | |
Igor Sysoev | dc867cd | 2003-12-14 20:10:27 +0000 | [diff] [blame] | 326 | if [ $help = yes ]; then |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 327 | |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 328 | cat << END |
Igor Sysoev | 5c8c52f | 2004-01-23 09:26:18 +0000 | [diff] [blame] | 329 | |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 330 | --help print this message |
Igor Sysoev | 5c8c52f | 2004-01-23 09:26:18 +0000 | [diff] [blame] | 331 | |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 332 | --prefix=PATH set installation prefix |
| 333 | --sbin-path=PATH set nginx binary pathname |
| 334 | --conf-path=PATH set nginx.conf pathname |
| 335 | --error-log-path=PATH set error log pathname |
| 336 | --pid-path=PATH set nginx.pid pathname |
| 337 | --lock-path=PATH set nginx.lock pathname |
Igor Sysoev | 5c8c52f | 2004-01-23 09:26:18 +0000 | [diff] [blame] | 338 | |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 339 | --user=USER set non-privileged user for |
| 340 | worker processes |
| 341 | --group=GROUP set non-privileged group for |
| 342 | worker processes |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 343 | |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 344 | --builddir=DIR set build directory |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 345 | |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 346 | --with-rtsig_module enable rtsig module |
| 347 | --with-select_module enable select module |
| 348 | --without-select_module disable select module |
| 349 | --with-poll_module enable poll module |
| 350 | --without-poll_module disable poll module |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 351 | |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 352 | --with-file-aio enable file AIO support |
| 353 | --with-ipv6 enable IPv6 support |
Igor Sysoev | a35eacc | 2009-02-21 07:02:02 +0000 | [diff] [blame] | 354 | |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 355 | --with-http_ssl_module enable ngx_http_ssl_module |
Valentin Bartenev | 2686cb4 | 2013-03-20 10:36:57 +0000 | [diff] [blame] | 356 | --with-http_spdy_module enable ngx_http_spdy_module |
Igor Sysoev | c31a9bb | 2005-11-26 10:11:11 +0000 | [diff] [blame] | 357 | --with-http_realip_module enable ngx_http_realip_module |
Igor Sysoev | cdf609a | 2006-04-17 19:55:41 +0000 | [diff] [blame] | 358 | --with-http_addition_module enable ngx_http_addition_module |
Igor Sysoev | 1ae389d | 2008-08-04 14:48:15 +0000 | [diff] [blame] | 359 | --with-http_xslt_module enable ngx_http_xslt_module |
Igor Sysoev | 59eed35 | 2009-05-01 19:14:10 +0000 | [diff] [blame] | 360 | --with-http_image_filter_module enable ngx_http_image_filter_module |
Igor Sysoev | 16137b0 | 2009-07-21 13:27:19 +0000 | [diff] [blame] | 361 | --with-http_geoip_module enable ngx_http_geoip_module |
Igor Sysoev | d9bb8e3 | 2007-04-19 17:54:23 +0000 | [diff] [blame] | 362 | --with-http_sub_module enable ngx_http_sub_module |
Igor Sysoev | cdf609a | 2006-04-17 19:55:41 +0000 | [diff] [blame] | 363 | --with-http_dav_module enable ngx_http_dav_module |
Igor Sysoev | b505006 | 2006-10-09 14:17:36 +0000 | [diff] [blame] | 364 | --with-http_flv_module enable ngx_http_flv_module |
Igor Sysoev | dde4d7e | 2011-09-09 10:22:34 +0000 | [diff] [blame] | 365 | --with-http_mp4_module enable ngx_http_mp4_module |
Maxim Dounin | 90bd33e | 2012-09-10 16:52:47 +0000 | [diff] [blame] | 366 | --with-http_gunzip_module enable ngx_http_gunzip_module |
Igor Sysoev | c16b005 | 2007-12-27 14:21:59 +0000 | [diff] [blame] | 367 | --with-http_gzip_static_module enable ngx_http_gzip_static_module |
Maxim Dounin | 4c53a38 | 2013-08-21 19:19:47 +0400 | [diff] [blame] | 368 | --with-http_auth_request_module enable ngx_http_auth_request_module |
Igor Sysoev | 2e2b81d | 2008-09-05 15:45:55 +0000 | [diff] [blame] | 369 | --with-http_random_index_module enable ngx_http_random_index_module |
Igor Sysoev | e52991e | 2008-09-27 13:22:10 +0000 | [diff] [blame] | 370 | --with-http_secure_link_module enable ngx_http_secure_link_module |
Igor Sysoev | 4985109 | 2009-11-16 12:20:00 +0000 | [diff] [blame] | 371 | --with-http_degradation_module enable ngx_http_degradation_module |
Igor Sysoev | 60e8440 | 2007-05-01 19:55:25 +0000 | [diff] [blame] | 372 | --with-http_stub_status_module enable ngx_http_stub_status_module |
Igor Sysoev | cdf609a | 2006-04-17 19:55:41 +0000 | [diff] [blame] | 373 | |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 374 | --without-http_charset_module disable ngx_http_charset_module |
| 375 | --without-http_gzip_module disable ngx_http_gzip_module |
Igor Sysoev | c157172 | 2005-03-19 12:38:37 +0000 | [diff] [blame] | 376 | --without-http_ssi_module disable ngx_http_ssi_module |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 377 | --without-http_userid_module disable ngx_http_userid_module |
| 378 | --without-http_access_module disable ngx_http_access_module |
Igor Sysoev | 4d656dc | 2005-03-22 16:02:46 +0000 | [diff] [blame] | 379 | --without-http_auth_basic_module disable ngx_http_auth_basic_module |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 380 | --without-http_autoindex_module disable ngx_http_autoindex_module |
Igor Sysoev | 805d9db | 2005-02-03 19:33:37 +0000 | [diff] [blame] | 381 | --without-http_geo_module disable ngx_http_geo_module |
Igor Sysoev | 347f7fe | 2006-09-26 21:15:02 +0000 | [diff] [blame] | 382 | --without-http_map_module disable ngx_http_map_module |
Igor Sysoev | fadd4bd | 2010-05-14 09:02:10 +0000 | [diff] [blame] | 383 | --without-http_split_clients_module disable ngx_http_split_clients_module |
Igor Sysoev | c31a9bb | 2005-11-26 10:11:11 +0000 | [diff] [blame] | 384 | --without-http_referer_module disable ngx_http_referer_module |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 385 | --without-http_rewrite_module disable ngx_http_rewrite_module |
| 386 | --without-http_proxy_module disable ngx_http_proxy_module |
| 387 | --without-http_fastcgi_module disable ngx_http_fastcgi_module |
Igor Sysoev | 3a881d3 | 2010-06-01 15:53:11 +0000 | [diff] [blame] | 388 | --without-http_uwsgi_module disable ngx_http_uwsgi_module |
Igor Sysoev | ee5f9e5 | 2010-06-18 15:51:14 +0000 | [diff] [blame] | 389 | --without-http_scgi_module disable ngx_http_scgi_module |
Igor Sysoev | c31a9bb | 2005-11-26 10:11:11 +0000 | [diff] [blame] | 390 | --without-http_memcached_module disable ngx_http_memcached_module |
Valentin Bartenev | 255e20a | 2011-11-14 14:04:42 +0000 | [diff] [blame] | 391 | --without-http_limit_conn_module disable ngx_http_limit_conn_module |
Igor Sysoev | abe378e | 2008-11-10 15:22:33 +0000 | [diff] [blame] | 392 | --without-http_limit_req_module disable ngx_http_limit_req_module |
Igor Sysoev | c31a9bb | 2005-11-26 10:11:11 +0000 | [diff] [blame] | 393 | --without-http_empty_gif_module disable ngx_http_empty_gif_module |
Igor Sysoev | 347f7fe | 2006-09-26 21:15:02 +0000 | [diff] [blame] | 394 | --without-http_browser_module disable ngx_http_browser_module |
Igor Sysoev | 3d2fd18 | 2006-12-04 16:46:13 +0000 | [diff] [blame] | 395 | --without-http_upstream_ip_hash_module |
| 396 | disable ngx_http_upstream_ip_hash_module |
Maxim Dounin | 8a1a54b | 2012-09-26 16:39:38 +0000 | [diff] [blame] | 397 | --without-http_upstream_least_conn_module |
| 398 | disable ngx_http_upstream_least_conn_module |
| 399 | --without-http_upstream_keepalive_module |
| 400 | disable ngx_http_upstream_keepalive_module |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 401 | |
Igor Sysoev | 9bf11aa | 2006-01-16 14:56:53 +0000 | [diff] [blame] | 402 | --with-http_perl_module enable ngx_http_perl_module |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 403 | --with-perl_modules_path=PATH set Perl modules path |
| 404 | --with-perl=PATH set perl binary pathname |
Igor Sysoev | 9bf11aa | 2006-01-16 14:56:53 +0000 | [diff] [blame] | 405 | |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 406 | --http-log-path=PATH set http access log pathname |
| 407 | --http-client-body-temp-path=PATH set path to store |
| 408 | http client request body temporary files |
| 409 | --http-proxy-temp-path=PATH set path to store |
| 410 | http proxy temporary files |
| 411 | --http-fastcgi-temp-path=PATH set path to store |
| 412 | http fastcgi temporary files |
| 413 | --http-uwsgi-temp-path=PATH set path to store |
| 414 | http uwsgi temporary files |
| 415 | --http-scgi-temp-path=PATH set path to store |
| 416 | http scgi temporary files |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 417 | |
Igor Sysoev | 187b7d9 | 2005-07-14 12:51:53 +0000 | [diff] [blame] | 418 | --without-http disable HTTP server |
Igor Sysoev | 52859f2 | 2009-03-23 13:14:51 +0000 | [diff] [blame] | 419 | --without-http-cache disable HTTP cache |
Igor Sysoev | 187b7d9 | 2005-07-14 12:51:53 +0000 | [diff] [blame] | 420 | |
Igor Sysoev | 884d634 | 2007-09-21 16:14:17 +0000 | [diff] [blame] | 421 | --with-mail enable POP3/IMAP4/SMTP proxy module |
Igor Sysoev | 02c8d18 | 2007-03-19 13:36:56 +0000 | [diff] [blame] | 422 | --with-mail_ssl_module enable ngx_mail_ssl_module |
Igor Sysoev | 884d634 | 2007-09-21 16:14:17 +0000 | [diff] [blame] | 423 | --without-mail_pop3_module disable ngx_mail_pop3_module |
| 424 | --without-mail_imap_module disable ngx_mail_imap_module |
| 425 | --without-mail_smtp_module disable ngx_mail_smtp_module |
Igor Sysoev | 187b7d9 | 2005-07-14 12:51:53 +0000 | [diff] [blame] | 426 | |
Igor Sysoev | 85dd8fc | 2008-03-18 10:36:27 +0000 | [diff] [blame] | 427 | --with-google_perftools_module enable ngx_google_perftools_module |
Igor Sysoev | e24b57a | 2008-08-05 19:32:50 +0000 | [diff] [blame] | 428 | --with-cpp_test_module enable ngx_cpp_test_module |
Igor Sysoev | 85dd8fc | 2008-03-18 10:36:27 +0000 | [diff] [blame] | 429 | |
Igor Sysoev | 60e8440 | 2007-05-01 19:55:25 +0000 | [diff] [blame] | 430 | --add-module=PATH enable an external module |
| 431 | |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 432 | --with-cc=PATH set C compiler pathname |
| 433 | --with-cpp=PATH set C preprocessor pathname |
| 434 | --with-cc-opt=OPTIONS set additional C compiler options |
| 435 | --with-ld-opt=OPTIONS set additional linker options |
| 436 | --with-cpu-opt=CPU build for the specified CPU, valid values: |
Igor Sysoev | c2807ec | 2006-02-16 15:26:46 +0000 | [diff] [blame] | 437 | pentium, pentiumpro, pentium3, pentium4, |
| 438 | athlon, opteron, sparc32, sparc64, ppc64 |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 439 | |
Igor Sysoev | 58e19b7 | 2009-03-19 16:02:40 +0000 | [diff] [blame] | 440 | --without-pcre disable PCRE library usage |
Igor Sysoev | e231e58 | 2009-03-19 16:06:32 +0000 | [diff] [blame] | 441 | --with-pcre force PCRE library usage |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 442 | --with-pcre=DIR set path to PCRE library sources |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 443 | --with-pcre-opt=OPTIONS set additional build options for PCRE |
Valentin Bartenev | bc5191c | 2011-12-26 13:10:36 +0000 | [diff] [blame] | 444 | --with-pcre-jit build PCRE with JIT compilation support |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 445 | |
| 446 | --with-md5=DIR set path to md5 library sources |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 447 | --with-md5-opt=OPTIONS set additional build options for md5 |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 448 | --with-md5-asm use md5 assembler sources |
| 449 | |
Igor Sysoev | afd7ec5 | 2006-05-29 17:28:12 +0000 | [diff] [blame] | 450 | --with-sha1=DIR set path to sha1 library sources |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 451 | --with-sha1-opt=OPTIONS set additional build options for sha1 |
Igor Sysoev | afd7ec5 | 2006-05-29 17:28:12 +0000 | [diff] [blame] | 452 | --with-sha1-asm use sha1 assembler sources |
| 453 | |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 454 | --with-zlib=DIR set path to zlib library sources |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 455 | --with-zlib-opt=OPTIONS set additional build options for zlib |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 456 | --with-zlib-asm=CPU use zlib assembler sources optimized |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 457 | for the specified CPU, valid values: |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 458 | pentium, pentiumpro |
| 459 | |
Igor Sysoev | 213cad8 | 2009-11-25 17:55:25 +0000 | [diff] [blame] | 460 | --with-libatomic force libatomic_ops library usage |
| 461 | --with-libatomic=DIR set path to libatomic_ops library sources |
| 462 | |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 463 | --with-openssl=DIR set path to OpenSSL library sources |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 464 | --with-openssl-opt=OPTIONS set additional build options for OpenSSL |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 465 | |
Ruslan Ermilov | ac0e8cb | 2011-10-26 13:18:33 +0000 | [diff] [blame] | 466 | --with-debug enable debug logging |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 467 | |
| 468 | END |
Igor Sysoev | a8fa0a6 | 2003-11-25 20:44:56 +0000 | [diff] [blame] | 469 | |
| 470 | exit 1 |
| 471 | fi |
Igor Sysoev | 732a271 | 2004-04-21 18:54:33 +0000 | [diff] [blame] | 472 | |
| 473 | |
Igor Sysoev | 562626a | 2004-09-14 05:45:22 +0000 | [diff] [blame] | 474 | if [ $HTTP = NO ]; then |
| 475 | HTTP_CHARSET=NO |
| 476 | HTTP_GZIP=NO |
| 477 | HTTP_SSI=NO |
| 478 | HTTP_USERID=NO |
| 479 | HTTP_ACCESS=NO |
| 480 | HTTP_STATUS=NO |
| 481 | HTTP_REWRITE=NO |
| 482 | HTTP_PROXY=NO |
Igor Sysoev | 02025fd | 2005-01-18 13:03:58 +0000 | [diff] [blame] | 483 | HTTP_FASTCGI=NO |
Igor Sysoev | 562626a | 2004-09-14 05:45:22 +0000 | [diff] [blame] | 484 | fi |
| 485 | |
| 486 | |
Igor Sysoev | f690604 | 2004-11-25 16:17:31 +0000 | [diff] [blame] | 487 | if [ ".$NGX_PLATFORM" = ".win32" ]; then |
Igor Sysoev | 1b73583 | 2004-11-11 14:07:14 +0000 | [diff] [blame] | 488 | NGX_WINE=$WINE |
Igor Sysoev | 732a271 | 2004-04-21 18:54:33 +0000 | [diff] [blame] | 489 | fi |
Igor Sysoev | 090849d | 2004-05-18 20:28:54 +0000 | [diff] [blame] | 490 | |
| 491 | |
Igor Sysoev | 5ef370d | 2009-04-27 11:32:33 +0000 | [diff] [blame] | 492 | NGX_CONF_PATH=${NGX_CONF_PATH:-conf/nginx.conf} |
Igor Sysoev | 5cf4d1a | 2007-08-14 19:26:20 +0000 | [diff] [blame] | 493 | NGX_CONF_PREFIX=`dirname $NGX_CONF_PATH` |
Igor Sysoev | 5ef370d | 2009-04-27 11:32:33 +0000 | [diff] [blame] | 494 | NGX_PID_PATH=${NGX_PID_PATH:-logs/nginx.pid} |
| 495 | NGX_LOCK_PATH=${NGX_LOCK_PATH:-logs/nginx.lock} |
Igor Sysoev | 5cf4d1a | 2007-08-14 19:26:20 +0000 | [diff] [blame] | 496 | |
Igor Sysoev | 5ef370d | 2009-04-27 11:32:33 +0000 | [diff] [blame] | 497 | if [ ".$NGX_ERROR_LOG_PATH" = ".stderr" ]; then |
| 498 | NGX_ERROR_LOG_PATH= |
| 499 | else |
| 500 | NGX_ERROR_LOG_PATH=${NGX_ERROR_LOG_PATH:-logs/error.log} |
| 501 | fi |
Igor Sysoev | 5cf4d1a | 2007-08-14 19:26:20 +0000 | [diff] [blame] | 502 | |
Igor Sysoev | 5ef370d | 2009-04-27 11:32:33 +0000 | [diff] [blame] | 503 | NGX_HTTP_LOG_PATH=${NGX_HTTP_LOG_PATH:-logs/access.log} |
| 504 | NGX_HTTP_CLIENT_TEMP_PATH=${NGX_HTTP_CLIENT_TEMP_PATH:-client_body_temp} |
| 505 | NGX_HTTP_PROXY_TEMP_PATH=${NGX_HTTP_PROXY_TEMP_PATH:-proxy_temp} |
| 506 | NGX_HTTP_FASTCGI_TEMP_PATH=${NGX_HTTP_FASTCGI_TEMP_PATH:-fastcgi_temp} |
Igor Sysoev | e45b892 | 2010-06-01 17:44:51 +0000 | [diff] [blame] | 507 | NGX_HTTP_UWSGI_TEMP_PATH=${NGX_HTTP_UWSGI_TEMP_PATH:-uwsgi_temp} |
Igor Sysoev | ee5f9e5 | 2010-06-18 15:51:14 +0000 | [diff] [blame] | 508 | NGX_HTTP_SCGI_TEMP_PATH=${NGX_HTTP_SCGI_TEMP_PATH:-scgi_temp} |
Igor Sysoev | 9bf11aa | 2006-01-16 14:56:53 +0000 | [diff] [blame] | 509 | |
| 510 | case ".$NGX_PERL_MODULES" in |
| 511 | ./*) |
| 512 | ;; |
| 513 | |
| 514 | .) |
| 515 | ;; |
| 516 | |
| 517 | *) |
| 518 | NGX_PERL_MODULES=$NGX_PREFIX/$NGX_PERL_MODULES |
| 519 | ;; |
| 520 | esac |