Mercurial > hg > nginx
comparison auto/types/uint64_t @ 192:31824be1fc66
nginx-0.0.1-2003-11-20-10:05:50 import; auto/configure
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 20 Nov 2003 07:05:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
191:71ce40b3c37b | 192:31824be1fc66 |
---|---|
1 | |
2 found=0 | |
3 | |
4 echo 'Checking for uint64_t' | |
5 | |
6 echo '#include <sys/types.h>' > autotest.c | |
7 echo 'int main() { uint64_t i = 0; return 0; }' >> autotest.c | |
8 | |
9 eval "${CC} -o autotest autotest.c > /dev/null 2>&1" | |
10 | |
11 if [ -x autotest ]; then | |
12 echo ' + uint64_t found' | |
13 found=1 | |
14 else | |
15 echo ' + uint64_t not found' | |
16 fi | |
17 | |
18 rm autotest* | |
19 | |
20 | |
21 if [ $found = 0 ]; then | |
22 | |
23 echo '#include <sys/types.h>' > autotest.c | |
24 echo 'int main() { u_int64_t i = 0; return 0; }' >> autotest.c | |
25 | |
26 eval "${CC} -o autotest autotest.c > /dev/null 2>&1" | |
27 | |
28 if [ -x autotest ]; then | |
29 echo ' + u_int64_t used' | |
30 type='typedef u_int64_t uint64_t;' | |
31 found=2 | |
32 else | |
33 echo ' + u_int64_t not found' | |
34 fi | |
35 | |
36 rm autotest* | |
37 | |
38 fi | |
39 | |
40 | |
41 if [ $found = 0 ]; then | |
42 echo "$0: error: uint64_t not found" | |
43 exit 1 | |
44 fi | |
45 | |
46 | |
47 if [ $found = 2 ]; then | |
48 echo $type >> ngx_auto_config.h | |
49 echo >> ngx_auto_config.h | |
50 fi |