summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-09-16 21:52:46 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-09-19 12:22:14 +0200
commitf38163772cb8ca25c440393132e8678e65437320 (patch)
treee0ad42ce3b374dda60ce92eab7f2f5fbca8722b4 /configure.ac
parent5cd5f48f765f00b81786c6f569314474a91a06b8 (diff)
Add simple cron implementation
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
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 e0374c5..84ab673 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,9 +55,19 @@ AC_ARG_WITH([klogd],
esac],
[AM_CONDITIONAL([KLOGD], [true])])
+AC_ARG_WITH([gcrond],
+ [AS_HELP_STRING([--without-gcrond], [Build without gcron daemon])],
+ [case "${withval}" in
+ yes) AM_CONDITIONAL([GCROND], [true]) ;;
+ no) AM_CONDITIONAL([GCROND], [false]) ;;
+ *) AC_MSG_ERROR([bad value ${withval} for --without-gcron]) ;;
+ esac],
+ [AM_CONDITIONAL([GCROND], [true])])
+
AC_CONFIG_HEADERS([lib/include/config.h])
AC_DEFINE_DIR(SVCDIR, sysconfdir/init.d, [Startup service directory])
+AC_DEFINE_DIR(GCRONDIR, sysconfdir/gcron.d, [Cron service directory])
AC_DEFINE_DIR(TEMPLATEDIR, datadir/init, [Service template directory])
AC_DEFINE_DIR(SCRIPTDIR, libexecdir/init, [Helper script directory])
AC_DEFINE_DIR(SOCKDIR, localstatedir/run, [Directory for initd socket])