comparison auto/os/conf @ 64:5db440287648 NGINX_0_1_32

nginx 0.1.32 *) Bugfix: the arguments were omitted in the redirects, issued by the "rewrite" directive; bug appeared in 0.1.29. *) Feature: the "if" directive supports the captures in regular expressions. *) Feature: the "set" directive supports the variables and the captures of regular expressions. *) Feature: the "X-Accel-Redirect" response header line is supported in proxy and FastCGI mode.
author Igor Sysoev <http://sysoev.ru>
date Thu, 19 May 2005 00:00:00 +0400
parents b55cbf18157e
children 818201e5a553
comparison
equal deleted inserted replaced
63:e42867135781 64:5db440287648
21 21
22 FreeBSD:* | DragonFly:*) 22 FreeBSD:* | DragonFly:*)
23 . auto/os/freebsd 23 . auto/os/freebsd
24 ;; 24 ;;
25 25
26 Darwin:*)
27 have=NGX_DARWIN . auto/have_headers
28 have=NGX_HAVE_INHERITED_NONBLOCK . auto/have
29 CORE_INCS="$UNIX_INCS"
30 CORE_DEPS="$UNIX_DEPS $POSIX_DEPS"
31 CORE_SRCS="$UNIX_SRCS"
32 CRYPT_LIB=
33 ;;
34
35 Linux:*) 26 Linux:*)
36 . auto/os/linux 27 . auto/os/linux
37 ;; 28 ;;
38 29
39 SunOS:*) 30 SunOS:*)
42 33
43 win32) 34 win32)
44 . auto/os/win32 35 . auto/os/win32
45 ;; 36 ;;
46 37
38 Darwin:*)
39 have=NGX_DARWIN . auto/have_headers
40 have=NGX_HAVE_INHERITED_NONBLOCK . auto/have
41 CORE_INCS="$UNIX_INCS"
42 CORE_DEPS="$UNIX_DEPS $POSIX_DEPS"
43 CORE_SRCS="$UNIX_SRCS"
44 ;;
45
46 HP-UX:*)
47 # HP/UX
48 have=NGX_HPUX . auto/have_headers
49 CORE_INCS="$UNIX_INCS"
50 CORE_DEPS="$UNIX_DEPS $POSIX_DEPS"
51 CORE_SRCS="$UNIX_SRCS"
52 CC_AUX_FLAGS="$CC_AUX_FLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
53 ;;
54
55 OSF1:*)
56 # HP Tru64
57 have=NGX_TRU64 . auto/have_headers
58 CORE_INCS="$UNIX_INCS"
59 CORE_DEPS="$UNIX_DEPS $POSIX_DEPS"
60 CORE_SRCS="$UNIX_SRCS"
61 ;;
62
47 *) 63 *)
48 CORE_INCS="$UNIX_INCS" 64 CORE_INCS="$UNIX_INCS"
49 CORE_DEPS="$UNIX_DEPS $POSIX_DEPS" 65 CORE_DEPS="$UNIX_DEPS $POSIX_DEPS"
50 CORE_SRCS="$UNIX_SRCS" 66 CORE_SRCS="$UNIX_SRCS"
51 CRYPT_LIB="-lcrypt"
52 ;; 67 ;;
53 68
54 esac 69 esac
55 70
56 71
57 case "$NGX_MACHINE" in 72 case "$NGX_MACHINE" in
58 73
59 i386|i686|i86pc|amd64) 74 i386 | i686 | i86pc | amd64)
60 have=NGX_HAVE_NONALIGNED . auto/have 75 have=NGX_HAVE_NONALIGNED . auto/have
61 ;; 76 ;;
62 77
63 esac 78 esac
64
65
66 if [ "$NGX_PLATFORM" != win32 ]; then
67
68 NGX_USER=${NGX_USER:-nobody}
69
70 if [ -z "$NGX_GROUP" -a $NGX_USER = nobody ] ; then
71 if grep nobody /etc/group 2>&1 >/dev/null; then
72 echo "checking for nobody group ... found"
73 NGX_GROUP=nobody
74 else
75 echo "checking for nobody group ... not found"
76
77 if grep nogroup /etc/group 2>&1 >/dev/null; then
78 echo "checking for nogroup group ... found"
79 NGX_GROUP=nogroup
80 else
81 echo "checking for nogroup group ... not found"
82 NGX_GROUP=nobody
83 fi
84 fi
85
86 else
87 NGX_GROUP=$NGX_USER
88 fi
89
90
91 ngx_feature="poll()"
92 ngx_feature_name=
93 ngx_feature_run=no
94 ngx_feature_incs="#include <poll.h>"
95 ngx_feature_libs=
96 ngx_feature_test="int n, dp; struct pollfd pl;
97 dp = 0;
98 pl.fd = 0;
99 pl.events = 0;
100 pl.revents = 0;
101 n = poll(&pl, 1, 0)"
102 . auto/feature
103
104 if [ $ngx_found = no ]; then
105 EVENT_POLL=NONE
106 fi
107
108
109 ngx_feature="/dev/poll"
110 ngx_feature_name="NGX_HAVE_DEVPOLL"
111 ngx_feature_run=no
112 ngx_feature_incs="#include <sys/devpoll.h>"
113 ngx_feature_libs=
114 ngx_feature_test="int n, dp; struct dvpoll dvp;
115 dp = 0;
116 dvp.dp_fds = NULL;
117 dvp.dp_nfds = 0;
118 dvp.dp_timeout = 0;
119 n = ioctl(dp, DP_POLL, &dvp)"
120 . auto/feature
121
122 if [ $ngx_found = yes ]; then
123 CORE_SRCS="$CORE_SRCS $DEVPOLL_SRCS"
124 EVENT_MODULES="$EVENT_MODULES $DEVPOLL_MODULE"
125 EVENT_FOUND=YES
126 fi
127
128
129 if test -z "$NGX_KQUEUE_CHECKED"; then
130 ngx_feature="kqueue"
131 ngx_feature_name="NGX_HAVE_KQUEUE"
132 ngx_feature_run=no
133 ngx_feature_incs="#include <sys/event.h>"
134 ngx_feature_libs=
135 ngx_feature_test="int kq; kq = kqueue()"
136 . auto/feature
137
138 if [ $ngx_found = yes ]; then
139
140 have=NGX_HAVE_CLEAR_EVENT . auto/have
141 EVENT_MODULES="$EVENT_MODULES $KQUEUE_MODULE"
142 CORE_SRCS="$CORE_SRCS $KQUEUE_SRCS"
143 EVENT_FOUND=YES
144
145 ngx_feature="kqueue's NOTE_LOWAT"
146 ngx_feature_name="NGX_HAVE_LOWAT_EVENT"
147 ngx_feature_run=no
148 ngx_feature_incs="#include <sys/event.h>"
149 ngx_feature_libs=
150 ngx_feature_test="struct kevent kev;
151 kev.fflags = NOTE_LOWAT;"
152 . auto/feature
153 fi
154 fi
155
156 if [ "$NGX_SYSTEM" = "NetBSD" ]; then
157
158 # NetBSD 2.0 incompatibly defines kevent.udata as "intptr_t"
159
160 cat << END >> $NGX_AUTO_CONFIG_H
161
162 #define NGX_KQUEUE_UDATA_T
163
164 END
165
166 else
167 cat << END >> $NGX_AUTO_CONFIG_H
168
169 #define NGX_KQUEUE_UDATA_T (void *)
170
171 END
172
173 fi
174 fi