Commit bfd9e341 bfd9e34141b9660f563d917fdaccc975d0c69f17 by Sergey Poznyakoff

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.
1 parent 59b0dfa5
...@@ -222,10 +222,14 @@ esac ...@@ -222,10 +222,14 @@ esac
222 LIBS=$saved_LIBS 222 LIBS=$saved_LIBS
223 223
224 if test "$status_tcpwrap" = "yes"; then 224 if test "$status_tcpwrap" = "yes"; then
225 AC_SUBST(TCPWRAP_LIBRARIES, "\${top_builddir}/lib/libmutcpwrap.a $TCPWRAP_LIBRARIES -lwrap") 225 TCPWRAP_LIBRARIES="$TCPWRAP_LIBRARIES -lwrap"
226 AC_DEFINE_UNQUOTED(WITH_LIBWRAP, 1, 226 AC_DEFINE_UNQUOTED(WITH_LIBWRAP, 1,
227 [Define to 1 to use tcp wrappers.]) 227 [Define to 1 to use tcp wrappers.])
228 else
229 # Provide placeholder functions only
230 TCPWRAP_LIBRARIES=
228 fi 231 fi
232 AC_SUBST([MU_TCPWRAP_LIBRARIES], "\${top_builddir}/lib/libmutcpwrap.a $TCPWRAP_LIBRARIES")
229 233
230 AC_ARG_ENABLE([pthread], 234 AC_ARG_ENABLE([pthread],
231 AC_HELP_STRING([--disable-pthread], 235 AC_HELP_STRING([--disable-pthread],
......
...@@ -79,7 +79,7 @@ imap4d_LDADD = \ ...@@ -79,7 +79,7 @@ imap4d_LDADD = \
79 ${MU_LIB_AUTH}\ 79 ${MU_LIB_AUTH}\
80 @MU_AUTHLIBS@ \ 80 @MU_AUTHLIBS@ \
81 ${MU_LIB_MAILUTILS}\ 81 ${MU_LIB_MAILUTILS}\
82 @SERV_AUTHLIBS@ @MU_COMMON_LIBRARIES@ @TCPWRAP_LIBRARIES@ 82 @SERV_AUTHLIBS@ @MU_COMMON_LIBRARIES@ @MU_TCPWRAP_LIBRARIES@
83 83
84 ## This kludge is necessary to correctly establish imap4d -> MU_AUTHLIBS 84 ## This kludge is necessary to correctly establish imap4d -> MU_AUTHLIBS
85 ## dependencies. Automake stupidly refuses to include them. 85 ## dependencies. Automake stupidly refuses to include them.
......
...@@ -51,7 +51,7 @@ maidag_LDADD = \ ...@@ -51,7 +51,7 @@ maidag_LDADD = \
51 @MU_COMMON_LIBRARIES@\ 51 @MU_COMMON_LIBRARIES@\
52 $(LIBMU_DBM)\ 52 $(LIBMU_DBM)\
53 @DBMLIBS@\ 53 @DBMLIBS@\
54 @TCPWRAP_LIBRARIES@ 54 @MU_TCPWRAP_LIBRARIES@
55 55
56 AM_CPPFLAGS = -I${top_srcdir} @MU_APP_COMMON_INCLUDES@ @GUILE_INCLUDES@ \ 56 AM_CPPFLAGS = -I${top_srcdir} @MU_APP_COMMON_INCLUDES@ @GUILE_INCLUDES@ \
57 @PYTHON_INCLUDES@ 57 @PYTHON_INCLUDES@
......
...@@ -61,7 +61,7 @@ pop3d_LDADD = \ ...@@ -61,7 +61,7 @@ pop3d_LDADD = \
61 @MU_COMMON_LIBRARIES@\ 61 @MU_COMMON_LIBRARIES@\
62 ${LIBMU_DBM}\ 62 ${LIBMU_DBM}\
63 @DBMLIBS@\ 63 @DBMLIBS@\
64 @TCPWRAP_LIBRARIES@ 64 @MU_TCPWRAP_LIBRARIES@
65 65
66 popauth_SOURCES = popauth.c 66 popauth_SOURCES = popauth.c
67 popauth_LDADD = \ 67 popauth_LDADD = \
......