]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Link para_server and para_afh against libid3tag if available.
authorAndre Noll <maan@systemlinux.org>
Sun, 29 Jun 2008 12:58:12 +0000 (14:58 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 29 Jun 2008 12:58:12 +0000 (14:58 +0200)
configure.ac

index a974ddb8a7d02f402be5d72f79dc45d05a15f57e..3ba67c4a8be4b46e4f27e2335c2de19058f763b2 100644 (file)
@@ -434,6 +434,21 @@ fi
 CPPFLAGS="$OLD_CPPFLAGS"
 LDFLAGS="$OLD_LDFLAGS"
 LIBS="$OLD_LIBS"
 CPPFLAGS="$OLD_CPPFLAGS"
 LDFLAGS="$OLD_LDFLAGS"
 LIBS="$OLD_LIBS"
+###################################################################### libid3tag
+AC_MSG_CHECKING(for libid3tag)
+AC_TRY_LINK([
+       #include <id3tag.h>
+],[
+       struct id3_tag t = {.flags = 0};
+],[have_libid3tag=yes],[have_libid3tag=no])
+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 -lid3tag"
+       afh_ldflags="$afh_ldflags -lid3tag"
+else
+       AC_MSG_WARN([no support for id3v2 tags])
+fi
 ########################################################################### alsa
 have_alsa="yes"
 OLD_CPPFLAGS="$CPPFLAGS"
 ########################################################################### alsa
 have_alsa="yes"
 OLD_CPPFLAGS="$CPPFLAGS"