]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
configure: Removed --with-linux-quota parameter.
authorTimo Sirainen <tss@iki.fi>
Fri, 7 Aug 2009 21:57:36 +0000 (17:57 -0400)
committerTimo Sirainen <tss@iki.fi>
Fri, 7 Aug 2009 21:57:36 +0000 (17:57 -0400)
It was useful only in some broken setups and even there it can be specified
with CPPFLAGS instead.

--HG--
branch : HEAD

configure.in
src/plugins/quota/quota-fs.c

index f2e877f970454181701408e053f2b60ba61ceef3..76b816af0178eedb6da61e74be58bbb231bd859f 100644 (file)
@@ -62,15 +62,6 @@ AC_ARG_WITH(notify,
        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(nss,
 [  --with-nss              Build with NSS module support (auto)],
   TEST_WITH(nss, $withval),
index 6d757735cb9e9120fc32de4e406cb6cbbdc6f676..c42dad9429c3c1c19fb21ab666d6952a780469b6 100644 (file)
@@ -562,8 +562,9 @@ fs_quota_get_linux(struct fs_quota_root *root, bool group, bool bytes,
                        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;
                }