Mercurial > hg > nginx-vendor-current
annotate auto/endianess @ 626:a7a5fa2e395b NGINX_1_0_3
nginx 1.0.3
*) Feature: the "auth_basic_user_file" directive supports "$apr1",
"{PLAIN}", and "{SSHA}" password encryption methods.
Thanks to Maxim Dounin.
*) Feature: the "geoip_org" directive and $geoip_org variable.
Thanks to Alexander Uskov, Arnaud Granal, and Denis F. Latypoff.
*) Feature: ngx_http_geo_module and ngx_http_geoip_module support IPv4
addresses mapped to IPv6 addresses.
*) Bugfix: a segmentation fault occurred in a worker process during
testing IPv4 address mapped to IPv6 address, if access or deny rules
were defined only for IPv6; the bug had appeared in 0.8.22.
*) Bugfix: a cached reponse may be broken if proxy/fastcgi/scgi/
uwsgi_cache_bypass and proxy/fastcgi/scgi/uwsgi_no_cache directive
values were different; the bug had appeared in 0.8.46.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 25 May 2011 00:00:00 +0400 |
parents | c982febb7588 |
children | d0f7a625f27c |
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 |