linux-fs-h-struct-inode-test-for-i-cdev-20010807
[openafs.git] / src / cf / linux-test4.m4
1 AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_CDEV, [
2 AC_MSG_CHECKING(for i_cdev in struct inode)
3 save_CPPFLAGS="$CPPFLAGS"
4 CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
5 AC_CACHE_VAL(ac_cv_linux_fs_struct_inode_has_i_cdev, 
6 [
7 AC_TRY_COMPILE(
8 [#include <linux/fs.h>],
9 [struct inode _inode;
10 printf("%d\n", _inode.i_cdev);], 
11 ac_cv_linux_fs_struct_inode_has_i_cdev=yes,
12 ac_cv_linux_fs_struct_inode_has_i_cdev=no)])
13 AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_cdev)
14 CPPFLAGS="$save_CPPFLAGS"])