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.
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])