This is what I found using the scripts at http://www.gentoo.org/proj/en/desktop/x/x11/porting-modular-x-howto.xml Doesn't look like much, but that's all I found.
Created attachment 76532 [details, diff] wesnoth-modularx
Thanks for the patch!