On 10/31/2016 06:39 AM, Paolo Bonzini wrote: > An unrolled loop avoids the cost of spawning sed in AS_TR_SH and > AS_TR_CPP. Prefer it if there is nothing in the second and third > argument of AC_CHECK_FUNCS and the first argument is a literal. > Modify AC_CHECK_FUNCS_ONCE to avoid the variable indirection too. > > * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Unroll loop if safe. > (_AC_CHECK_FUNCS): Move basic implementation here. > (_AC_CHECK_FUNC_ONCE): Expand AC_CHECK_FUNCS here... > (_AC_FUNCS_EXPANSION): ... and not here, so remove. > > Signed-off-by: Paolo Bonzini <[email protected]> > --- > lib/autoconf/functions.m4 | 25 +++++++++++-------------- > 1 file changed, 11 insertions(+), 14 deletions(-)
ACK -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
