Since 4.03 release, all executables are linked to ldap library, altough this is required only for warnquota executable.
The reason is empty if-found action at ldap AC_CHECK_LIB check:
AC_CHECK_LIB([ldap], [ldap_initialize], [], [ build_ldap=no AS_IF([test "x$enable_ldapmail" = "xyes"], [ AC_MSG_ERROR([LDAP support required but library not found.]); ]) ])
I though it is a bug in my Autoconf, by it seems to be a feature. See https://bugzilla.redhat.com/show_bug.cgi?id=1296455 for more details.
I corrected it by using [:;], but recommend fix is probably move the folloing AS_IF body there.
Anonymous
Thanks for report! I have fixed the problem by moving the AS_IF body instead of the empty action-if-found.