dovecot: change LDAP select logic
authorLucian Cristian <lucian.cristian@gmail.com>
Tue, 7 Mar 2017 23:40:15 +0000 (01:40 +0200)
committerLucian Cristian <lucian.cristian@gmail.com>
Tue, 7 Mar 2017 23:40:15 +0000 (01:40 +0200)
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
mail/dovecot/Makefile

index aad6e685352eb151c981b6cef45131e2621ba408..fdc5dfbe173162e1eec661cd9420dc454e6f52fa 100644 (file)
@@ -56,15 +56,8 @@ CONFIGURE_ARGS += \
        --with-notify=dnotify \
        --without-lzma \
        --without-lz4 \
-       --with-icu=no
-
-ifneq ($(strip $(CONFIG_DOVECOT_LDAP)),)
-  CONFIGURE_ARGS+= \
-       --with-ldap=yes
-else
-  CONFIGURE_ARGS+= \
-       --with-ldap=no
-endif
+       --with-icu=no \
+       $(if $(CONFIG_DOVECOT_LDAP),--with-ldap=yes,--with-ldap=no)
 
 CONFIGURE_VARS += \
        RPCGEN= \