Commit 1cad0c5b authored by Max Kellermann's avatar Max Kellermann

configure.ac: detect libid3tag without pkg-config

libid3tag comes without a pkg-config file, and it is usually added by distribution packages. For those without .pc file, attempt to auto-detect the library with AC_CHECK_LIB.
parent 55b6fd2f
......@@ -544,9 +544,14 @@ fi
AM_CONDITIONAL(HAVE_JACK, test x$enable_jack = xyes)
if test x$enable_id3 = xyes; then
PKG_CHECK_MODULES([ID3TAG], [id3tag],
AC_DEFINE(HAVE_ID3TAG, 1, [Define to use id3tag]),
enable_id3=no)
PKG_CHECK_MODULES([ID3TAG], [id3tag],,
AC_CHECK_LIB(id3tag, id3_file_open,
[ID3TAG_LIBS="-lid3tag -lz" ID3TAG_CFLAGS=""],
enable_id3tag=no))
fi
if test x$enable_id3 = xyes; then
AC_DEFINE(HAVE_ID3TAG, 1, [Define to use id3tag])
fi
AM_CONDITIONAL(HAVE_ID3TAG, test x$enable_id3 = xyes)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment