From: Simon Marchi Date: Tue, 11 Feb 2020 22:29:09 +0000 (-0500) Subject: configure: add --enable-Werror X-Git-Tag: v2.13.0-rc1~752 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=fa3f8be960428e090b9576e3c67f0db33ed369d5;hp=fa3f8be960428e090b9576e3c67f0db33ed369d5 configure: add --enable-Werror If one wants to build with -Werror, it's not possible to simply configure with -Werror in the CFLAGS. This makes a bunch of configure checks fail, which would have otherwise passed. This patch adds an --enable-Werror option to configure, which has the effect of adding -Werror to AM_CFLAGS. It therefore ends up in the CFLAGS used to build the project, but it doesn't interfere with the configure checks. Signed-off-by: Simon Marchi Change-Id: I18c33125c717305aac8f1d8a19fee7e065d70c31 Signed-off-by: Jérémie Galarneau ---