-diff -urP orig/acconfig.h dnotify/acconfig.h
---- orig/acconfig.h Mon Oct 22 02:33:09 2001
-+++ dnotify/acconfig.h Thu Nov 29 18:18:10 2001
-@@ -17,6 +17,9 @@
- /* Define if the system has imon and IMONIOC_ ioctl flags. */
- #undef HAVE_IMON
-
-+/* Define if the system has the dnotify fcntl and it's gonna be used. */
-+#undef USE_DNOTIFY
-+
- /* Define if the system has the struct revokdi and the IMONIOC_REVOKDI
- ** ioctl flag. (IRIX 5.3 doesn't.)
- */
-diff -urP orig/configure.in dnotify/configure.in
---- orig/configure.in Mon Nov 5 00:31:30 2001
-+++ dnotify/configure.in Thu Nov 29 18:18:10 2001
-@@ -39,6 +39,9 @@
- dnl Put configuration #defines in config.h.
- AM_CONFIG_HEADER(config.h)
-
-+dnl Initialize libtool
-+AM_PROG_LIBTOOL
-+
- dnl
- dnl We want to include our header in $(top_srcdir)/include
- dnl
-@@ -79,14 +82,14 @@
- dnl I don't know why, but automake wants to use ./mkinstalldirs.
- dnl AC_PATH_PROG(MKINSTALLDIRS, mkinstalldirs)
- AC_PROG_MAKE_SET
-+
-+
- dnl AC_PROG_AWK
- dnl AC_PATH_PROG(LIBTOOL, libtool)
--AM_PROG_LIBTOOL
- dnl autoconf/automake expects GNU tar, so find it on IRIX.
- AC_PATH_PROG(TAR, tar, tar, /usr/freeware/bin:$PATH)
- AC_PATH_PROG(LDCONFIG, ldconfig)
-
--
- dnl
- dnl Checks for header files.
- dnl
-@@ -96,6 +99,24 @@
- dnl AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h syslog.h unistd.h)
-
- dnl
-+dnl Test for the linux dnotify fcntl
-+dnl
-+AC_MSG_CHECKING([for dnotify fcntl support])
-+fam_save_cppflags="$CPPFLAGS"
-+CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
-+AC_TRY_COMPILE([
-+#define _GNU_SOURCE
-+#include <fcntl.h>
-+#include <unistd.h>
-+],
-+[ int fd = 1;
-+ fcntl (fd, F_NOTIFY, (DN_MODIFY|DN_CREATE|DN_DELETE|DN_RENAME|DN_ATTRIB)|DN_MULTISHOT);
-+], have_dnotify=yes, have_dnotify=no)
-+use_dnotify=false
-+CPPFLAGS="$pango_save_cppflags"
-+AC_MSG_RESULT($have_dnotify)
-+
-+dnl
- dnl See if imon is available; if so, is it IRIX or Linux?
- dnl
- if test `uname` = 'IRIX' || test `uname` = 'IRIX64'; then
-@@ -118,11 +139,17 @@
- if test "$have_imon" != "yes"; then
- have_imon=no
- AC_DEFINE(HAVE_IMON, 0)
-+ if test "$have_dnotify" = "yes"; then
-+ AC_DEFINE(USE_DNOTIFY)
-+ use_dnotify=true
-+ fi
- IMON_FUNCS=IMonNone
- fi
-+AM_CONDITIONAL(USE_DNOTIFY, $use_dnotify)
- AC_SUBST(IMON_FUNCS)
- echo "Using imon support module $IMON_FUNCS"
-
-+
- AC_CHECK_HEADER(sys/statvfs.h, [AC_DEFINE(HAVE_STATVFS, 1) have_statvfs="yes"], [AC_DEFINE(HAVE_STATVFS, 0) have_statvfs="no"])
- AC_CHECK_HEADER(sys/syssgi.h, AC_DEFINE(HAVE_SYSSGI, 1), AC_DEFINE(HAVE_SYSSGI, 0))
- AC_CHECK_HEADER(sys/fs/nfs_clnt.h, AC_DEFINE(HAVE_SYS_FS_NFS_CLNT_H, 1), AC_DEFINE(HAVE_SYS_FS_NFS_CLNT_H, 0))
-@@ -572,7 +599,7 @@
- dnl
- dnl fam is a good deal less interesting without imon.
- dnl
--if test "$have_imon" != 'yes'; then
-+if test "$have_imon" != 'yes' -a "$have_dnotify" != 'yes'; then
- cat << EOF
-
- ******************************************************************
-diff -urP orig/fam/DNotify.c++ dnotify/fam/DNotify.c++
---- orig/fam/DNotify.c++ Wed Dec 31 19:00:00 1969
-+++ dnotify/fam/DNotify.c++ Thu Nov 29 18:18:10 2001
-@@ -0,0 +1,557 @@