HomeClusterLabs Projects

[build] fix supported compiler warning detection

Description

[build] fix supported compiler warning detection

move from AC_PREPROC_IFELSE (strongly discouraged) to AC_COMPILE_IFELSE

our detection system was very weak and recent versions of clang did
show that PREPROC_IFELFE (cpp) would enable warning options that
the compiler does not support (clang).

use a full compilation test to detect what works and what doesn't.

Also expand the warning list to include new / renamed clang options
of equivalents already enabled for older versions of clang and gcc.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

Details

Provenance
fabbioneAuthored on Nov 7 2018, 8:27 AM
Parents
rKe4f7fb3ac722: Merge pull request #163 from ppiao/master
Branches
Unknown
Tags
Unknown

Event Timeline