Speed up AC_CHECK_HEADER.

* lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.

Signed-off-by: Eric Blake <ebb9@byu.net>
This commit is contained in:
Eric Blake 2008-10-24 16:41:20 -06:00
parent 2509abe0dc
commit 89e95fc78b
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2008-10-24 Eric Blake <ebb9@byu.net>
Speed up AC_CHECK_HEADER.
* lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
2008-10-24 Paolo Bonzini <bonzini@gnu.org>
and Eric Blake <ebb9@byu.net>

View File

@ -84,11 +84,13 @@
#
# If INCLUDES is specified and different from `-', then use the new
# semantics only.
#
# The m4_indir allows for fewer expansions of $@.
AC_DEFUN([AC_CHECK_HEADER],
[m4_case([$4],
[], [_AC_CHECK_HEADER_MONGREL($@)],
[-], [_AC_CHECK_HEADER_OLD($@)],
[_AC_CHECK_HEADER_NEW($@)])
[m4_indir(m4_case([$4],
[], [[_AC_CHECK_HEADER_MONGREL]],
[-], [[_AC_CHECK_HEADER_OLD]],
[[_AC_CHECK_HEADER_NEW]]), $@)
])# AC_CHECK_HEADER