dovecot-2.0: configure: Don't reorder --with-storages values.

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 15 18:35:16 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/6dab5db6fba6
changeset: 12963:6dab5db6fba6
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 15 18:35:07 2011 +0200
description:
configure: Don't reorder --with-storages values.
The ordering is used for storage autodetection.

diffstat:

 configure.in |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r ddbf1bf524cc -r 6dab5db6fba6 configure.in
--- a/configure.in	Tue Nov 15 18:31:34 2011 +0200
+++ b/configure.in	Tue Nov 15 18:35:07 2011 +0200
@@ -239,13 +239,19 @@
   want_gc=no)
 
 AC_ARG_WITH(storages,
-AS_HELP_STRING([--with-storages], [Build with specified mail storage formats (maildir mbox sdbox mdbox cydir)]), [
+AS_HELP_STRING([--with-storages], [Build with specified mail storage formats (mdbox sdbox maildir mbox cydir)]), [
 	if test "$withval" = "yes" || test "$withval" = "no"; then
 		AC_MSG_ERROR([--with-storages needs storage list as parameter])
 	fi
 	mail_storages="shared `echo "$withval"|sed 's/,/ /g'`" ],
-	mail_storages="shared maildir mbox sdbox mdbox cydir")
+	mail_storages="shared mdbox sdbox maildir mbox cydir")
 AC_SUBST(mail_storages)
+mail_storages="$mail_storages raw"
+# drop duplicates
+duplicates=`(for i in $mail_storages; do echo $i; done)|sort|uniq -d|xargs echo`
+if test "$duplicates" != ""; then
+  AC_ERROR([Duplicate --with-storages: $duplicates])
+fi
 
 DC_DOVECOT_MODULEDIR
 
@@ -2436,9 +2442,6 @@
 STORAGE_LIB='$(top_builddir)/src/lib-storage/libdovecot-storage.la'
 
 LINKED_STORAGE_LIBS=
-mail_storages="$mail_storages raw"
-# drop duplicates
-mail_storages=`(for i in $mail_storages; do echo $i; done)|sort|uniq|xargs echo`
 have_sdbox=no
 for storage in $mail_storages; do
   LINKED_STORAGE_LIBS="$LINKED_STORAGE_LIBS `eval echo \\$${storage}_libs`"


More information about the dovecot-cvs mailing list