1 /* include/config.h.in. Generated automatically from configure.in by autoheader 2.13. */
2 /* $Id: config.h.in 7565 2006-08-28 02:42:54Z eagle $
4 ** Here be configuration data used by various InterNetNews programs. This
5 ** file is used as source for the autoheader script, which from it and
6 ** configure.in generates a config.h.in file that will be used by autoconf
7 ** as the repository of all wisdom.
9 ** Stuff before TOP and after BOTTOM is copied verbatim to config.h.in;
10 ** the rest of this file is in the desired form for autoconfiscation.
11 ** Only stuff that autoconf 2.13 couldn't figure out for itself or that
12 ** needs a larger comment is included here.
18 /* Portable defines that don't rely on autoconf results come from here. */
19 #include "inn/defines.h"
24 ** Look over these settings and make sure they're correct for your site.
25 ** These values don't come from configure and therefore may need manual
26 ** editing. The defaults normally should be fine.
28 ** For boolean #defines, uncomment and change #undef to #define to enable,
29 ** do the reverse to disable.
32 /* A null-terminated list of uwildmat(3) patterns matching illegal
33 distributions. inews and nnrpd will reject posts with a distribution
34 matching one of these patterns. */
35 #define BAD_DISTRIBS "*.*", NULL
37 /* Default timeout period for ctlinnd, overridden by the -t flag. If set to
38 zero, ctlinnd will never time out, but will check every two minutes to
39 see if the server is still running so it won't hang forever on a dead
41 #define CTLINND_TIMEOUT 0
43 /* Reject articles posted more than this many seconds in the future. */
44 #define DATE_FUZZ (24L * 60L * 60L)
46 /* innd will flush the history and active file after this many seconds. */
47 #define DEFAULT_TIMEOUT 300
49 /* Define if inews should put hostnames into the Path header itself. */
52 /* Define if inews should munge the GECOS entry of the passwd file when
53 attempting to determine a poster's real name. Use this if your GECOS
54 entries have other stuff after trailing commas or before dashes, things
55 in parentheses that aren't part of the name, etc. See frontends/inews.c
56 for the full algorithm. */
57 #define DO_MUNGE_GECOS
59 /* Define if rnews should try to connect to the local host. */
60 #define DO_RNEWSLOCALCONNECT
62 /* Define if rnews should syslog articles rejected as duplicates. */
63 /* #undef DO_RNEWS_LOG_DUPS */
65 /* Define if rnews should look in _PATH_RNEWSPROGS for batch unpackers. */
68 /* Define if rnews should save articles rejected by the server. */
69 /* #undef DO_RNEWS_SAVE_BAD */
71 /* Value to pass to dbzincore() inside innd. Under some bizarre low memory
72 circumstance you may want this not to be 1, but normally you always want
73 to load the full history indexes into innd's memory. Has no effect if
74 using tagged hash (which is always in core). */
75 #define INND_DBZINCORE 1
77 /* A null-terminated list of unknown commands that, when seen by innd,
78 shouldn't be logged to syslog. Normally innd logs all unknown commands,
79 but sometimes some are so frequent that it's not worth it. */
80 #define INND_QUIET_BADLIST NULL
82 /* innd will throttle itself after this many I/O errors. The count is reset
83 on a ctlinnd go. (ENOSPC is special and will always cause an immediate
85 #define IO_ERROR_COUNT 50
87 /* Length of listen queue for innd. */
90 /* The standard NNTP port. */
93 /* What to use for a Path tail for local posts. */
94 #define PATHMASTER "not-for-mail"
100 ** Things determined automatically by autoconf. Nothing below this point
101 ** should require manual editing; if anything here is wrong, see if you
102 ** should be passing a flag to configure to set it correctly for your
105 ** Be aware that success of some tests will cause other tests to be skipped
106 ** since their results aren't then needed. For example, if you have
107 ** standard C headers, INN won't bother looking for stdlib.h, and
108 ** HAVE_STDLIB_H will be false whether you have it or not. This is normal.
110 ** Fodder for autoheader is provided in sort -df order (alphabetical,
111 ** case-insensitive, ignoring punctuation) to make it easier to check
112 ** whether a given entry is in the file.
115 /* Define if on AIX 3.
116 System headers sometimes define this.
117 We just want to avoid a redefinition error message. */
122 /* Define to empty if the keyword does not work. */
125 /* Define to `int' if <sys/types.h> doesn't define. */
128 /* Define if you have a working `mmap' system call. */
131 /* Define if your struct stat has st_blksize. */
132 #undef HAVE_ST_BLKSIZE
134 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
135 #undef HAVE_SYS_WAIT_H
137 /* Define to `long' if <sys/types.h> doesn't define. */
140 /* Define to `int' if <sys/types.h> doesn't define. */
143 /* Define if you need to in order for stat and other things to work. */
146 /* Define as the return type of signal handlers (int or void). */
149 /* Define to `unsigned' if <sys/types.h> doesn't define. */
152 /* Define if you have the ANSI C header files. */
155 /* Define if you can safely include both <sys/time.h> and <time.h>. */
156 #undef TIME_WITH_SYS_TIME
158 /* Define if your <sys/time.h> declares struct tm. */
159 #undef TM_IN_SYS_TIME
161 /* Define to `int' if <sys/types.h> doesn't define. */
164 /* Define if your processor stores words with the most significant
165 byte first (like Motorola and SPARC, unlike Intel and VAX). */
166 #undef WORDS_BIGENDIAN
168 /* Define to a suitable 32-bit type if standard headers don't define. */
171 /* Define to `long' if <sys/types.h> doesn't define. */
174 /* Define to `int' if <signal.h> doesn't define. */
177 /* Define to `int' if <sys/socket.h> doesn't define. */
180 /* Define to `int' if <sys/types.h> doesn't define. */
183 /* Define to a suitable 32-bit type if standard headers don't define. */
186 /* Define if you have the atexit function. */
189 /* Define if you have the fseeko function. */
192 /* Define if you have the ftello function. */
195 /* Define if you have the getdtablesize function. */
196 #undef HAVE_GETDTABLESIZE
198 /* Define if you have the getloadavg function. */
199 #undef HAVE_GETLOADAVG
201 /* Define if you have the getpagesize function. */
202 #undef HAVE_GETPAGESIZE
204 /* Define if you have the getrlimit function. */
205 #undef HAVE_GETRLIMIT
207 /* Define if you have the getrusage function. */
208 #undef HAVE_GETRUSAGE
210 /* Define if you have the getspnam function. */
213 /* Define if you have the hstrerror function. */
214 #undef HAVE_HSTRERROR
216 /* Define if you have the inet_aton function. */
217 #undef HAVE_INET_ATON
219 /* Define if you have the krb5_init_ets function. */
220 #undef HAVE_KRB5_INIT_ETS
222 /* Define if you have the madvise function. */
225 /* Define if you have the memcpy function. */
228 /* Define if you have the mkstemp function. */
231 /* Define if you have the pread function. */
234 /* Define if you have the pstat function. */
237 /* Define if you have the pwrite function. */
240 /* Define if you have the setbuffer function. */
241 #undef HAVE_SETBUFFER
243 /* Define if you have the setenv function. */
246 /* Define if you have the seteuid function. */
249 /* Define if you have the setgroups function. */
250 #undef HAVE_SETGROUPS
252 /* Define if you have the setrlimit function. */
253 #undef HAVE_SETRLIMIT
255 /* Define if you have the setsid function. */
258 /* Define if you have the sigaction function. */
259 #undef HAVE_SIGACTION
261 /* Define if you have the socketpair function. */
262 #undef HAVE_SOCKETPAIR
264 /* Define if you have the statfs function. */
267 /* Define if you have the statvfs function. */
270 /* Define if you have the strcasecmp function. */
271 #undef HAVE_STRCASECMP
273 /* Define if you have the strchr function. */
276 /* Define if you have the strerror function. */
279 /* Define if you have the strlcat function. */
282 /* Define if you have the strlcpy function. */
285 /* Define if you have the strncasecmp function. */
286 #undef HAVE_STRNCASECMP
288 /* Define if you have the strspn function. */
291 /* Define if you have the strtoul function. */
294 /* Define if you have the symlink function. */
297 /* Define if you have the sysconf function. */
300 /* Define if you have the ulimit function. */
303 /* Define if you have the <crypt.h> header file. */
306 /* Define if you have the <db1/ndbm.h> header file. */
307 #undef HAVE_DB1_NDBM_H
309 /* Define if you have the <dirent.h> header file. */
312 /* Define if you have the <dlfcn.h> header file. */
315 /* Define if you have the <et/com_err.h> header file. */
316 #undef HAVE_ET_COM_ERR_H
318 /* Define if you have the <gdbm-ndbm.h> header file. */
319 #undef HAVE_GDBM_NDBM_H
321 /* Define if you have the <inttypes.h> header file. */
322 #undef HAVE_INTTYPES_H
324 /* Define if you have the <limits.h> header file. */
327 /* Define if you have the <memory.h> header file. */
330 /* Define if you have the <ndbm.h> header file. */
333 /* Define if you have the <ndir.h> header file. */
336 /* Define if you have the <pam/pam_appl.h> header file. */
337 #undef HAVE_PAM_PAM_APPL_H
339 /* Define if you have the <stdbool.h> header file. */
340 #undef HAVE_STDBOOL_H
342 /* Define if you have the <stddef.h> header file. */
345 /* Define if you have the <stdint.h> header file. */
348 /* Define if you have the <stdlib.h> header file. */
351 /* Define if you have the <string.h> header file. */
354 /* Define if you have the <strings.h> header file. */
355 #undef HAVE_STRINGS_H
357 /* Define if you have the <sys/bitypes.h> header file. */
358 #undef HAVE_SYS_BITYPES_H
360 /* Define if you have the <sys/dir.h> header file. */
361 #undef HAVE_SYS_DIR_H
363 /* Define if you have the <sys/filio.h> header file. */
364 #undef HAVE_SYS_FILIO_H
366 /* Define if you have the <sys/loadavg.h> header file. */
367 #undef HAVE_SYS_LOADAVG_H
369 /* Define if you have the <sys/mount.h> header file. */
370 #undef HAVE_SYS_MOUNT_H
372 /* Define if you have the <sys/ndir.h> header file. */
373 #undef HAVE_SYS_NDIR_H
375 /* Define if you have the <sys/param.h> header file. */
376 #undef HAVE_SYS_PARAM_H
378 /* Define if you have the <sys/select.h> header file. */
379 #undef HAVE_SYS_SELECT_H
381 /* Define if you have the <sys/sysinfo.h> header file. */
382 #undef HAVE_SYS_SYSINFO_H
384 /* Define if you have the <sys/time.h> header file. */
385 #undef HAVE_SYS_TIME_H
387 /* Define if you have the <sys/vfs.h> header file. */
388 #undef HAVE_SYS_VFS_H
390 /* Define if you have the <unistd.h> header file. */
393 /* The user that INN should run as. */
396 /* The group that INN should run as. */
399 /* The user who gets all INN-related e-mail. */
402 /* Mode that incoming articles are created with. */
405 /* Mode that batch files are created with. */
406 #undef BATCHFILE_MODE
408 /* Mode that directories are created with. */
411 /* The umask used by all INN programs. */
414 /* Additional valid low-numbered port for inndstart. */
417 /* Define to enable IPv6 support. */
420 /* Maximum number of sockets that innd can listen on. */
423 /* Define to use tagged hash for the history file. */
424 #undef DO_TAGGED_HASH
426 /* Define to 1 to compile in support for keyword generation code. */
429 /* Define to compile in Perl script support. */
432 /* Define to compile in Python module support. */
435 /* Define if you have the setproctitle function. */
436 #undef HAVE_SETPROCTITLE
438 /* Define if you have PAM. */
441 /* Define if BerkeleyDB is available. */
442 #undef USE_BERKELEY_DB
444 /* Define if the BerkeleyDB dbm compatibility layer is available. */
447 /* Define if you have a dbm library. */
450 /* Define if OpenSSL is available. */
453 /* Define if SASL is available. */
456 /* Define if SASL is available. */
459 /* Some versions of glibc need this defined for pread/pwrite. */
462 /* Define if <netdb.h> does not declare h_errno. */
463 #undef NEED_HERRNO_DECLARATION
465 /* Define if inet_aton isn't declared in the system headers. */
466 #undef NEED_DECLARATION_INET_ATON
468 /* Define if inet_ntoa isn't declared in the system headers. */
469 #undef NEED_DECLARATION_INET_NTOA
471 /* Define if snprintf isn't declared in the system headers. */
472 #undef NEED_DECLARATION_SNPRINTF
474 /* Define if vsnprintf isn't declared in the system headers. */
475 #undef NEED_DECLARATION_VSNPRINTF
477 /* Define if the compiler supports C99 variadic macros. */
478 #undef HAVE_C99_VAMACROS
480 /* Define if the compiler supports GNU-style variadic macros. */
481 #undef HAVE_GNU_VAMACROS
483 /* Define if the compiler supports long long int. */
484 #undef HAVE_LONG_LONG
486 /* Define to the max vectors in an iovec. */
489 /* Define if <sys/un.h> defines the SUN_LEN macro. */
492 /* Define if your struct tm has a tm_gmtoff member. */
493 #undef HAVE_TM_GMTOFF
495 /* Define if your struct tm has a tm_zone member. */
498 /* Define if timezone is an external variable in <time.h>. */
499 #undef HAVE_VAR_TIMEZONE
501 /* Define if tzname is an external variable in <time.h>. */
502 #undef HAVE_VAR_TZNAME
504 /* Define if your system has a working inet_ntoa function. */
505 #undef HAVE_INET_NTOA
507 /* Define if your system has a sa_len field in struct sockaddr */
508 #undef HAVE_SOCKADDR_LEN
510 /* Define if your system has a SA_LEN(s) macro */
511 #undef HAVE_SA_LEN_MACRO
513 /* Define if your system has struct sockaddr_storage */
514 #undef HAVE_SOCKADDR_STORAGE
516 /* Define if your system has sockaddr_storage.__ss_family */
517 #undef HAVE_2553_STYLE_SS_FAMILY
519 /* Define if your IN6_ARE_ADDR_EQUAL macro is broken */
520 #undef HAVE_BROKEN_IN6_ARE_ADDR_EQUAL
522 /* Define if your system has a working snprintf function. */
525 /* Define if fpos_t is at least 64 bits and compatible with off_t. */
526 #undef HAVE_LARGE_FPOS_T
528 /* Define if you need to call msync after writes. */
529 #undef MMAP_MISSES_WRITES
531 /* Define if you need to call msync for calls to read to see changes. */
532 #undef MMAP_NEEDS_MSYNC
534 /* Define if your msync function takes three arguments. */
535 #undef HAVE_MSYNC_3_ARG
537 /* Define if you have unix domain sockets. */
538 #undef HAVE_UNIX_DOMAIN_SOCKETS
540 /* Syslog facility to use for innd logs. */
541 #undef LOG_INN_SERVER
543 /* Syslog facility to use for INN program logs. */
549 ** BUFFER SIZES AND DATA LENGTHS
551 ** You shouldn't need to change any of the following, and changing some of
552 ** them may cause other things to break. Some standard buffer sizes and
553 ** lengths of data types for various different things.
556 /* The data type to use for article numbers. This probably can't be
557 increased without a lot of work due to assumptions about the active file
559 typedef unsigned long ARTNUM;
561 /* Input buffers start at START_BUFF_SIZE. While reading input, if we have
562 less than LOW_WATER bytes left free in the buffer, use the current
563 buffersize as input to GROW_AMOUNT to determine how much to realloc.
564 Growth must be at least NNTP_STRLEN bytes! The default settings provide
565 aggressive, exponential buffer growth. */
566 #define START_BUFF_SIZE (4 * 1024)
567 #define LOW_WATER (1 * 1024)
568 #define GROW_AMOUNT(x) ((x) < 128 * 1024 ? (x) : 128 * 1024)
570 /* The size of a large buffer. Free dynamically allocated buffers larger
571 than this when we're done with them. */
572 #define BIG_BUFFER (2 * START_BUFF_SIZE)
574 /* The maximum length of a single header, used as a good guess at a buffer
575 size for some header parsing code. This is currently also used by innd
576 to determine whether to reject a message for an excessively long header;
577 this behavior should be fixed. */
578 #define MAXHEADERSIZE 1024
580 /* Default buffer size for outgoing feeds from innd. */
581 #define SITE_BUFFER_SIZE (16 * 1024)
583 /* The size of a small buffer. */
586 /* Maximum size of a pathname in the spool directory. */
587 #define SPOOLNAMEBUFF 512
593 ** Everything below this point is here so that parts of INN that haven't
594 ** been tweaked to use more standard constructs don't break. Don't count
595 ** on any of this staying in this file. If you have a chance, consider
596 ** following the comments before each item and fixing it.
599 /* Used to send commands to exploders. Should be moved into a more specific
600 header file; used by innd/site.c and backends/buffchan.c. */
601 #define EXP_CONTROL '!'
603 /* Only used by innd and cvtbatch, should be moved to a more specific header
605 #define FEED_BYTESIZE 'b'
606 #define FEED_FULLNAME 'f'
607 #define FEED_HASH 'h'
608 #define FEED_HDR_DISTRIB 'D'
609 #define FEED_HDR_NEWSGROUP 'N'
610 #define FEED_MESSAGEID 'm'
611 #define FEED_FNLNAMES '*'
612 #define FEED_HEADERS 'H'
613 #define FEED_NAME 'n'
614 #define FEED_STOREDGROUP 'G'
615 #define FEED_NEWSGROUP 'g'
616 #define FEED_OVERVIEW 'O'
617 #define FEED_PATH 'P'
618 #define FEED_REPLIC 'R'
619 #define FEED_SITE 's'
620 #define FEED_TIMEEXPIRED 'e'
621 #define FEED_TIMERECEIVED 't'
622 #define FEED_TIMEPOSTED 'p'
624 /* Maximum number of flags for a feed in newsfeeds. Only used in innd,
625 should be moved there (or made dynamic). */
626 #define FEED_MAXFLAGS 20
628 /* Maximum length of argv vectors used in innd/site.c. This should be moved
629 out of here into that file, or even better hard-coded rather than
630 defined; this value isn't affected by user data and the right value can
631 be determined by looking at the code and seeing how big of an argv it
632 will attempt to construct. */
633 #define MAX_BUILTIN_ARGV 20
635 /* active file flags. Should be moved to a more specific header file. */
636 #define NF_FLAG_ALIAS '='
637 #define NF_FLAG_EXCLUDED 'j'
638 #define NF_FLAG_MODERATED 'm'
639 #define NF_FLAG_OK 'y'
640 #define NF_FLAG_NOLOCAL 'n'
641 #define NF_FLAG_IGNORE 'x'
643 /* Used for parsing the Newsgroups header. Should be rolled into a library
644 for parsing headers, combining all the code that's currently scattered
645 all over INN for doing that. */
646 #define NG_SEPARATOR ","
647 #define NG_ISSEP(c) ((c) == ',')
649 /* There's no reason to make all of these #defines except possibly for
650 L_CC_CMD and even that's a stretch. Since we're logging to our own
651 distinguished log facility, provided that we spread things out between a
652 reasonable variety of log levels, the sysadmin shouldn't have to change
653 any of this. (Some of this is arguably wrong; L_NOTICE should be
654 LOG_NOTICE, for example.) */
656 /* Flags to use in opening the logs; some programs add LOG_PID. */
657 #define L_OPENLOG_FLAGS (LOG_CONS | LOG_NDELAY)
659 /* Fatal error, program is about to exit. */
660 #define L_FATAL LOG_CRIT
662 /* Log an error that might mean one or more articles get lost. */
663 #define L_ERROR LOG_ERR
665 /* Informational notice, usually not worth caring about. */
666 #define L_NOTICE LOG_WARNING
668 /* A protocol trace. */
669 #define L_TRACE LOG_DEBUG
671 /* All incoming control commands (ctlinnd, etc). */
672 #define L_CC_CMD LOG_INFO
674 #endif /* !CONFIG_H */