From c429f86d03eb918886162ff8968107bbda8b94ba Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Wed, 17 Feb 2021 12:27:20 -0500 Subject: [PATCH] Fix: bootstrap with autoconf >= 2.70 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- bootstrap | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.34.1