#1851: HDF5 won't configure on Fedora ----------------------+----------------------------------------------------- Reporter: sbrandt | Owner: sbrandt Type: defect | Status: review Priority: unset | Milestone: Component: Other | Version: development version Resolution: | Keywords: ----------------------+-----------------------------------------------------
Comment (by rhaas):
Replying to [comment:9 eschnett]:
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.
ExternalLibraries are inconsistent at best in how they handle this. I checked MPI (perl) and GSL (monolithic shell) and both assume a full manual configuration if one of the LIBS variables is set. For now I would keep it this way and make all libraries uniform once we use a common framework.