hdf5 dependency: check for alternative config-tool names

Depending on whether hdf5 is compiled with parallel support, the
same config-tool program may be installed with a mysterious "p" in the
name. In this case, dependency lookup will totally fail, unless of
course you use the superior pkg-config interface in which case you get a
predictable name.

Work around this insanity by checking for both types of config-tool
name.

Fixes #9555
This commit is contained in:
Eli Schwartz 2021-11-11 18:11:48 -05:00 committed by Jussi Pakkanen
parent 018d928cf5
commit 4f4259de1b
1 changed files with 3 additions and 3 deletions

View File

@ -96,13 +96,13 @@ class HDF5ConfigToolDependency(ConfigToolDependency):
if language == 'c':
cenv = 'CC'
tools = ['h5cc']
tools = ['h5cc', 'h5pcc']
elif language == 'cpp':
cenv = 'CXX'
tools = ['h5c++']
tools = ['h5c++', 'h5pc++']
elif language == 'fortran':
cenv = 'FC'
tools = ['h5fc']
tools = ['h5fc', 'h5pfc']
else:
raise DependencyException('How did you get here?')