drop libwrap.
This commit is contained in:
parent
36e591a193
commit
94e1f2bc05
1 changed files with 0 additions and 39 deletions
|
|
@ -600,8 +600,6 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
|
|||
[AC_MSG_RESULT(no)
|
||||
AC_DEFINE(SNPRINTF_CONST, [/* not const */])])
|
||||
|
||||
AC_ARG_WITH(libwrap,[ --with-libwrap use tcp wrappers [default=no]], , wrap_ok=no)
|
||||
|
||||
# Check for missing getpeereid (or equiv) support
|
||||
NO_PEERCHECK=""
|
||||
if test "x$ac_cv_func_getpeereid" != "xyes" ; then
|
||||
|
|
@ -750,43 +748,6 @@ AC_ARG_ENABLE(demo,
|
|||
AM_CONDITIONAL(BUILDABLE_SJ3DEMO, test x$enable_demo = xyes)
|
||||
AC_MSG_RESULT($enable_demo)
|
||||
|
||||
WRAP_LIB=
|
||||
if test "x$with_libwrap" = "xyes"; then
|
||||
sj3_save_LIBS="$LIBS"
|
||||
LIBS="$LIBS -lwrap"
|
||||
|
||||
AC_MSG_CHECKING([for tcp_wrapper library and headers])
|
||||
|
||||
wrap_ok=no
|
||||
AC_TRY_LINK(
|
||||
[#include <stdio.h>
|
||||
#include <tcpd.h>
|
||||
#include <syslog.h>
|
||||
int allow_severity = LOG_INFO;
|
||||
int deny_severity = LOG_WARNING;],
|
||||
[struct request_info *request; return hosts_access (request);],
|
||||
[AC_DEFINE(USE_LIBWRAP, 1, [Define if you have the tcp_wrapper library.])
|
||||
WRAP_LIB="-lwrap"
|
||||
wrap_ok=yes],
|
||||
[LIBS="$LIBS -lnsl"
|
||||
AC_TRY_LINK(
|
||||
[#include <stdio.h>
|
||||
#include <tcpd.h>
|
||||
#include <syslog.h>
|
||||
int allow_severity = LOG_INFO;
|
||||
int deny_severity = LOG_WARNING;],
|
||||
[struct request_info *request; return hosts_access (request);],
|
||||
|
||||
[AC_DEFINE(USE_LIBWRAP, 1, [Define if you have the tcp_wrapper library.])
|
||||
WRAP_LIB="-lwrap -lnsl"
|
||||
wrap_ok=yes])])
|
||||
|
||||
AC_MSG_RESULT($wrap_ok)
|
||||
|
||||
LIBS="$sj3_save_LIBS"
|
||||
fi
|
||||
AC_SUBST(WRAP_LIB)
|
||||
|
||||
AC_ARG_WITH(external-lua,
|
||||
AS_HELP_STRING([--with-external-lua], [Use external lua library,
|
||||
@<:@default=no@:>@]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue