mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
configure: Fix bz2 configure check for Windows
Due to function decorations on Windows AC_CHECK_LIB can't be used to check for bz2. https://bugzilla.gnome.org/show_bug.cgi?id=465924
This commit is contained in:
parent
966b53109b
commit
0e1da65f6c
1 changed files with 8 additions and 3 deletions
11
configure.ac
11
configure.ac
|
@ -222,9 +222,14 @@ esac
|
|||
AC_SUBST(DARWIN_LDFLAGS)
|
||||
|
||||
dnl *** Check for bz2
|
||||
AG_GST_CHECK_LIBHEADER(BZ2, bz2, BZ2_bzlibVersion, , bzlib.h, have_bz2=yes, have_bz2=no)
|
||||
AM_CONDITIONAL(HAVE_BZ2, test "x$have_bz2" = "xyes")
|
||||
if test "x$have_bz2" = "xno"; then
|
||||
save_LIBS=$LIBS
|
||||
LIBS="$LIBS -lbz2"
|
||||
AC_MSG_CHECKING([for BZ2_bzlibVersion in -lbz2])
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <bzlib.h>]], [[const char *version = BZ2_bzlibVersion ();]])],[HAVE_BZ2=yes],[HAVE_BZ2=no])
|
||||
AC_MSG_RESULT($HAVE_BZ2)
|
||||
LIBS=$save_LIBS
|
||||
AM_CONDITIONAL(HAVE_BZ2, test "x$HAVE_BZ2" = "xyes")
|
||||
if test "x$HAVE_BZ2" = "xno"; then
|
||||
AC_WARN([libbz2 not found, matroska demuxer will not be able to read bz2 tracks])
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue