dependencies: Improve pkg-config library detection
dependencies: Improve pkg-config library detection

When `static: true` is passed to dependency(), we parse the pkg-config
output and manually search for `-lfoo`, etc in the library paths
gathered from `-Lbar` arguments in the output.

If there are no `-L` arguments in the output, the behaviour is the
same as before. If there are `-L` arguments and we can't find a static
library, we will error out.

ernestask/meson,jeandet/meson,mesonbuild/meson,becm/meson,MathieuDuponchelle/meson,mesonbuild/meson,QuLogic/meson,thiblahute/meson,pexip/meson,jpakkane/meson,MathieuDuponchelle/meson,MathieuDuponchelle/meson,becm/meson,trhd/meson,thiblahute/meson,trhd/meson,pexip/meson,pexip/meson,pexip/meson,QuLogic/meson,QuLogic/meson,QuLogic/meson,trhd/meson,jeandet/meson,MathieuDuponchelle/meson,thiblahute/meson,ernestask/meson,mesonbuild/meson,becm/meson,trhd/meson,jeandet/meson,jpakkane/meson,trhd/meson,ernestask/meson,ernestask/meson,trhd/meson,pexip/meson,pexip/meson,ernestask/meson,jeandet/meson,ernestask/meson,becm/meson,jeandet/meson,jpakkane/meson,jpakkane/meson,trhd/meson,ernestask/meson,mesonbuild/meson,jeandet/meson,becm/meson,pexip/meson,QuLogic/meson,becm/meson,MathieuDuponchelle/meson,mesonbuild/meson,MathieuDuponchelle/meson,mesonbuild/meson,jpakkane/meson,MathieuDuponchelle/meson,jpakkane/meson,ernestask/meson,becm/meson,jeandet/meson,QuLogic/meson,mesonbuild/meson,jeandet/meson,jpakkane/meson,trhd/meson,mesonbuild/meson,MathieuDuponchelle/meson,thiblahute/meson,mesonbuild/meson,QuLogic/meson,pexip/meson,thiblahute/meson,MathieuDuponchelle/meson,jpakkane/meson,becm/meson,trhd/meson,thiblahute/meson,QuLogic/meson,ernestask/meson,becm/meson,jpakkane/meson,jeandet/meson,QuLogic/meson,thiblahute/meson,mesonbuild/meson,becm/meson,thiblahute/meson,pexip/meson,pexip/meson,thiblahute/meson