[syslog-ng]Solaris 8 + syslog-ng-1.5.18

Balazs Scheidler bazsi@balabit.hu
Fri, 19 Jul 2002 11:17:59 +0200


On Fri, Jul 19, 2002 at 12:50:55PM +0400, Borsenkow Andrej wrote:
> 
> > 
> > you enabled tcp wrapper support, and the configure script didn't
> detect
> > -lwrap, you might want to change the generated Makefile, and add
> -lwrap to
> > LDFLAGS
> > 
> 
> Should not configure disable tcp_wrappers if -lwrap was not found? Or,
> better, if needed functions are missing?

it should, however as I don't use tcp wrappers at all, configure checks for
the tcp wrapper has some problems.

I've just commited a change, which should help some:

Index: configure.in
===================================================================
RCS file: /var/cvs/syslog-ng/syslog-ng/configure.in,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- configure.in	18 Jul 2002 13:18:01 -0000	1.51
+++ configure.in	19 Jul 2002 09:15:33 -0000	1.52
@@ -196,10 +196,13 @@
 
 AC_MSG_CHECKING(whether to enable TCP wrapper support)
 if test "x$enable_tcp_wrapper" = "xyes"; then
-	if test "x$ac_cv_header_tcpd_h" = "xyes"; then
+	if test "x$ac_cv_header_tcpd_h" = "xyes" -a "x$blb_cv_c_lwrap" = "xyes"; then
 		AC_DEFINE(ENABLE_TCP_WRAPPER)
 		enable_tcp_wrapper=yes
 		AC_MSG_RESULT(yes)
+	else
+		AC_MSG_RESULT(no)
+		enable_tcp_wrapper=no
 	fi
 else
 	AC_MSG_RESULT(no)

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1