/* Define to 1 if your struct stat has an st_mtimespec member */
#undef HAVE_ST_MTIMESPEC
+/* Define to 1 to build support for tracing subprocesses using systrace(4) */
+#undef HAVE_SYSTRACE
+
+/* Define to 1 if you have the <dev/systrace.h> header file. */
+#undef HAVE_DEV_SYSTRACE_H
+
+/* Define to 1 if you have the <sys/systrace.h> header file. */
+#undef HAVE_SYS_SYSTRACE_H
+
/* Define to 1 if you have the `sysconf' function. */
#undef HAVE_SYSCONF
;;
esac])
+AC_ARG_WITH(systrace, [ --with-systrace[[=DIR]] enable systrace(4) support],
+[case $with_systrace in
+ no) with_systrace=""
+ ;;
+ *) ;;
+esac])
+
AC_MSG_CHECKING(whether to lecture users the first time they run sudo)
AC_ARG_WITH(lecture, [ --without-lecture don't print lecture for first-time sudoer],
[case $with_lecture in
AC_MSG_RESULT($sudo_cv___progname)
])
dnl
+dnl systrace(4) support
+dnl
+if test -n "$with_systrace"; then
+ AC_DEFINE(HAVE_SYSTRACE)
+ if test "$with_systrace" = "yes"; then
+ AC_CHECK_HEADERS(dev/systrace.h sys/systrace.h, [break])
+ else
+ CPPFLAGS="$CPPFLAGS -I${with_systrace}"
+ fi
+ SUDO_OBJS="${SUDO_OBJS} systrace.o"
+fi
+dnl
dnl Kerberos IV
dnl
if test -n "$with_kerb4"; then
AH_TEMPLATE(HAVE_SKEYACCESS, [Define to 1 if your S/Key library has skeyaccess().])
AH_TEMPLATE(HAVE_ST_MTIM, [Define to 1 if your struct stat has an st_mtim member])
AH_TEMPLATE(HAVE_ST_MTIMESPEC, [Define to 1 if your struct stat has an st_mtimespec member])
+AH_TEMPLATE(HAVE_SYSTRACE, [Define to 1 to build support for tracing subprocesses using systrace(4)])
AH_TEMPLATE(HAVE_TERMIOS_H, [Define to 1 if you have the <termios.h> header file and the `tcgetattr' function.])
AH_TEMPLATE(HAVE_TIMESPEC, [Define to 1 if you have struct timespec in sys/time.h])
AH_TEMPLATE(HAVE___PROGNAME, [Define to 1 if your crt0.o defines the __progname symbol for you.])