nginx/auto/inc

29 lines
662 B
Plaintext
Raw Normal View History

2003-11-26 09:42:18 -06:00
echo "checking for $NGX_INC"
2003-11-27 01:45:22 -06:00
NGX_FOUND=NO
inc=`echo $NGX_INC | sed -e 's/\./_/' | sed -e 's/\//_/' | tr '[a-z]' '[A-Z]'`
2003-11-26 09:42:18 -06:00
echo "#include <$NGX_INC>" > autotest.c
echo "int main() { return 0; }" >> autotest.c
eval "${CC} -o autotest autotest.c > /dev/null 2>&1"
if [ -x autotest ]; then
echo " + $NGX_INC found"
echo "#ifndef HAVE_$inc" >> $NGX_AUTO_CONFIG_H
echo "#define HAVE_$inc 1" >> $NGX_AUTO_CONFIG_H
echo "#endif" >> $NGX_AUTO_CONFIG_H
echo >> $NGX_AUTO_CONFIG_H
eval "NGX_$inc='#include <$NGX_INC>'"
2003-11-27 01:45:22 -06:00
NGX_FOUND=YES
2003-11-26 09:42:18 -06:00
else
echo " + $NGX_INC not found"
fi
rm autotest*