blob: accb7b9ac803398a53bdb5661a821c1ee3825676 [file] [log] [blame]
Igor Sysoevdc867cd2003-12-14 20:10:27 +00001
Igor Sysoevff8da912004-09-29 16:00:49 +00002# Copyright (C) Igor Sysoev
3
4
Igor Sysoev31eb8c02005-09-23 11:02:22 +00005### STUB
6
7if [ $USE_THREADS != NO ]; then
8
9cat << END
10
11$0: error: the threads support is broken now.
12
13END
14 exit 1
15 fi
16
17###
18
19
Igor Sysoevdc867cd2003-12-14 20:10:27 +000020echo
21echo "Configuration summary"
22
Igor Sysoev090849d2004-05-18 20:28:54 +000023
Igor Sysoev723e6cc2004-10-25 15:29:23 +000024case $USE_THREADS in
25 rfork) echo " + using rfork()ed threads" ;;
26 pthreads) echo " + using libpthread threads library" ;;
27 libthr) echo " + using FreeBSD libthr threads library" ;;
28 libc_r) echo " + using FreeBSD libc_r threads library" ;;
29 linuxthreads) echo " + using FreeBSD LinuxThreads port library" ;;
30 NO) echo " + threads are not used" ;;
31 *) echo " + using lib$USE_THREADS threads library" ;;
32esac
33
Igor Sysoev0ee5d3c2004-02-20 16:48:59 +000034if [ $USE_PCRE = DISABLED ]; then
Igor Sysoevc1571722005-03-19 12:38:37 +000035 echo " + PCRE library is disabled"
Igor Sysoev0ee5d3c2004-02-20 16:48:59 +000036
37else
38 case $PCRE in
Igor Sysoeve2ff3ea2004-09-14 15:55:24 +000039 YES) echo " + using system PCRE library" ;;
40 NONE) echo " + PCRE library is not used" ;;
41 NO) echo " + PCRE library is not found" ;;
42 *) echo " + using PCRE library: $PCRE" ;;
Igor Sysoev0ee5d3c2004-02-20 16:48:59 +000043 esac
44fi
Igor Sysoeve89c4582003-12-19 08:15:11 +000045
Igor Sysoev0599b112004-07-25 18:34:14 +000046case $OPENSSL in
Igor Sysoeve2ff3ea2004-09-14 15:55:24 +000047 YES) echo " + using system OpenSSL library" ;;
48 NONE) echo " + OpenSSL library is not used" ;;
49 NO) echo " + OpenSSL library is not found" ;;
50 *) echo " + using OpenSSL library: $OPENSSL" ;;
Igor Sysoev0599b112004-07-25 18:34:14 +000051esac
52
Igor Sysoevb1dfe472004-12-21 12:30:30 +000053case $MD5 in
54 YES)
55 case $OPENSSL in
56 NONE|NO) echo " + md5: using system $MD5_LIB library" ;;
57 *) echo " + md5: using OpenSSL library" ;;
58 esac
59 ;;
60
61 NONE) echo " + md5 library is not used" ;;
62 NO) echo " + md5 library is not found" ;;
63 *) echo " + using md5 library: $MD5" ;;
64esac
65
Igor Sysoevafd7ec52006-05-29 17:28:12 +000066case $SHA1 in
67 YES)
68 case $OPENSSL in
69 NONE|NO) echo " + sha1: using system $SHA1_LIB library" ;;
70 *) echo " + sha1: using OpenSSL library" ;;
71 esac
72 ;;
73
74 NONE) echo " + sha1 library is not used" ;;
75 NO) echo " + sha1 library is not found" ;;
76 *) echo " + using sha1 library: $SHA1" ;;
77esac
78
Igor Sysoevdc867cd2003-12-14 20:10:27 +000079case $ZLIB in
Igor Sysoeve2ff3ea2004-09-14 15:55:24 +000080 YES) echo " + using system zlib library" ;;
81 NONE) echo " + zlib library is not used" ;;
82 NO) echo " + zlib library is not found" ;;
83 *) echo " + using zlib library: $ZLIB" ;;
Igor Sysoevdc867cd2003-12-14 20:10:27 +000084esac
85
86echo
Igor Sysoeve9b2cb12004-02-09 20:47:18 +000087
88
89if [ $HTTP_REWRITE = YES ]; then
Igor Sysoev0bc87e92004-09-30 15:30:54 +000090 if [ $USE_PCRE = DISABLED ]; then
91
92cat << END
93$0: error: the HTTP rewrite module requires the PCRE library.
94You can either disable the module by using --without-http_rewrite_module
95option or you have to enable the PCRE support.
96
97END
98 exit 1
99 fi
100
Igor Sysoeve9b2cb12004-02-09 20:47:18 +0000101 if [ $PCRE = NONE -o $PCRE = NO ]; then
Igor Sysoev0bc87e92004-09-30 15:30:54 +0000102
103cat << END
104$0: error: the HTTP rewrite module requires the PCRE library.
105You can either disable the module by using --without-http_rewrite_module
106option, or install the PCRE library into the system, or build the PCRE library
107statically from the source with nginx by using --with-pcre=<path> option.
108
109END
Igor Sysoev6bb889f2004-03-11 15:42:41 +0000110
Igor Sysoeve9b2cb12004-02-09 20:47:18 +0000111 exit 1
112 fi
113fi
114
115
116if [ $HTTP_GZIP = YES ]; then
117 if [ $ZLIB = NONE -o $ZLIB = NO ]; then
Igor Sysoev0bc87e92004-09-30 15:30:54 +0000118
119cat << END
120$0: error: the HTTP gzip module requires the zlib library.
121You can either disable the module by using --without-http_gzip_module
122option, or install the zlib library into the system, or build the zlib library
123statically from the source with nginx by using --with-zlib=<path> option.
124
125END
Igor Sysoev6bb889f2004-03-11 15:42:41 +0000126
Igor Sysoeve9b2cb12004-02-09 20:47:18 +0000127 exit 1
128 fi
129fi
Igor Sysoev090849d2004-05-18 20:28:54 +0000130
131
Igor Sysoev02025fd2005-01-18 13:03:58 +0000132if [ $HTTP_SSL = YES ]; then
133 if [ $OPENSSL = NONE -o $OPENSSL = NO ]; then
134
135cat << END
136$0: error: the HTTP SSL module requires the OpenSSL library.
137You can either do not enable the module, or install the OpenSSL library
138into the system, or build the OpenSSL library statically from the source
139with nginx by using --with-openssl=<path> option.
140
141END
142
143 exit 1
144 fi
145fi
146
147
148cat << END
Igor Sysoevd039a2e2005-02-22 14:40:13 +0000149 nginx path prefix: "$NGX_PREFIX"
150 nginx binary file: "$NGX_SBIN_PATH"
151 nginx configuration file: "$NGX_CONF_PATH"
152 nginx pid file: "$NGX_PID_PATH"
Igor Sysoev02025fd2005-01-18 13:03:58 +0000153END
154
Igor Sysoevf6906042004-11-25 16:17:31 +0000155if test -n "$NGX_ERROR_LOG_PATH"; then
Igor Sysoevd039a2e2005-02-22 14:40:13 +0000156 echo " nginx error log file: \"$NGX_ERROR_LOG_PATH\""
Igor Sysoevff8da912004-09-29 16:00:49 +0000157else
158 echo " nginx logs errors to stderr"
159fi
Igor Sysoev02025fd2005-01-18 13:03:58 +0000160
161cat << END
Igor Sysoevd039a2e2005-02-22 14:40:13 +0000162 nginx http access log file: "$NGX_HTTP_LOG_PATH"
163 nginx http client request body temporary files: "$NGX_HTTP_CLIENT_TEMP_PATH"
164 nginx http proxy temporary files: "$NGX_HTTP_PROXY_TEMP_PATH"
165 nginx http fastcgi temporary files: "$NGX_HTTP_FASTCGI_TEMP_PATH"
Igor Sysoev02025fd2005-01-18 13:03:58 +0000166
167END