From 045811f341d626ee9d5f54d23946f1a65dffc537 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 10 Dec 2003 08:07:54 +0000 Subject: [PATCH] add zlib test --- stepmania/autoconf/m4/zlib.m4 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 stepmania/autoconf/m4/zlib.m4 diff --git a/stepmania/autoconf/m4/zlib.m4 b/stepmania/autoconf/m4/zlib.m4 new file mode 100644 index 0000000000..0be0f65916 --- /dev/null +++ b/stepmania/autoconf/m4/zlib.m4 @@ -0,0 +1,18 @@ +AC_DEFUN(SM_ZLIB, +[ + AC_CHECK_LIB(z, inflate, have_libz=yes, have_libz=no) + AC_CHECK_HEADER(zlib.h, have_libz_header=yes, have_libz_header=no) + + if test "$have_libz_header" = "no"; then + have_libz=no + fi + + if test "$have_libz" = "no"; then + echo "*** zlib is required to build StepMania; please make sure" + echo "*** that zlib is installed to continue the installation process." + exit 0; + fi + + LIBS="$LIBS -lz" +]) +