Use dh_auto_configure, especially for handling dpkg-buildflags.
Use dh_autoreconf instead of invoking autogen.sh in the configure target.
Ignore runstatedir in check-cmdline-options-doc.sh autoconf 2.70 will add a --runstatedir option, Debian has backported it. Ignore it when checking whether INSTALL is up to date.