From 98fd9b7da8547efe81d473371bb3ca7620c7b2b2 Mon Sep 17 00:00:00 2001 From: Viliam Mateicka Date: Tue, 16 Dec 2008 21:45:59 +0100 Subject: archiveapi: archive plugin for BZ2 files --- configure.ac | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 95dac9bd9..15173f186 100644 --- a/configure.ac +++ b/configure.ac @@ -170,6 +170,25 @@ AC_ARG_ENABLE(mvp, enable_mvp=no) +dnl +dnl archive plugins +dnl + +AC_ARG_ENABLE(bz2, + AS_HELP_STRING([--enable-bz2], + [enable rar archive support (default: disabled)]), + enable_bz2=$enableval, + enable_bz2=no) + +AM_CONDITIONAL(HAVE_BZ2, test x$enable_bz2 = xyes) + +# archive plugin libraries + +AC_CHECK_LIB(bz2, BZ2_bzDecompressInit,[MPD_LIBS="-lbz2";],enable_bz2=no) +if test x$enable_bz2 = xyes; then + AC_DEFINE(HAVE_BZ2, 1, [Define to have bz2 archive support]) +fi + dnl dnl decoder plugins dnl @@ -1146,6 +1165,12 @@ else echo " Zeroconf support ..............disabled" fi +if test x$enable_bz2 = xyes; then + echo " BZ2 archives support ..........enabled" +else + echo " BZ2 archives support ..........disabled" +fi + echo "" echo "##########################################" echo "" -- cgit v1.2.3 From ddcf0a407876ef886ca8634daa223c6f27c236dc Mon Sep 17 00:00:00 2001 From: Viliam Mateicka Date: Tue, 16 Dec 2008 21:46:11 +0100 Subject: archiveapi: archive plugin for ZIP files --- configure.ac | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 15173f186..5c4ee04e8 100644 --- a/configure.ac +++ b/configure.ac @@ -182,6 +182,14 @@ AC_ARG_ENABLE(bz2, AM_CONDITIONAL(HAVE_BZ2, test x$enable_bz2 = xyes) +AC_ARG_ENABLE(zip, + AS_HELP_STRING([--enable-zip], + [enable zip archive support (default: disabled)]), + enable_zip=$enableval, + enable_zip=no) + +AM_CONDITIONAL(HAVE_ZIP, test x$enable_zip = xyes) + # archive plugin libraries AC_CHECK_LIB(bz2, BZ2_bzDecompressInit,[MPD_LIBS="-lbz2";],enable_bz2=no) @@ -189,6 +197,11 @@ if test x$enable_bz2 = xyes; then AC_DEFINE(HAVE_BZ2, 1, [Define to have bz2 archive support]) fi +AC_CHECK_LIB(zzip, zzip_dir_open,[MPD_LIBS="-lzzip";],enable_zip=no) +if test x$enable_zip = xyes; then + AC_DEFINE(HAVE_ZIP, 1, [Define to have zip archive support]) +fi + dnl dnl decoder plugins dnl @@ -1171,6 +1184,12 @@ else echo " BZ2 archives support ..........disabled" fi +if test x$enable_zip = xyes; then + echo " ZIP archives support ..........enabled" +else + echo " ZIP archives support ..........disabled" +fi + echo "" echo "##########################################" echo "" -- cgit v1.2.3 From 37796699cf751eb3ea8625d6c93e38abb46a6c87 Mon Sep 17 00:00:00 2001 From: Viliam Mateicka Date: Tue, 16 Dec 2008 21:48:26 +0100 Subject: archiveapi: archive plugin for ISO files --- configure.ac | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5c4ee04e8..9edf357fa 100644 --- a/configure.ac +++ b/configure.ac @@ -190,6 +190,14 @@ AC_ARG_ENABLE(zip, AM_CONDITIONAL(HAVE_ZIP, test x$enable_zip = xyes) +AC_ARG_ENABLE(iso9660, + AS_HELP_STRING([--enable-iso9660], + [enable iso9660 archive support (default: disabled)]), + enable_iso=$enableval, + enable_iso=no) + +AM_CONDITIONAL(HAVE_ISO, test x$enable_iso = xyes) + # archive plugin libraries AC_CHECK_LIB(bz2, BZ2_bzDecompressInit,[MPD_LIBS="-lbz2";],enable_bz2=no) @@ -202,6 +210,12 @@ if test x$enable_zip = xyes; then AC_DEFINE(HAVE_ZIP, 1, [Define to have zip archive support]) fi +AC_CHECK_LIB(iso9660, iso9660_ifs_readdir ,,enable_iso=no) +if test x$enable_iso = xyes; then + MPD_LIBS="$MPD_LIBS -liso9660" + AC_DEFINE(HAVE_ISO, 1, [Define to have iso archive support]) +fi + dnl dnl decoder plugins dnl @@ -1190,6 +1204,12 @@ else echo " ZIP archives support ..........disabled" fi +if test x$enable_iso = xyes; then + echo " ISO 9660 archives support .....enabled" +else + echo " ISO 9660 archives support .....disabled" +fi + echo "" echo "##########################################" echo "" -- cgit v1.2.3