blob: 6821b51da2a92ed12b52970bd756a10b8652e0d9 [file] [log] [blame]
Igor Sysoevdc867cd2003-12-14 20:10:27 +00001
Igor Sysoevff8da912004-09-29 16:00:49 +00002# Copyright (C) Igor Sysoev
3
4
Igor Sysoevc0edbcc2004-10-21 15:34:38 +00005echo $ngx_n "checking for $ngx_lib ...$ngx_c"
6
7cat << END >> $NGX_AUTOCONF_ERR
8
9----------------------------------------
10checking for $ngx_lib
11
12END
Igor Sysoevdc867cd2003-12-14 20:10:27 +000013
14ngx_found=no
15
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000016cat << END > $NGX_AUTOTEST.c
17
18$ngx_lib_incs
19
20int main() {
21 $ngx_lib_test;
22 return 0;
23}
24
Igor Sysoevdc867cd2003-12-14 20:10:27 +000025
Igor Sysoevfff32322004-04-08 15:58:25 +000026eval "$CC $cc_test_flags $ngx_lib_cflags \
27 -o $NGX_AUTOTEST $NGX_AUTOTEST.c $ngx_libs \
Igor Sysoevdc867cd2003-12-14 20:10:27 +000028 >> $NGX_ERR 2>&1"
29
30if [ -x $NGX_AUTOTEST ]; then
Igor Sysoev0ee5d3c2004-02-20 16:48:59 +000031 echo " found"
Igor Sysoevdc867cd2003-12-14 20:10:27 +000032
33 ngx_found=yes
34
35else
Igor Sysoev0ee5d3c2004-02-20 16:48:59 +000036 echo " not found"
Igor Sysoevdc867cd2003-12-14 20:10:27 +000037fi
38
39rm $NGX_AUTOTEST*