Can you re-instate from the 3.1.7 ebuild.
ebuild has changed significantly. I tried to solve it in a similar way now. I also added back the elibtoolize, or is that one no longer necessary now?
Don't need the elibtoolize now.