summaryrefslogtreecommitdiffstats
path: root/config/user-libblkid.m4
blob: 5bc7f466ae7a6387e25ddd7bf382be7d54968765 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
dnl #
dnl # Check for libblkid.  Basic support for detecting ZFS pools
dnl # has existing in blkid since 2008.
dnl #
AC_DEFUN([ZFS_AC_CONFIG_USER_LIBBLKID], [
	LIBBLKID=

	AC_CHECK_HEADER([blkid/blkid.h], [], [AC_MSG_FAILURE([
        *** blkid.h missing, libblkid-devel package required])])

	AC_SUBST([LIBBLKID], ["-lblkid"])
	AC_DEFINE([HAVE_LIBBLKID], 1, [Define if you have libblkid])
])