Merge commit 'refs/top-bases/linux-have-libefi' into linux-have-libefi

This commit is contained in:
Brian Behlendorf 2009-06-09 16:26:54 -07:00
commit 0c3b01ea1b
2 changed files with 12 additions and 0 deletions

11
config/user-zlib.m4 Normal file
View File

@ -0,0 +1,11 @@
dnl #
dnl # Check for zlib
dnl #
AC_DEFUN([ZFS_AC_CONFIG_USER_ZLIB], [
AC_CHECK_HEADER([zlib.h], [], [AC_MSG_ERROR([
*** zlib.h missing, the zlib-devel package is required])])
AC_CHECK_LIB([z], [compress2], [], [AC_MSG_ERROR([
*** compress2() missing, the zlib-devel package is required])])
AC_CHECK_LIB([z], [uncompress], [], [AC_MSG_ERROR([
*** uncompress() missing, the zlib-devel package is required])])
])

View File

@ -7,4 +7,5 @@ AC_DEFUN([ZFS_AC_CONFIG_USER], [
ZFS_AC_CONFIG_USER_LIBDISKMGT
ZFS_AC_CONFIG_USER_LIBSHARE
ZFS_AC_CONFIG_USER_IOCTL
ZFS_AC_CONFIG_USER_ZLIB
])