config: Pass the compiler -Werror during warning detection
authorFilipe Brandenburger <filbranden@google.com>
Mon, 2 May 2016 20:26:13 +0000 (13:26 -0700)
committerMark Wielaard <mjw@redhat.com>
Tue, 3 May 2016 09:00:27 +0000 (11:00 +0200)
commit239cd48bc87ffbf95e6fe2dd6bd708b3fc9b1855
tree068d85517c3ebf837f397f5794562b4de3ec1b0f
parentafeccd48a738ebae5645dded4dd13f053747d008
config: Pass the compiler -Werror during warning detection

Otherwise the compilation prints a warning but exits with 0 return code.
However, later during the compilation, when -Werror is enforced to about
every file, the unsupported options start breaking the builds.

Tested: Ran configure with clang-3.5 and built libelf/ tree with it.

  $ autoreconf -i
  $ ./configure CC=clang-3.5 ...
  $ make -C libelf

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
ChangeLog
configure.ac