From 417f187645de49ab35d2918c3ca0185a452e32b1 Mon Sep 17 00:00:00 2001 From: Dan Sledz Date: Sun, 16 Nov 2008 17:40:03 -0800 Subject: Allow SYSLOG_FACILITY to be modified with a new configure option called --with-syslog-facility --- source3/configure.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source3') diff --git a/source3/configure.in b/source3/configure.in index 9214d031b3..90339d770c 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -4368,6 +4368,22 @@ AC_ARG_WITH(syslog, AC_MSG_RESULT(no) ) +################################################# +# check for custom syslog facility +AC_MSG_CHECKING(whether to use a custom syslog facility) +AC_ARG_WITH(syslog-facility, +[AS_HELP_STRING([--with-syslog-facility], [Use a custom syslog facility (default=none)])], +[ + if test "$withval" = "no" ; then + AC_MSG_ERROR([argument to --with-syslog-facility must be a string]) + else + if test "$withval" != "yes" ; then + syslog_facility="$withval" + AC_DEFINE_UNQUOTED(SYSLOG_FACILITY,$syslog_facility, [syslog facility to log to]) + fi + fi +]) + ################################################# # check for experimental disk-quotas support -- cgit