summaryrefslogtreecommitdiffstats
path: root/c++/examples
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-10-03 18:26:35 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-10-03 21:01:40 (GMT)
commit7bb8d071c6b4b6fecc84eda4982cab6b86f9ff04 (patch)
tree54b9a00d4b92e73fb0cf496f8b63d179e2bbdc5c /c++/examples
parent6083b740ad585610300bb60e1456ab33d636ac6f (diff)
downloadhdf5-7bb8d071c6b4b6fecc84eda4982cab6b86f9ff04.zip
hdf5-7bb8d071c6b4b6fecc84eda4982cab6b86f9ff04.tar.gz
hdf5-7bb8d071c6b4b6fecc84eda4982cab6b86f9ff04.tar.bz2
Under the examples directories, always find the installed HDF5
executables and scripts using @prefix@ instead of a relative path, because the number of ../ in the relative path will be different on NetBSD than on other systems. Examples on NetBSD are installed at ${prefix}/share/examples/hdf5/ instead of at ${prefix}/share/hdf5_examples/, by convention. It may be the same on other BSDs, I'm not sure.
Diffstat (limited to 'c++/examples')
-rw-r--r--c++/examples/run-c++-ex.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/examples/run-c++-ex.sh.in b/c++/examples/run-c++-ex.sh.in
index d975924..f0d3e93 100644
--- a/c++/examples/run-c++-ex.sh.in
+++ b/c++/examples/run-c++-ex.sh.in
@@ -32,7 +32,7 @@ EXIT_FAILURE=1
# Where the tool is installed.
# default is relative path to installed location of the tools
-prefix="${prefix:-../../..}"
+prefix="${prefix:-@prefix@}"
AR="@AR@"
RANLIB="@RANLIB@"
H5TOOL="h5c++" # The tool name