-dnl $Id: configure.in,v 1.179.2.3.2.7 2003-10-17 00:01:10 didg Exp $
+dnl $Id: configure.in,v 1.179.2.3.2.8 2003-10-26 10:33:37 didg Exp $
dnl configure.in for netatalk
AC_INIT(bin/adv1tov2/adv1tov2.c)
fi
)
+AC_ARG_ENABLE(locking,
+ [ --disable-locking disable system locking],
+ if test "$enableval" = "no"; then
+ AC_DEFINE(DISABLE_LOCKING, 1, [Define if system (fcntl) locking should be disabled])
+ AC_MSG_RESULT([disabling system locking])
+ fi
+)
+
#AC_ARG_WITH(tcp-wrappers,
# [ --with-tcp-wrappers enable TCP wrappers support],[
# AC_CHECK_HEADERS(tcpd.h)
/*
- * $Id: ad_lock.c,v 1.11 2003-02-16 12:35:05 didg Exp $
+ * $Id: ad_lock.c,v 1.11.6.1 2003-10-26 10:33:37 didg Exp $
*
* Copyright (c) 1998,1999 Adrian Sun (asun@zoology.washington.edu)
* All Rights Reserved. See COPYRIGHT for more information.
((type) == ADLOCK_WR ? LOCK_EX : \
((type) == ADLOCK_CLR ? LOCK_UN : -1)))
+#ifdef DISABLE_LOCKING
+#define fcntl(a, b, c ) (0)
+#endif
+
/* ----------------------- */
static int XLATE_FCNTL_LOCK(int type)
{