According to Brad House "also, the proper way to fix this is to not patch config.sub but to call libtoolize -c -f before the econf call in the ebuild"
marked stable