setup: factor out repeated calls to pkgconfig()
setup: factor out repeated calls to pkgconfig()

hughperkins/lunatic-python,alexsilva/lunatic-python,greatwolf/lunatic-python,alexsilva/lunatic-python,hughperkins/lunatic-python,alexsilva/lunatic-python,albanD/lunatic-python,albanD/lunatic-python,greatwolf/lunatic-python,bastibe/lunatic-python,bastibe/lunatic-python