Simply use autoreconf in autogen.sh, it is much simpler and the recommended