Add -p switch to "zpool get"
[zfs.git] / config / kernel-show-options.m4
1 dnl #
2 dnl # Linux 3.3 API
3 dnl #
4 AC_DEFUN([ZFS_AC_KERNEL_SHOW_OPTIONS], [
5         AC_MSG_CHECKING([whether sops->show_options() wants dentry])
6
7         ZFS_LINUX_TRY_COMPILE([
8                 #include <linux/fs.h>
9
10                 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
11                 static struct super_operations sops __attribute__ ((unused)) = {
12                         .show_options = show_options,
13                 };
14         ],[
15         ],[
16                 AC_MSG_RESULT([yes])
17                 AC_DEFINE(HAVE_SHOW_OPTIONS_WITH_DENTRY, 1,
18                         [sops->show_options() with dentry])
19         ],[
20                 AC_MSG_RESULT([no])
21         ])
22 ])