[PATCH] afsmtp: Fix afsmtp linking when configured with --with-libesmtp
In case configure received a --with-libesmtp=/path option, we forgot to add -lesmtp to LIBESMTP_LIBS, which resulted in afsmtp getting compiled, but not linked to libesmtp, which is obviously not desirable. This patch fixes that, and adds the -lesmtp. Reported-by: Peter Czanik <czanik@balabit.hu> Signed-off-by: Gergely Nagy <algernon@balabit.hu> --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 2d56bbd..03cc76c 100644 --- a/configure.in +++ b/configure.in @@ -815,7 +815,7 @@ if test "x$enable_smtp" != "xno" && test "x$with_libesmtp" != "no"; then CPPFLAGS="$CPPFLAGS -I$with_libesmtp/include" LDFLAGS="$LDFLAGS -L$with_libesmtp/lib" AC_CHECK_HEADER(libesmtp.h, [LIBESMTP_CFLAGS="-I$with_libesmtp/include" - LIBESMTP_LIBS="-L$with_libesmtp/lib"], [libesmtp=no]) + LIBESMTP_LIBS="-L$with_libesmtp/lib -lesmtp"], [libesmtp=no]) CPPFLAGS="$CPPFLAGS_SAVE" LDFLAGS="$LDFLAGS_SAVE" else -- 1.7.10
participants (1)
-
Gergely Nagy