summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@redhat.com>2017-08-10 23:41:28 +0200
committerPrasanna Kumar Kalever <pkalever@redhat.com>2017-09-20 15:51:54 +0000
commit95db5c36b38fa883141cb3eeb237957d18091168 (patch)
treeaeebaa3e1ce19ae6e65c32785df33a9935769743
parente5c78e1a42fc7988cdbadb52208655d46f41d314 (diff)
configure: make sysconfig directory configurable
This is currently hard-coded to /etc/sysconfig, which makes it impossible to entirely install under a prefix. This patch introduces a new switch --with-sysconfigdir defaulting to /etc/sysconfig, which lets one reconfiure the sysconfig directory. Change-Id: I316f8355c3ddcfece3322f30a45108bdc636637d Signed-off-by: Michael Adam <obnox@redhat.com>
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f19d2aa..750055b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,12 @@ AC_ARG_WITH(systemddir,
AC_SUBST(systemddir)
AM_CONDITIONAL([USE_SYSTEMD], test [ -d '/usr/lib/systemd/system' ])
-AC_SUBST(sysconfigdir, '/etc/sysconfig')
+AC_ARG_WITH(sysconfigdir,
+ AC_HELP_STRING([--with-sysconfigdir=DIR],
+ [system service configuration in DIR @<:@/etc/sysconfig@:>@]),
+ [sysconfigdir=$withval],
+ [sysconfigdir='/etc/sysconfig'])
+AC_SUBST(sysconfigdir)
AM_INIT_AUTOMAKE([-Wall -Werror foreign nostdinc silent-rules])
AC_CONFIG_HEADERS([config.h])