#1851: HDF5 won't configure on Fedora ----------------------+----------------------------------------------------- Reporter: sbrandt | Owner: Type: defect | Status: reopened Priority: unset | Milestone: Component: Other | Version: development version Resolution: | Keywords: ----------------------+----------------------------------------------------- Changes (by eschnett):
* status: closed => reopened * resolution: fixed =>
Comment:
This patch has an error, there's a missing {{{-a}}} in the {{{if}}} statement.
Also, other external libraries (e.g. {{{Boost}}}) use a different condition for setting the {{{INC_DIRS}}}, {{{LIB_DIRS}}}, and {{{LIBS}}} variable: Autodetection happens depending on the values of the {{{DIR}}} variable (and independent of the three specific variables), and if any of the variables is unset, it is set to the autodetected value.
This has the following advantage: If you set e.g. {{{HDF5_DIR}}} to a specific value, then this value is used to set {{{HDF5_INC_DIRS}}}, {{{HDF5_LIB_DIRS}}}, and {{{HDF5_LIBS}}}. If any of these three values is wrong, you can overwrite it, without affecting the values of the other variables. This has been like this in Cactus for a long time.
As is, if you set {{{HDF5_INC_DIRS}}}, then {{{HDF5_LIBS}}} is left empty.