From 9c725b50345dbcba0fa25e992f705a9a9d9f5975 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 10 Sep 1998 22:37:17 +0000 Subject: [PATCH] add --enable-log-host and --enable-log-wrap --- configure.in | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/configure.in b/configure.in index f0dd327b2..445a74aa7 100644 --- a/configure.in +++ b/configure.in @@ -175,6 +175,37 @@ AC_ARG_WITH(logfile, [ --with-logfile path to the sudo log file], ;; esac]) +AC_MSG_CHECKING(whether to log the hostname in the log file) +AC_ARG_ENABLE(log-host, +[ --enable-log-host Log the hostname in the log file + --disable-log-host Do not log hostname in the log file (default)], +[ case "$enableval" in + yes) + AC_MSG_RESULT(yes) + AC_DEFINE(HOST_IN_LOG) + ;; + *) AC_MSG_RESULT(no) + ;; + esac ], + AC_MSG_RESULT(no) +) + +AC_MSG_CHECKING(whether to wrap long lines in the log file) +AC_ARG_ENABLE(log-wrap, +[ --enable-log-wrap Wrap long lines in the log file (default) + --disable-log-wrap Do not wrap long lines in the log file], +[ case "$enableval" in + no) + AC_MSG_RESULT(no) + ;; + *) AC_MSG_RESULT(yes) + AC_DEFINE(WRAP_LOG) + ;; + esac ], + AC_MSG_RESULT(yes) + AC_DEFINE(WRAP_LOG) +) + AC_ARG_WITH(timedir, [ --with-timedir path to the sudo timestamp dir], [case $with_timedir in yes) echo "Must give --with-timedir an argument." -- 2.49.0