On 09/16/2009 11:37 PM, Eric Blake wrote:
It gives a reduction
in size by using more AC_CHECK_FUNCS_ONCE instead of inline function checks,
and can reduce forks by using a literal rather than a shell variable in more
places; particularly when doing AC_REPLACE_FUNCS([a b]).
No, this breaks if AC_REPLACE_FUNCS is used within a conditional.
However, since we do not support (pfew...) non-literal $1, using
AC_CHECK_FUNC to reduce forks is fine now that we are using shell
functions, like
m4_define([_AC_REPLACE_FUNC],
[AC_CHECK_FUNC([$1, [AC_LIBOBJ([$1])])
])
This should expand to just four lines per function. It won't give a
size reduction but it would noticeably reduce forks.
I should polish up my patches introducing AC_FOREACH, but that would be
after 2.65.
Paolo