[dovecot-cvs] dovecot configure.in,1.297,1.298

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


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

Modified Files:
	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.297
retrieving revision 1.298
diff -u -d -r1.297 -r1.298
--- configure.in	30 Jul 2006 23:12:51 -0000	1.297
+++ configure.in	2 Aug 2006 22:39:50 -0000	1.298
@@ -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
@@ -1135,36 +1141,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