summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2011-06-02 18:17:49 -0700
committerTim Rice <tim@multitalents.net>2011-06-02 18:17:49 -0700
commit90f42b07058d0813e258db90ccdd5da839844d19 (patch)
treedf11ed37c6f7d7e8984d621cc42c8a22f48b5d96 /defines.h
parentc412c1567b6d9eac77bbb43f450b95ef47389ad1 (diff)
- (tim) [configure.ac defines.h] Run test program to detect system mail
directory. Add --with-maildir option to override. Fixed OpenServer 6 getting it wrong. Fixed many systems having MAIL=/var/mail//username ok dtucker
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/defines.h b/defines.h
index a435de76e..e4ccc5407 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
25#ifndef _DEFINES_H 25#ifndef _DEFINES_H
26#define _DEFINES_H 26#define _DEFINES_H
27 27
28/* $Id: defines.h,v 1.166 2011/05/05 06:06:59 tim Exp $ */ 28/* $Id: defines.h,v 1.167 2011/06/03 01:17:49 tim Exp $ */
29 29
30 30
31/* Constants */ 31/* Constants */
@@ -389,18 +389,15 @@ struct winsize {
389# define _PATH_DEVNULL "/dev/null" 389# define _PATH_DEVNULL "/dev/null"
390#endif 390#endif
391 391
392#ifndef MAIL_DIRECTORY 392/* user may have set a different path */
393# define MAIL_DIRECTORY "/var/spool/mail" 393#if defined(_PATH_MAILDIR) && defined(MAIL_DIRECTORY)
394#endif 394# undef _PATH_MAILDIR MAILDIR
395#endif /* defined(_PATH_MAILDIR) && defined(MAIL_DIRECTORY) */
395 396
396#ifndef MAILDIR 397#ifdef MAIL_DIRECTORY
397# define MAILDIR MAIL_DIRECTORY 398# define _PATH_MAILDIR MAIL_DIRECTORY
398#endif 399#endif
399 400
400#if !defined(_PATH_MAILDIR) && defined(MAILDIR)
401# define _PATH_MAILDIR MAILDIR
402#endif /* !defined(_PATH_MAILDIR) && defined(MAILDIR) */
403
404#ifndef _PATH_NOLOGIN 401#ifndef _PATH_NOLOGIN
405# define _PATH_NOLOGIN "/etc/nologin" 402# define _PATH_NOLOGIN "/etc/nologin"
406#endif 403#endif