summaryrefslogtreecommitdiff
path: root/libraries/base/configure.ac
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-10-26 10:40:11 -0400
committerBen Gamari <ben@smart-cactus.org>2017-10-26 11:10:09 -0400
commit1cd7473f8e800a99e95180579480a0e62e98040b (patch)
tree5ea75778771ac0089a93f1e2cf3e52e1e9fcf526 /libraries/base/configure.ac
parent2f11b17af7ef8f1b5f518dff7dbae6173e7d0515 (diff)
downloadhaskell-wip/nfs-locking.tar.gz
base: Implement file locking in terms of POSIX lockswip/nfs-locking
Hopefully these are more robust to NFS malfunction than BSD flock-style locks. See #13945.
Diffstat (limited to 'libraries/base/configure.ac')
-rw-r--r--libraries/base/configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/libraries/base/configure.ac b/libraries/base/configure.ac
index af041a7ad5..69ea800a7f 100644
--- a/libraries/base/configure.ac
+++ b/libraries/base/configure.ac
@@ -69,7 +69,12 @@ if test "$ac_cv_header_poll_h" = yes && test "$ac_cv_func_poll" = yes; then
AC_DEFINE([HAVE_POLL], [1], [Define if you have poll support.])
fi
-#flock
+# Linux open file description locks
+AC_CHECK_DECL([F_OFD_SETLK], [
+ AC_DEFINE([HAVE_OFD_LOCKING], [1], [Define if you have open file descriptor lock support.])
+])
+
+# flock
AC_CHECK_FUNCS([flock])
if test "$ac_cv_header_sys_file_h" = yes && test "$ac_cv_func_flock" = yes; then
AC_DEFINE([HAVE_FLOCK], [1], [Define if you have flock support.])