]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
only have graph options when there is graph support
authorTobias Oetiker <tobi@oetiker.ch>
Wed, 30 Jul 2014 06:53:21 +0000 (08:53 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Wed, 30 Jul 2014 06:54:36 +0000 (08:54 +0200)
Conflicts:

bindings/python/rrdtoolmodule.c

bindings/python/rrdtoolmodule.c

index 900384dc19f79d34c8d5b8367f01e271f627cc48..110814eb6d0b2b6071741a808a1cfca83b7eb9ae 100644 (file)
@@ -708,16 +708,18 @@ static PyMethodDef _rrdtool_methods[] = {
     meth("create", PyRRD_create, PyRRD_create__doc__),
     meth("update", PyRRD_update, PyRRD_update__doc__),
     meth("fetch", PyRRD_fetch, PyRRD_fetch__doc__),
-    meth("graph", PyRRD_graph, PyRRD_graph__doc__),
     meth("tune", PyRRD_tune, PyRRD_tune__doc__),
     meth("first", PyRRD_first, PyRRD_first__doc__),
     meth("last", PyRRD_last, PyRRD_last__doc__),
     meth("resize", PyRRD_resize, PyRRD_resize__doc__),
     meth("info", PyRRD_info, PyRRD_info__doc__),
+#ifdef HAVE_RRD_GRAPH    
+    meth("graph", PyRRD_graph, PyRRD_graph__doc__),
     meth("graphv", PyRRD_graphv, PyRRD_graphv__doc__),
+    meth("xport", PyRRD_xport, PyRRD_xport__doc__),
+#endif
     meth("updatev", PyRRD_updatev, PyRRD_updatev__doc__),
     meth("flushcached", PyRRD_flushcached, PyRRD_flushcached__doc__),
-    meth("xport", PyRRD_xport, PyRRD_xport__doc__),
     meth("dump", PyRRD_dump, PyRRD_dump__doc__),
     {NULL, NULL, 0, NULL}
 };