File: BB_ENABLE_REMOTE_SYSLOG.m4

package info (click to toggle)
log4cpp 1.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,444 kB
  • sloc: cpp: 6,715; sh: 3,670; ansic: 1,049; makefile: 295
file content (14 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
AC_DEFUN([BB_ENABLE_REMOTE_SYSLOG],
[
AC_ARG_ENABLE(remote-syslog, [  --disable-remote-syslog disables remote syslog appender], [], [ enable_remote_syslog=yes])

# for RemoteSyslogAppender
if test "x$enable_remote_syslog" = xyes; then
    AC_CHECK_LIB(socket,socket, LIBS="-lsocket $LIBS",,)
    AC_CHECK_LIB(nsl,gethostbyname, LIBS="-lnsl $LIBS",,)
else
    AC_DEFINE(DISABLE_REMOTE_SYSLOG,1,[define if RemoteSyslogAppender is disabled])
fi

AM_CONDITIONAL([DISABLE_REMOTE_SYSLOG], [test "x$enable_remote_syslog" != xyes])
])