summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2014-10-01 18:41:23 +0200
committerIan Campbell <ian.campbell@citrix.com>2014-10-06 17:00:22 +0100
commit9ead9afcb9350b835ae1823cadb8b082d994300e (patch)
treebaa7458e8f46f131bc156e9d6296702ce5644060 /m4
parentafc973e480a426dc9dc9ef53974211b684dfe119 (diff)
Add configure --with-sysconfig-leaf-dir=SUBDIR to set CONFIG_LEAF_DIR
Set CONFIG_LEAF_DIR with configure to give control if needed. The check for the correct value if the option is not specified is tricky. Since other packages (such as grub2) started to populate also /etc/default/ a given system may have both directories. Use "default" only if /etc/sysconfig does not exist. "sysconfig" remains the default. Move the variable from StdGNU.mk to Linux.mk because thats the only place where it is used. Signed-off-by: Olaf Hering <olaf@aepfle.de> Acked-by: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> [ ijc -- ran autogen.sh as requested ]
Diffstat (limited to 'm4')
-rw-r--r--m4/paths.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/m4/paths.m4 b/m4/paths.m4
index 53fb7b7600..dcb8f28c8e 100644
--- a/m4/paths.m4
+++ b/m4/paths.m4
@@ -51,6 +51,17 @@ AC_ARG_WITH([initddir],
;;
esac])
+AC_ARG_WITH([sysconfig-leaf-dir],
+ AS_HELP_STRING([--with-sysconfig-leaf-dir=SUBDIR],
+ [Name of subdirectory in /etc to store runtime options for runlevel
+ scripts and daemons such as xenstoerd.
+ This should be either "sysconfig" or "default". [sysconfig]]),
+ [config_leaf_dir=$withval],
+ [config_leaf_dir=sysconfig
+ if test ! -d /etc/sysconfig ; then config_leaf_dir=default ; fi])
+CONFIG_LEAF_DIR=$config_leaf_dir
+AC_SUBST(CONFIG_LEAF_DIR)
+
if test "$libexecdir" = '${exec_prefix}/libexec' ; then
case "$host_os" in
*netbsd*) ;;