build: avoid --enable-gcc-warnings on GCC <= 4.5
authorPádraig Brady <P@draigBrady.com>
Wed, 19 Dec 2012 09:13:21 +0000 (09:13 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 19 Dec 2012 11:30:42 +0000 (11:30 +0000)
commit82b1728c4b03f80c56eae0f59d0e9a75e3d2bf9f
tree42141759c5273f34c030b2032ff91dcff4945e6e
parent6cedbca7f95865707d73273a5e06eed4e9a478ec
build: avoid --enable-gcc-warnings on GCC <= 4.5

* configure.ac: Only enable warnings automatically when
on GCC >= 4.6 (and when building from a git checkout)
as that was the first GCC version to support fine-grained
control of warnings, allowing them to be adjusted around
certain code sections.  gnulib relies on this for certain
warnings, so avoid auto enabling this option lest we trigger
build failures on now over two year old compilers.
Reported by Zartaj Majeed with GCC 4.5.3 on cygwin.
configure.ac