produces a library that still does not have SMTP support. Grep for "built without SMTP" and the library has it when it shouldn't.
The Makefile has:
DEFS = ...... -DHAVE_LIBESMTP=1
LIBS = -lesmtp -lesmtp
However, smtpappender.cpp is looking for LOG4CXX_HAVE_LIBESMTP and LOG4CXX_HAS_LIBESMTP. Changing all of these to HAVE_LIBESMTP allows proper compilation, but I am not sure what the intended naming was. HAS_LIBESMTP is only defined in the Makefile and not sent to the compiler.