[dovecot-cvs] dovecot configure.in,1.277.2.24,1.277.2.25

cras at dovecot.org cras at dovecot.org
Thu Aug 3 01:39:20 EEST 2006


Update of /var/lib/cvs/dovecot
In directory talvi:/tmp/cvs-serv10886

Modified Files:
      Tag: branch_1_0
	configure.in 
Log Message:
Added --with-linux-quota configure option to specify which Linux quota
version to use. Don't bother looking into struct dqblk to see if curblocks
or curspace field exists, we can figure it out from the quota version. If
quotactl() returns EINVAL, it could have been because wrong quota version
was used, so give a friendly message suggesting to look at
--with-linux-quota.



Index: configure.in
===================================================================
RCS file: /var/lib/cvs/dovecot/configure.in,v
retrieving revision 1.277.2.24
retrieving revision 1.277.2.25
diff -u -d -r1.277.2.24 -r1.277.2.25
--- configure.in	2 Aug 2006 21:22:33 -0000	1.277.2.24
+++ configure.in	2 Aug 2006 22:39:18 -0000	1.277.2.25
@@ -66,6 +66,12 @@
 	notify=$withval,
 	notify=)
 
+AC_ARG_WITH(linux-quota,
+[  --with-linux-quota=n    Linux quota version to use (default: system's)],
+	AC_DEFINE_UNQUOTED(_LINUX_QUOTA_VERSION, $withval,
+		[Linux quota version to use])
+)
+
 AC_ARG_WITH(passwd,
 [  --with-passwd           Build with /etc/passwd support (default)],
 	if test x$withval = xno; then
@@ -1126,36 +1132,6 @@
   AC_MSG_RESULT(no)
 ])
 
-dnl * Check if we have struct dqblk.dqb_curblocks
-AC_MSG_CHECKING([if struct dqblk.dqb_curblocks exists])
-AC_TRY_COMPILE([
-  #include <sys/types.h>
-  #include "$srcdir/src/plugins/quota/quota-fs.h"
-], [
-  struct dqblk dqblk;
-  unsigned int x = dqblk.dqb_curblocks;
-], [
-  AC_DEFINE(HAVE_STRUCT_DQBLK_CURBLOCKS,, Define if struct sqblk.dqb_curblocks exists)
-  AC_MSG_RESULT(yes)
-], [
-  AC_MSG_RESULT(no)
-])
-
-dnl * Check if we have struct dqblk.dqb_curspace
-AC_MSG_CHECKING([if struct dqblk.dqb_curspace exists])
-AC_TRY_COMPILE([
-  #include <sys/types.h>
-  #include "$srcdir/src/plugins/quota/quota-fs.h"
-], [
-  struct dqblk dqblk;
-  unsigned int x = dqblk.dqb_curspace;
-], [
-  AC_DEFINE(HAVE_STRUCT_DQBLK_CURSPACE,, Define if struct sqblk.dqb_curspace exists)
-  AC_MSG_RESULT(yes)
-], [
-  AC_MSG_RESULT(no)
-])
-
 dnl * Check if we have Q_QUOTACTL ioctl (Solaris)
 AC_MSG_CHECKING([if struct Q_QUOTACTL ioctl exists])
 AC_TRY_COMPILE([



More information about the dovecot-cvs mailing list