diff -r af8717c6d001 autoconf/m4/bzip.m4 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autoconf/m4/bzip.m4 Sun Apr 17 03:03:44 2011 +0000 @@ -0,0 +1,27 @@ +AC_DEFUN([SM_BZIP], +[ + AC_REQUIRE([SM_STATIC]) + AC_CHECK_LIB(bz2, BZ2_bzCompressInit, have_bzip=yes, have_bzip=no) + 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) + + if test "$with_static_bzip" = "yes"; then + LIB_PRE=$START_STATIC + LIB_POST=$END_STATIC + fi + + if test "$have_bzip_header" = "no"; then + have_bzip=no + fi + + if test "$have_bzip" = "no"; then + echo "*** bzip is required to build StepMania; please make sure" + echo "*** that bzip is installed to continue the installation process." + exit 0; + fi + + LIBS="$LIBS $LIB_PRE -lbz2 $LIB_POST" + + LIB_PRE= + LIB_POST= +]) diff -r af8717c6d001 configure.ac --- a/configure.ac Sat Apr 16 22:03:28 2011 -0500 +++ b/configure.ac Sun Apr 17 03:03:44 2011 +0000 @@ -197,6 +197,7 @@ AM_CONDITIONAL(WITHOUT_NETWORKING, test "$with_network" = "no") SM_ZLIB +SM_BZIP SM_AUDIO SM_VIDEO SM_TLS