summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCristian Rodríguez <crrodriguez@opensuse.org>2013-03-22 21:04:53 -0300
committerLennart Poettering <lennart@poettering.net>2013-03-23 01:44:56 +0100
commit4ad61fd1806dde23d2c99043b4bed91a196d2c82 (patch)
treeef5ceb590255ae45adb69ce737d25989d8f8dedd /configure.ac
parent3ac251b81a41295a90c89c164f0d72ce6de651aa (diff)
add --with-telinit=PATH configure option
Distributions that never shipped upstart do not have "telinit" in /lib/upstart/.. Defaults to /lib/upstart/telinit so there is no change for systems existing installs.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 79a4ec4521..f1bf7582fd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -683,6 +683,16 @@ AC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont])
AC_SUBST(KBD_LOADKEYS)
AC_SUBST(KBD_SETFONT)
+AC_ARG_WITH(telinit,
+ AS_HELP_STRING([--with-telinit=PATH],
+ [Path to telinit]),
+ [TELINIT="$withval"],
+ [TELINIT="/lib/upstart/telinit"])
+
+AC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit])
+
+AC_SUBST(TELINIT)
+
# ------------------------------------------------------------------------------
have_myhostname=no
AC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support]))