]> git.ipfire.org Git - thirdparty/autoconf.git/commit
AC_CHECK_FUNCS_ONCE: hoist CPP name computation to m4 time
authorEric Blake <eblake@redhat.com>
Fri, 4 Nov 2016 01:03:06 +0000 (20:03 -0500)
committerEric Blake <eblake@redhat.com>
Wed, 21 Dec 2016 14:32:36 +0000 (08:32 -0600)
commit73770787510fc18ec3dde2ccf3281977ea6b750b
tree1a98e20af3048c7cb43500c8018931559819acb4
parent501ccbbfdb43561537f377a2ac66cf89f975b1b1
AC_CHECK_FUNCS_ONCE: hoist CPP name computation to m4 time

Rather than perform a sed script on each element of the
$ac_func_c_list to compute the corresponding CPP name, we can
make the list store a series of pairs of function names and
CPP names all computed at m4 time.

The resulting configure script is slightly larger based on
how many function names are checked once, but also performs
slightly faster.

There is still a sed call in AC_CHECK_FUNC for computing the
cache variable name; that will be dealt with next.

* lib/autoconf/functions.m4 (_AC_CHECK_FUNC_ONCE): Track the CPP
name in the list...
(_AC_FUNCS_EXPANSION): ...and rewrite the list walk to parse off
pairs of arguments, for fewer sed calls.

Signed-off-by: Eric Blake <eblake@redhat.com>
lib/autoconf/functions.m4