build: auto-generate perl subroutines prototypes for automake and aclocal
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 4 Feb 2013 22:04:18 +0000 (23:04 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 13 Feb 2013 16:46:26 +0000 (17:46 +0100)
commit283ded7f5b9b7ad97300293cd65f3f1b48c21115
treea6602008cf901a41d6e153219724a48784e2c9ac
parent6d9e9dd453944cd86ddc530a131bd338f4734638
build: auto-generate perl subroutines prototypes for automake and aclocal

This will allow us to avoid either using the '&foo' invocation form when
invoking a subroutine before its definition, or having to maintain the
list of prototypes by hand (with the risk of having it become incomplete
or fall out-of-sync when future edits to the automake and aclocal scripts
are done).

* Makefile.am (automake, aclocal): Automatically generate a list of
prototypes by looking at the subroutines definitions.
* bootstrap.sh: Likewise, when generating the temporary automake and
aclocal scripts used for bootstrapping.
* automake.in: Add a placeholder that will be tracked by the new recipes
and substituted with the computed prototypes.  Remove existing prototypes,
that are now superfluous. Some adjustments required by the new, more
comprehensive prototypes declarations.
* aclocal.in: Likewise.
* maintainer/syntax-checks.mk (sc_diff_automake, sc_diff_aclocal): Adjust.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Makefile.am
aclocal.in
automake.in
bootstrap.sh
lib/gen-perl-protos [new file with mode: 0755]
maintainer/syntax-checks.mk