Neil Conway wrote:
> This patch adds code to "configure" to check if GCC supports the
> following warning flags: -Wdeclaration-after-statement (GCC 3.4+),
> -Wold-style-definition (GCC 3.4+), and -Wendif-labels (GCC 3.3+). Any
> of these options that are supported by $CC are added to $CFLAGS.
Can't you write one macro that takes the option to be tested as
argument? For example like
PGAC_PROG_CC_WARNING([-Wmissing-declarations]).
--
Peter Eisentraut
http://developer.postgresql.org/~petere/