WANT_AUTOCONF="latest"
src_compile() {
if [[ ${CHOST} == *-darwin* ]]; then
epatch ${FILESDIR}/${P}-soname-macos.patch || die "epatch failed"
else
epatch ${FILESDIR}/${P}-soname.patch || die "epatch failed"
fi
filter-ldflags "-Wl,-O1"
eautoconf