From: Michael Jeanson Date: Wed, 17 Feb 2021 17:27:20 +0000 (-0500) Subject: Fix: bootstrap with autoconf >= 2.70 X-Git-Url: https://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=c429f86d03eb918886162ff8968107bbda8b94ba Fix: bootstrap with autoconf >= 2.70 We want to enable all warnings and treat them as errors when running autoreconf but we have to disable 'obsolete' because of AM_PATH_GLIB_2_0. Turns out that autoconf >= 2.70 will drop all other warnings categories when 'all' is used. So the only way to enable all categories but 'obsolete' is to list them all. Change-Id: I6fae9c86130d79a1bc9d3bb7d0610a24d734532a Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/bootstrap b/bootstrap index 8702a76e..452813a4 100755 --- a/bootstrap +++ b/bootstrap @@ -7,5 +7,8 @@ if [ ! -d "config" ]; then fi # Run autoreconf with all warning types as errors except -# for 'obsolete' because of AM_PATH_GLIB_2_0 -autoreconf -vif -W all,error,no-obsolete +# for 'obsolete' because of AM_PATH_GLIB_2_0, we have to +# list all categories because when 'all' is used, autoreconf +# will drop all the other specified categories except 'error' +# even if they start with 'no-'. +autoreconf -vif -W cross,gnu,no-obsolete,override,portability,portability-recursive,extra-portability,syntax,unsupported,error