dovecot-2.0: dovecot.m4: Default dovecotdir to $prefix/lib/dovecot/

dovecot at dovecot.org dovecot at dovecot.org
Thu Feb 18 09:49:02 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/912c132337ed
changeset: 10755:912c132337ed
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 18 09:48:56 2010 +0200
description:
dovecot.m4: Default dovecotdir to $prefix/lib/dovecot/

diffstat:

 dovecot.m4 |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r c5cbc99f4627 -r 912c132337ed dovecot.m4
--- a/dovecot.m4	Thu Feb 18 09:48:35 2010 +0200
+++ b/dovecot.m4	Thu Feb 18 09:48:56 2010 +0200
@@ -28,7 +28,11 @@
 AC_DEFUN([DC_DOVECOT],[
 	AC_ARG_WITH(dovecot,
 		AS_HELP_STRING([--with-dovecot=DIR],[Dovecot base directory [LIBDIR/dovecot]]),
-			[ dovecotdir="$withval" ], [ dovecotdir="${libdir}"/dovecot ]
+			[ dovecotdir="$withval" ], [
+			  dc_prefix=$prefix
+			  test "x$dc_prefix" = xNONE && dc_prefix=$ac_default_prefix
+			  dovecotdir="$dc_prefix/lib/dovecot"
+			]
 	)
 
 	AC_MSG_CHECKING([for dovecot-config in "$dovecotdir"])


More information about the dovecot-cvs mailing list