(initrx): try random port if the default is busy
[arla.git] / cf / linux-getattr-three-args.m4
blobe6a74c0114dbdd0e9fae2a092500915c61d0e6cc
1 dnl
2 dnl $Id$
3 dnl
5 AC_DEFUN([AC_LINUX_GETATTR_THREE_ARGS], [
6 AC_CACHE_CHECK(if getattr in struct inode_operations takes three args,
7 ac_cv_member_inode_operations_getattr_three_args,
8 AC_TRY_COMPILE_KERNEL([#include <asm/current.h>
9 #include <linux/fs.h>],
11 struct inode_operations io;
12 io.getattr(0,0);
14 ac_cv_member_inode_operations_getattr_three_args=no,
15 ac_cv_member_inode_operations_getattr_three_args=yes))
17 if test "$ac_cv_member_inode_operations_getattr_three_args" = "yes"; then
18   AC_DEFINE(HAVE_GETATTR_THREE_ARGS, 1,
19         [define if getattr in struct inode_operations takes three args])