From 0c0d3bf736384e090f5e6910ee5ca02f3e8dc32b Mon Sep 17 00:00:00 2001 From: Dana Robinson <43805+derobins@users.noreply.github.com> Date: Wed, 6 Jul 2022 14:56:26 -0700 Subject: [PATCH] Suppress the "obsolete" category of Autoconf warnings (#1853) Very new versions of Autoconf complain about our Java macros. Since they work well enough and there is no obvious upgrade path, we're suppressing the category for now. --- autogen.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 4676ee0b08..7c3cbcf5ac 100755 --- a/autogen.sh +++ b/autogen.sh @@ -236,7 +236,10 @@ ${automake_cmd} || exit 1 echo # AUTOCONF -autoconf_cmd="${HDF5_AUTOCONF} --force" +# The "obsolete" warnings category flags our Java macros as obsolete. +# Since there is no clear way to upgrade them (Java support in the Autotools +# is not great) and they work well enough for now, we suppress those warnings. +autoconf_cmd="${HDF5_AUTOCONF} --force --warnings=no-obsolete" echo "${autoconf_cmd}" if [ "$verbose" = true ] ; then ${HDF5_AUTOCONF} --version