warnings.m4: provide a means to specify the program to compile.
authorAkim Demaille <akim@lrde.epita.fr>
Mon, 9 Apr 2012 07:33:24 +0000 (09:33 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 8 May 2012 18:27:23 +0000 (20:27 +0200)
commit2c19fe9c2316d113610aa895d5203a9252cb692d
tree39894ef99dddd7da7dc2c1cdb7e35304cbc3ba4b
parentadae0138d43ccc0e5a302ca10fa1676359e92be8
warnings.m4: provide a means to specify the program to compile.

* m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from
(gl_WARN_ADD): here.
Use gl_AS_VAR_APPEND.
Support an argument to specify the program to compile.
(gl_WARN_ADD): Accept an argument to specify the program to compile.
AC_SUBST the WARN_CFLAGS when they are used.
* modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
leave this to gl_WARN_ADD.
ChangeLog
m4/warnings.m4
modules/warnings