From: Florian Forster Date: Mon, 5 May 2008 12:24:42 +0000 (+0200) Subject: build system: Fixed indentation and unconditionally declare CFLAGS and LIBADD. X-Git-Tag: collectd-4.4.0~16 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c87e3fc2bc4dc41e9c36371a1d421c6f5b4a3c60;p=collectd.git build system: Fixed indentation and unconditionally declare CFLAGS and LIBADD. --- diff --git a/configure.in b/configure.in index 7477f419..d817becc 100644 --- a/configure.in +++ b/configure.in @@ -2337,7 +2337,7 @@ then plugin_load="yes" plugin_memory="yes" plugin_swap="yes" - plugin_users="yes" + plugin_users="yes" fi if test "x$with_libcurl" = "xyes" && test "x$with_libxml2" = "xyes" diff --git a/src/Makefile.am b/src/Makefile.am index 2618ba9e..1f7caef7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -145,7 +145,9 @@ endif if BUILD_PLUGIN_CPU pkglib_LTLIBRARIES += cpu.la cpu_la_SOURCES = cpu.c +cpu_la_CFLAGS = cpu_la_LDFLAGS = -module -avoid-version +cpu_la_LIBADD = if BUILD_WITH_LIBKSTAT cpu_la_LDFLAGS += -lkstat endif @@ -153,8 +155,8 @@ if BUILD_WITH_LIBDEVINFO cpu_la_LDFLAGS += -ldevinfo endif if BUILD_WITH_LIBSTATGRAB -cpu_la_CFLAGS = $(BUILD_WITH_LIBSTATGRAB_CFLAGS) -cpu_la_LIBADD = $(BUILD_WITH_LIBSTATGRAB_LDFLAGS) +cpu_la_CFLAGS += $(BUILD_WITH_LIBSTATGRAB_CFLAGS) +cpu_la_LIBADD += $(BUILD_WITH_LIBSTATGRAB_LDFLAGS) endif collectd_LDADD += "-dlopen" cpu.la collectd_DEPENDENCIES += cpu.la @@ -187,7 +189,9 @@ endif if BUILD_PLUGIN_DISK pkglib_LTLIBRARIES += disk.la disk_la_SOURCES = disk.c +disk_la_CFLAGS = disk_la_LDFLAGS = -module -avoid-version +disk_la_LIBADD = if BUILD_WITH_LIBKSTAT disk_la_LDFLAGS += -lkstat endif @@ -198,8 +202,8 @@ if BUILD_WITH_LIBIOKIT disk_la_LDFLAGS += -lIOKit endif if BUILD_WITH_LIBSTATGRAB -disk_la_CFLAGS = $(BUILD_WITH_LIBSTATGRAB_CFLAGS) -disk_la_LIBADD = $(BUILD_WITH_LIBSTATGRAB_LDFLAGS) +disk_la_CFLAGS += $(BUILD_WITH_LIBSTATGRAB_CFLAGS) +disk_la_LIBADD += $(BUILD_WITH_LIBSTATGRAB_LDFLAGS) endif collectd_LDADD += "-dlopen" disk.la collectd_DEPENDENCIES += disk.la @@ -641,10 +645,12 @@ endif if BUILD_PLUGIN_USERS pkglib_LTLIBRARIES += users.la users_la_SOURCES = users.c +users_la_CFLAGS = users_la_LDFLAGS = -module -avoid-version +users_la_LIBADD = if BUILD_WITH_LIBSTATGRAB -users_la_CFLAGS = $(BUILD_WITH_LIBSTATGRAB_CFLAGS) -users_la_LIBADD = $(BUILD_WITH_LIBSTATGRAB_LDFLAGS) +users_la_CFLAGS += $(BUILD_WITH_LIBSTATGRAB_CFLAGS) +users_la_LIBADD += $(BUILD_WITH_LIBSTATGRAB_LDFLAGS) endif collectd_LDADD += "-dlopen" users.la collectd_DEPENDENCIES += users.la