Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9297:2910aba191ec HEAD
configure: Removed --with-linux-quota parameter.
It was useful only in some broken setups and even there it can be specified
with CPPFLAGS instead.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 07 Aug 2009 17:57:04 -0400 |
parents | 22119217ab5d |
children | 76023d59c3b2 |
files | configure.in src/plugins/quota/quota-fs.c |
diffstat | 2 files changed, 3 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in Fri Aug 07 17:13:00 2009 -0400 +++ b/configure.in Fri Aug 07 17:57:04 2009 -0400 @@ -56,15 +56,6 @@ notify=$withval, notify=) -AC_ARG_WITH(linux-quota, -[ --with-linux-quota=n Linux quota version to use (default: system's)], - if test "$withval" != "1" && test "$withval" != "2"; then - AC_ERROR([--with-linux-quota can be only 1 or 2]) - fi - AC_DEFINE_UNQUOTED(_LINUX_QUOTA_VERSION, $withval, - [Linux quota version to use]) -) - AC_ARG_WITH(passwd, [ --with-passwd Build with /etc/passwd support (default)], TEST_WITH(passwd, $withval),
--- a/src/plugins/quota/quota-fs.c Fri Aug 07 17:13:00 2009 -0400 +++ b/src/plugins/quota/quota-fs.c Fri Aug 07 17:57:04 2009 -0400 @@ -562,8 +562,9 @@ if (errno == EINVAL) { i_error("Dovecot was compiled with Linux quota " "v%d support, try changing it " - "(--with-linux-quota configure option)", - _LINUX_QUOTA_VERSION); + "(CPPFLAGS=-D_LINUX_QUOTA_VERSION=%d configure)", + _LINUX_QUOTA_VERSION, + _LINUX_QUOTA_VERSION == 1 ? 2 : 1); } return -1; }