]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
configure: Allow --with-linux-quota=n to be only 1 or 2.
authorTimo Sirainen <tss@iki.fi>
Fri, 7 Aug 2009 20:54:36 +0000 (16:54 -0400)
committerTimo Sirainen <tss@iki.fi>
Fri, 7 Aug 2009 20:54:36 +0000 (16:54 -0400)
--HG--
branch : HEAD

configure.in

index f77109a5b51fa3a625976ed0ce32d0d2703b05f1..f2e877f970454181701408e053f2b60ba61ceef3 100644 (file)
@@ -64,6 +64,9 @@ AC_ARG_WITH(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])
 )