From: Andre Noll Date: Tue, 13 Mar 2012 15:37:36 +0000 (+0100) Subject: Link against libz if compiling with libid3tag support. X-Git-Tag: v0.4.10~3^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=902ec3df25e1095b2a5c83d03ef6a1016e79d2f1;hp=-c Link against libz if compiling with libid3tag support. libid3tag depends on libz. On Linux, libz is automatically linked to para_server and para_afh but at least on FreeBSD compilation fails due to undefined references to "uncompress" and "compress2". This patch explicitly adds -lz to $server_ld_flags and $afh_ldflags if libid3tag was detected. --- 902ec3df25e1095b2a5c83d03ef6a1016e79d2f1 diff --git a/configure.ac b/configure.ac index 094c4062..ad4a5565 100644 --- a/configure.ac +++ b/configure.ac @@ -753,8 +753,8 @@ AC_MSG_RESULT($have_libid3tag) if test ${have_libid3tag} = yes; then AC_DEFINE(HAVE_LIBID3TAG, 1, define to 1 you have libid3tag) - server_ldflags="$server_ldflags $id3tag_libs -lid3tag" - afh_ldflags="$afh_ldflags $id3tag_libs -lid3tag" + server_ldflags="$server_ldflags $id3tag_libs -lid3tag -lz" + afh_ldflags="$afh_ldflags $id3tag_libs -lid3tag -lz" AC_SUBST(id3tag_cppflags) else AC_MSG_WARN([no support for id3v2 tags])