Code

Pinba: only compile .proto files when enabled
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 9 Aug 2015 13:50:55 +0000 (15:50 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Mon, 30 Nov 2015 21:51:44 +0000 (22:51 +0100)
If the pinba plugin is not enabled there's no
need to compile the protobuf files.

src/Makefile.am

index 36b6bd77267d5b6eaf1bda44ea85fee8e0373709..e82fe83928e1dac7523c365b0e8e95d5def5dc31 100644 (file)
@@ -1500,7 +1500,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