autoconf-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Autoconf source repository branch, master, updated. v2.63-193-


From: Eric Blake
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.63-193-g2db8890
Date: Thu, 13 Nov 2008 21:19:11 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=2db8890532465e3791268cf35d7844efe5d9748e

The branch, master has been updated
       via  2db8890532465e3791268cf35d7844efe5d9748e (commit)
      from  1a0a363042aeb07664d893568074ff5897905a35 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2db8890532465e3791268cf35d7844efe5d9748e
Author: Eric Blake <address@hidden>
Date:   Thu Nov 13 14:02:51 2008 -0700

    Optimize single-argument loop.
    
    * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid forks when
    loop only has one argument.
    * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
    
    Signed-off-by: Eric Blake <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                 |    7 +++++++
 lib/autoconf/functions.m4 |    8 +++++---
 lib/autoconf/headers.m4   |    8 +++++---
 3 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3e9a701..31dd4f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2008-11-13  Eric Blake  <address@hidden>
 
+       Optimize single-argument loop.
+       * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid forks when
+       loop only has one argument.
+       * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
+
+2008-11-13  Eric Blake  <address@hidden>
+
        Fix AS_ESCAPE usage bugs.
        * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
        (_AS_VAR_ARITH_PREPARE): Expand macros prior to adding shell
diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
index 23c6348..ebd7403 100644
--- a/lib/autoconf/functions.m4
+++ b/lib/autoconf/functions.m4
@@ -108,13 +108,15 @@ m4_define([_AH_CHECK_FUNC],
 # `break' to stop the search.
 AC_DEFUN([AC_CHECK_FUNCS],
 [m4_map_args_w([$1], [_AH_CHECK_FUNC(], [)])]dnl
+[m4_pushdef([AC_func], m4_if(m4_index(m4_translit([$1], [      ][
+$`], [    ]), [ ]), [-1], [[$1]], [[$ac_func]]))]dnl
 [for ac_func in $1
 do
-AC_CHECK_FUNC($ac_func,
-             [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_$ac_func])) $2],
+AC_CHECK_FUNC(AC_func,
+             [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_]AC_func)) $2],
              [$3])dnl
 done
-])
+_m4_popdef([AC_func])])
 
 
 # _AC_CHECK_FUNC_ONCE(FUNCTION)
diff --git a/lib/autoconf/headers.m4 b/lib/autoconf/headers.m4
index eb6bc01..bf2cb7a 100644
--- a/lib/autoconf/headers.m4
+++ b/lib/autoconf/headers.m4
@@ -245,14 +245,16 @@ m4_define([_AH_CHECK_HEADER],
 # header.  Either ACTION may include `break' to stop the search.
 AC_DEFUN([AC_CHECK_HEADERS],
 [m4_map_args_w([$1], [_AH_CHECK_HEADER(], [)])]dnl
+[m4_pushdef([AC_header], m4_if(m4_index(m4_translit([$1], [    ][
+$`], [    ]), [ ]), [-1], [[$1]], [[$ac_header]]))]dnl
 [for ac_header in $1
 do
-AC_CHECK_HEADER($ac_header,
-               [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$ac_header)) $2],
+AC_CHECK_HEADER(AC_header,
+               [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_]AC_header)) $2],
                [$3],
                [$4])dnl
 done
-])# AC_CHECK_HEADERS
+_m4_popdef([AC_header])])# AC_CHECK_HEADERS
 
 
 # _AC_CHECK_HEADER_ONCE(HEADER-FILE)


hooks/post-receive
--
GNU Autoconf source repository




reply via email to

[Prev in Thread] Current Thread [Next in Thread]