From 1edbe3e599e3318f89e0ee57d83640c7d02f9079 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 26 Mar 2007 11:02:20 +0200 Subject: [PATCH] logfile plugin: Renamed the `stderr' to `logfile'. --- configure.in | 4 ++-- src/Makefile.am | 16 ++++++++-------- src/{stderr.c => logfile.c} | 0 3 files changed, 10 insertions(+), 10 deletions(-) rename src/{stderr.c => logfile.c} (100%) diff --git a/configure.in b/configure.in index a155d168..929b3d45 100644 --- a/configure.in +++ b/configure.in @@ -1217,7 +1217,7 @@ AC_COLLECTD([ping], [disable], [module], [ping statistics]) AC_COLLECTD([processes], [disable], [module], [processes statistics]) AC_COLLECTD([sensors], [disable], [module], [lm_sensors statistics]) AC_COLLECTD([serial], [disable], [module], [serial statistics]) -AC_COLLECTD([stderr], [disable], [module], [stderr log facility]) +AC_COLLECTD([logfile], [disable], [module], [logfile log facility]) AC_COLLECTD([swap], [disable], [module], [swap statistics]) AC_COLLECTD([syslog], [disable], [module], [syslog log facility]) AC_COLLECTD([tape], [disable], [module], [tape statistics]) @@ -1280,7 +1280,7 @@ Configuration: processes . . . . . $enable_processes sensors . . . . . . $enable_sensors serial . . . . . . $enable_serial - stderr . . . . . . $enable_stderr + logfile . . . . . . $enable_logfile swap . . . . . . . $enable_swap syslog . . . . . . $enable_syslog tape . . . . . . . $enable_tape diff --git a/src/Makefile.am b/src/Makefile.am index 707969a0..50432d30 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -272,6 +272,14 @@ load_la_LDFLAGS += -lstatgrab endif endif +if BUILD_MODULE_LOGFILE +pkglib_LTLIBRARIES += logfile.la +logfile_la_SOURCES = logfile.c +logfile_la_LDFLAGS = -module -avoid-version +collectd_LDADD += "-dlopen" logfile.la +collectd_DEPENDENCIES += logfile.la +endif + if BUILD_MODULE_MBMON pkglib_LTLIBRARIES += mbmon.la mbmon_la_SOURCES = mbmon.c @@ -432,14 +440,6 @@ swap_la_LDFLAGS += -lstatgrab endif endif -if BUILD_MODULE_STDERR -pkglib_LTLIBRARIES += stderr.la -stderr_la_SOURCES = stderr.c -stderr_la_LDFLAGS = -module -avoid-version -collectd_LDADD += "-dlopen" stderr.la -collectd_DEPENDENCIES += stderr.la -endif - if BUILD_MODULE_SYSLOG pkglib_LTLIBRARIES += syslog.la syslog_la_SOURCES = syslog.c diff --git a/src/stderr.c b/src/logfile.c similarity index 100% rename from src/stderr.c rename to src/logfile.c -- 2.30.2