]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix build error due to missing zlib linking when using libtool 2.2 or later
authorMichael Jerris <mike@jerris.com>
Mon, 26 Apr 2010 07:21:41 +0000 (03:21 -0400)
committerMichael Jerris <mike@jerris.com>
Mon, 26 Apr 2010 07:21:41 +0000 (03:21 -0400)
configure.in

index 23ff3d56805e555397d59f63fbf41d16f5a426ad..838c1087a300dbd2d797d6d0052f090e192eb789 100644 (file)
@@ -353,7 +353,6 @@ AC_SUBST(PA_LIBS)
 
 AM_CONDITIONAL([ENABLE_ZRTP],[test "x$enable_zrtp" != "xno"])
 
-
 AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
 
 AC_ARG_ENABLE(core-odbc-support,     
@@ -363,6 +362,11 @@ if test "$ac_cv_found_odbc" = "yes" ; then
   enable_core_odbc_support="yes"
 fi
 
+AC_CHECK_LIB(z, inflateReset, have_libz=yes, have_libz=no)
+if test "x$have_libz" = "xyes"  ; then
+APR_ADDTO(SWITCH_AM_LDFLAGS, -lz)
+fi
+
 ESL_LDFLAGS=
 PLATFORM_CORE_DEPLIBS=
 # tweak platform specific flags