Mercurial > hg > nginx-vendor-0-5
annotate auto/endianess @ 298:30862655219e NGINX_0_5_19
nginx 0.5.19
*) Change: now the $request_time variable has millisecond precision.
*) Change: the method $r->rflush of ngx_http_perl_module was renamed to
the $r->flush.
*) Feature: the $upstream_addr variable.
*) Feature: the "proxy_headers_hash_max_size" and
"proxy_headers_hash_bucket_size" directives.
Thanks to Volodymyr Kostyrko.
*) Bugfix: the files more than 2G could not be transferred using
sendfile and limit_rate on 64-bit platforms.
*) Bugfix: the files more than 2G could not be transferred using
sendfile on 64-bit Linux.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 24 Apr 2007 00:00:00 +0400 |
parents | c982febb7588 |
children |
rev | line source |
---|---|
0 | 1 |
2 # Copyright (C) Igor Sysoev | |
3 | |
4 | |
4 | 5 echo $ngx_n "checking for system endianess ...$ngx_c" |
0 | 6 echo >> $NGX_ERR |
7 echo "checking for system endianess" >> $NGX_ERR | |
8 | |
9 | |
10 cat << END > $NGX_AUTOTEST.c | |
11 | |
12 int main() { | |
13 int i = 0x11223344; | |
14 char *p; | |
15 | |
16 p = (char *) &i; | |
17 if (*p == 0x44) return 0; | |
18 return 1; | |
19 } | |
20 | |
21 END | |
22 | |
132 | 23 ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS \ |
126 | 24 -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs" |
25 | |
26 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1" | |
0 | 27 |
28 if [ -x $NGX_AUTOTEST ]; then | |
236 | 29 if $NGX_AUTOTEST >/dev/null 2>&1; then |
0 | 30 echo " little endianess" |
18 | 31 have=NGX_HAVE_LITTLE_ENDIAN . auto/have |
0 | 32 else |
33 echo " big endianess" | |
34 fi | |
35 | |
36 rm $NGX_AUTOTEST* | |
37 | |
38 else | |
39 rm $NGX_AUTOTEST* | |
40 | |
41 echo | |
42 echo "$0: error: can not detect system endianess" | |
43 exit 1 | |
44 fi |