Disclaimer: I am aware that the system I tested this on is lacking a required library, this is not what I'm trying to describe.
When running configure, I get the following message twice:
checking for xmlParseMemory in -lxml2... yes checking for xmlReadMemory in -lxml2... yes Package libxslt was not found in the pkg-config search path. Perhaps you should add the directory containing `libxslt.pc' to the PKG_CONFIG_PATH environment variable No package 'libxslt' found -> Package libxslt was not found in the pkg-config search path. -> Perhaps you should add the directory containing `libxslt.pc' -> to the PKG_CONFIG_PATH environment variable -> No package 'libxslt' found checking for libxslt/pattern.h... no checking for libxslt/transform.h... no
Where does this come from? Can we fix this somehow?
Gerald
Gerald Pfeifer gerald@pfeifer.com writes:
When running configure, I get the following message twice:
checking for xmlParseMemory in -lxml2... yes checking for xmlReadMemory in -lxml2... yes Package libxslt was not found in the pkg-config search path. Perhaps you should add the directory containing `libxslt.pc' to the PKG_CONFIG_PATH environment variable No package 'libxslt' found -> Package libxslt was not found in the pkg-config search path. -> Perhaps you should add the directory containing `libxslt.pc' -> to the PKG_CONFIG_PATH environment variable -> No package 'libxslt' found checking for libxslt/pattern.h... no checking for libxslt/transform.h... no
Where does this come from? Can we fix this somehow?
It's because we call pkg-config twice, once to get compiler flags and once to get libraries. Displaying the error only once would not be entirely trivial, but it should be easy to display it zero times by sending stderr to /dev/null...