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),
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;
}