add -lresolv when its present so modules don't have to link to it

This commit is contained in:
Michael Jerris 2010-11-24 17:22:16 -05:00
parent 8b61fe4400
commit b017931c5e
1 changed files with 5 additions and 0 deletions

View File

@ -373,6 +373,11 @@ if test "x$have_libz" = "xyes" ; then
APR_ADDTO(SWITCH_AM_LDFLAGS, -lz)
fi
AC_CHECK_LIB(resolv, res_init, have_libresolv=yes, have_libresolv=no)
if test "x$have_libresolv" = "xyes" ; then
APR_ADDTO(SWITCH_AM_LDFLAGS, -lresolv)
fi
ESL_LDFLAGS=
PLATFORM_CORE_DEPLIBS=
# tweak platform specific flags