mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
popt: add support for setting MODULESDIR via popt_common_dynconfig.
Michael
This commit is contained in:
parent
bb19634138
commit
81030e49ce
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user