This was done with AUTOMAKE="automake --add-missing --copy" autoreconf --force on Debian GNU/Linux 8.5.