These three patches speed up libvirt's configure script by roughly 3%, by avoiding repeated calls to sed (for AS_TR_SH and AS_TR_CPP, patches 1-2) and cat (for _AC_DEFINE_UNQUOTED, patch 3). The AS_TR_SH and AS_TR_CPP computations are moved to autoconf time. cat is replaced by printf.
Thanks, Paolo Paolo Bonzini (3): autoconf: prefer an unrolled loop for trivial AC_CHECK_FUNCS autoconf: prefer an unrolled loop for trivial AC_CHECK_HEADERS autoconf: refine quadrigraph test in _AC_DEFINE_UNQUOTED lib/autoconf/functions.m4 | 25 +++++++++++-------------- lib/autoconf/general.m4 | 6 ++++-- lib/autoconf/headers.m4 | 30 +++++++++++++----------------- 3 files changed, 28 insertions(+), 33 deletions(-) -- 2.7.4