add zlib test

This commit is contained in:
Glenn Maynard
2003-12-10 08:07:54 +00:00
parent a35829aea0
commit 045811f341
+18
View File
@@ -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"
])