]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dovecot.m4: Default dovecotdir to $prefix/lib/dovecot/
authorTimo Sirainen <tss@iki.fi>
Thu, 18 Feb 2010 07:48:56 +0000 (09:48 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 18 Feb 2010 07:48:56 +0000 (09:48 +0200)
--HG--
branch : HEAD

dovecot.m4

index 030ade1822953ecf14ad4b9b562a06dc539c57bf..735d4885a0905b904a127c3ad8c168e5e2373bf9 100644 (file)
@@ -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"])