From: Timo Sirainen Date: Thu, 18 Feb 2010 07:48:56 +0000 (+0200) Subject: dovecot.m4: Default dovecotdir to $prefix/lib/dovecot/ X-Git-Tag: 2.0.beta3~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13f55a6c737acbf801ce4d85f3f654a08b3bb1d0;p=thirdparty%2Fdovecot%2Fcore.git dovecot.m4: Default dovecotdir to $prefix/lib/dovecot/ --HG-- branch : HEAD --- diff --git a/dovecot.m4 b/dovecot.m4 index 030ade1822..735d4885a0 100644 --- a/dovecot.m4 +++ b/dovecot.m4 @@ -28,7 +28,11 @@ AC_DEFUN([AX_SUBST_L],[ 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"])