From a0384aaead1427e9f7bd3643c4149371d687e53d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 31 Dec 2009 11:11:14 +0100 Subject: Makefile.am: added unit tests for the archive plugins --- configure.ac | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d2313a654..c45574b0b 100644 --- a/configure.ac +++ b/configure.ac @@ -353,8 +353,14 @@ fi AM_CONDITIONAL(HAVE_BZ2, test x$enable_bzip2 = xyes) if test x$enable_bzip2 = xyes; then AC_DEFINE(HAVE_BZ2, 1, [Define to have bz2 archive support]) + + AC_PATH_PROG(BZIP2, bzip2, no) +else + BZIP2="no" fi +AM_CONDITIONAL(ENABLE_BZIP2_TEST, test x$BZIP2 != xno) + dnl zzip AC_ARG_ENABLE(zzip, AS_HELP_STRING([--enable-zzip], @@ -367,8 +373,14 @@ MPD_AUTO_PKG(zzip, ZZIP, [zziplib >= 0.13], AM_CONDITIONAL(HAVE_ZZIP, test x$enable_zzip = xyes) if test x$enable_zzip = xyes; then AC_DEFINE(HAVE_ZZIP, 1, [Define to have zip archive support]) + + AC_PATH_PROG(ZIP, zip, no) +else + ZIP="no" fi +AM_CONDITIONAL(ENABLE_ZZIP_TEST, test x$ZIP != xno) + dnl iso9660 AC_ARG_ENABLE(iso9660, AS_HELP_STRING([--enable-iso9660], @@ -381,8 +393,14 @@ MPD_AUTO_PKG(iso9660, ISO9660, [libiso9660], AM_CONDITIONAL(HAVE_ISO9660, test x$enable_iso9660 = xyes) if test x$enable_iso9660 = xyes; then AC_DEFINE(HAVE_ISO9660, 1, [Define to have ISO9660 archive support]) + + AC_PATH_PROG(MKISOFS, mkisofs, no) +else + MKISOFS="no" fi +AM_CONDITIONAL(ENABLE_ISO9660_TEST, test x$MKISOFS != xno) + dnl archive API if test x$enable_bzip2 = xyes || -- cgit v1.2.3