From 4995b4a7eebe3b9cd620b094cba5fbdc02c2f042 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 9 Oct 2010 12:24:45 +0200 Subject: Avoid compiling empty C files if NTLM is disabled. --- Makefile.am | 5 ++++- configure.ac | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 973bf400..3947beaf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -39,7 +39,10 @@ libfm_a_SOURCES= xmalloc.c base64.c rfc822.c report.c rfc2047e.c \ libesmtp/gethostbyname.h libesmtp/gethostbyname.c \ smbtypes.h fm_getaddrinfo.c tls.c rfc822valid.c \ xmalloc.h sdump.h sdump.c x509_name_match.c \ - fm_strl.h ntlmsubr.c + fm_strl.h +if NTLM_ENABLE +libfm_a_SOURCES += ntlmsubr.c +endif libfm_a_LIBADD= $(EXTRAOBJ) libfm_a_DEPENDENCIES= $(EXTRAOBJ) LDADD = libfm.a @LIBINTL@ $(LIBOBJS) diff --git a/configure.ac b/configure.ac index c768244f..37103116 100644 --- a/configure.ac +++ b/configure.ac @@ -443,6 +443,7 @@ AC_ARG_ENABLE(NTLM, [with_NTLM=$enableval], [with_NTLM=no]) test "$with_NTLM" = "yes" && AC_DEFINE(NTLM_ENABLE,1,Define if you want NTLM authentication) +AM_CONDITIONAL(NTLM_ENABLE, test "$with_NTLM" = yes) ### use option --enable-SDPS to compile in the SDPS support AC_ARG_ENABLE(SDPS, -- cgit v1.2.3