Code

write_riemann: only compile .proto files when enabled
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 9 Aug 2015 13:52:33 +0000 (15:52 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 28 Nov 2015 12:10:28 +0000 (13:10 +0100)
If the write_riemann plugin is not enabled there's no
need to compile the protobuf files.

src/Makefile.am

index 8674658e31d2a422d881c1da67f4647a622e0cb4..52210da2a42144af51ce756d1a406ed371764fb9 100644 (file)
@@ -1378,7 +1378,7 @@ endif
 
 # Protocol buffer for the "write_riemann" plugin.
 EXTRA_DIST += riemann.proto
-if HAVE_PROTOC_C
+if BUILD_PLUGIN_WRITE_RIEMANN
 CLEANFILES += riemann.pb-c.c riemann.pb-c.h
 
 BUILT_SOURCES += riemann.pb-c.c riemann.pb-c.h