]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add -lresolv when its present so modules don't have to link to it
authorMichael Jerris <mike@jerris.com>
Wed, 24 Nov 2010 22:22:16 +0000 (17:22 -0500)
committerMichael Jerris <mike@jerris.com>
Wed, 24 Nov 2010 22:22:16 +0000 (17:22 -0500)
configure.in

index de7261266e701110c312b23cfa2ee97722bf85b7..77df2a614cf9e51dc81ed92610db8458adb6daa6 100644 (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