diff options
-rw-r--r-- | source3/lib/popt_common.c | 10 |
1 files changed, 10 insertions, 0 deletions
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, |