~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/onceonly.m4

  • Committer: Monty Taylor
  • Date: 2009-04-18 05:26:04 UTC
  • mto: (997.2.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 1003.
  • Revision ID: mordred@inaugust.com-20090418052604-wjog6lrqdsc83tdi
Updated gnulib files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# onceonly.m4 serial 5
 
1
# onceonly.m4 serial 6
2
2
dnl Copyright (C) 2002-2003, 2005-2006, 2008 Free Software Foundation, Inc.
3
3
dnl This file is free software, distributed under the terms of the GNU
4
4
dnl General Public License.  As a special exception to the GNU General
21
21
dnl empty, and the check will be inserted before the body of the AC_DEFUNed
22
22
dnl function.
23
23
 
24
 
dnl This is like onceonly.m4, except that it uses diversions to named sections
25
 
dnl DEFAULTS and INIT_PREPARE in order to check all requested headers at once,
26
 
dnl thus reducing the size of 'configure'. Works with autoconf-2.57. The
27
 
dnl size reduction is ca. 9%.
 
24
dnl The original code implemented AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE
 
25
dnl in terms of AC_DEFUN and AC_REQUIRE. This implementation uses diversions to
 
26
dnl named sections DEFAULTS and INIT_PREPARE in order to check all requested
 
27
dnl headers at once, thus reducing the size of 'configure'. It is known to work
 
28
dnl with autoconf 2.57..2.62 at least . The size reduction is ca. 9%.
28
29
 
29
30
dnl Autoconf version 2.59 plus gnulib is required; this file is not needed
30
 
dnl with Autoconf 2.60 or greater.
 
31
dnl with Autoconf 2.60 or greater. But note that autoconf's implementation of
 
32
dnl AC_CHECK_DECLS_ONCE expects a comma-separated list of symbols as first
 
33
dnl argument!
31
34
AC_PREREQ([2.59])
32
35
 
33
36
# AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of