Skip libbz2 check on MinGW for now

This commit is contained in:
Ben "root" Anderson
2013-10-24 11:36:02 -05:00
parent a5332c5b6f
commit 0895aef000
+6 -1
View File
@@ -1,7 +1,12 @@
AC_DEFUN([SM_BZIP],
[
AC_REQUIRE([SM_STATIC])
AC_CHECK_LIB(bz2, BZ2_bzCompressInit, have_bzip=yes, have_bzip=no)
dnl # XXX: AC_CHECK_LIB doesn't work correctly on MinGW for BZip.
dnl # Hardcoding it because I'm so fed up with this shit.
if test "$host_os" != "mingw32"; then
AC_CHECK_LIB(bz2, BZ2_bzCompressInit, have_bzip=yes, have_bzip=no)
fi
AC_CHECK_HEADER(bzlib.h, have_bzip_header=yes, have_bzip_header=no)
AC_ARG_WITH(static-bzip, AS_HELP_STRING([--with-static-bzip],[Statically link bzip]), with_static_bzip=$withval, with_static_bzip=no)