X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_tool.c;h=bb1bc3ed5304164e63d1778567ba2979d5e20864;hp=cc2aede9e7b2207063f53e2324c5ae542b16e01b;hb=4f00d9538b60caaa7990e5474227736d8a7795d3;hpb=c9d10bf081a5a4bb0d46117c94311e5c010fd2ef diff --git a/src/rrd_tool.c b/src/rrd_tool.c index cc2aede..bb1bc3e 100644 --- a/src/rrd_tool.c +++ b/src/rrd_tool.c @@ -695,6 +695,7 @@ int HandleInputLine( free(data); } } else if (strcmp("xport", argv[1]) == 0) { +#ifdef HAVE_RRD_GRAPH int xxsize; unsigned long int j = 0; time_t start, end, ti; @@ -771,7 +772,11 @@ int HandleInputLine( setlocale(LC_NUMERIC, old_locale); } free(vtag); +#else + rrd_set_error("the instance of rrdtool has been compiled without graphics"); +#endif } else if (strcmp("graph", argv[1]) == 0) { +#ifdef HAVE_RRD_GRAPH char **calcpr; #ifdef notused /*XXX*/ @@ -805,7 +810,11 @@ int HandleInputLine( } } +#else + rrd_set_error("the instance of rrdtool has been compiled without graphics"); +#endif } else if (strcmp("graphv", argv[1]) == 0) { +#ifdef HAVE_RRD_GRAPH rrd_info_t *grinfo = NULL; /* 1 to distinguish it from the NULL that rrd_graph sends in */ grinfo = rrd_graph_v(argc - 1, &argv[1]); @@ -813,7 +822,9 @@ int HandleInputLine( rrd_info_print(grinfo); rrd_info_free(grinfo); } - +#else + rrd_set_error("the instance of rrdtool has been compiled without graphics"); +#endif } else if (strcmp("tune", argv[1]) == 0) rrd_tune(argc - 1, &argv[1]); #ifndef WIN32