OK, as we know the problem how would we fix it?
Probably fixing configure is the first step, but this situation looks like wrong setup of dependencies.
As long term, correct solution, we should move the wx-related-libs in the src/plugins/contrib/wxlibs (or something similar).
And then the dependencies will be correct and logical.
What do you think?