| echo 'Checking for uintptr_t' |
| echo '#include <sys/types.h>' > autotest.c |
| echo 'int main() { uintptr_t i = 0; return i; }' >> autotest.c |
| eval "${CC} -o autotest autotest.c > /dev/null 2>&1" |
| echo ' + uintptr_t found' |
| echo ' + uintptr_t not found' |
| echo 'int main() { printf("%d", 8 * sizeof(void *)); return 0; }' \ |
| eval "${CC} -o autotest autotest.c > /dev/null 2>&1" |
| type="uint`./autotest`_t" |
| type="typedef $type uintptr_t;" |
| echo "$0: error: uintptr_t not found" |
| echo $type >> ngx_auto_config.h |
| echo >> ngx_auto_config.h |