replaced the BIND guess (based on BSDishness) with checks for gethostbyname and setho...
[mmh] / config.h.in
1 /* config.h.in.  Generated automatically from configure.in by autoheader.  */
2
3 /****** BEGIN USER CONFIGURATION SECTION *****/
4
5 /*
6  * IMPORTANT: You should no longer need to edit this file to handle
7  * your operating system. That should be handled and set correctly by
8  * configure now.
9  *
10  * These are slowly being phased out, but currently
11  * not everyone is auto-configured.  Then decide if you
12  * wish to change the features that are compiled into nmh.
13  */
14
15 /*
16  * Turn on locale (setlocale) support
17  */
18 #define LOCALE  1
19
20 /*
21  * Define to 1 the type of file locking to use.  You need to
22  * make sure the type of locking you use is compatible with
23  * other programs which may modify your maildrops.
24  * Currently you can only use one type.
25  */
26 #define DOT_LOCKING   1
27 /* #define FCNTL_LOCKING 1 */
28 /* #define LOCKF_LOCKING 1 */
29 /* #define FLOCK_LOCKING 1 */
30
31 /*
32  * If you have defined DOT_LOCKING, then the default is to
33  * place the lock files in the same directory as the file that
34  * is to be locked.  Alternately, if you define LOCKDIR, you
35  * can specify that all lock files go in a specific directory.
36  * Don't define this unless you know you need it.
37  */
38 /* #define LOCKDIR "/usr/spool/locks" */
39
40 /*
41  * Define this if your passwords are stored in some type of
42  * distributed name service, such as NIS, or NIS+.
43  */
44 #define DBMPWD  1
45
46 /*
47  * Directs nmh not to try and rewrite addresses
48  * to their official form.  You probably don't
49  * want to change this without good reason.
50  */
51 #define DUMB    1
52
53 /*
54  * Define this if you do not want nmh to attach the local hostname
55  * to local addresses.  You must also define DUMB.  You probably
56  * dont' need this unless you are behind a firewall.
57  */
58 /* #define REALLYDUMB  1 */
59
60 /*
61  * Directs inc/slocal to extract the envelope sender from "From "
62  * line.  If inc/slocal is saving message to folder, then this
63  * sender information is then used to create a Return-Path
64  * header which is then added to the message.
65  */
66 #define RPATHS  1
67
68 /*
69  * If defined, slocal will use `mbox' format when saving to
70  * your standard mail spool.  If not defined, it will use
71  * mmdf format.
72  */
73 #define SLOCAL_MBOX  1
74
75 /*
76  * If this is defined, nmh will recognize the ~ construct.
77  */
78 #define MHRC    1
79
80 /*
81  * Compile simple ftp client into mhn.  This will be used by mhn
82  * for ftp access unless you have specified another access method
83  * in your .mh_profile or mhn.defaults.  Use the "mhn-access-ftp"
84  * profile entry to override this.  Check mhn(1) man page for
85  * details.
86  */
87 #define BUILTIN_FTP 1
88
89 /*
90  * If you enable POP support, this is the the port name
91  * that nmh will use.  Make sure this is defined in your
92  * /etc/services file (or its NIS/NIS+ equivalent).  If you
93  * are using KPOP, you will probably need to change this
94  * to "kpop".
95  */
96 #define POPSERVICE "pop3"
97
98 /*
99  * Define the default creation modes for folders and messages.
100  */
101 #define DEFAULT_FOLDER_MODE "0700"
102 #define DEFAULT_MESSAGE_MODE "0600"
103
104 /*
105  * The prefix which is prepended to the name of messages when they
106  * are "removed" by rmm.  This should typically be `,' or `#'
107  */
108 #define BACKUP_PREFIX ","
109
110 /*
111  * Name of link to file to which you are replying.
112  */
113 #define LINK "@"
114
115 /*
116  * If wait/waitpid returns an int (no union wait).
117  */
118 #define WAITINT 1
119
120 /* The following are autoconfigured, but you may wish to override the
121  * decisions of autoconf (and AC_CANONICAL_SYSTEM) and do your own
122  * thing. If so, you can modify the definitions. The Comments are as
123  * useful as ever. */
124
125 /* these three are only used in vmh.c, which currently is not being
126  * built anyway. -Doug */
127 /* Defined for Solaris 2.x, Irix, OSF/1, HP-UX, AIX, SCO5 */
128 #undef SYS5
129 /* Defined for Solaris 2.x, Irix, OSF/1, HP-UX, AIX */
130 #undef SVR4
131 /* Defined for SunOS 4, FreeBSD, NetBSD, OpenBSD, BSD/OS */
132 #undef BSD44
133
134 /* Defined for SunOS 4, FreeBSD, NetBSD, OpenBSD, BSD/OS -- does
135  * PicoBSD have uname? :) */
136 #undef BSD42
137
138 /* Defined for SCO5 */
139 #undef SCO_5_STDIO
140
141 /* This tells nmh to use the Linux _IO_*_ptr defines from libio.h */ 
142 #undef LINUX_STDIO
143
144
145 /***** END USER CONFIGURATION SECTION *****/
146
147 /* Define to empty if the keyword does not work.  */
148 #undef const
149
150 /* Define to `int' if <sys/types.h> doesn't define.  */
151 #undef gid_t
152
153 /* Define if your struct stat has st_blksize.  */
154 #undef HAVE_ST_BLKSIZE
155
156 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
157 #undef HAVE_SYS_WAIT_H
158
159 /* Define if you have <vfork.h>.  */
160 #undef HAVE_VFORK_H
161
162 /* Define to `int' if <sys/types.h> doesn't define.  */
163 #undef mode_t
164
165 /* Define to `long' if <sys/types.h> doesn't define.  */
166 #undef off_t
167
168 /* Define to `int' if <sys/types.h> doesn't define.  */
169 #undef pid_t
170
171 /* Define as the return type of signal handlers (int or void).  */
172 #undef RETSIGTYPE
173
174 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
175 #undef size_t
176
177 /* Define if the `S_IS*' macros in <sys/stat.h> do not work properly.  */
178 #undef STAT_MACROS_BROKEN
179
180 /* Define if you have the ANSI C header files.  */
181 #undef STDC_HEADERS
182
183 /* Define on System V Release 4.  */
184 #undef SVR4
185
186 /* Define if you can safely include both <sys/time.h> and <time.h>.  */
187 #undef TIME_WITH_SYS_TIME
188
189 /* Define to `int' if <sys/types.h> doesn't define.  */
190 #undef uid_t
191
192 /* Define vfork as fork if vfork does not work.  */
193 #undef vfork
194
195 /*
196  * Define this if you want SMTP (simple mail transport protocol)
197  * support.  When sending mail, instead of passing the message to
198  * the mail transport agent (typically sendmail), nmh will open a
199  * socket connection to the mail port on the machine specified in
200  * the `mts.conf' file (default is localhost), and speak SMTP directly.
201  */
202 #undef SMTPMTS
203
204 /*
205  * Use sendmail as transport agent.  Post messages by piping
206  * them directly to sendmail.
207  */
208 #undef SENDMTS
209
210 /*
211  * Define this to compile client-side support for pop into
212  * inc and msgchk.  Do not change this value manually.  You
213  * must run configure with the '--enable-nmh-pop' option
214  * to correctly build the pop client support.
215  */
216 #undef POP
217
218 /*
219  * Define this to compile client-side support for kpop
220  * (kerberized pop) into inc and msgchk.  Do not change this
221  * value manually.  You must run configure with the option
222  * '--with-krb4=PREFIX' to correctly build the kpop client support.
223  */
224 #undef KPOP
225
226 /*
227  * Define this to "pop" when using Kerberos V4
228  */
229 #undef KPOP_PRINCIPAL
230
231 /*
232  * Define this to compile support for using Hesiod to locate
233  * pop servers into inc and msgchk.  Do not change this value
234  * manually.  You must run configure with the option
235  * '--with-hesiod=PREFIX' to correctly build Hesiod support.
236  */
237 #undef HESIOD
238
239 /*
240  * Compile in support for the Emacs front-end mh-e.
241  */
242 #undef MHE
243
244 /* Define to 1 if your termcap library has the ospeed variable */
245 #undef HAVE_OSPEED
246 /* Define to 1 if you have ospeed, but it is not defined in termcap.h */
247 #undef MUST_DEFINE_OSPEED
248
249 /* Define to 1 if you have reliable signals */
250 #undef RELIABLE_SIGNALS
251
252 /* Define to 1 if you use POSIX style signal handling */
253 #undef POSIX_SIGNALS
254
255  
256 /* Define to 1 if you use BSD style signal handling (and can block signals) */
257 #undef BSD_SIGNALS
258
259  
260 /* Define to 1 if you use SYS style signal handling (and can block signals) */
261 #undef SYSV_SIGNALS
262
263  
264 /* Define to 1 if you have no signal blocking at all (bummer) */
265 #undef NO_SIGNAL_BLOCKING
266
267 /* Define to `unsigned int' if <sys/types.h> or <signal.h> doesn't define */
268 #undef sigset_t
269
270 /*
271  * Define to 1 if your vi has ATT bug, such that it returns
272  * non-zero exit codes on `pseudo-errors'.
273  */
274 #undef ATTVIBUG
275
276 /*
277  * Define to 1 if you need to make `inc' set-group-id because your mail spool is
278  * not world writable.  There are no guarantees as to the safety of doing this,
279  * but this #define will add some extra security checks.
280  */
281 #undef MAILGROUP
282
283 /* Define ruserpass as _ruserpass if your libraries have a bug *
284  * such that it can't find ruserpass, but can find _ruserpass. */
285 #undef ruserpass
286
287 /* Define if your system defines TIOCGWINSZ in sys/ioctl.h.  */
288 #undef GWINSZ_IN_SYS_IOCTL
289
290 /* Define if your system defines `struct winsize' in sys/ptem.h.  */
291 #undef WINSIZE_IN_PTEM
292
293 /* Define to 1 if struct tm has gmtoff */
294 #undef HAVE_TM_GMTOFF
295
296 /* Define if your system has sigsetjmp */
297 #undef HAVE_SIGSETJMP
298
299 /* Define if you have the gethostbyname function.  */
300 #undef HAVE_GETHOSTBYNAME
301
302 /* Define if you have the killpg function.  */
303 #undef HAVE_KILLPG
304
305 /* Define if you have the lstat function.  */
306 #undef HAVE_LSTAT
307
308 /* Define if you have the mkstemp function.  */
309 #undef HAVE_MKSTEMP
310
311 /* Define if you have the sethostent function.  */
312 #undef HAVE_SETHOSTENT
313
314 /* Define if you have the sigaction function.  */
315 #undef HAVE_SIGACTION
316
317 /* Define if you have the sigblock function.  */
318 #undef HAVE_SIGBLOCK
319
320 /* Define if you have the sighold function.  */
321 #undef HAVE_SIGHOLD
322
323 /* Define if you have the sigprocmask function.  */
324 #undef HAVE_SIGPROCMASK
325
326 /* Define if you have the sigrelse function.  */
327 #undef HAVE_SIGRELSE
328
329 /* Define if you have the sigsetmask function.  */
330 #undef HAVE_SIGSETMASK
331
332 /* Define if you have the snprintf function.  */
333 #undef HAVE_SNPRINTF
334
335 /* Define if you have the strdup function.  */
336 #undef HAVE_STRDUP
337
338 /* Define if you have the strerror function.  */
339 #undef HAVE_STRERROR
340
341 /* Define if you have the tzset function.  */
342 #undef HAVE_TZSET
343
344 /* Define if you have the uname function.  */
345 #undef HAVE_UNAME
346
347 /* Define if you have the wait3 function.  */
348 #undef HAVE_WAIT3
349
350 /* Define if you have the waitpid function.  */
351 #undef HAVE_WAITPID
352
353 /* Define if you have the writev function.  */
354 #undef HAVE_WRITEV
355
356 /* Define if you have the <arpa/ftp.h> header file.  */
357 #undef HAVE_ARPA_FTP_H
358
359 /* Define if you have the <arpa/inet.h> header file.  */
360 #undef HAVE_ARPA_INET_H
361
362 /* Define if you have the <crypt.h> header file.  */
363 #undef HAVE_CRYPT_H
364
365 /* Define if you have the <db1/ndbm.h> header file.  */
366 #undef HAVE_DB1_NDBM_H
367
368 /* Define if you have the <dirent.h> header file.  */
369 #undef HAVE_DIRENT_H
370
371 /* Define if you have the <errno.h> header file.  */
372 #undef HAVE_ERRNO_H
373
374 /* Define if you have the <fcntl.h> header file.  */
375 #undef HAVE_FCNTL_H
376
377 /* Define if you have the <limits.h> header file.  */
378 #undef HAVE_LIMITS_H
379
380 /* Define if you have the <locale.h> header file.  */
381 #undef HAVE_LOCALE_H
382
383 /* Define if you have the <memory.h> header file.  */
384 #undef HAVE_MEMORY_H
385
386 /* Define if you have the <ndir.h> header file.  */
387 #undef HAVE_NDIR_H
388
389 /* Define if you have the <netdb.h> header file.  */
390 #undef HAVE_NETDB_H
391
392 /* Define if you have the <stdlib.h> header file.  */
393 #undef HAVE_STDLIB_H
394
395 /* Define if you have the <string.h> header file.  */
396 #undef HAVE_STRING_H
397
398 /* Define if you have the <sys/dir.h> header file.  */
399 #undef HAVE_SYS_DIR_H
400
401 /* Define if you have the <sys/ndir.h> header file.  */
402 #undef HAVE_SYS_NDIR_H
403
404 /* Define if you have the <sys/param.h> header file.  */
405 #undef HAVE_SYS_PARAM_H
406
407 /* Define if you have the <sys/time.h> header file.  */
408 #undef HAVE_SYS_TIME_H
409
410 /* Define if you have the <sys/utsname.h> header file.  */
411 #undef HAVE_SYS_UTSNAME_H
412
413 /* Define if you have the <termcap.h> header file.  */
414 #undef HAVE_TERMCAP_H
415
416 /* Define if you have the <termio.h> header file.  */
417 #undef HAVE_TERMIO_H
418
419 /* Define if you have the <termios.h> header file.  */
420 #undef HAVE_TERMIOS_H
421
422 /* Define if you have the <unistd.h> header file.  */
423 #undef HAVE_UNISTD_H
424
425 /* Define if you have the m library (-lm).  */
426 #undef HAVE_LIBM
427
428 /* Define if you have the mkstemp library (-lmkstemp).  */
429 #undef HAVE_LIBMKSTEMP
430
431 /* Define if you have the ndbm library (-lndbm).  */
432 #undef HAVE_LIBNDBM
433
434 /* Define if you have the nsl library (-lnsl).  */
435 #undef HAVE_LIBNSL
436
437 /* Define if you have the resolv library (-lresolv).  */
438 #undef HAVE_LIBRESOLV
439
440 /* Define if you have the socket library (-lsocket).  */
441 #undef HAVE_LIBSOCKET