| echo "checking for $NGX_TYPE" |
| for TYPE in $NGX_TYPE $NGX_TYPES |
| echo "#include <sys/types.h>" > autotest.c |
| echo "#include <sys/socket.h>" >> autotest.c |
| echo "#include <sys/time.h>" >> autotest.c |
| echo "#include <sys/resource.h>" >> autotest.c |
| echo "#include <netinet/in.h>" >> autotest.c |
| echo "$NGX_INTTYPES_H" >> autotest.c |
| echo "int main() { $TYPE i = 0; return 0; }" >> autotest.c |
| eval "$CC -o autotest autotest.c > $NGX_ERR 2>&1" |
| if [ $TYPE = $NGX_TYPE ]; then |
| echo " + $NGX_TYPE found" |
| echo " + $TYPE not found" |
| echo "$0: error: can not define $NGX_TYPE" |
| if [ $FOUND != YES ]; then |
| echo "typedef $FOUND $NGX_TYPE;" >> $NGX_AUTO_CONFIG_H |
| echo >> $NGX_AUTO_CONFIG_H |