htop
htop copied to clipboard
Use pkg-config to discover libnl-3
Since #1427, the location of libnl-3 is not discovered anymore with pkg-config. Instead, the hardcoded path /usr/include/libnl3 was introduced for headers without any possibility to override it except by patching.
This PR adds support for pkg-config to discover the location of the headers. Additionally, it discovers the path to libnl-3 libraries and modifies the dlopen calls to load the configured libraries from their fully qualified path.
Also note the discussion on the pull request.
@fpletz I've adapted some part of your patch to the new PR, #1698. Would you please help test it out to see whether it works? It can supersede this PR.