configury: remove obsolete perl path search.

* configure.ac (AC_PATH_PROG): Remove perl.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
configury: don't generate annoying autom4te.cache directory.

* .autom4te.cfg: New file. Disable autotools caching.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
configury: gettext cleanup.

Gettext's autopoint script only omits the intl directory creation
for exactly 'AM_GNU_GETTEXT([external])'; any additional arguments
force that directory to be built again.
* configure.ac (AM_GNU_GETTEXT): move need-format-string-macros
from here...
(AM_GNU_GETTEXT_NEED): ...to here.
* bootstrap.con (m4_precopy_git_version_gen): Since we use
git-version-gen directly in configure.ac, it has to be in place
before calling autopoint, which leaks error messages about the
missing script otherwise.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
configury: move local gnulib patches to build-aux subdirectory.

* gl: Move from here...
* build-aux/gl: ...to here.
* ltdl/m4/gnulib-cache.m4: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
configury: move autoconf macros to build-aux subdirectory.

* ltdl/m4: Move from here...
* build-aux/m4: ...to here.
* configure.ac (AC_CONFIG_MACRO_DIR): Adjust.
* Makefile.am (config_macro_dir, ACLOCAL_AMFLAGS): Adjust.
* build-aux/m4/gnulib-cache.m4: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
configury: move usage examples into doc subdirectory.

* examples: Move from here...
* doc/examples: ...to here.
* Makefile.am (EXTRA_DIST, dist_pkgdata_DATA): Adjust.
* README, doc/m4.texi, tests/builtins.at, tests/generate.awk,
tests/others.at: Likewise.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
configury: move gnulib subproject to build-aux subdirectory.

* gnulib: Move from here...
* build-aux/gnulib: ...to here.
* bootstrap.conf (gnulib_path): Set appropriately.
* .gitignore: Adjust.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
configury: install gnulib sources into m4 subdirectory.

* configure.ac (AC_CONFIG_LIBOBJ_DIR): Change to m4/gnu.
(AC_CONFIG_HEADERS): Change to config.h.
(AC_CONFIG_FILES): Change gnu/Makeflie to m4/gnu/Makefile.
* .gitignore, po/POTFILES.in: Adjust accordingly.
* build-aux/m4/gnulib-cache.m4: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
configury: fold doc/Makefile.am into Makefile.am.

* doc/Makefile.am: Remove.
* Makefile.am: Reinstate rules here.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
configury: install headers correctly.

* Makefile.am (pkgmodincludedir): Remove.
(nobase_pkginclude_HEADERS, pkgmodinclude_HEADERS): Move from here...
(nobase_include_HEADERS, noinst_HEADERS): ...to here.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>