This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: Avoid $(shell) in determining default ARM ABI
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: <libc-ports at sourceware dot org>
- Date: Wed, 21 Nov 2012 13:37:29 -0800 (PST)
- Subject: Re: Avoid $(shell) in determining default ARM ABI
- References: <Pine.LNX.4.64.1211212104460.11924@digraph.polyomino.org.uk>
> --- a/ports/sysdeps/arm/configure.in
> +++ b/ports/sysdeps/arm/configure.in
> @@ -40,4 +40,7 @@ AC_CACHE_CHECK([whether the compiler is using the ARM hard-float ABI],
> ], libc_cv_arm_pcs_vfp=yes, libc_cv_arm_pcs_vfp=no)])
> if test $libc_cv_arm_pcs_vfp = yes; then
> AC_DEFINE(HAVE_ARM_PCS_VFP)
> + echo "default-abi := hard" > default-abi.make
> +else
> + echo "default-abi := soft" > default-abi.make
That's not right. You need to use autoconf machinery for this so that
./config.status will recreate the file. But actually you can just append
to config_vars in the fragment and then the main configure's
AC_CONFIG_COMMANDS will add your lines to config.make, which is even easier.
Thanks,
Roland