m4: fix c++ check for -f flags
commitc1ec8734036319d18f87555bc1b728e46299c54a
authorFilip Roséen <filip@atch.se>
Thu, 23 Feb 2017 13:54:17 +0000 (23 14:54 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 23 Feb 2017 23:22:48 +0000 (24 00:22 +0100)
tree42c84d72e33086149293e9cf937d062f31ed133c
parentacc58ecb3ab388213c215e1e5c0d624b58d188c0
m4: fix c++ check for -f flags

Both gcc and clang generate warnings for unsupported -f$FLAG by
default, meaning that the previous implementation would consider
unsupported flags as supported (as a warning is not an error that
fails compilation).

The addition of -Werror treats warnings as errors, and will prevent
false-positives in terms of -f$FLAG support.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
m4/flags.m4