diff options
| author | Glenn Morris | 2010-05-09 17:11:40 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-05-09 17:11:40 -0700 |
| commit | 4e569696da42ded9ac772cf76e998066a069c5ae (patch) | |
| tree | 2546c3f7b0697bbba278426fdf88749f3b045ef0 | |
| parent | 7490175bc38099aa093715116b8d96e7319e7ca4 (diff) | |
| download | emacs-4e569696da42ded9ac772cf76e998066a069c5ae.tar.gz emacs-4e569696da42ded9ac772cf76e998066a069c5ae.zip | |
Regenerate configure, src/config.in.
| -rwxr-xr-x | configure | 51 | ||||
| -rw-r--r-- | src/config.in | 6 |
2 files changed, 57 insertions, 0 deletions
| @@ -755,6 +755,7 @@ LIBXSM | |||
| 755 | ALLOCA | 755 | ALLOCA |
| 756 | liblockfile | 756 | liblockfile |
| 757 | LIBS_MAIL | 757 | LIBS_MAIL |
| 758 | BLESSMAIL_TARGET | ||
| 758 | LIBOBJS | 759 | LIBOBJS |
| 759 | NEED_SETGID | 760 | NEED_SETGID |
| 760 | KMEM_GROUP | 761 | KMEM_GROUP |
| @@ -17565,6 +17566,56 @@ done | |||
| 17565 | 17566 | ||
| 17566 | 17567 | ||
| 17567 | 17568 | ||
| 17569 | ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to | ||
| 17570 | ## interlock access to the mail spool. The alternative is a lock file named | ||
| 17571 | ## /usr/spool/mail/$USER.lock. | ||
| 17572 | mail_lock=no | ||
| 17573 | case "$opsys" in | ||
| 17574 | aix4-2) mail_lock="lockf" ;; | ||
| 17575 | |||
| 17576 | gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;; | ||
| 17577 | |||
| 17578 | ## On GNU/Linux systems, both methods are used by various mail programs. | ||
| 17579 | ## I assume most people are using newer mailers that have heard of flock. | ||
| 17580 | ## Change this if you need to. | ||
| 17581 | ## Debian contains a patch which says: ``On Debian/GNU/Linux systems, | ||
| 17582 | ## configure gets the right answers, and that means *NOT* using flock. | ||
| 17583 | ## Using flock is guaranteed to be the wrong thing. See Debian Policy | ||
| 17584 | ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the | ||
| 17585 | ## Debian maintainer hasn't provided a clean fix for Emacs. | ||
| 17586 | ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and | ||
| 17587 | ## HAVE_MAILLOCK_H are defined, so the following appears to be the | ||
| 17588 | ## correct logic. -- fx | ||
| 17589 | ## We must check for HAVE_LIBLOCKFILE too, as movemail does. | ||
| 17590 | ## liblockfile is a Free Software replacement for libmail, used on | ||
| 17591 | ## Debian systems and elsewhere. -rfr. | ||
| 17592 | gnu-*) | ||
| 17593 | mail_lock="flock" | ||
| 17594 | if test $have_mail = yes || test $have_lockfile = yes; then | ||
| 17595 | test $ac_cv_header_maillock_h = yes && mail_lock=no | ||
| 17596 | fi | ||
| 17597 | ;; | ||
| 17598 | esac | ||
| 17599 | |||
| 17600 | BLESSMAIL_TARGET= | ||
| 17601 | case "$mail_lock" in | ||
| 17602 | flock) | ||
| 17603 | cat >>confdefs.h <<\_ACEOF | ||
| 17604 | #define MAIL_USE_FLOCK 1 | ||
| 17605 | _ACEOF | ||
| 17606 | ;; | ||
| 17607 | |||
| 17608 | lockf) | ||
| 17609 | cat >>confdefs.h <<\_ACEOF | ||
| 17610 | #define MAIL_USE_LOCKF 1 | ||
| 17611 | _ACEOF | ||
| 17612 | ;; | ||
| 17613 | |||
| 17614 | *) BLESSMAIL_TARGET="need-blessmail" ;; | ||
| 17615 | esac | ||
| 17616 | |||
| 17617 | |||
| 17618 | |||
| 17568 | 17619 | ||
| 17569 | 17620 | ||
| 17570 | 17621 | ||
diff --git a/src/config.in b/src/config.in index d9c80c8faaf..5fb0cd7d569 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -819,6 +819,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 819 | /* Define to unlink, rather than empty, mail spool after reading. */ | 819 | /* Define to unlink, rather than empty, mail spool after reading. */ |
| 820 | #undef MAIL_UNLINK_SPOOL | 820 | #undef MAIL_UNLINK_SPOOL |
| 821 | 821 | ||
| 822 | /* Define if the mailer uses flock to interlock the mail spool. */ | ||
| 823 | #undef MAIL_USE_FLOCK | ||
| 824 | |||
| 825 | /* Define if the mailer uses lockf to interlock the mail spool. */ | ||
| 826 | #undef MAIL_USE_LOCKF | ||
| 827 | |||
| 822 | /* Define to support MMDF mailboxes in movemail. */ | 828 | /* Define to support MMDF mailboxes in movemail. */ |
| 823 | #undef MAIL_USE_MMDF | 829 | #undef MAIL_USE_MMDF |
| 824 | 830 | ||