2003-12-15 04:10:27 +08:00
|
|
|
|
2004-09-30 00:00:49 +08:00
|
|
|
# Copyright (C) Igor Sysoev
|
2012-01-18 23:07:43 +08:00
|
|
|
# Copyright (C) Nginx, Inc.
|
2004-09-30 00:00:49 +08:00
|
|
|
|
|
|
|
|
2004-10-21 23:34:38 +08:00
|
|
|
echo $ngx_n "checking for $ngx_lib ...$ngx_c"
|
|
|
|
|
|
|
|
cat << END >> $NGX_AUTOCONF_ERR
|
|
|
|
|
|
|
|
----------------------------------------
|
|
|
|
checking for $ngx_lib
|
|
|
|
|
|
|
|
END
|
2003-12-15 04:10:27 +08:00
|
|
|
|
|
|
|
ngx_found=no
|
|
|
|
|
2004-10-21 23:34:38 +08:00
|
|
|
cat << END > $NGX_AUTOTEST.c
|
|
|
|
|
|
|
|
$ngx_lib_incs
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
$ngx_lib_test;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2003-12-15 04:10:27 +08:00
|
|
|
|
2004-04-08 23:58:25 +08:00
|
|
|
eval "$CC $cc_test_flags $ngx_lib_cflags \
|
|
|
|
-o $NGX_AUTOTEST $NGX_AUTOTEST.c $ngx_libs \
|
2003-12-15 04:10:27 +08:00
|
|
|
>> $NGX_ERR 2>&1"
|
|
|
|
|
|
|
|
if [ -x $NGX_AUTOTEST ]; then
|
2004-02-21 00:48:59 +08:00
|
|
|
echo " found"
|
2003-12-15 04:10:27 +08:00
|
|
|
|
|
|
|
ngx_found=yes
|
|
|
|
|
|
|
|
else
|
2004-02-21 00:48:59 +08:00
|
|
|
echo " not found"
|
2003-12-15 04:10:27 +08:00
|
|
|
fi
|
|
|
|
|
2013-07-31 22:16:40 +08:00
|
|
|
rm -rf $NGX_AUTOTEST*
|