]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Choose configuration directory
authorAndrian Nord <nightnord@gmail.com>
Tue, 17 Nov 2009 09:56:23 +0000 (10:56 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 17 Nov 2009 09:56:23 +0000 (10:56 +0100)
Maybe it will be more logical to keep configs into /etc/lxc/?

Or, maybe, just use --with-config-path=/some/path switch into configure,
which could be overridden as user wants to? Something like this one (in
assumption, that this is up to user to create corresponding directory):

Signed-off-by: Andrian Nord <NightNord@gmail.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
configure.ac

index 2713053c7cbaf4d69d914a13e80d808ca492be15..4be78a37ffaff7c84fac6b8f75291030085877d0 100644 (file)
@@ -39,9 +39,15 @@ AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
 AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
 AS_AC_EXPAND(DATADIR, $datadir)
 AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
-AS_AC_EXPAND(LXCPATH, "${localstatedir}/lib/lxc")
-AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
 
+AC_ARG_WITH([config-path],
+       [AC_HELP_STRING(
+               [--with-config-path=dir],
+               [lxc configuration repository]
+       )], [], [with_config_path="${localstatedir}/lib/lxc"])
+
+AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
+AS_AC_EXPAND(LXCPATH, "${with_config_path}")
 AH_TEMPLATE([LXCPATH], [lxc configuration repository])
 AH_TEMPLATE([LXCLIBEXECDIR], [lxc executable library path])
 AC_DEFINE_UNQUOTED(LXCPATH, "$LXCPATH")