configure.ac: check for warning options supported by the compiler

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>