From: Dan Sledz Date: Mon, 17 Nov 2008 01:40:03 +0000 (-0800) Subject: Allow SYSLOG_FACILITY to be modified with a new configure option called --with-syslog... X-Git-Tag: samba-4.0.0alpha6~480^2~123 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=417f187645de49ab35d2918c3ca0185a452e32b1;p=thirdparty%2Fsamba.git Allow SYSLOG_FACILITY to be modified with a new configure option called --with-syslog-facility --- diff --git a/source3/configure.in b/source3/configure.in index 9214d031b3d..90339d770c3 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