From c01aa53e6a972cd83e866b6b2e390449f2a59658 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 28 Dec 2008 19:48:53 +0100 Subject: log: support syslog() Allow logging to syslog if log_file is configured to "syslog". --- configure.ac | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 37085d475..864eb1184 100644 --- a/configure.ac +++ b/configure.ac @@ -54,6 +54,21 @@ if test -z "$prefix" || test "x$prefix" = xNONE; then fi +dnl +dnl libc features +dnl + +AC_CHECK_FUNCS(syslog) +if test $ac_cv_func_syslog = no; then + # syslog is not in the default libraries. See if it's in some other. + for lib in bsd socket inet; do + AC_CHECK_LIB($lib, syslog, + [AC_DEFINE(HAVE_SYSLOG) + LIBS="$LIBS -l$lib"; break]) + done +fi + + dnl dnl build options dnl -- cgit v1.2.3