Mercurial > hg > nginx-vendor-current
comparison auto/fmt/fmt @ 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 |
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_type printf() format ..." $ngx_c | 5 echo $ngx_n "checking for $ngx_type printf() format ...$ngx_c" |
6 echo >> $NGX_ERR | |
7 echo "checking for $ngx_type printf() format" >> $NGX_ERR | |
8 | 6 |
9 ngx_fmt=no | 7 cat << END >> $NGX_AUTOCONF_ERR |
10 comma= | |
11 | 8 |
12 for fmt in $ngx_formats | 9 ---------------------------------------- |
10 checking for $ngx_type printf() format | |
11 | |
12 END | |
13 | |
14 | |
15 ngx_format=no | |
16 ngx_comma= | |
17 | |
18 | |
19 for ngx_fmt in $ngx_formats | |
13 do | 20 do |
14 | 21 |
15 cat << END > $NGX_AUTOTEST.c | 22 cat << END > $NGX_AUTOTEST.c |
16 | 23 |
17 #include <sys/types.h> | 24 #include <sys/types.h> |
18 #include <sys/time.h> | 25 #include <sys/time.h> |
19 #include <stdio.h> | 26 #include <stdio.h> |
20 #include <sys/resource.h> | 27 #include <sys/resource.h> |
21 $NGX_INTTYPES_H | 28 $NGX_INCLUDE_INTTYPES_H |
22 $NGX_AUTO_CONFIG | 29 $NGX_INCLUDE_AUTO_CONFIG_H |
23 | 30 |
24 int main() { | 31 int main() { |
25 printf("$fmt", ($ngx_type) $ngx_max_value); | 32 printf("$ngx_fmt", ($ngx_type) $ngx_max_value); |
26 return 0; | 33 return 0; |
27 } | 34 } |
28 | 35 |
29 END | 36 END |
30 | 37 |
31 eval "$CC_WARN $CC_TEST_FLAGS -o $NGX_AUTOTEST $NGX_AUTOTEST.c \ | 38 ngx_test="$CC $CC_TEST_FLAGS $CC_WARN $CC_AUX_FLAGS \ |
32 >> $NGX_ERR 2>&1" | 39 -o $NGX_AUTOTEST $NGX_AUTOTEST.c" |
40 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1" | |
33 | 41 |
34 max_value=`echo $ngx_max_value | sed -e "s/L*\$//"` | 42 ngx_max_val=`echo $ngx_max_value | sed -e "s/L*\$//"` |
35 | 43 |
36 if [ -x $NGX_AUTOTEST ]; then | 44 if [ -x $NGX_AUTOTEST ]; then |
37 if [ "`$NGX_AUTOTEST`" = $max_value ]; then | 45 |
46 if [ "`$NGX_AUTOTEST`" = $ngx_max_val ]; then | |
47 | |
38 if [ $ngx_fmt_collect = yes ]; then | 48 if [ $ngx_fmt_collect = yes ]; then |
39 echo $ngx_n "$comma \"${fmt}\" is appropriate" $ngx_c | 49 echo $ngx_n "$ngx_comma \"${ngx_fmt}\" is appropriate$ngx_c" |
40 else | 50 else |
41 echo $ngx_n "$comma \"${fmt}\" used" $ngx_c | 51 echo $ngx_n "$ngx_comma \"${ngx_fmt}\" used$ngx_c" |
42 fi | 52 fi |
43 ngx_fmt=$fmt | 53 |
54 ngx_format=$ngx_fmt | |
44 fi | 55 fi |
45 fi | 56 fi |
46 | 57 |
47 rm $NGX_AUTOTEST* | 58 rm -f $NGX_AUTOTEST |
48 | 59 |
49 if [ $ngx_fmt != no ]; then | 60 if [ $ngx_format != no ]; then |
50 if [ $ngx_fmt_collect = yes ]; then | 61 if [ $ngx_fmt_collect = yes ]; then |
51 eval "ngx_${ngx_size}_fmt=\"\${ngx_${ngx_size}_fmt} \$ngx_fmt\"" | 62 eval "ngx_${ngx_size}_fmt=\"\${ngx_${ngx_size}_fmt} \$ngx_format\"" |
52 comma="," | 63 ngx_comma="," |
53 continue | 64 continue |
54 else | 65 else |
55 break | 66 break |
56 fi | 67 fi |
57 fi | 68 fi |
58 | 69 |
59 echo $ngx_n "$comma \"${fmt}\" is not appropriate" $ngx_c | 70 echo $ngx_n "$ngx_comma \"${ngx_fmt}\" is not appropriate$ngx_c" |
60 comma="," | 71 ngx_comma="," |
72 | |
73 echo "----------" >> $NGX_AUTOCONF_ERR | |
74 cat $NGX_AUTOTEST.c >> $NGX_AUTOCONF_ERR | |
75 echo "----------" >> $NGX_AUTOCONF_ERR | |
76 echo $ngx_test >> $NGX_AUTOCONF_ERR | |
77 echo "----------" >> $NGX_AUTOCONF_ERR | |
61 done | 78 done |
62 | 79 |
63 echo | 80 echo |
64 | 81 |
65 if [ $ngx_fmt = no ]; then | 82 if [ $ngx_format = no ]; then |
66 echo "$0: error: printf() $ngx_type format not found" | 83 echo "$0: error: printf() $ngx_type format not found" |
84 | |
67 exit 1 | 85 exit 1 |
68 fi | 86 fi |
69 | 87 |
70 | 88 |
71 if [ $ngx_fmt_collect = no ]; then | 89 if [ $ngx_fmt_collect = no ]; then |
72 cat << END >> $NGX_AUTO_CONFIG_H | 90 cat << END >> $NGX_AUTO_CONFIG_H |
73 | 91 |
74 #ifndef $ngx_fmt_name | 92 #ifndef $ngx_fmt_name |
75 #define $ngx_fmt_name "$ngx_fmt" | 93 #define $ngx_fmt_name "$ngx_format" |
76 #endif | 94 #endif |
77 | 95 |
78 END | 96 END |
79 | 97 |
80 fi | 98 fi |