There are no restrictions on how the configuration scripts that Autoconf produces may be distributed or used. In Autoconf version 1, they were covered by the GNU General Public License. We still encourage software authors to distribute their work under terms like those of the GPL, but doing so is not required to use Autoconf.
Of the other files that might be used with
config.h.in is under whatever copyright you use for your
configure.ac. config.sub and config.guess have an
exception to the GPL when they are used with an Autoconf-generated
configure script, which permits you to distribute them under the
same terms as the rest of your package. install-sh is from the X
Consortium and is not copyrighted.
Automake places no restrictions on the distribution of the resulting Makefile.ins. We still encourage software authors to distribute their work under terms like those of the GPL, but doing so is not required to use Automake.
Some of the files that can be automatically installed via the --add-missing switch do fall under the GPL. However, these also have a special exception allowing you to distribute them with your package, regardless of the licensing you choose.