]> granicus.if.org Git - zfs/blob - config/user-zlib.m4
Use provided uid/gid for setattr
[zfs] / config / user-zlib.m4
1 dnl #
2 dnl # Check for zlib
3 dnl #
4 AC_DEFUN([ZFS_AC_CONFIG_USER_ZLIB], [
5         ZLIB=
6
7         AC_CHECK_HEADER([zlib.h], [], [AC_MSG_FAILURE([
8         *** zlib.h missing, zlib-devel package required])])
9
10         AC_CHECK_LIB([z], [compress2], [], [AC_MSG_FAILURE([
11         *** compress2() missing, zlib-devel package required])])
12
13         AC_CHECK_LIB([z], [uncompress], [], [AC_MSG_FAILURE([
14         *** uncompress() missing, zlib-devel package required])])
15
16         AC_CHECK_LIB([z], [crc32], [], [AC_MSG_FAILURE([
17         *** crc32() missing, zlib-devel package required])])
18
19         AC_SUBST([ZLIB], ["-lz"])
20         AC_DEFINE([HAVE_ZLIB], 1, [Define if you have zlib])
21 ])