summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2015-02-02 12:49:58 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2015-02-04 10:21:24 +0100
commit99de59708682768b9a700410574b500f1f5b07cd (patch)
tree210c565c2105d4b2c491630f6d9a639002af1e36
parentb9075f7093d39f505319482a031b811db0e3bf4f (diff)
downloadptxdist-99de59708682768b9a700410574b500f1f5b07cd.tar.gz
ptxdist-99de59708682768b9a700410574b500f1f5b07cd.tar.xz
rrdtool: make graph functionality optional
If we need only the rrd functionality of rrdtool and do graphing somewhere else, we don't need these dependencies. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/rrdtool.in16
-rw-r--r--rules/rrdtool.make2
2 files changed, 12 insertions, 6 deletions
diff --git a/rules/rrdtool.in b/rules/rrdtool.in
index 3ae66d720..eb0af56ef 100644
--- a/rules/rrdtool.in
+++ b/rules/rrdtool.in
@@ -3,11 +3,11 @@
menuconfig RRDTOOL
tristate
select GLIB
- select CAIRO
- select CAIRO_SVG
- select CAIRO_PDF
- select CAIRO_PS
- select PANGO
+ select CAIRO if RRDTOOL_RRD_GRAPH
+ select CAIRO_SVG if RRDTOOL_RRD_GRAPH
+ select CAIRO_PDF if RRDTOOL_RRD_GRAPH
+ select CAIRO_PS if RRDTOOL_RRD_GRAPH
+ select PANGO if RRDTOOL_RRD_GRAPH
select LIBXML2
select LIBXML2_SAX1
# for autotools only
@@ -40,6 +40,12 @@ config RRDTOOL_RRDCGI
purpose is to run as a cgi-program and parse a web page
template containing special <RRD:: tags.
+config RRDTOOL_RRD_GRAPH
+ bool
+ prompt "install rrd_graph"
+ help
+ Enable all rrd_graph functions.
+
config RRDTOOL_RRDTOOL
bool
prompt "install rrdtool"
diff --git a/rules/rrdtool.make b/rules/rrdtool.make
index 430565b27..ce7bc2434 100644
--- a/rules/rrdtool.make
+++ b/rules/rrdtool.make
@@ -41,7 +41,7 @@ RRDTOOL_CONF_TOOL := autoconf
RRDTOOL_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
--$(call ptx/endis, PTXCONF_RRDTOOL_RRDCGI)-rrdcgi \
- --disable-rrd_graph \
+ --$(call ptx/endis, PTXCONF_RRDTOOL_RRD_GRAPH)-rrd_graph \
--enable-mmap \
--enable-pthread \
--disable-static-programs \