summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-01-22 14:12:54 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-01-22 14:12:54 +0200
commitbfd9e34141b9660f563d917fdaccc975d0c69f17 (patch)
tree23aa159033e2d5823dbd60847cec4c352a38cade /configure.ac
parent59b0dfa5680b2da201cf8bdfbd123133073829f3 (diff)
downloadmailutils-bfd9e34141b9660f563d917fdaccc975d0c69f17.tar.gz
mailutils-bfd9e34141b9660f563d917fdaccc975d0c69f17.tar.bz2
Fix build without tcpwrappers
* configure.ac (MU_TCPWRAP_LIBRARIES): New subst variable. Always includes lib/libmutcpwrap.a. If libwrap is present on the system and required, it is included as well * imap4d/Makefile.am (TCPWRAP_LIBRARIES): Replace with MU_TCPWRAP_LIBRARIES. * maidag/Makefile.am: Likewise. * pop3d/Makefile.am: Likewise.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index c4479744c..d473f802b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -222,10 +222,14 @@ esac
LIBS=$saved_LIBS
if test "$status_tcpwrap" = "yes"; then
- AC_SUBST(TCPWRAP_LIBRARIES, "\${top_builddir}/lib/libmutcpwrap.a $TCPWRAP_LIBRARIES -lwrap")
+ TCPWRAP_LIBRARIES="$TCPWRAP_LIBRARIES -lwrap"
AC_DEFINE_UNQUOTED(WITH_LIBWRAP, 1,
[Define to 1 to use tcp wrappers.])
+else
+ # Provide placeholder functions only
+ TCPWRAP_LIBRARIES=
fi
+AC_SUBST([MU_TCPWRAP_LIBRARIES], "\${top_builddir}/lib/libmutcpwrap.a $TCPWRAP_LIBRARIES")
AC_ARG_ENABLE([pthread],
AC_HELP_STRING([--disable-pthread],

Return to:

Send suggestions and report system problems to the System administrator.