From e5830726f48fe786c807c1102f0f44eb38c6749e Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 15 Aug 2008 00:45:57 +0200 Subject: popt: add support for setting MODULESDIR via popt_common_dynconfig. Michael (This used to be commit 81030e49ce344260d279a3112b13a21ce3520748) --- source3/lib/popt_common.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/popt_common.c b/source3/lib/popt_common.c index b151f22742..8ceac26bf2 100644 --- a/source3/lib/popt_common.c +++ b/source3/lib/popt_common.c @@ -184,6 +184,7 @@ struct poptOption popt_common_debuglevel[] = { * --swatdir * --lmhostsfile * --libdir + * --modulesdir * --shlibext * --lockdir * --piddir @@ -197,6 +198,7 @@ enum dyn_item{ DYN_SWATDIR, DYN_LMHOSTSFILE, DYN_LIBDIR, + DYN_MODULESDIR, DYN_SHLIBEXT, DYN_LOCKDIR, DYN_PIDDIR, @@ -242,6 +244,12 @@ static void popt_dynconfig_callback(poptContext con, } break; + case DYN_MODULESDIR: + if (arg) { + set_dyn_MODULESDIR(arg); + } + break; + case DYN_SHLIBEXT: if (arg) { set_dyn_SHLIBEXT(arg); @@ -289,6 +297,8 @@ const struct poptOption popt_common_dynconfig[] = { "Path to lmhosts file", "LMHOSTSFILE" }, { "libdir", '\0' , POPT_ARG_STRING, NULL, DYN_LIBDIR, "Path to shared library directory", "LIBDIR" }, + { "modulesdir", '\0' , POPT_ARG_STRING, NULL, DYN_MODULESDIR, + "Path to shared modules directory", "MODULESDIR" }, { "shlibext", '\0' , POPT_ARG_STRING, NULL, DYN_SHLIBEXT, "Shared library extension", "SHLIBEXT" }, { "lockdir", '\0' , POPT_ARG_STRING, NULL, DYN_LOCKDIR, -- cgit