mirror of
https://github.com/nginx/nginx.git
synced 2024-12-02 20:09:01 +08:00
24 lines
453 B
Plaintext
24 lines
453 B
Plaintext
|
|
echo $ngx_n "checking for $ngx_lib library ..." $ngx_c
|
|
echo >> $NGX_ERR
|
|
echo "checking for $ngx_lib library" >> $NGX_ERR
|
|
|
|
ngx_found=no
|
|
|
|
echo "$ngx_lib_inc" > $NGX_AUTOTEST.c
|
|
echo "int main() { $ngx_lib_test; return 0; }" >> $NGX_AUTOTEST.c
|
|
|
|
eval "$CC $cc_test_flags -o $NGX_AUTOTEST $NGX_AUTOTEST.c $ngx_libs \
|
|
>> $NGX_ERR 2>&1"
|
|
|
|
if [ -x $NGX_AUTOTEST ]; then
|
|
echo " found"
|
|
|
|
ngx_found=yes
|
|
|
|
else
|
|
echo " not found"
|
|
fi
|
|
|
|
rm $NGX_AUTOTEST*
|