]> granicus.if.org Git - sudo/commitdiff
add --enable-log-host and --enable-log-wrap
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 10 Sep 1998 22:37:17 +0000 (22:37 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 10 Sep 1998 22:37:17 +0000 (22:37 +0000)
configure.in

index f0dd327b22cdd4c96639ff32c00b2ca9aea87c8d..445a74aa72cc1f0f1fd22b3898d54c48eae188e8 100644 (file)
@@ -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."