build: avoid unwarranted failure w/gcc-4.6.1 and --enable-gcc-warnings
commit3f456c54bbd3b32e2324363ec9356137a27f7af4
authorJim Meyering <meyering@redhat.com>
Mon, 12 Sep 2011 13:04:32 +0000 (12 15:04 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 12 Sep 2011 17:07:00 +0000 (12 19:07 +0200)
treeb91f929835816fa1b6a60df2737767318f2b1b6d
parent82e86b483184fdc2646da679700a1190915a18c0
build: avoid unwarranted failure w/gcc-4.6.1 and --enable-gcc-warnings

* configure.ac (gl_GCC_VERSION_IFELSE): Define new macro.
(WERROR_CFLAGS): With --enable-gcc-warnings, use it to
add -Wsuggest-attribute=pure only with gcc 4.7 or newer.
configure.ac