As I am no automake expert, I basically copied the lines for collectd-nagios and changed them to collectd-flush. It works, but maybe there could be better ways to do it. I don't know. :)
As I said in the previous mail: If this message is not properly encoded as utf-8, something wrong must have happened with my mailer. If that's the case, I'm sorry. The only non-ascii character in the patch is the second character of my name, which is an å. Signed-off-by: HÃ¥kon J Dugstad Johnsen <[email protected]> --- src/Makefile.am | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 00d0e20..9d45920 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,7 +21,7 @@ AM_CPPFLAGS += -DPLUGINDIR='"${pkglibdir}"' AM_CPPFLAGS += -DPKGDATADIR='"${pkgdatadir}"' sbin_PROGRAMS = collectd collectdmon -bin_PROGRAMS = collectd-nagios +bin_PROGRAMS = collectd-nagios collectd-flush collectd_SOURCES = collectd.c collectd.h \ common.c common.h \ @@ -105,6 +105,19 @@ endif collectd_nagios_LDADD += libcollectdclient/libcollectdclient.la collectd_nagios_DEPENDENCIES = libcollectdclient/libcollectdclient.la + +collectd_flush_SOURCES = collectd-flush.c +collectd_flush_LDADD = +if BUILD_WITH_LIBSOCKET +collectd_flush_LDADD += -lsocket +endif +if BUILD_AIX +collectd_flush_LDADD += -lm +endif +collectd_flush_LDADD += libcollectdclient/libcollectdclient.la +collectd_flush_DEPENDENCIES = libcollectdclient/libcollectdclient.la + + pkglib_LTLIBRARIES = BUILT_SOURCES = -- 1.7.0.4 _______________________________________________ collectd mailing list [email protected] http://mailman.verplant.org/listinfo/collectd
