configure.ac: detect libiso9660 with pkg-config
Fail if the iso9660 plugin is enabled but not found.
This commit is contained in:
parent
e216e01ab3
commit
e1f0c5347c
@ -270,9 +270,11 @@ endif
|
|||||||
# archive plugins
|
# archive plugins
|
||||||
|
|
||||||
ARCHIVE_CFLAGS = \
|
ARCHIVE_CFLAGS = \
|
||||||
|
$(ISO9660_CFLAGS) \
|
||||||
$(ZZIP_CFLAGS)
|
$(ZZIP_CFLAGS)
|
||||||
|
|
||||||
ARCHIVE_LIBS = \
|
ARCHIVE_LIBS = \
|
||||||
|
$(ISO9660_LIBS) \
|
||||||
$(ZZIP_LIBS)
|
$(ZZIP_LIBS)
|
||||||
|
|
||||||
ARCHIVE_SRC =
|
ARCHIVE_SRC =
|
||||||
|
@ -338,11 +338,8 @@ AC_ARG_ENABLE(iso9660,
|
|||||||
[enable iso9660 archive support (default: disabled)]),,
|
[enable iso9660 archive support (default: disabled)]),,
|
||||||
enable_iso9660=no)
|
enable_iso9660=no)
|
||||||
|
|
||||||
if test x$enable_iso9660 = xyes; then
|
MPD_AUTO_PKG(iso9660, ISO9660, [libiso9660],
|
||||||
AC_CHECK_LIB(iso9660, iso9660_ifs_readdir,
|
[libiso9660 archive library], [libiso9660 not found])
|
||||||
[MPD_LIBS="$MPD_LIBS -liso9660"],
|
|
||||||
enable_iso9660=no)
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_CONDITIONAL(HAVE_ISO, test x$enable_iso9660 = xyes)
|
AM_CONDITIONAL(HAVE_ISO, test x$enable_iso9660 = xyes)
|
||||||
if test x$enable_iso9660 = xyes; then
|
if test x$enable_iso9660 = xyes; then
|
||||||
|
Loading…
Reference in New Issue
Block a user