From a9151388528c84d7993a366ae03b57f5a413ca78 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 19 Feb 2006 19:36:31 +0000 Subject: 22284: add --disable-dynamic-nss configure switch to disable use of getpw*(), getgr*(), initgroups() functions. --- configure.ac | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 344e76f1a..be17361a3 100644 --- a/configure.ac +++ b/configure.ac @@ -2099,6 +2099,23 @@ if test $zsh_cv_c_zle_unicode_support = yes; then AC_DEFINE(MULTIBYTE_SUPPORT) fi +dnl +dnl static user lookup +dnl +AC_ARG_ENABLE(dynamic-nss, + AC_HELP_STRING([--disable-dynamic-nss], [do not call + functions that will require dynamic NSS + modules]), +[zsh_cv_c_dynamic_nss=$enableval], +[]) + +AH_TEMPLATE([DISABLE_DYNAMIC_NSS], +[Define to 1 if you want to avoid calling functions that will require + dynamic NSS modules.]) +if test $zsh_cv_c_dynamic_nss = no; then + AC_DEFINE(DISABLE_DYNAMIC_NSS) +fi + dnl --------------- dnl dynamic loading dnl --------------- -- cgit 1.4.1