Try autoreconf -i before build.