From eb24929040e9afc413c2319e4843e29dc6773174 Mon Sep 17 00:00:00 2001 From: thib Date: Tue, 12 Sep 2000 16:42:28 +0000 Subject: [PATCH] support of autoconf --- config.h.in | 200 +++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 144 insertions(+), 56 deletions(-) diff --git a/config.h.in b/config.h.in index b958d9b..5c6ebe0 100644 --- a/config.h.in +++ b/config.h.in @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: config.h.in,v 1.15 2000-09-04 13:08:15 thib Exp $ */ + /* $Id: config.h.in,v 1.16 2000-09-12 16:42:28 thib Exp $ */ /* *********************************************************** */ @@ -33,55 +33,6 @@ /* beginning of configurable stuff ********************************** */ -/* *** options which can be set in Makefile *** */ -/* (they are overridden by Makefile's value ) */ - -#ifndef VERSION -#define VERSION "1.0.0" /* default version if not defined in Makefile */ -#endif - -#ifndef SENDMAIL /* mail command location */ -#define SENDMAIL "/usr/lib/sendmail" -#endif - -#ifndef FCRONTABS /* directory where is stored users' fcrontabs */ -#define FCRONTABS "/var/spool/fcron/" -#endif - -#ifndef ETC /* directory where are stored fcrontab.allow/deny */ -#define ETC "/etc/" -#endif - -#ifndef PROC_LOADAVG /* do we have a mounted procfs with loadavg file on - * this system ? */ -#define PROC_LOADAVG 1 -#endif - -#ifndef PROC /* directory where is mounted the procfs */ -#define PROC "/proc/" -#endif - -#ifndef DEBUG -#define DEBUG 0 /* 1 if you want debug mode */ -#endif - -#ifndef FOREGROUND -#define FOREGROUND 0 /* 1 if you want foreground mode by default */ -#endif - -#ifndef SAVE -#define SAVE 1800 /* save every n seconds */ -#endif - - - -/* *** system dependent *** */ -#define EXIT_ERR 1 /* code returned by fcron/fcrontab on error */ -#define EXIT_OK 0 /* code returned on normal exit */ - - -/* *** paths *** */ - /* fcron allow and deny file are located in directory ETC (see below) */ #define FCRON_ALLOW "fcron.allow" @@ -89,12 +40,6 @@ #define SENDMAIL_ARGS "-Ffcron", "-odi" /* args of mail command */ -#define EDITOR "/usr/bin/vi" /* default editor */ - -#define SHELL "/bin/sh" /* default shell */ - -#define PIDFILE "/var/run/fcron.pid" /* where is located pid file ? */ - /* *** memory *** */ #define EXE_INITIAL_SIZE 6 /* initial number of possible running job @@ -142,6 +87,7 @@ #define LAVG_SLEEP 30 /* the time we sleep when some jobs are in lavg queue */ +#define SAVE 1800 /* save every n seconds */ /* *** behavior *** */ #define SERIAL_ONCE 0 /* can a job be several times in the serial queue at @@ -150,6 +96,11 @@ #define LAVG_ONCE 1 /* can a job be several times in the lavg queue at * the same moment ? */ +/* *** system dependent *** */ +#define EXIT_ERR 1 /* code returned by fcron/fcrontab on error */ +#define EXIT_OK 0 /* code returned on normal exit */ + + /* Syslog facility and priorities messages will be logged to (see syslog(3)) */ /* NOTE : if you change anything here, check if the doc should not @@ -166,3 +117,140 @@ /* end of configurable stuff **************************************** */ /* ****************************************************************** */ + +/* ****************************************************************** */ +/* *** options which are set by configure script ******************** */ + +#undef VERSION + +/* *** paths *** */ +#undef ETC +#undef FCRONTABS +#undef SENDMAIL +#undef PROC +/* default editor */ +#undef EDITOR +/* default shell */ +#undef SHELL +/* where is located pid file ? */ +#undef PIDFILE + +#undef PROC_LOADAVG 1 +#undef DEBUG 0 /* 1 if you want debug mode */ +#undef FOREGROUND 0 /* 1 if you want foreground mode by default */ + + +/* Define to empty if the keyword does not work. */ +#undef const + +/* Define for DGUX with . */ +#undef DGUX + +/* Define if the `getloadavg' function needs to be run setuid or setgid. */ +#undef GETLOADAVG_PRIVILEGED + +/* Define to `int' if doesn't define. */ +#undef gid_t + +/* Define if your system has its own `getloadavg' function. */ +#undef HAVE_GETLOADAVG + +/* Define if you have the strftime function. */ +#undef HAVE_STRFTIME + +/* Define if you have that is POSIX.1 compatible. */ +#undef HAVE_SYS_WAIT_H + +/* Define if you have the wait3 system call. */ +#undef HAVE_WAIT3 + +/* Define if your struct nlist has an n_un member. */ +#undef NLIST_NAME_UNION + +/* Define if you have . */ +#undef NLIST_STRUCT + +/* Define to `int' if doesn't define. */ +#undef pid_t + +/* Define as the return type of signal handlers (int or void). */ +#undef RETSIGTYPE + +/* Define to `unsigned' if doesn't define. */ +#undef size_t + +/* Define if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define on System V Release 4. */ +#undef SVR4 + +/* Define if you can safely include both and . */ +#undef TIME_WITH_SYS_TIME + +/* Define if your declares struct tm. */ +#undef TM_IN_SYS_TIME + +/* Define to `int' if doesn't define. */ +#undef uid_t + +/* Define for Encore UMAX. */ +#undef UMAX + +/* Define for Encore UMAX 4.3 that has + instead of . */ +#undef UMAX4_3 + +/* Define if you have the getcwd function. */ +#undef HAVE_GETCWD + +/* Define if you have the getloadavg function. */ +#undef HAVE_GETLOADAVG + +/* Define if you have the gettimeofday function. */ +#undef HAVE_GETTIMEOFDAY + +/* Define if you have the mktime function. */ +#undef HAVE_MKTIME + +/* Define if you have the putenv function. */ +#undef HAVE_PUTENV + +/* Define if you have the strerror function. */ +#undef HAVE_STRERROR + +/* Define if you have the header file. */ +#undef HAVE_DIRENT_H + +/* Define if you have the header file. */ +#undef HAVE_FCNTL_H + +/* Define if you have the header file. */ +#undef HAVE_MACH_MACH_H + +/* Define if you have the header file. */ +#undef HAVE_NDIR_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_DIR_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_FILE_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_IOCTL_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_NDIR_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_TIME_H + +/* Define if you have the header file. */ +#undef HAVE_SYSLOG_H + +/* Define if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define if you have the dgc library (-ldgc). */ +#undef HAVE_LIBDGC -- 2.40.0