]> granicus.if.org Git - sudo/commitdiff
support --with-logfile and --with-timedir
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 28 Mar 1998 00:46:32 +0000 (00:46 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 28 Mar 1998 00:46:32 +0000 (00:46 +0000)
aclocal.m4

index 6f2fb703f3784fe6f3caa3c084a4157bddc3367c..0be86a1d5de72663524a4d77bf6775f487ca4711 100644 (file)
@@ -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