Add BuildRequires gcc, make, elfutils-libelf-devel
[zfs.git] / config / kernel-lookup-nameidata.m4
blob5453be5e8e38c7adf169bf1a5baee586da21c4f4
1 dnl #
2 dnl # 3.6 API change
3 dnl #
4 AC_DEFUN([ZFS_AC_KERNEL_LOOKUP_NAMEIDATA], [
5         AC_MSG_CHECKING([whether iops->lookup() passes nameidata])
6         ZFS_LINUX_TRY_COMPILE([
7                 #include <linux/fs.h>
8                 #include <linux/sched.h>
10                 struct dentry *inode_lookup(struct inode *inode,
11                     struct dentry *dentry, struct nameidata *nidata)
12                     { return NULL; }
14                 static const struct inode_operations iops
15                     __attribute__ ((unused)) = {
16                         .lookup = inode_lookup,
17                 };
18         ],[
19         ],[
20                 AC_MSG_RESULT(yes)
21                 AC_DEFINE(HAVE_LOOKUP_NAMEIDATA, 1,
22                           [iops->lookup() passes nameidata])
23         ],[
24                 AC_MSG_RESULT(no)
25         ])