Code

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

src/Makefile.am

index 199adcfcafee10a08c8389689eadb7f92395934f..8674658e31d2a422d881c1da67f4647a622e0cb4 100644 (file)
@@ -1368,7 +1368,7 @@ EXTRA_DIST +=   collectd.conf.pod \
 
 # Protocol buffer for the "pinba" plugin.
 EXTRA_DIST += pinba.proto
-if HAVE_PROTOC_C
+if BUILD_PLUGIN_PINBA
 CLEANFILES += pinba.pb-c.c pinba.pb-c.h
 BUILT_SOURCES += pinba.pb-c.c pinba.pb-c.h