comparison auto/include @ 4:4b2dafa26fe2 NGINX_0_1_2

nginx 0.1.2 *) Feature: the --user=USER, --group=GROUP, and --with-ld-opt=OPTIONS options in configure. *) Feature: the server_name directive supports *.domain.tld. *) Bugfix: the portability improvements. *) Bugfix: if configuration file was set in command line, the reconfiguration was impossible; bug appeared in 0.1.1. *) Bugfix: proxy module may get caught in an endless loop when sendfile is not used. *) Bugfix: with sendfile the response was not recoded according to the charset module directives; bug appeared in 0.1.1. *) Bugfix: very seldom bug in the kqueue processing. *) Bugfix: the gzip module compressed the proxied responses that was already compressed.
author Igor Sysoev <http://sysoev.ru>
date Thu, 21 Oct 2004 00:00:00 +0400
parents
children b55cbf18157e
comparison
equal deleted inserted replaced
3:8beaf7b3241f 4:4b2dafa26fe2
1
2 # Copyright (C) Igor Sysoev
3
4
5 echo $ngx_n "checking for $ngx_include ...$ngx_c"
6
7 cat << END >> $NGX_AUTOCONF_ERR
8
9 ----------------------------------------
10 checking for $ngx_include
11
12 END
13
14
15 ngx_found=no
16
17 cat << END > $NGX_AUTOTEST.c
18
19 #include <$ngx_include>
20
21 int main() {
22 return 0;
23 }
24
25 END
26
27
28 ngx_test="$CC -o $NGX_AUTOTEST $NGX_AUTOTEST.c"
29
30 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"
31
32 if [ -x $NGX_AUTOTEST ]; then
33
34 ngx_found=yes
35
36 echo " found"
37
38 ngx_name=`echo $ngx_include | sed -e 's/\./_/' -e 's/\//_/' \
39 | tr '[a-z]' '[A-Z]'`
40
41
42 cat << END >> $NGX_AUTO_HEADERS_H
43
44 #ifndef NGX_HAVE_$ngx_name
45 #define NGX_HAVE_$ngx_name 1
46 #endif
47
48 END
49
50
51 eval "NGX_INCLUDE_$ngx_name='#include <$ngx_include>'"
52
53 #STUB
54 eval "NGX_$ngx_name='#include <$ngx_include>'"
55
56 else
57 echo " not found"
58
59 echo "----------" >> $NGX_AUTOCONF_ERR
60 cat $NGX_AUTOTEST.c >> $NGX_AUTOCONF_ERR
61 echo "----------" >> $NGX_AUTOCONF_ERR
62 echo $ngx_test >> $NGX_AUTOCONF_ERR
63 echo "----------" >> $NGX_AUTOCONF_ERR
64 fi
65
66 rm $NGX_AUTOTEST*