From: Todd C. Miller Date: Sat, 28 Mar 1998 00:46:32 +0000 (+0000) Subject: support --with-logfile and --with-timedir X-Git-Tag: SUDO_1_5_6~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ceb7a9bdf96c3948b10493aa010d5ab5815b7e87;p=sudo support --with-logfile and --with-timedir --- diff --git a/aclocal.m4 b/aclocal.m4 index 6f2fb703f..0be86a1d5 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -121,7 +121,10 @@ dnl dnl Where the log file goes, use /var/log if it exists, else /{var,usr}/adm dnl AC_DEFUN(SUDO_LOGFILE, [AC_MSG_CHECKING(for log file location) -if test -d "/var/log"; then +if test -n "$with_logfile"; then + AC_MSG_RESULT($with_logfile) + AC_DEFINE(_CONFIG_PATH_LOGFILE, "$with_logfile") +elif test -d "/var/log"; then AC_MSG_RESULT(/var/log/sudo.log) AC_DEFINE(_CONFIG_PATH_LOGFILE, "/var/log/sudo.log") elif test -d "/var/adm"; then @@ -139,7 +142,10 @@ dnl dnl Where the log file goes, use /var/log if it exists, else /{var,usr}/adm dnl AC_DEFUN(SUDO_TIMEDIR, [AC_MSG_CHECKING(for timestamp file location) -if test -d "/var/run"; then +if test -n "$with_timedir"; then + AC_MSG_RESULT($with_timedir) + AC_DEFINE(_CONFIG_PATH_TIMEDIR, "$with_timedir") +elif test -d "/var/run"; then AC_MSG_RESULT(/var/run/sudo) AC_DEFINE(_CONFIG_PATH_TIMEDIR, "/var/run/sudo") elif test -d "/tmp"; then