configure.ac: add variable BZ2_LIBS
Don't use MPD_LIBS.
This commit is contained in:
@@ -410,6 +410,7 @@ ARCHIVE_CFLAGS = \
|
|||||||
$(ZZIP_CFLAGS)
|
$(ZZIP_CFLAGS)
|
||||||
|
|
||||||
ARCHIVE_LIBS = \
|
ARCHIVE_LIBS = \
|
||||||
|
$(BZ2_LIBS) \
|
||||||
$(ISO9660_LIBS) \
|
$(ISO9660_LIBS) \
|
||||||
$(ZZIP_LIBS)
|
$(ZZIP_LIBS)
|
||||||
|
|
||||||
|
@@ -722,9 +722,10 @@ AM_CONDITIONAL(ENABLE_ISO9660_TEST, test x$MKISOFS != xno)
|
|||||||
dnl ---------------------------------- libbz2 ---------------------------------
|
dnl ---------------------------------- libbz2 ---------------------------------
|
||||||
if test x$enable_bzip2 = xyes; then
|
if test x$enable_bzip2 = xyes; then
|
||||||
AC_CHECK_LIB(bz2, BZ2_bzDecompressInit,
|
AC_CHECK_LIB(bz2, BZ2_bzDecompressInit,
|
||||||
[MPD_LIBS="$MPD_LIBS -lbz2"],
|
[BZ2_LIBS="-lbz2"],
|
||||||
[AC_MSG_ERROR([libbz2 not found])])
|
[AC_MSG_ERROR([libbz2 not found])])
|
||||||
fi
|
fi
|
||||||
|
AC_SUBST(BZ2_LIBS)
|
||||||
|
|
||||||
AM_CONDITIONAL(HAVE_BZ2, test x$enable_bzip2 = xyes)
|
AM_CONDITIONAL(HAVE_BZ2, test x$enable_bzip2 = xyes)
|
||||||
if test x$enable_bzip2 = xyes; then
|
if test x$enable_bzip2 = xyes; then
|
||||||
|
Reference in New Issue
Block a user