diff --git a/configure.ac b/configure.ac index e0a2dd3..c561dc6 100644 --- a/configure.ac +++ b/configure.ac @@ -28,4 +28,14 @@ AC_PROG_CC AC_PROG_INSTALL AC_HEADER_STDC +AC_ARG_WITH(klogd-delay, + AS_HELP_STRING([--with-klogd-delay=SEC], [when started at the same time as syslogd, default: 0]), + [klogd_delay=$withval], [klogd_delay='no']) + +AS_IF([test "x$klogd_delay" != "xno"],[ + AS_IF([test "x$klogd_delay" = "xyes"],[ + AC_MSG_ERROR([Must supply argument])]) + ] + AC_DEFINE_UNQUOTED(KLOGD_DELAY, $klogd_delay, [Delay klogd startup N seconds, default: 0])) + AC_OUTPUT