[PATCH v3] configure: Replaced obsolete AC_TRY_COMPILE

Joseph Myers joseph@codesourcery.com
Mon May 10 17:40:46 GMT 2021


On Mon, 10 May 2021, Naohiro Tamura wrote:

> diff --git a/sysdeps/mach/hurd/configure b/sysdeps/mach/hurd/configure
> index 4876e1f176..fd84a36df8 100644
> --- a/sysdeps/mach/hurd/configure
> +++ b/sysdeps/mach/hurd/configure
> @@ -1,3 +1,41 @@
> +
> +
> +# ac_fn_c_try_cpp LINENO
> +# ----------------------
> +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
> +ac_fn_c_try_cpp ()
> +{

In general we try to avoid duplicating such autoconf-generated function 
definitions in sysdeps configure fragments.  See the definition of 
GLIBC_PROVIDES in aclocal.m4.  Maybe with a change to GLIBC_PROVIDES you 
can avoid this function definition getting added to such fragments (it 
looks like the relevant toplevel configure.ac code comes long before the 
sysdeps configure fragments are loaded).

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Libc-alpha mailing list