From 8f261af5c1cfd6f922df009e17756fa3bef71458 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 25 Sep 2009 18:32:00 +0200 Subject: automatically update the database with Linux inotify This patch implements a light-weight inotify library, and watches all directories below the music directory. It updates all directories where files changed after a delay of 5 seconds. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d0d215762..6522060e6 100644 --- a/configure.ac +++ b/configure.ac @@ -118,6 +118,9 @@ AC_CHECK_LIB(m,exp,MPD_LIBS="$MPD_LIBS -lm",) AC_CHECK_HEADERS(locale.h) AC_CHECK_HEADERS(valgrind/memcheck.h) +AC_CHECK_FUNCS(inotify_init) +AM_CONDITIONAL(HAVE_INOTIFY, test x$ac_cv_func_inotify_init = xyes) + dnl dnl mandatory libraries -- cgit v1.2.3