diff options
author | Rob Austein <sra@hactrn.net> | 2012-05-23 00:54:35 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-05-23 00:54:35 +0000 |
commit | ce78c5efb30ce726ea603529ecdd0499c07626da (patch) | |
tree | cbe5754d225ce30f7bad00148f58eb6f45986837 /rcynic/rcynic-html.py | |
parent | 4dddc12cfdaf35f5f3c852b48a3d38b7ee25aaed (diff) |
Use autoconf to find rrdtool.
svn path=/trunk/; revision=4509
Diffstat (limited to 'rcynic/rcynic-html.py')
-rw-r--r-- | rcynic/rcynic-html.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rcynic/rcynic-html.py b/rcynic/rcynic-html.py index 1f22374d..ea28ab18 100644 --- a/rcynic/rcynic-html.py +++ b/rcynic/rcynic-html.py @@ -40,13 +40,19 @@ opt = { "show-problems" : False, "show-graphs" : True, "update-rrds" : True, - "rrdtool-binary" : "rrdtool", "suckerfish-javascript" : False, "png-height" : 190, "png-width" : 1350, "svg-height" : 600, "svg-width" : 1200 } +try: + # Set from autoconf + opt["rrdtool-binary"] = ac_rrdtool_binary +except NameError: + # Not set at all + opt["rrdtool-binary"] = "rrdtool" + def usage(msg = 0): f = sys.stderr if msg else sys.stdout f.write("Usage: %s %s [options] input_file output_directory\n" % (sys.executable, sys.argv[0])) |