]> granicus.if.org Git - sudo/commitdiff
added SUDO_TIMEDIR
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 11 Mar 1996 01:58:51 +0000 (01:58 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 11 Mar 1996 01:58:51 +0000 (01:58 +0000)
aclocal.m4
configure.in

index 3a8f4061cdcf0a256bbf04b15248726ea2e01285..042d40cfc27581c71a0b5e3fe374836f72b95fbc 100644 (file)
@@ -135,6 +135,21 @@ else
 fi
 ])dnl
 
+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
+    AC_MSG_RESULT(/var/run/.odus)
+    AC_DEFINE(_SUDO_PATH_TIMEDIR, "/var/run/.odus")
+elif test -d "/tmp"; then
+    AC_MSG_RESULT(/tmp/.odus)
+    AC_DEFINE(_SUDO_PATH_TIMEDIR, "/tmp/.odus")
+else
+    AC_MSG_RESULT(unknown, you will have to set _PATH_SUDO_TIMEDIR by hand)
+fi
+])dnl
+
 dnl
 dnl check for shadow passwords
 dnl
index 312b72d93f7f871f781b6a69e60a52855d54a9d8..dcb0be309f3e2e16a03d539bbfab6b9b09205ed6 100644 (file)
@@ -515,9 +515,10 @@ if test -n "$SECURID" ; then
 fi
 
 dnl
-dnl Check for log file location
+dnl Check for log file and timestamp locations
 dnl
 SUDO_LOGFILE
+SUDO_TIMEDIR
 
 dnl
 dnl Set exec_prefix