2 # Copyright (C) Igor Sysoev
5 echo $ngx_n "checking for $ngx_include ...$ngx_c"
7 cat << END >> $NGX_AUTOCONF_ERR
9 ----------------------------------------
10 checking for $ngx_include
17 cat << END > $NGX_AUTOTEST.c
19 $NGX_INCLUDE_SYS_PARAM_H
20 #include <$ngx_include>
29 ngx_test="$CC -o $NGX_AUTOTEST $NGX_AUTOTEST.c"
31 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"
33 if [ -x $NGX_AUTOTEST ]; then
39 ngx_name=`echo $ngx_include \
40 | tr abcdefghijklmnopqrstuvwxyz/. ABCDEFGHIJKLMNOPQRSTUVWXYZ__`
43 have=NGX_HAVE_$ngx_name . auto/have_headers
45 eval "NGX_INCLUDE_$ngx_name='#include <$ngx_include>'"
48 eval "NGX_$ngx_name='#include <$ngx_include>'"
53 echo "----------" >> $NGX_AUTOCONF_ERR
54 cat $NGX_AUTOTEST.c >> $NGX_AUTOCONF_ERR
55 echo "----------" >> $NGX_AUTOCONF_ERR
56 echo $ngx_test >> $NGX_AUTOCONF_ERR
57 echo "----------" >> $NGX_AUTOCONF_ERR