From e45fcd9e478300e6be8a49402fcea81fce623804 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 12 Mar 2010 16:52:26 +0100 Subject: Flush NSCD cache after modifying local database Fixes: #221 --- src/conf_macros.m4 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/conf_macros.m4') diff --git a/src/conf_macros.m4 b/src/conf_macros.m4 index 6323db27d..315a06433 100644 --- a/src/conf_macros.m4 +++ b/src/conf_macros.m4 @@ -217,3 +217,17 @@ AC_DEFUN([WITH_TEST_DIR], AC_DEFINE_UNQUOTED(TEST_DIR, "$with_test_dir", [Directory used for 'make check' temporary files]) ]) +AC_DEFUN([WITH_NSCD], + [ AC_ARG_WITH([nscd], + [AC_HELP_STRING([--with-nscd], + [Whether to attempt to flush nscd cache after local domain operations [yes]] + ) + ], + [], + with_nscd=yes + ) + if test x"$with_nscd" == xyes; then + AC_DEFINE_UNQUOTED(HAVE_NSCD, 1, [flush nscd cache after local domain operations]) + fi + ]) + -- cgit