2 # Copyright (C) Igor Sysoev
3 # Copyright (C) Nginx, Inc.
6 echo $ngx_n "checking for $ngx_include ...$ngx_c"
8 cat << END >> $NGX_AUTOCONF_ERR
10 ----------------------------------------
11 checking for $ngx_include
18 cat << END > $NGX_AUTOTEST.c
20 $NGX_INCLUDE_SYS_PARAM_H
21 #include <$ngx_include>
30 ngx_test="$CC $NGX_CC_OPT -o $NGX_AUTOTEST $NGX_AUTOTEST.c"
32 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"
34 if [ -x $NGX_AUTOTEST ]; then
40 ngx_name=`echo $ngx_include \
41 | tr abcdefghijklmnopqrstuvwxyz/. ABCDEFGHIJKLMNOPQRSTUVWXYZ__`
44 have=NGX_HAVE_$ngx_name . auto/have_headers
46 eval "NGX_INCLUDE_$ngx_name='#include <$ngx_include>'"
49 eval "NGX_$ngx_name='#include <$ngx_include>'"
54 echo "----------" >> $NGX_AUTOCONF_ERR
55 cat $NGX_AUTOTEST.c >> $NGX_AUTOCONF_ERR
56 echo "----------" >> $NGX_AUTOCONF_ERR
57 echo $ngx_test >> $NGX_AUTOCONF_ERR
58 echo "----------" >> $NGX_AUTOCONF_ERR