From 680e2ad6b160069a20716fe4472567db8f2a358f Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 29 Dec 2001 03:04:06 +0000 Subject: [PATCH] - neue configure-Option "--enable-strict-rfc". --- configure.in | 13 ++++++++++++- src/ngircd/log.c | 10 +++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index ec0b68bd..c71d0678 100644 --- a/configure.in +++ b/configure.in @@ -9,9 +9,12 @@ # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste # der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS. # -# $Id: configure.in,v 1.10 2001/12/27 16:25:36 alex Exp $ +# $Id: configure.in,v 1.11 2001/12/29 03:04:06 alex Exp $ # # $Log: configure.in,v $ +# Revision 1.11 2001/12/29 03:04:06 alex +# - neue configure-Option "--enable-strict-rfc". +# # Revision 1.10 2001/12/27 16:25:36 alex # - neue configure-Option "--with-portab=DIR". # @@ -143,6 +146,14 @@ AC_ARG_ENABLE(syslog, ] ) +AC_ARG_ENABLE(strict-rfc, + [ --enable-strict-rfc strict RFC conformance, may break clients], + if test "$enableval" = "yes"; then + AC_DEFINE(STRICT_RFC, 1) + AC_MSG_RESULT([enabling strict RFC conformance]) + fi +) + AC_ARG_ENABLE(debug, [ --enable-debug show additional debug output], if test "$enableval" = "yes"; then diff --git a/src/ngircd/log.c b/src/ngircd/log.c index 94686c67..e33232aa 100644 --- a/src/ngircd/log.c +++ b/src/ngircd/log.c @@ -9,11 +9,14 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: log.c,v 1.10 2001/12/27 01:44:49 alex Exp $ + * $Id: log.c,v 1.11 2001/12/29 03:08:49 alex Exp $ * * log.c: Logging-Funktionen * * $Log: log.c,v $ + * Revision 1.11 2001/12/29 03:08:49 alex + * - neue configure-Option "--enable-strict-rfc". + * * Revision 1.10 2001/12/27 01:44:49 alex * - die Verwendung von syslog kann nun abgeschaltet werden. * @@ -77,6 +80,11 @@ GLOBAL VOID Log_Init( VOID ) else strcat( txt, "-" ); strcat( txt, "SYSLOG" ); #endif +#ifdef STRICT_RFC + if( txt[0] ) strcat( txt, "+" ); + else strcat( txt, "-" ); + strcat( txt, "RFC" ); +#endif #ifdef DEBUG if( txt[0] ) strcat( txt, "+" ); else strcat( txt, "-" ); -- 2.39.2