mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-06 10:25:53 +08:00
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:
parent
2509abe0dc
commit
89e95fc78b
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user