Mercurial > hg > nginx-mail
comparison auto/types/sizeof @ 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 | df17fbafec8f |
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 size ..." $ngx_c | 5 echo $ngx_n "checking for $ngx_type size ...$ngx_c" |
6 echo >> $NGX_ERR | 6 |
7 echo "checking for $ngx_type size" >> $NGX_ERR | 7 cat << END >> $NGX_AUTOCONF_ERR |
8 | |
9 ---------------------------------------- | |
10 checking for $ngx_type size | |
11 | |
12 END | |
8 | 13 |
9 ngx_size= | 14 ngx_size= |
10 | 15 |
11 cat << END > $NGX_AUTOTEST.c | 16 cat << END > $NGX_AUTOTEST.c |
12 | 17 |
13 #include <sys/types.h> | 18 #include <sys/types.h> |
14 #include <sys/time.h> | 19 #include <sys/time.h> |
15 $NGX_UNISTD_H | 20 $NGX_INCLUDE_UNISTD_H |
16 #include <signal.h> | 21 #include <signal.h> |
17 #include <sys/resource.h> | 22 #include <sys/resource.h> |
18 $NGX_INTTYPES_H | 23 $NGX_INCLUDE_INTTYPES_H |
19 $NGX_AUTO_CONFIG | 24 $NGX_INCLUDE_AUTO_CONFIG_H |
20 | 25 |
21 int main() { | 26 int main() { |
22 printf("%d", sizeof($ngx_type)); | 27 printf("%d", sizeof($ngx_type)); |
23 return 0; | 28 return 0; |
24 } | 29 } |
25 | 30 |
26 END | 31 END |
27 | 32 |
28 eval "$CC $CC_TEST_FLAGS -o $NGX_AUTOTEST $NGX_AUTOTEST.c >> $NGX_ERR 2>&1" | 33 |
34 ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS -o $NGX_AUTOTEST $NGX_AUTOTEST.c" | |
35 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1" | |
36 | |
29 | 37 |
30 if [ -x $NGX_AUTOTEST ]; then | 38 if [ -x $NGX_AUTOTEST ]; then |
31 ngx_size=`$NGX_AUTOTEST` | 39 ngx_size=`$NGX_AUTOTEST` |
32 echo " $ngx_size bytes" | 40 echo " $ngx_size bytes" |
33 fi | 41 fi |
34 | 42 |
35 rm $NGX_AUTOTEST* | 43 |
44 rm -f $NGX_AUTOTEST | |
45 | |
36 | 46 |
37 case $ngx_size in | 47 case $ngx_size in |
38 4) | 48 4) |
39 if [ "$ngx_type"="long" ]; then | 49 if [ "$ngx_type"="long" ]; then |
40 ngx_max_value=2147483647L | 50 ngx_max_value=2147483647L |
56 ;; | 66 ;; |
57 | 67 |
58 *) | 68 *) |
59 echo | 69 echo |
60 echo "$0: error: can not detect $ngx_type size" | 70 echo "$0: error: can not detect $ngx_type size" |
71 | |
72 echo "----------" >> $NGX_AUTOCONF_ERR | |
73 cat $NGX_AUTOTEST.c >> $NGX_AUTOCONF_ERR | |
74 echo "----------" >> $NGX_AUTOCONF_ERR | |
75 echo $ngx_test >> $NGX_AUTOCONF_ERR | |
76 echo "----------" >> $NGX_AUTOCONF_ERR | |
77 | |
61 exit 1 | 78 exit 1 |
62 esac | 79 esac |
80 |