|
Revision 1147
(checked in by pvanhoof, 2 years ago)
|
Build environment improvements
|
| Line | |
|---|
| 1 |
AC_DEFUN([AC_TNY_FILELOCK_CHECK], |
|---|
| 2 |
[ |
|---|
| 3 |
|
|---|
| 4 |
AC_ARG_ENABLE(dot-locking, |
|---|
| 5 |
[ --enable-dot-locking=[yes/no] Enable support for locking mail files with dot locking],,enable_dot_locking=yes) |
|---|
| 6 |
if test $os_win32 != yes -a "x$enable_dot_locking" = "xyes"; then |
|---|
| 7 |
AC_DEFINE(USE_DOT,1,[Define to use dot locking for mbox files]) |
|---|
| 8 |
msg_dot=yes |
|---|
| 9 |
else |
|---|
| 10 |
msg_dot=no |
|---|
| 11 |
fi |
|---|
| 12 |
|
|---|
| 13 |
AC_ARG_ENABLE(file-locking, |
|---|
| 14 |
[ --enable-file-locking=[fcntl/flock/no] Enable support for locking mail files with file locking],,enable_file_locking=fcntl) |
|---|
| 15 |
if test $os_win32 != yes -a "x$enable_file_locking" = "xfcntl"; then |
|---|
| 16 |
AC_DEFINE(USE_FCNTL,1,[Define to use fcntl locking for mbox files]) |
|---|
| 17 |
msg_file=fcntl |
|---|
| 18 |
else |
|---|
| 19 |
if test $os_win32 != yes -a "x$enable_file_locking" = "xflock"; then |
|---|
| 20 |
AC_DEFINE(USE_FLOCK,1,[Define to use flock locking for mbox files]) |
|---|
| 21 |
msg_file=flock |
|---|
| 22 |
else |
|---|
| 23 |
msg_file=no |
|---|
| 24 |
fi |
|---|
| 25 |
fi |
|---|
| 26 |
|
|---|
| 27 |
]) |
|---|
| 28 |
|
|---|