comparison auto/feature @ 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 f0b350454894
children 46833bd150cb
comparison
equal deleted inserted replaced
3:8beaf7b3241f 4:4b2dafa26fe2
1 1
2 # Copyright (C) Igor Sysoev 2 # Copyright (C) Igor Sysoev
3 3
4 4
5 echo $ngx_n "checking for $ngx_feature ..." $ngx_c 5 echo $ngx_n "checking for $ngx_feature ...$ngx_c"
6 echo >> $NGX_ERR 6
7 echo "checking for $ngx_feature" >> $NGX_ERR 7 cat << END >> $NGX_AUTOCONF_ERR
8
9 ----------------------------------------
10 checking for $ngx_feature
11
12 END
8 13
9 ngx_found=no 14 ngx_found=no
10 15
11 feature=`echo $ngx_feature_name | tr '[a-z]' '[A-Z]'` 16 if test -n "$ngx_feature_name"; then
17 ngx_have_feature=`echo NGX_$ngx_feature_name | tr '[a-z]' '[A-Z]'`
18 # STUB
19 ngx_have_feature0=`echo HAVE_$ngx_feature_name | tr '[a-z]' '[A-Z]'`
20 fi
12 21
13 cat << END > $NGX_AUTOTEST.c 22 cat << END > $NGX_AUTOTEST.c
14 23
15 #include <sys/types.h> 24 #include <sys/types.h>
16 $NGX_UNISTD_H 25 $NGX_INCLUDE_UNISTD_H
17 $ngx_feature_inc 26 $ngx_feature_incs
18 27
19 int main() { 28 int main() {
20 $ngx_feature_test; 29 $ngx_feature_test;
21 return 0; 30 return 0;
22 } 31 }
23 32
24 END 33 END
25 34
26 test="$CC_WARN $CC_TEST_FLAGS -o $NGX_AUTOTEST $NGX_AUTOTEST.c \ 35
27 $ngx_feature_libs" 36 ngx_test="$CC $CC_TEST_FLAGS $CC_WARN $CC_AUX_FLAGS \
28 eval "$test >> $NGX_ERR 2>&1" 37 -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs"
38 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"
39
29 40
30 if [ -x $NGX_AUTOTEST ]; then 41 if [ -x $NGX_AUTOTEST ]; then
31 42
32 if [ $ngx_feature_run = yes ]; then 43 if [ $ngx_feature_run = yes ]; then
44
33 if $NGX_AUTOTEST 2>&1 > /dev/null; then 45 if $NGX_AUTOTEST 2>&1 > /dev/null; then
34 echo " found" 46 echo " found"
35 have=HAVE_$feature . auto/have
36 ngx_found=yes 47 ngx_found=yes
48
49 if test -n "$ngx_feature_name"; then
50 have=$ngx_have_feature . auto/have
51 fi
52
53 #STUB
54 if test -n "$ngx_feature_name"; then
55 have=$ngx_have_feature0 . auto/have
56 fi
57
37 else 58 else
38 echo " found but is not working" 59 echo " found but is not working"
39 fi 60 fi
40 61
41 else 62 else
42 echo " found" 63 echo " found"
43 have=HAVE_$feature . auto/have
44 ngx_found=yes 64 ngx_found=yes
65
66 if test -n "$ngx_feature_name"; then
67 have=$ngx_have_feature . auto/have
68 fi
69
70 #STUB
71 if test -n "$ngx_feature_name"; then
72 have=$ngx_have_feature0 . auto/have
73 fi
74
45 fi 75 fi
46 76
47 else 77 else
48 echo " not found" 78 echo " not found"
49 echo "---------" >> $NGX_ERR 79
50 cat $NGX_AUTOTEST.c >> $NGX_ERR 80 echo "----------" >> $NGX_AUTOCONF_ERR
51 echo "---------" >> $NGX_ERR 81 cat $NGX_AUTOTEST.c >> $NGX_AUTOCONF_ERR
52 echo $test >> $NGX_ERR 82 echo "----------" >> $NGX_AUTOCONF_ERR
53 echo "---------" >> $NGX_ERR 83 echo $ngx_test >> $NGX_AUTOCONF_ERR
84 echo "----------" >> $NGX_AUTOCONF_ERR
54 fi 85 fi
55 86
56 rm $NGX_AUTOTEST* 87 rm $NGX_AUTOTEST*