summaryrefslogtreecommitdiff
path: root/source4/ntvfs/sysdep/config.m4
blob: 6de75a4294140487b6150bca029a1ec424092ea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
AC_CHECK_HEADERS(linux/inotify.h asm/unistd.h)
AC_CHECK_FUNC(inotify_init)
AC_HAVE_DECL(__NR_inotify_init, [#include <asm/unistd.h>])

SMB_ENABLE(sys_notify_inotify, NO)

if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_linux_inotify_h" = x"yes"; then
    SMB_ENABLE(sys_notify_inotify, YES)
fi

if test x"$ac_cv_header_linux_inotify_h" = x"yes" -a x"$ac_cv_have___NR_inotify_init_decl" = x"yes"; then
    SMB_ENABLE(sys_notify_inotify, YES)
fi

AC_HAVE_DECL(F_SETLEASE, [#include <fcntl.h>])
AC_HAVE_DECL(SA_SIGINFO, [#include <signal.h>])

SMB_ENABLE(sys_lease_linux, NO)

if test x"$ac_cv_have_F_SETLEASE_decl" = x"yes" \
	-a x"$ac_cv_have_SA_SIGINFO_decl" = x"yes"; then
    SMB_ENABLE(sys_lease_linux, YES)
fi