configure: Don't check for inotify on illumos
[samba.git] / source4 / ntvfs / sysdep / wscript_configure
1 #!/usr/bin/env python
2
3 import sys
4
5 # Check for inotify support (Skip if we are SunOS)
6 #NOTE: illumos provides sys/inotify.h but is not an exact match for linux
7 host_os = sys.platform
8 if host_os.rfind('sunos') == -1:
9     conf.CHECK_HEADERS('sys/inotify.h', add_headers=False)
10     if (conf.CONFIG_SET('HAVE_SYS_INOTIFY_H')):
11         conf.DEFINE('HAVE_LINUX_INOTIFY', 1)
12
13 conf.CHECK_DECLS('F_SETLEASE', headers='linux/fcntl.h', reverse=True)
14 conf.CHECK_DECLS('SA_SIGINFO', headers='signal.h', reverse=True)