dovecot-2.0: configure: --with-systemdsystemunitdir wasn't worki...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Nov 18 20:49:38 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/e0b42fcf31a1
changeset: 12442:e0b42fcf31a1
user: Timo Sirainen <tss at iki.fi>
date: Thu Nov 18 18:49:34 2010 +0000
description:
configure: --with-systemdsystemunitdir wasn't working right.
diffstat:
configure.in | 23 ++++++++++++++---------
1 files changed, 14 insertions(+), 9 deletions(-)
diffs (40 lines):
diff -r ae5b5961a6a7 -r e0b42fcf31a1 configure.in
--- a/configure.in Thu Nov 18 18:38:08 2010 +0000
+++ b/configure.in Thu Nov 18 18:49:34 2010 +0000
@@ -219,6 +219,20 @@
)
AC_SUBST(statedir)
+AC_ARG_WITH([systemdsystemunitdir],
+AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files (auto=detect)]), [
+ if test "$withval" = "auto"; then
+ systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
+ elif test "$withval" != "no"; then
+ systemdsystemunitdir=$withval
+ fi
+], [])
+if test "$systemdsystemunitdir" != ""; then
+ AC_SUBST(systemdsystemunitdir)
+ AC_DEFINE(HAVE_SYSTEMD,, Define if you want to use systemd socket activation)
+fi
+AM_CONDITIONAL(BUILD_LUCENE, test "$systemdsystemunitdir" != "")
+
AC_ARG_WITH(gc,
AS_HELP_STRING([--with-gc], [Use Boehm garbage collector]),
TEST_WITH(gc, $withval),
@@ -2624,15 +2638,6 @@
AC_SUBST(RUN_TEST)
AC_SUBST(abs_top_builddir)
-AC_ARG_WITH([systemdsystemunitdir],
- AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
- [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
-if test "x$with_systemdsystemunitdir" != xno; then
- AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
- AC_DEFINE(HAVE_SYSTEMD,, Define if you want to use systemd socket activation)
-fi
-AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
-
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
More information about the dovecot-cvs
mailing list