* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: config.h.in,v 1.38 2001-12-23 22:05:03 thib Exp $ */
+ /* $Id: config.h.in,v 1.39 2002-02-25 18:44:26 thib Exp $ */
/* *********************************************************** */
/* where is located pid file ? */
#undef PIDFILE
+/* 1 if we want to compile and install fcrondyn */
+#undef FCRONDYN
#undef NOLOADAVG
/* 1 if you want debug mode */
#undef DEBUG
/* Define if you have the <sys/ndir.h> header file. */
#undef HAVE_SYS_NDIR_H
+/* Define if you have the <sys/socket.h> header file. */
+#undef HAVE_SYS_SOCKET_H
+
/* Define if you have the <sys/termios.h> header file. */
#undef HAVE_SYS_TERMIOS_H
/* Define if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
+/* Define if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
#undef HAVE_SYS_WAIT_H
AC_CHECK_HEADERS(stdarg.h)
AC_CHECK_HEADERS(sys/termios.h)
AC_CHECK_HEADERS(strings.h)
+AC_CHECK_HEADERS(sys/types.h sys/socket.h)
AC_CHECK_HEADERS(security/pam_appl.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_SUBST(USEPAM)
+fcrondyn=1
+AC_MSG_CHECKING(if fcrondyn should be compiled)
+AC_ARG_WITH(fcrondyn,
+[ --with-fcrondyn=[yes|no] Compile (or not) fcrondyn (default: yes).],
+[ case "$withval" in
+ no)
+ fcrondyn=0
+ AC_MSG_RESULT(no)
+ ;;
+ yes)
+ AC_MSG_RESULT(yes)
+ ;;
+ *)
+ AC_MSG_ERROR(Must be set to either "yes" or "no".)
+ ;;
+ esac ],
+ AC_MSG_RESULT(yes)
+)
+FCRONDYN="$fcrondyn"
+AC_DEFINE_UNQUOTED(FCRONDYN, "$fcrondyn")
+AC_SUBST(FCRONDYN)
+
+
dnl ---------------------------------------------------------------------
dnl Users and groups ...