CI: Move perl script to dist_noinst_DATA
[zfs.git] / config / kernel-automount.m4
blobf7bb63c68154ae67b8159f37eb791fdc8a3599f6
1 dnl #
2 dnl # 2.6.37 API change
3 dnl # The dops->d_automount() dentry operation was added as a clean
4 dnl # solution to handling automounts.  Prior to this cifs/nfs clients
5 dnl # which required automount support would abuse the follow_link()
6 dnl # operation on directories for this purpose.
7 dnl #
8 AC_DEFUN([ZFS_AC_KERNEL_SRC_AUTOMOUNT], [
9         ZFS_LINUX_TEST_SRC([dentry_operations_d_automount], [
10                 #include <linux/dcache.h>
11                 struct vfsmount *d_automount(struct path *p) { return NULL; }
12                 struct dentry_operations dops __attribute__ ((unused)) = {
13                         .d_automount = d_automount,
14                 };
15         ])
18 AC_DEFUN([ZFS_AC_KERNEL_AUTOMOUNT], [
19         AC_MSG_CHECKING([whether dops->d_automount() exists])
20         ZFS_LINUX_TEST_RESULT([dentry_operations_d_automount], [
21                 AC_MSG_RESULT(yes)
22         ],[
23                 ZFS_LINUX_TEST_ERROR([dops->d_automount()])
24         ])