diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2013-08-22 14:56:05 +0200 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2013-08-22 14:56:35 +0200 |
commit | e9581919ffec419ba3d7a22f4c10ab60ff518786 (patch) | |
tree | 16ed6b177a18cd7355e4564aab47e159de47f4d2 | |
parent | fd4fd13dc89bb7c17270d89ab83c5406ff162ca9 (diff) |
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
-rw-r--r-- | configure.ac | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 1bfbdac54..e22b4fb5a 100644 --- a/configure.ac +++ b/configure.ac @@ -1084,8 +1084,15 @@ AG_GST_CHECK_FEATURE(APEXSINK, [AirPort Express Wireless sink], apexsink, [ dnl *** BZ2 *** translit(dnm, m, l) AM_CONDITIONAL(USE_BZ2, true) AG_GST_CHECK_FEATURE(BZ2, [bz2 library], bz2, [ - AG_GST_CHECK_LIBHEADER(BZ2, bz2, BZ2_bzCompress, ,bzlib.h, BZ2_LIBS="-lbz2") - AC_SUBST(BZ2_LIBS) + 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 + BZ2_LIBS="-lbz2" + AC_SUBST(BZ2_LIBS):w + ]) #dnl *** cairo *** |