From 221585020da5232c709c8008b9e469c4a0cf73a6 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 27 Aug 2005 20:52:12 +0000 Subject: [PATCH] update for new prefix setting git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@676 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/examples/piped-demo.pl.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/program/examples/piped-demo.pl.in b/program/examples/piped-demo.pl.in index 71d69e71..02e105c3 100755 --- a/program/examples/piped-demo.pl.in +++ b/program/examples/piped-demo.pl.in @@ -16,10 +16,12 @@ $SVG = "piped-demo.svg"; $PNG = "piped-demo.png"; # some magic to find the correct rrdtol executable +$prefix="@prefix@"; + if ( -x "@exec_prefix@/bin/rrdtool") { RRDp::start "@exec_prefix@/bin/rrdtool"; -} elsif ( -x "../bin/rrdtool") { - RRDp::start "../bin/rrdtool"; +} elsif ( -x "../../bin/rrdtool") { + RRDp::start "../../bin/rrdtool"; } else { RRDp::start "../src/rrdtool"; } -- 2.30.2