comparison auto/modules @ 6382:392959224560

Dynamic modules: auto/module script. This script simplifies configuration of additional modules, including 3rd party ones. The script is extensible, and will be used to introduce dynamic linking of modules in upcoming changes. 3rd party module config scripts are called with ngx_module_link preset to "ADDON" - this allows config scripts to call auto/module without ngx_module_link explicitly defined, as well as testing if new interface is in place if compatibility with older nginx versions is desired. In collaboration with Ruslan Ermilov.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 04 Feb 2016 18:30:21 +0300
parents c529555949b7
children 85dea406e18f
comparison
equal deleted inserted replaced
6381:c529555949b7 6382:392959224560
50 fi 50 fi
51 51
52 if [ $NGX_TEST_BUILD_SOLARIS_SENDFILEV = YES ]; then 52 if [ $NGX_TEST_BUILD_SOLARIS_SENDFILEV = YES ]; then
53 have=NGX_TEST_BUILD_SOLARIS_SENDFILEV . auto/have 53 have=NGX_TEST_BUILD_SOLARIS_SENDFILEV . auto/have
54 CORE_SRCS="$CORE_SRCS $SOLARIS_SENDFILEV_SRCS" 54 CORE_SRCS="$CORE_SRCS $SOLARIS_SENDFILEV_SRCS"
55 fi
56
57
58 HTTP_MODULES=
59 HTTP_DEPS=
60 HTTP_INCS=
61
62 ngx_module_type=HTTP
63
64 if :; then
65 ngx_module_name="ngx_http_module \
66 ngx_http_core_module \
67 ngx_http_log_module \
68 ngx_http_upstream_module"
69 ngx_module_incs="src/http src/http/modules"
70 ngx_module_deps="src/http/ngx_http.h \
71 src/http/ngx_http_request.h \
72 src/http/ngx_http_config.h \
73 src/http/ngx_http_core_module.h \
74 src/http/ngx_http_cache.h \
75 src/http/ngx_http_variables.h \
76 src/http/ngx_http_script.h \
77 src/http/ngx_http_upstream.h \
78 src/http/ngx_http_upstream_round_robin.h"
79 ngx_module_srcs="src/http/ngx_http.c \
80 src/http/ngx_http_core_module.c \
81 src/http/ngx_http_special_response.c \
82 src/http/ngx_http_request.c \
83 src/http/ngx_http_parse.c \
84 src/http/modules/ngx_http_log_module.c \
85 src/http/ngx_http_request_body.c \
86 src/http/ngx_http_variables.c \
87 src/http/ngx_http_script.c \
88 src/http/ngx_http_upstream.c \
89 src/http/ngx_http_upstream_round_robin.c"
90 ngx_module_libs=
91 ngx_module_link=YES
92
93 . auto/module
55 fi 94 fi
56 95
57 96
58 if [ $HTTP != YES ]; then 97 if [ $HTTP != YES ]; then
59 have=NGX_CRYPT . auto/nohave 98 have=NGX_CRYPT . auto/nohave
115 # ngx_http_copy_filter 154 # ngx_http_copy_filter
116 # ngx_http_range_body_filter 155 # ngx_http_range_body_filter
117 # ngx_http_not_modified_filter 156 # ngx_http_not_modified_filter
118 # ngx_http_slice_filter 157 # ngx_http_slice_filter
119 158
120 HTTP_FILTER_MODULES="$HTTP_WRITE_FILTER_MODULE \ 159 ngx_module_type=HTTP_FILTER
121 $HTTP_HEADER_FILTER_MODULE \ 160 HTTP_FILTER_MODULES=
122 $HTTP_CHUNKED_FILTER_MODULE" 161
162 if :; then
163 ngx_module_name=ngx_http_write_filter_module
164 ngx_module_incs=
165 ngx_module_deps=
166 ngx_module_srcs=src/http/ngx_http_write_filter_module.c
167 ngx_module_libs=
168 ngx_module_link=YES
169
170 . auto/module
171 fi
172
173 if :; then
174 ngx_module_name=ngx_http_header_filter_module
175 ngx_module_incs=
176 ngx_module_deps=
177 ngx_module_srcs=src/http/ngx_http_header_filter_module.c
178 ngx_module_libs=
179 ngx_module_link=YES
180
181 . auto/module
182 fi
183
184 if :; then
185 ngx_module_name=ngx_http_chunked_filter_module
186 ngx_module_incs=
187 ngx_module_deps=
188 ngx_module_srcs=src/http/modules/ngx_http_chunked_filter_module.c
189 ngx_module_libs=
190 ngx_module_link=YES
191
192 . auto/module
193 fi
123 194
124 if [ $HTTP_V2 = YES ]; then 195 if [ $HTTP_V2 = YES ]; then
125 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_V2_FILTER_MODULE" 196 ngx_module_name=ngx_http_v2_filter_module
126 fi 197 ngx_module_incs=
127 198 ngx_module_deps=
128 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_RANGE_HEADER_FILTER_MODULE" 199 ngx_module_srcs=src/http/v2/ngx_http_v2_filter_module.c
200 ngx_module_libs=
201 ngx_module_link=$HTTP_V2
202
203 . auto/module
204 fi
205
206 if :; then
207 ngx_module_name=ngx_http_range_header_filter_module
208 ngx_module_incs=
209 ngx_module_deps=
210 ngx_module_srcs=src/http/modules/ngx_http_range_filter_module.c
211 ngx_module_libs=
212 ngx_module_link=YES
213
214 . auto/module
215 fi
129 216
130 if [ $HTTP_GZIP = YES ]; then 217 if [ $HTTP_GZIP = YES ]; then
131 have=NGX_HTTP_GZIP . auto/have 218 have=NGX_HTTP_GZIP . auto/have
132 USE_ZLIB=YES 219 USE_ZLIB=YES
133 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_GZIP_FILTER_MODULE" 220
134 HTTP_SRCS="$HTTP_SRCS $HTTP_GZIP_SRCS" 221 ngx_module_name=ngx_http_gzip_filter_module
222 ngx_module_incs=
223 ngx_module_deps=
224 ngx_module_srcs=src/http/modules/ngx_http_gzip_filter_module.c
225 ngx_module_libs=
226 ngx_module_link=$HTTP_GZIP
227
228 . auto/module
135 fi 229 fi
136 230
137 if [ $HTTP_POSTPONE = YES ]; then 231 if [ $HTTP_POSTPONE = YES ]; then
138 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_POSTPONE_FILTER_MODULE" 232 ngx_module_name=ngx_http_postpone_filter_module
139 HTTP_SRCS="$HTTP_SRCS $HTTP_POSTPONE_FILTER_SRCS" 233 ngx_module_incs=
234 ngx_module_deps=
235 ngx_module_srcs=src/http/ngx_http_postpone_filter_module.c
236 ngx_module_libs=
237 ngx_module_link=$HTTP_POSTPONE
238
239 . auto/module
140 fi 240 fi
141 241
142 if [ $HTTP_SSI = YES ]; then 242 if [ $HTTP_SSI = YES ]; then
143 have=NGX_HTTP_SSI . auto/have 243 have=NGX_HTTP_SSI . auto/have
144 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_SSI_FILTER_MODULE" 244
145 HTTP_DEPS="$HTTP_DEPS $HTTP_SSI_DEPS" 245 ngx_module_name=ngx_http_ssi_filter_module
146 HTTP_SRCS="$HTTP_SRCS $HTTP_SSI_SRCS" 246 ngx_module_incs=
247 ngx_module_deps=src/http/modules/ngx_http_ssi_filter_module.h
248 ngx_module_srcs=src/http/modules/ngx_http_ssi_filter_module.c
249 ngx_module_libs=
250 ngx_module_link=$HTTP_SSI
251
252 . auto/module
147 fi 253 fi
148 254
149 if [ $HTTP_CHARSET = YES ]; then 255 if [ $HTTP_CHARSET = YES ]; then
150 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_CHARSET_FILTER_MODULE" 256 ngx_module_name=ngx_http_charset_filter_module
151 HTTP_SRCS="$HTTP_SRCS $HTTP_CHARSET_SRCS" 257 ngx_module_incs=
258 ngx_module_deps=
259 ngx_module_srcs=src/http/modules/ngx_http_charset_filter_module.c
260 ngx_module_libs=
261 ngx_module_link=$HTTP_CHARSET
262
263 . auto/module
152 fi 264 fi
153 265
154 if [ $HTTP_XSLT = YES ]; then 266 if [ $HTTP_XSLT = YES ]; then
155 USE_LIBXSLT=YES 267 ngx_module_name=ngx_http_xslt_filter_module
156 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_XSLT_FILTER_MODULE" 268 ngx_module_incs=
157 HTTP_SRCS="$HTTP_SRCS $HTTP_XSLT_SRCS" 269 ngx_module_deps=
270 ngx_module_srcs=src/http/modules/ngx_http_xslt_filter_module.c
271 ngx_module_libs=LIBXSLT
272 ngx_module_link=$HTTP_XSLT
273
274 . auto/module
158 fi 275 fi
159 276
160 if [ $HTTP_IMAGE_FILTER = YES ]; then 277 if [ $HTTP_IMAGE_FILTER = YES ]; then
161 USE_LIBGD=YES 278 ngx_module_name=ngx_http_image_filter_module
162 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_IMAGE_FILTER_MODULE" 279 ngx_module_incs=
163 HTTP_SRCS="$HTTP_SRCS $HTTP_IMAGE_SRCS" 280 ngx_module_deps=
281 ngx_module_srcs=src/http/modules/ngx_http_image_filter_module.c
282 ngx_module_libs=LIBGD
283 ngx_module_link=$HTTP_IMAGE_FILTER
284
285 . auto/module
164 fi 286 fi
165 287
166 if [ $HTTP_SUB = YES ]; then 288 if [ $HTTP_SUB = YES ]; then
167 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_SUB_FILTER_MODULE" 289 ngx_module_name=ngx_http_sub_filter_module
168 HTTP_SRCS="$HTTP_SRCS $HTTP_SUB_SRCS" 290 ngx_module_incs=
291 ngx_module_deps=
292 ngx_module_srcs=src/http/modules/ngx_http_sub_filter_module.c
293 ngx_module_libs=
294 ngx_module_link=$HTTP_SUB
295
296 . auto/module
169 fi 297 fi
170 298
171 if [ $HTTP_ADDITION = YES ]; then 299 if [ $HTTP_ADDITION = YES ]; then
172 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_ADDITION_FILTER_MODULE" 300 ngx_module_name=ngx_http_addition_filter_module
173 HTTP_SRCS="$HTTP_SRCS $HTTP_ADDITION_SRCS" 301 ngx_module_incs=
302 ngx_module_deps=
303 ngx_module_srcs=src/http/modules/ngx_http_addition_filter_module.c
304 ngx_module_libs=
305 ngx_module_link=$HTTP_SUB
306
307 . auto/module
174 fi 308 fi
175 309
176 if [ $HTTP_GUNZIP = YES ]; then 310 if [ $HTTP_GUNZIP = YES ]; then
177 have=NGX_HTTP_GZIP . auto/have 311 have=NGX_HTTP_GZIP . auto/have
178 USE_ZLIB=YES 312 USE_ZLIB=YES
179 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_GUNZIP_FILTER_MODULE" 313
180 HTTP_SRCS="$HTTP_SRCS $HTTP_GUNZIP_SRCS" 314 ngx_module_name=ngx_http_gunzip_filter_module
315 ngx_module_incs=
316 ngx_module_deps=
317 ngx_module_srcs=src/http/modules/ngx_http_gunzip_filter_module.c
318 ngx_module_libs=
319 ngx_module_link=$HTTP_GUNZIP
320
321 . auto/module
181 fi 322 fi
182 323
183 if [ $HTTP_USERID = YES ]; then 324 if [ $HTTP_USERID = YES ]; then
184 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_USERID_FILTER_MODULE" 325 ngx_module_name=ngx_http_userid_filter_module
185 HTTP_SRCS="$HTTP_SRCS $HTTP_USERID_SRCS" 326 ngx_module_incs=
186 fi 327 ngx_module_deps=
187 328 ngx_module_srcs=src/http/modules/ngx_http_userid_filter_module.c
188 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_HEADERS_FILTER_MODULE" 329 ngx_module_libs=
189 330 ngx_module_link=$HTTP_USERID
190 331
191 HTTP_INIT_FILTER_MODULES="$HTTP_COPY_FILTER_MODULE \ 332 . auto/module
192 $HTTP_RANGE_BODY_FILTER_MODULE \ 333 fi
193 $HTTP_NOT_MODIFIED_FILTER_MODULE" 334
335 if :; then
336 ngx_module_name=ngx_http_headers_filter_module
337 ngx_module_incs=
338 ngx_module_deps=
339 ngx_module_srcs=src/http/modules/ngx_http_headers_filter_module.c
340 ngx_module_libs=
341 ngx_module_link=YES
342
343 . auto/module
344 fi
345
346
347 ngx_module_type=HTTP_INIT_FILTER
348 HTTP_INIT_FILTER_MODULES=
349
350 if :; then
351 ngx_module_name=ngx_http_copy_filter_module
352 ngx_module_incs=
353 ngx_module_deps=
354 ngx_module_srcs=src/http/ngx_http_copy_filter_module.c
355 ngx_module_libs=
356 ngx_module_link=YES
357
358 . auto/module
359 fi
360
361 if :; then
362 ngx_module_name=ngx_http_range_body_filter_module
363 ngx_module_incs=
364 ngx_module_deps=
365 ngx_module_srcs=
366 ngx_module_libs=
367 ngx_module_link=YES
368
369 . auto/module
370 fi
371
372 if :; then
373 ngx_module_name=ngx_http_not_modified_filter_module
374 ngx_module_incs=
375 ngx_module_deps=
376 ngx_module_srcs=src/http/modules/ngx_http_not_modified_filter_module.c
377 ngx_module_libs=
378 ngx_module_link=YES
379
380 . auto/module
381 fi
194 382
195 if [ $HTTP_SLICE = YES ]; then 383 if [ $HTTP_SLICE = YES ]; then
196 HTTP_SRCS="$HTTP_SRCS $HTTP_SLICE_SRCS" 384 ngx_module_name=ngx_http_slice_filter_module
197 HTTP_INIT_FILTER_MODULES="$HTTP_INIT_FILTER_MODULES \ 385 ngx_module_incs=
198 $HTTP_SLICE_FILTER_MODULE" 386 ngx_module_deps=
199 fi 387 ngx_module_srcs=src/http/modules/ngx_http_slice_filter_module.c
200 388 ngx_module_libs=
389 ngx_module_link=$HTTP_SLICE
390
391 . auto/module
392 fi
393
394
395 ngx_module_type=HTTP
201 396
202 if [ $HTTP_V2 = YES ]; then 397 if [ $HTTP_V2 = YES ]; then
203 have=NGX_HTTP_V2 . auto/have 398 have=NGX_HTTP_V2 . auto/have
204 HTTP_MODULES="$HTTP_MODULES $HTTP_V2_MODULE" 399
205 HTTP_INCS="$HTTP_INCS $HTTP_V2_INCS" 400 ngx_module_name=ngx_http_v2_module
206 HTTP_DEPS="$HTTP_DEPS $HTTP_V2_DEPS" 401 ngx_module_incs=src/http/v2
207 HTTP_SRCS="$HTTP_SRCS $HTTP_V2_SRCS" 402 ngx_module_deps="src/http/v2/ngx_http_v2.h src/http/v2/ngx_http_v2_module.h"
208 fi 403 ngx_module_srcs="src/http/v2/ngx_http_v2.c \
209 404 src/http/v2/ngx_http_v2_table.c \
210 HTTP_MODULES="$HTTP_MODULES $HTTP_STATIC_MODULE" 405 src/http/v2/ngx_http_v2_huff_decode.c \
406 src/http/v2/ngx_http_v2_huff_encode.c \
407 src/http/v2/ngx_http_v2_module.c"
408 ngx_module_libs=
409 ngx_module_link=$HTTP_V2
410
411 . auto/module
412 fi
413
414 if :; then
415 ngx_module_name=ngx_http_static_module
416 ngx_module_incs=
417 ngx_module_deps=
418 ngx_module_srcs=src/http/modules/ngx_http_static_module.c
419 ngx_module_libs=
420 ngx_module_link=YES
421
422 . auto/module
423 fi
211 424
212 if [ $HTTP_GZIP_STATIC = YES ]; then 425 if [ $HTTP_GZIP_STATIC = YES ]; then
213 have=NGX_HTTP_GZIP . auto/have 426 have=NGX_HTTP_GZIP . auto/have
214 HTTP_MODULES="$HTTP_MODULES $HTTP_GZIP_STATIC_MODULE" 427
215 HTTP_SRCS="$HTTP_SRCS $HTTP_GZIP_STATIC_SRCS" 428 ngx_module_name=ngx_http_gzip_static_module
429 ngx_module_incs=
430 ngx_module_deps=
431 ngx_module_srcs=src/http/modules/ngx_http_gzip_static_module.c
432 ngx_module_libs=
433 ngx_module_link=$HTTP_GZIP_STATIC
434
435 . auto/module
216 fi 436 fi
217 437
218 if [ $HTTP_DAV = YES ]; then 438 if [ $HTTP_DAV = YES ]; then
219 have=NGX_HTTP_DAV . auto/have 439 have=NGX_HTTP_DAV . auto/have
220 HTTP_MODULES="$HTTP_MODULES $HTTP_DAV_MODULE" 440
221 HTTP_SRCS="$HTTP_SRCS $HTTP_DAV_SRCS" 441 ngx_module_name=ngx_http_dav_module
442 ngx_module_incs=
443 ngx_module_deps=
444 ngx_module_srcs=src/http/modules/ngx_http_dav_module.c
445 ngx_module_libs=
446 ngx_module_link=$HTTP_DAV
447
448 . auto/module
222 fi 449 fi
223 450
224 if [ $HTTP_AUTOINDEX = YES ]; then 451 if [ $HTTP_AUTOINDEX = YES ]; then
225 HTTP_MODULES="$HTTP_MODULES $HTTP_AUTOINDEX_MODULE" 452 ngx_module_name=ngx_http_autoindex_module
226 HTTP_SRCS="$HTTP_SRCS $HTTP_AUTOINDEX_SRCS" 453 ngx_module_incs=
227 fi 454 ngx_module_deps=
228 455 ngx_module_srcs=src/http/modules/ngx_http_autoindex_module.c
229 HTTP_MODULES="$HTTP_MODULES $HTTP_INDEX_MODULE" 456 ngx_module_libs=
457 ngx_module_link=$HTTP_AUTOINDEX
458
459 . auto/module
460 fi
461
462 if :; then
463 ngx_module_name=ngx_http_index_module
464 ngx_module_incs=
465 ngx_module_deps=
466 ngx_module_srcs=src/http/modules/ngx_http_index_module.c
467 ngx_module_libs=
468 ngx_module_link=YES
469
470 . auto/module
471 fi
230 472
231 if [ $HTTP_RANDOM_INDEX = YES ]; then 473 if [ $HTTP_RANDOM_INDEX = YES ]; then
232 HTTP_MODULES="$HTTP_MODULES $HTTP_RANDOM_INDEX_MODULE" 474 ngx_module_name=ngx_http_random_index_module
233 HTTP_SRCS="$HTTP_SRCS $HTTP_RANDOM_INDEX_SRCS" 475 ngx_module_incs=
476 ngx_module_deps=
477 ngx_module_srcs=src/http/modules/ngx_http_random_index_module.c
478 ngx_module_libs=
479 ngx_module_link=$HTTP_RANDOM_INDEX
480
481 . auto/module
234 fi 482 fi
235 483
236 if [ $HTTP_AUTH_REQUEST = YES ]; then 484 if [ $HTTP_AUTH_REQUEST = YES ]; then
237 HTTP_MODULES="$HTTP_MODULES $HTTP_AUTH_REQUEST_MODULE" 485 ngx_module_name=ngx_http_auth_request_module
238 HTTP_SRCS="$HTTP_SRCS $HTTP_AUTH_REQUEST_SRCS" 486 ngx_module_incs=
487 ngx_module_deps=
488 ngx_module_srcs=src/http/modules/ngx_http_auth_request_module.c
489 ngx_module_libs=
490 ngx_module_link=$HTTP_AUTH_REQUEST
491
492 . auto/module
239 fi 493 fi
240 494
241 if [ $HTTP_AUTH_BASIC = YES ]; then 495 if [ $HTTP_AUTH_BASIC = YES ]; then
242 USE_MD5=YES 496 USE_MD5=YES
243 USE_SHA1=YES 497 USE_SHA1=YES
244 have=NGX_CRYPT . auto/have 498 have=NGX_CRYPT . auto/have
245 HTTP_MODULES="$HTTP_MODULES $HTTP_AUTH_BASIC_MODULE" 499
246 HTTP_SRCS="$HTTP_SRCS $HTTP_AUTH_BASIC_SRCS" 500 ngx_module_name=ngx_http_auth_basic_module
501 ngx_module_incs=
502 ngx_module_deps=
503 ngx_module_srcs=src/http/modules/ngx_http_auth_basic_module.c
504 ngx_module_libs=
505 ngx_module_link=$HTTP_AUTH_BASIC
506
507 . auto/module
247 CORE_LIBS="$CORE_LIBS $CRYPT_LIB" 508 CORE_LIBS="$CORE_LIBS $CRYPT_LIB"
248 fi 509 fi
249 510
250 if [ $HTTP_ACCESS = YES ]; then 511 if [ $HTTP_ACCESS = YES ]; then
251 HTTP_MODULES="$HTTP_MODULES $HTTP_ACCESS_MODULE" 512 ngx_module_name=ngx_http_access_module
252 HTTP_SRCS="$HTTP_SRCS $HTTP_ACCESS_SRCS" 513 ngx_module_incs=
514 ngx_module_deps=
515 ngx_module_srcs=src/http/modules/ngx_http_access_module.c
516 ngx_module_libs=
517 ngx_module_link=$HTTP_ACCESS
518
519 . auto/module
253 fi 520 fi
254 521
255 if [ $HTTP_LIMIT_CONN = YES ]; then 522 if [ $HTTP_LIMIT_CONN = YES ]; then
256 HTTP_MODULES="$HTTP_MODULES $HTTP_LIMIT_CONN_MODULE" 523 ngx_module_name=ngx_http_limit_conn_module
257 HTTP_SRCS="$HTTP_SRCS $HTTP_LIMIT_CONN_SRCS" 524 ngx_module_incs=
525 ngx_module_deps=
526 ngx_module_srcs=src/http/modules/ngx_http_limit_conn_module.c
527 ngx_module_libs=
528 ngx_module_link=$HTTP_LIMIT_CONN
529
530 . auto/module
258 fi 531 fi
259 532
260 if [ $HTTP_LIMIT_REQ = YES ]; then 533 if [ $HTTP_LIMIT_REQ = YES ]; then
261 HTTP_MODULES="$HTTP_MODULES $HTTP_LIMIT_REQ_MODULE" 534 ngx_module_name=ngx_http_limit_req_module
262 HTTP_SRCS="$HTTP_SRCS $HTTP_LIMIT_REQ_SRCS" 535 ngx_module_incs=
536 ngx_module_deps=
537 ngx_module_srcs=src/http/modules/ngx_http_limit_req_module.c
538 ngx_module_libs=
539 ngx_module_link=$HTTP_LIMIT_REQ
540
541 . auto/module
263 fi 542 fi
264 543
265 if [ $HTTP_REALIP = YES ]; then 544 if [ $HTTP_REALIP = YES ]; then
266 have=NGX_HTTP_REALIP . auto/have 545 have=NGX_HTTP_REALIP . auto/have
267 have=NGX_HTTP_X_FORWARDED_FOR . auto/have 546 have=NGX_HTTP_X_FORWARDED_FOR . auto/have
268 HTTP_MODULES="$HTTP_MODULES $HTTP_REALIP_MODULE" 547
269 HTTP_SRCS="$HTTP_SRCS $HTTP_REALIP_SRCS" 548 ngx_module_name=ngx_http_realip_module
549 ngx_module_incs=
550 ngx_module_deps=
551 ngx_module_srcs=src/http/modules/ngx_http_realip_module.c
552 ngx_module_libs=
553 ngx_module_link=$HTTP_REALIP
554
555 . auto/module
270 fi 556 fi
271 557
272 if [ $HTTP_STATUS = YES ]; then 558 if [ $HTTP_STATUS = YES ]; then
273 HTTP_MODULES="$HTTP_MODULES $HTTP_STATUS_MODULE" 559 ngx_module_name=ngx_http_status_module
274 HTTP_SRCS="$HTTP_SRCS $HTTP_STATUS_SRCS" 560 ngx_module_incs=
561 ngx_module_deps=
562 ngx_module_srcs=src/http/modules/ngx_http_status_module.c
563 ngx_module_libs=
564 ngx_module_link=$HTTP_STATUS
565
566 . auto/module
275 fi 567 fi
276 568
277 if [ $HTTP_GEO = YES ]; then 569 if [ $HTTP_GEO = YES ]; then
278 have=NGX_HTTP_X_FORWARDED_FOR . auto/have 570 have=NGX_HTTP_X_FORWARDED_FOR . auto/have
279 HTTP_MODULES="$HTTP_MODULES $HTTP_GEO_MODULE" 571
280 HTTP_SRCS="$HTTP_SRCS $HTTP_GEO_SRCS" 572 ngx_module_name=ngx_http_geo_module
573 ngx_module_incs=
574 ngx_module_deps=
575 ngx_module_srcs=src/http/modules/ngx_http_geo_module.c
576 ngx_module_libs=
577 ngx_module_link=$HTTP_GEO
578
579 . auto/module
281 fi 580 fi
282 581
283 if [ $HTTP_GEOIP = YES ]; then 582 if [ $HTTP_GEOIP = YES ]; then
284 have=NGX_HTTP_X_FORWARDED_FOR . auto/have 583 have=NGX_HTTP_X_FORWARDED_FOR . auto/have
285 HTTP_MODULES="$HTTP_MODULES $HTTP_GEOIP_MODULE" 584
286 HTTP_SRCS="$HTTP_SRCS $HTTP_GEOIP_SRCS" 585 ngx_module_name=ngx_http_geoip_module
586 ngx_module_incs=
587 ngx_module_deps=
588 ngx_module_srcs=src/http/modules/ngx_http_geoip_module.c
589 ngx_module_libs=
590 ngx_module_link=$HTTP_GEOIP
591
592 . auto/module
287 fi 593 fi
288 594
289 if [ $HTTP_MAP = YES ]; then 595 if [ $HTTP_MAP = YES ]; then
290 HTTP_MODULES="$HTTP_MODULES $HTTP_MAP_MODULE" 596 ngx_module_name=ngx_http_map_module
291 HTTP_SRCS="$HTTP_SRCS $HTTP_MAP_SRCS" 597 ngx_module_incs=
598 ngx_module_deps=
599 ngx_module_srcs=src/http/modules/ngx_http_map_module.c
600 ngx_module_libs=
601 ngx_module_link=$HTTP_MAP
602
603 . auto/module
292 fi 604 fi
293 605
294 if [ $HTTP_SPLIT_CLIENTS = YES ]; then 606 if [ $HTTP_SPLIT_CLIENTS = YES ]; then
295 HTTP_MODULES="$HTTP_MODULES $HTTP_SPLIT_CLIENTS_MODULE" 607 ngx_module_name=ngx_http_split_clients_module
296 HTTP_SRCS="$HTTP_SRCS $HTTP_SPLIT_CLIENTS_SRCS" 608 ngx_module_incs=
609 ngx_module_deps=
610 ngx_module_srcs=src/http/modules/ngx_http_split_clients_module.c
611 ngx_module_libs=
612 ngx_module_link=$HTTP_SPLIT_CLIENTS
613
614 . auto/module
297 fi 615 fi
298 616
299 if [ $HTTP_REFERER = YES ]; then 617 if [ $HTTP_REFERER = YES ]; then
300 HTTP_MODULES="$HTTP_MODULES $HTTP_REFERER_MODULE" 618 ngx_module_name=ngx_http_referer_module
301 HTTP_SRCS="$HTTP_SRCS $HTTP_REFERER_SRCS" 619 ngx_module_incs=
620 ngx_module_deps=
621 ngx_module_srcs=src/http/modules/ngx_http_referer_module.c
622 ngx_module_libs=
623 ngx_module_link=$HTTP_REFERER
624
625 . auto/module
302 fi 626 fi
303 627
304 if [ $HTTP_REWRITE = YES -a $USE_PCRE != DISABLED ]; then 628 if [ $HTTP_REWRITE = YES -a $USE_PCRE != DISABLED ]; then
305 USE_PCRE=YES 629 USE_PCRE=YES
306 HTTP_MODULES="$HTTP_MODULES $HTTP_REWRITE_MODULE" 630
307 HTTP_SRCS="$HTTP_SRCS $HTTP_REWRITE_SRCS" 631 ngx_module_name=ngx_http_rewrite_module
632 ngx_module_incs=
633 ngx_module_deps=
634 ngx_module_srcs=src/http/modules/ngx_http_rewrite_module.c
635 ngx_module_libs=
636 ngx_module_link=$HTTP_REWRITE
637
638 . auto/module
308 fi 639 fi
309 640
310 if [ $HTTP_SSL = YES ]; then 641 if [ $HTTP_SSL = YES ]; then
311 USE_OPENSSL=YES 642 USE_OPENSSL=YES
312 have=NGX_HTTP_SSL . auto/have 643 have=NGX_HTTP_SSL . auto/have
313 HTTP_MODULES="$HTTP_MODULES $HTTP_SSL_MODULE" 644
314 HTTP_DEPS="$HTTP_DEPS $HTTP_SSL_DEPS" 645 ngx_module_name=ngx_http_ssl_module
315 HTTP_SRCS="$HTTP_SRCS $HTTP_SSL_SRCS" 646 ngx_module_incs=
647 ngx_module_deps=src/http/modules/ngx_http_ssl_module.h
648 ngx_module_srcs=src/http/modules/ngx_http_ssl_module.c
649 ngx_module_libs=
650 ngx_module_link=$HTTP_SSL
651
652 . auto/module
316 fi 653 fi
317 654
318 if [ $HTTP_PROXY = YES ]; then 655 if [ $HTTP_PROXY = YES ]; then
319 have=NGX_HTTP_X_FORWARDED_FOR . auto/have 656 have=NGX_HTTP_X_FORWARDED_FOR . auto/have
320 #USE_MD5=YES 657 #USE_MD5=YES
321 HTTP_MODULES="$HTTP_MODULES $HTTP_PROXY_MODULE" 658
322 HTTP_DEPS="$HTTP_DEPS $HTTP_PROXY_DEPS" 659 ngx_module_name=ngx_http_proxy_module
323 HTTP_SRCS="$HTTP_SRCS $HTTP_PROXY_SRCS" 660 ngx_module_incs=
661 ngx_module_deps=
662 ngx_module_srcs=src/http/modules/ngx_http_proxy_module.c
663 ngx_module_libs=
664 ngx_module_link=$HTTP_PROXY
665
666 . auto/module
324 fi 667 fi
325 668
326 if [ $HTTP_FASTCGI = YES ]; then 669 if [ $HTTP_FASTCGI = YES ]; then
327 HTTP_MODULES="$HTTP_MODULES $HTTP_FASTCGI_MODULE" 670 ngx_module_name=ngx_http_fastcgi_module
328 HTTP_SRCS="$HTTP_SRCS $HTTP_FASTCGI_SRCS" 671 ngx_module_incs=
672 ngx_module_deps=
673 ngx_module_srcs=src/http/modules/ngx_http_fastcgi_module.c
674 ngx_module_libs=
675 ngx_module_link=$HTTP_FASTCGI
676
677 . auto/module
329 fi 678 fi
330 679
331 if [ $HTTP_UWSGI = YES ]; then 680 if [ $HTTP_UWSGI = YES ]; then
332 HTTP_MODULES="$HTTP_MODULES $HTTP_UWSGI_MODULE" 681 ngx_module_name=ngx_http_uwsgi_module
333 HTTP_SRCS="$HTTP_SRCS $HTTP_UWSGI_SRCS" 682 ngx_module_incs=
683 ngx_module_deps=
684 ngx_module_srcs=src/http/modules/ngx_http_uwsgi_module.c
685 ngx_module_libs=
686 ngx_module_link=$HTTP_UWSGI
687
688 . auto/module
334 fi 689 fi
335 690
336 if [ $HTTP_SCGI = YES ]; then 691 if [ $HTTP_SCGI = YES ]; then
337 HTTP_MODULES="$HTTP_MODULES $HTTP_SCGI_MODULE" 692 ngx_module_name=ngx_http_scgi_module
338 HTTP_SRCS="$HTTP_SRCS $HTTP_SCGI_SRCS" 693 ngx_module_incs=
694 ngx_module_deps=
695 ngx_module_srcs=src/http/modules/ngx_http_scgi_module.c
696 ngx_module_libs=
697 ngx_module_link=$HTTP_SCGI
698
699 . auto/module
339 fi 700 fi
340 701
341 if [ $HTTP_PERL = YES ]; then 702 if [ $HTTP_PERL = YES ]; then
342 USE_PERL=YES 703 USE_PERL=YES
343 HTTP_MODULES="$HTTP_MODULES $HTTP_PERL_MODULE" 704
344 HTTP_INCS="$HTTP_INCS $HTTP_PERL_INCS" 705 ngx_module_name=ngx_http_perl_module
345 HTTP_DEPS="$HTTP_DEPS $HTTP_PERL_DEPS" 706 ngx_module_incs=src/http/modules/perl
346 HTTP_SRCS="$HTTP_SRCS $HTTP_PERL_SRCS" 707 ngx_module_deps=src/http/modules/perl/ngx_http_perl_module.h
708 ngx_module_srcs=src/http/modules/perl/ngx_http_perl_module.c
709 ngx_module_libs=
710 ngx_module_link=$HTTP_PERL
711
712 . auto/module
347 fi 713 fi
348 714
349 if [ $HTTP_MEMCACHED = YES ]; then 715 if [ $HTTP_MEMCACHED = YES ]; then
350 HTTP_MODULES="$HTTP_MODULES $HTTP_MEMCACHED_MODULE" 716 ngx_module_name=ngx_http_memcached_module
351 HTTP_SRCS="$HTTP_SRCS $HTTP_MEMCACHED_SRCS" 717 ngx_module_incs=
718 ngx_module_deps=
719 ngx_module_srcs=src/http/modules/ngx_http_memcached_module.c
720 ngx_module_libs=
721 ngx_module_link=$HTTP_MEMCACHED
722
723 . auto/module
352 fi 724 fi
353 725
354 if [ $HTTP_EMPTY_GIF = YES ]; then 726 if [ $HTTP_EMPTY_GIF = YES ]; then
355 HTTP_MODULES="$HTTP_MODULES $HTTP_EMPTY_GIF_MODULE" 727 ngx_module_name=ngx_http_empty_gif_module
356 HTTP_SRCS="$HTTP_SRCS $HTTP_EMPTY_GIF_SRCS" 728 ngx_module_incs=
729 ngx_module_deps=
730 ngx_module_srcs=src/http/modules/ngx_http_empty_gif_module.c
731 ngx_module_libs=
732 ngx_module_link=$HTTP_EMPTY_GIF
733
734 . auto/module
357 fi 735 fi
358 736
359 if [ $HTTP_BROWSER = YES ]; then 737 if [ $HTTP_BROWSER = YES ]; then
360 HTTP_MODULES="$HTTP_MODULES $HTTP_BROWSER_MODULE" 738 ngx_module_name=ngx_http_browser_module
361 HTTP_SRCS="$HTTP_SRCS $HTTP_BROWSER_SRCS" 739 ngx_module_incs=
740 ngx_module_deps=
741 ngx_module_srcs=src/http/modules/ngx_http_browser_module.c
742 ngx_module_libs=
743 ngx_module_link=$HTTP_BROWSER
744
745 . auto/module
362 fi 746 fi
363 747
364 if [ $HTTP_SECURE_LINK = YES ]; then 748 if [ $HTTP_SECURE_LINK = YES ]; then
365 USE_MD5=YES 749 USE_MD5=YES
366 HTTP_MODULES="$HTTP_MODULES $HTTP_SECURE_LINK_MODULE" 750
367 HTTP_SRCS="$HTTP_SRCS $HTTP_SECURE_LINK_SRCS" 751 ngx_module_name=ngx_http_secure_link_module
752 ngx_module_incs=
753 ngx_module_deps=
754 ngx_module_srcs=src/http/modules/ngx_http_secure_link_module.c
755 ngx_module_libs=
756 ngx_module_link=$HTTP_SECURE_LINK
757
758 . auto/module
368 fi 759 fi
369 760
370 if [ $HTTP_DEGRADATION = YES ]; then 761 if [ $HTTP_DEGRADATION = YES ]; then
371 have=NGX_HTTP_DEGRADATION . auto/have 762 have=NGX_HTTP_DEGRADATION . auto/have
372 HTTP_MODULES="$HTTP_MODULES $HTTP_DEGRADATION_MODULE" 763
373 HTTP_SRCS="$HTTP_SRCS $HTTP_DEGRADATION_SRCS" 764 ngx_module_name=ngx_http_degradation_module
765 ngx_module_incs=
766 ngx_module_deps=
767 ngx_module_srcs=src/http/modules/ngx_http_degradation_module.c
768 ngx_module_libs=
769 ngx_module_link=$HTTP_DEGRADATION
770
771 . auto/module
374 fi 772 fi
375 773
376 if [ $HTTP_FLV = YES ]; then 774 if [ $HTTP_FLV = YES ]; then
377 HTTP_MODULES="$HTTP_MODULES $HTTP_FLV_MODULE" 775 ngx_module_name=ngx_http_flv_module
378 HTTP_SRCS="$HTTP_SRCS $HTTP_FLV_SRCS" 776 ngx_module_incs=
777 ngx_module_deps=
778 ngx_module_srcs=src/http/modules/ngx_http_flv_module.c
779 ngx_module_libs=
780 ngx_module_link=$HTTP_FLV
781
782 . auto/module
379 fi 783 fi
380 784
381 if [ $HTTP_MP4 = YES ]; then 785 if [ $HTTP_MP4 = YES ]; then
382 HTTP_MODULES="$HTTP_MODULES $HTTP_MP4_MODULE" 786 ngx_module_name=ngx_http_mp4_module
383 HTTP_SRCS="$HTTP_SRCS $HTTP_MP4_SRCS" 787 ngx_module_incs=
788 ngx_module_deps=
789 ngx_module_srcs=src/http/modules/ngx_http_mp4_module.c
790 ngx_module_libs=
791 ngx_module_link=$HTTP_MP4
792
793 . auto/module
384 fi 794 fi
385 795
386 if [ $HTTP_UPSTREAM_HASH = YES ]; then 796 if [ $HTTP_UPSTREAM_HASH = YES ]; then
387 HTTP_MODULES="$HTTP_MODULES $HTTP_UPSTREAM_HASH_MODULE" 797 ngx_module_name=ngx_http_upstream_hash_module
388 HTTP_SRCS="$HTTP_SRCS $HTTP_UPSTREAM_HASH_SRCS" 798 ngx_module_incs=
799 ngx_module_deps=
800 ngx_module_srcs=src/http/modules/ngx_http_upstream_hash_module.c
801 ngx_module_libs=
802 ngx_module_link=$HTTP_UPSTREAM_HASH
803
804 . auto/module
389 fi 805 fi
390 806
391 if [ $HTTP_UPSTREAM_IP_HASH = YES ]; then 807 if [ $HTTP_UPSTREAM_IP_HASH = YES ]; then
392 HTTP_MODULES="$HTTP_MODULES $HTTP_UPSTREAM_IP_HASH_MODULE" 808 ngx_module_name=ngx_http_upstream_ip_hash_module
393 HTTP_SRCS="$HTTP_SRCS $HTTP_UPSTREAM_IP_HASH_SRCS" 809 ngx_module_incs=
810 ngx_module_deps=
811 ngx_module_srcs=src/http/modules/ngx_http_upstream_ip_hash_module.c
812 ngx_module_libs=
813 ngx_module_link=$HTTP_UPSTREAM_IP_HASH
814
815 . auto/module
394 fi 816 fi
395 817
396 if [ $HTTP_UPSTREAM_LEAST_CONN = YES ]; then 818 if [ $HTTP_UPSTREAM_LEAST_CONN = YES ]; then
397 HTTP_MODULES="$HTTP_MODULES $HTTP_UPSTREAM_LEAST_CONN_MODULE" 819 ngx_module_name=ngx_http_upstream_least_conn_module
398 HTTP_SRCS="$HTTP_SRCS $HTTP_UPSTREAM_LEAST_CONN_SRCS" 820 ngx_module_incs=
821 ngx_module_deps=
822 ngx_module_srcs=src/http/modules/ngx_http_upstream_least_conn_module.c
823 ngx_module_libs=
824 ngx_module_link=$HTTP_UPSTREAM_LEAST_CONN
825
826 . auto/module
399 fi 827 fi
400 828
401 if [ $HTTP_UPSTREAM_KEEPALIVE = YES ]; then 829 if [ $HTTP_UPSTREAM_KEEPALIVE = YES ]; then
402 HTTP_MODULES="$HTTP_MODULES $HTTP_UPSTREAM_KEEPALIVE_MODULE" 830 ngx_module_name=ngx_http_upstream_keepalive_module
403 HTTP_SRCS="$HTTP_SRCS $HTTP_UPSTREAM_KEEPALIVE_SRCS" 831 ngx_module_incs=
832 ngx_module_deps=
833 ngx_module_srcs=src/http/modules/ngx_http_upstream_keepalive_module.c
834 ngx_module_libs=
835 ngx_module_link=$HTTP_UPSTREAM_KEEPALIVE
836
837 . auto/module
404 fi 838 fi
405 839
406 if [ $HTTP_UPSTREAM_ZONE = YES ]; then 840 if [ $HTTP_UPSTREAM_ZONE = YES ]; then
407 have=NGX_HTTP_UPSTREAM_ZONE . auto/have 841 have=NGX_HTTP_UPSTREAM_ZONE . auto/have
408 HTTP_MODULES="$HTTP_MODULES $HTTP_UPSTREAM_ZONE_MODULE" 842
409 HTTP_SRCS="$HTTP_SRCS $HTTP_UPSTREAM_ZONE_SRCS" 843 ngx_module_name=ngx_http_upstream_zone_module
844 ngx_module_incs=
845 ngx_module_deps=
846 ngx_module_srcs=src/http/modules/ngx_http_upstream_zone_module.c
847 ngx_module_libs=
848 ngx_module_link=$HTTP_UPSTREAM_ZONE
849
850 . auto/module
410 fi 851 fi
411 852
412 if [ $HTTP_STUB_STATUS = YES ]; then 853 if [ $HTTP_STUB_STATUS = YES ]; then
413 have=NGX_STAT_STUB . auto/have 854 have=NGX_STAT_STUB . auto/have
414 HTTP_MODULES="$HTTP_MODULES ngx_http_stub_status_module" 855
415 HTTP_SRCS="$HTTP_SRCS src/http/modules/ngx_http_stub_status_module.c" 856 ngx_module_name=ngx_http_stub_status_module
416 fi 857 ngx_module_incs=
858 ngx_module_deps=
859 ngx_module_srcs=src/http/modules/ngx_http_stub_status_module.c
860 ngx_module_libs=
861 ngx_module_link=$HTTP_STUB_STATUS
862
863 . auto/module
864 fi
865
866
867 if [ $MAIL == YES ]; then
868 MAIL_MODULES=
869 MAIL_DEPS=
870 MAIL_INCS=
871
872 ngx_module_type=MAIL
873 ngx_module_libs=
874 ngx_module_link=YES
875
876 ngx_module_name="ngx_mail_module ngx_mail_core_module"
877 ngx_module_incs="src/mail"
878 ngx_module_deps="src/mail/ngx_mail.h"
879 ngx_module_srcs="src/mail/ngx_mail.c \
880 src/mail/ngx_mail_core_module.c \
881 src/mail/ngx_mail_handler.c \
882 src/mail/ngx_mail_parse.c"
883
884 . auto/module
885
886 ngx_module_incs=
887
888 if [ $MAIL_SSL = YES ]; then
889 USE_OPENSSL=YES
890 have=NGX_MAIL_SSL . auto/have
891
892 ngx_module_name=ngx_mail_ssl_module
893 ngx_module_deps=src/mail/ngx_mail_ssl_module.h
894 ngx_module_srcs=src/mail/ngx_mail_ssl_module.c
895
896 . auto/module
897 fi
898
899 if [ $MAIL_POP3 = YES ]; then
900 ngx_module_name=ngx_mail_pop3_module
901 ngx_module_deps=src/mail/ngx_mail_pop3_module.h
902 ngx_module_srcs="src/mail/ngx_mail_pop3_module.c \
903 src/mail/ngx_mail_pop3_handler.c"
904
905 . auto/module
906 fi
907
908 if [ $MAIL_IMAP = YES ]; then
909 ngx_module_name=ngx_mail_imap_module
910 ngx_module_deps=src/mail/ngx_mail_imap_module.h
911 ngx_module_srcs="src/mail/ngx_mail_imap_module.c \
912 src/mail/ngx_mail_imap_handler.c"
913
914 . auto/module
915 fi
916
917 if [ $MAIL_SMTP = YES ]; then
918 ngx_module_name=ngx_mail_smtp_module
919 ngx_module_deps=src/mail/ngx_mail_smtp_module.h
920 ngx_module_srcs="src/mail/ngx_mail_smtp_module.c \
921 src/mail/ngx_mail_smtp_handler.c"
922
923 . auto/module
924 fi
925
926 ngx_module_name=ngx_mail_auth_http_module
927 ngx_module_deps=
928 ngx_module_srcs=src/mail/ngx_mail_auth_http_module.c
929
930 . auto/module
931
932 ngx_module_name=ngx_mail_proxy_module
933 ngx_module_deps=
934 ngx_module_srcs=src/mail/ngx_mail_proxy_module.c
935
936 . auto/module
937 fi
938
939
940 if [ $STREAM = YES ]; then
941 STREAM_MODULES=
942 STREAM_DEPS=
943 STREAM_INCS=
944
945 have=NGX_STREAM . auto/have
946
947 ngx_module_type=STREAM
948 ngx_module_libs=
949 ngx_module_link=YES
950
951 ngx_module_name="ngx_stream_module \
952 ngx_stream_core_module \
953 ngx_stream_proxy_module \
954 ngx_stream_upstream_module"
955 ngx_module_incs="src/stream"
956 ngx_module_deps="src/stream/ngx_stream.h \
957 src/stream/ngx_stream_upstream.h \
958 src/stream/ngx_stream_upstream_round_robin.h"
959 ngx_module_srcs="src/stream/ngx_stream.c \
960 src/stream/ngx_stream_handler.c \
961 src/stream/ngx_stream_core_module.c \
962 src/stream/ngx_stream_proxy_module.c \
963 src/stream/ngx_stream_upstream.c \
964 src/stream/ngx_stream_upstream_round_robin.c"
965
966 . auto/module
967
968 ngx_module_incs=
969
970 if [ $STREAM_SSL = YES ]; then
971 USE_OPENSSL=YES
972 have=NGX_STREAM_SSL . auto/have
973
974 ngx_module_name=ngx_stream_ssl_module
975 ngx_module_deps=src/stream/ngx_stream_ssl_module.h
976 ngx_module_srcs=src/stream/ngx_stream_ssl_module.c
977
978 . auto/module
979 fi
980
981 if [ $STREAM_LIMIT_CONN = YES ]; then
982 ngx_module_name=ngx_stream_limit_conn_module
983 ngx_module_deps=
984 ngx_module_srcs=src/stream/ngx_stream_limit_conn_module.c
985
986 . auto/module
987 fi
988
989 if [ $STREAM_ACCESS = YES ]; then
990 ngx_module_name=ngx_stream_access_module
991 ngx_module_deps=
992 ngx_module_srcs=src/stream/ngx_stream_access_module.c
993
994 . auto/module
995 fi
996
997 if [ $STREAM_UPSTREAM_HASH = YES ]; then
998 ngx_module_name=ngx_stream_upstream_hash_module
999 ngx_module_deps=
1000 ngx_module_srcs=src/stream/ngx_stream_upstream_hash_module.c
1001
1002 . auto/module
1003 fi
1004
1005 if [ $STREAM_UPSTREAM_LEAST_CONN = YES ]; then
1006 ngx_module_name=ngx_stream_upstream_least_conn_module
1007 ngx_module_deps=
1008 ngx_module_srcs=src/stream/ngx_stream_upstream_least_conn_module.c
1009
1010 . auto/module
1011 fi
1012
1013 if [ $STREAM_UPSTREAM_ZONE = YES ]; then
1014 have=NGX_STREAM_UPSTREAM_ZONE . auto/have
1015
1016 ngx_module_name=ngx_stream_upstream_zone_module
1017 ngx_module_deps=
1018 ngx_module_srcs=src/stream/ngx_stream_upstream_zone_module.c
1019
1020 . auto/module
1021 fi
1022 fi
1023
417 1024
418 #if [ -r $NGX_OBJS/auto ]; then 1025 #if [ -r $NGX_OBJS/auto ]; then
419 # . $NGX_OBJS/auto 1026 # . $NGX_OBJS/auto
420 #fi 1027 #fi
421 1028
425 echo configuring additional modules 1032 echo configuring additional modules
426 1033
427 for ngx_addon_dir in $NGX_ADDONS 1034 for ngx_addon_dir in $NGX_ADDONS
428 do 1035 do
429 echo "adding module in $ngx_addon_dir" 1036 echo "adding module in $ngx_addon_dir"
1037
1038 ngx_module_type=
1039 ngx_module_name=
1040 ngx_module_incs=
1041 ngx_module_deps=
1042 ngx_module_srcs=
1043 ngx_module_libs=
1044 ngx_module_link=ADDON
430 1045
431 if test -f $ngx_addon_dir/config; then 1046 if test -f $ngx_addon_dir/config; then
432 . $ngx_addon_dir/config 1047 . $ngx_addon_dir/config
433 1048
434 echo " + $ngx_addon_name was configured" 1049 echo " + $ngx_addon_name was configured"
439 fi 1054 fi
440 done 1055 done
441 fi 1056 fi
442 1057
443 1058
444 if [ $MAIL_SSL = YES ]; then 1059 if [ $USE_OPENSSL = YES ]; then
445 have=NGX_MAIL_SSL . auto/have 1060 ngx_module_type=CORE
446 USE_OPENSSL=YES 1061 ngx_module_name=ngx_openssl_module
447 fi 1062 ngx_module_incs=
448 1063 ngx_module_deps=src/event/ngx_event_openssl.h
449 1064 ngx_module_srcs="src/event/ngx_event_openssl.c
450 if [ $STREAM_SSL = YES ]; then 1065 src/event/ngx_event_openssl_stapling.c"
451 have=NGX_STREAM_SSL . auto/have 1066 ngx_module_libs=
452 USE_OPENSSL=YES 1067 ngx_module_link=YES
1068
1069 . auto/module
1070 fi
1071
1072
1073 if [ $USE_PCRE = YES ]; then
1074 ngx_module_type=CORE
1075 ngx_module_name=ngx_regex_module
1076 ngx_module_incs=
1077 ngx_module_deps=src/core/ngx_regex.h
1078 ngx_module_srcs=src/core/ngx_regex.c
1079 ngx_module_libs=
1080 ngx_module_link=YES
1081
1082 . auto/module
453 fi 1083 fi
454 1084
455 1085
456 modules="$CORE_MODULES $EVENT_MODULES" 1086 modules="$CORE_MODULES $EVENT_MODULES"
457 1087
460 if [ $USE_THREADS = YES ]; then 1090 if [ $USE_THREADS = YES ]; then
461 modules="$modules $THREAD_POOL_MODULE" 1091 modules="$modules $THREAD_POOL_MODULE"
462 fi 1092 fi
463 1093
464 1094
465 if [ $USE_OPENSSL = YES ]; then
466 modules="$modules $OPENSSL_MODULE"
467 CORE_DEPS="$CORE_DEPS $OPENSSL_DEPS"
468 CORE_SRCS="$CORE_SRCS $OPENSSL_SRCS"
469 fi
470
471 if [ $USE_PCRE = YES ]; then
472 modules="$modules $REGEX_MODULE"
473 CORE_DEPS="$CORE_DEPS $REGEX_DEPS"
474 CORE_SRCS="$CORE_SRCS $REGEX_SRCS"
475 fi
476
477 if [ $HTTP = YES ]; then 1095 if [ $HTTP = YES ]; then
478 modules="$modules $HTTP_MODULES $HTTP_FILTER_MODULES \ 1096 modules="$modules $HTTP_MODULES $HTTP_FILTER_MODULES \
479 $HTTP_AUX_FILTER_MODULES $HTTP_INIT_FILTER_MODULES" 1097 $HTTP_AUX_FILTER_MODULES $HTTP_INIT_FILTER_MODULES"
480 1098
481 NGX_ADDON_DEPS="$NGX_ADDON_DEPS \$(HTTP_DEPS)" 1099 NGX_ADDON_DEPS="$NGX_ADDON_DEPS \$(HTTP_DEPS)"
482 fi 1100 fi
483 1101
484 1102
485 if [ $MAIL = YES ]; then 1103 if [ $MAIL = YES ]; then
486 modules="$modules $MAIL_MODULES" 1104 modules="$modules $MAIL_MODULES"
487
488 if [ $MAIL_SSL = YES ]; then
489 modules="$modules $MAIL_SSL_MODULE"
490 MAIL_DEPS="$MAIL_DEPS $MAIL_SSL_DEPS"
491 MAIL_SRCS="$MAIL_SRCS $MAIL_SSL_SRCS"
492 fi
493
494 if [ $MAIL_POP3 = YES ]; then
495 modules="$modules $MAIL_POP3_MODULE"
496 MAIL_DEPS="$MAIL_DEPS $MAIL_POP3_DEPS"
497 MAIL_SRCS="$MAIL_SRCS $MAIL_POP3_SRCS"
498 fi
499
500 if [ $MAIL_IMAP = YES ]; then
501 modules="$modules $MAIL_IMAP_MODULE"
502 MAIL_DEPS="$MAIL_DEPS $MAIL_IMAP_DEPS"
503 MAIL_SRCS="$MAIL_SRCS $MAIL_IMAP_SRCS"
504 fi
505
506 if [ $MAIL_SMTP = YES ]; then
507 modules="$modules $MAIL_SMTP_MODULE"
508 MAIL_DEPS="$MAIL_DEPS $MAIL_SMTP_DEPS"
509 MAIL_SRCS="$MAIL_SRCS $MAIL_SMTP_SRCS"
510 fi
511
512 modules="$modules $MAIL_AUTH_HTTP_MODULE"
513 MAIL_SRCS="$MAIL_SRCS $MAIL_AUTH_HTTP_SRCS"
514
515 modules="$modules $MAIL_PROXY_MODULE"
516 MAIL_SRCS="$MAIL_SRCS $MAIL_PROXY_SRCS"
517
518 NGX_ADDON_DEPS="$NGX_ADDON_DEPS \$(MAIL_DEPS)" 1105 NGX_ADDON_DEPS="$NGX_ADDON_DEPS \$(MAIL_DEPS)"
519 fi 1106 fi
520 1107
521 1108
522 if [ $STREAM = YES ]; then 1109 if [ $STREAM = YES ]; then
523 have=NGX_STREAM . auto/have
524 modules="$modules $STREAM_MODULES" 1110 modules="$modules $STREAM_MODULES"
525
526 if [ $STREAM_SSL = YES ]; then
527 modules="$modules $STREAM_SSL_MODULE"
528 STREAM_DEPS="$STREAM_DEPS $STREAM_SSL_DEPS"
529 STREAM_SRCS="$STREAM_SRCS $STREAM_SSL_SRCS"
530 fi
531
532 if [ $STREAM_LIMIT_CONN = YES ]; then
533 modules="$modules $STREAM_LIMIT_CONN_MODULE"
534 STREAM_SRCS="$STREAM_SRCS $STREAM_LIMIT_CONN_SRCS"
535 fi
536
537 if [ $STREAM_ACCESS = YES ]; then
538 modules="$modules $STREAM_ACCESS_MODULE"
539 STREAM_SRCS="$STREAM_SRCS $STREAM_ACCESS_SRCS"
540 fi
541
542 if [ $STREAM_UPSTREAM_HASH = YES ]; then
543 modules="$modules $STREAM_UPSTREAM_HASH_MODULE"
544 STREAM_SRCS="$STREAM_SRCS $STREAM_UPSTREAM_HASH_SRCS"
545 fi
546
547 if [ $STREAM_UPSTREAM_LEAST_CONN = YES ]; then
548 modules="$modules $STREAM_UPSTREAM_LEAST_CONN_MODULE"
549 STREAM_SRCS="$STREAM_SRCS $STREAM_UPSTREAM_LEAST_CONN_SRCS"
550 fi
551
552 if [ $STREAM_UPSTREAM_ZONE = YES ]; then
553 have=NGX_STREAM_UPSTREAM_ZONE . auto/have
554 modules="$modules $STREAM_UPSTREAM_ZONE_MODULE"
555 STREAM_SRCS="$STREAM_SRCS $STREAM_UPSTREAM_ZONE_SRCS"
556 fi
557
558 NGX_ADDON_DEPS="$NGX_ADDON_DEPS \$(STREAM_DEPS)" 1111 NGX_ADDON_DEPS="$NGX_ADDON_DEPS \$(STREAM_DEPS)"
559 fi 1112 fi
560 1113
561 1114
1115 ngx_module_type=MISC
1116 MISC_MODULES=
1117
562 if [ $NGX_GOOGLE_PERFTOOLS = YES ]; then 1118 if [ $NGX_GOOGLE_PERFTOOLS = YES ]; then
563 modules="$modules $NGX_GOOGLE_PERFTOOLS_MODULE" 1119 ngx_module_name=ngx_google_perftools_module
564 NGX_MISC_SRCS="$NGX_MISC_SRCS $NGX_GOOGLE_PERFTOOLS_SRCS" 1120 ngx_module_incs=
565 fi 1121 ngx_module_deps=
566 1122 ngx_module_srcs=src/misc/ngx_google_perftools_module.c
1123 ngx_module_libs=
1124 ngx_module_link=$NGX_GOOGLE_PERFTOOLS
1125
1126 . auto/module
1127 fi
567 1128
568 if [ $NGX_CPP_TEST = YES ]; then 1129 if [ $NGX_CPP_TEST = YES ]; then
569 NGX_MISC_SRCS="$NGX_MISC_SRCS $NGX_CPP_TEST_SRCS" 1130 ngx_module_name=
570 CORE_LIBS="$CORE_LIBS -lstdc++" 1131 ngx_module_incs=
571 fi 1132 ngx_module_deps=
1133 ngx_module_srcs=src/misc/ngx_cpp_test_module.cpp
1134 ngx_module_libs=-lstdc++
1135 ngx_module_link=$NGX_CPP_TEST
1136
1137 . auto/module
1138 fi
1139
1140 modules="$modules $MISC_MODULES"
572 1141
573 1142
574 cat << END > $NGX_MODULES_C 1143 cat << END > $NGX_MODULES_C
575 1144
576 #include <ngx_config.h> 1145 #include <ngx_config.h>