~ubuntu-branches/ubuntu/utopic/pacemaker/utopic-proposed

« back to all changes in this revision

Viewing changes to m4/gnulib-comp.m4

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-07-16 16:40:24 UTC
  • mfrom: (1.1.11) (2.2.3 experimental)
  • Revision ID: package-import@ubuntu.com-20130716164024-lvwrf4xivk1wdr3c
Tags: 1.1.9+git20130321-1ubuntu1
* Resync from debian expiremental.
* debian/control:
  - Use lower version for Build-Depends on libcorosync-dev
    and libqb-dev.
  - Build-Depends on libcfg-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DO NOT EDIT! GENERATED AUTOMATICALLY!
 
2
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
 
3
#
 
4
# This file is free software; you can redistribute it and/or modify
 
5
# it under the terms of the GNU General Public License as published by
 
6
# the Free Software Foundation; either version 3 of the License, or
 
7
# (at your option) any later version.
 
8
#
 
9
# This file is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
# GNU General Public License for more details.
 
13
#
 
14
# You should have received a copy of the GNU General Public License
 
15
# along with this file.  If not, see <http://www.gnu.org/licenses/>.
 
16
#
 
17
# As a special exception to the GNU General Public License,
 
18
# this file may be distributed as part of a program that
 
19
# contains a configuration script generated by Autoconf, under
 
20
# the same distribution terms as the rest of that program.
 
21
#
 
22
# Generated by gnulib-tool.
 
23
#
 
24
# This file represents the compiled summary of the specification in
 
25
# gnulib-cache.m4. It lists the computed macro invocations that need
 
26
# to be invoked from configure.ac.
 
27
# In projects that use version control, this file can be treated like
 
28
# other built files.
 
29
 
 
30
 
 
31
# This macro should be invoked from ./configure.ac, in the section
 
32
# "Checks for programs", right after AC_PROG_CC, and certainly before
 
33
# any checks for libraries, header files, types and library functions.
 
34
AC_DEFUN([gl_EARLY],
 
35
[
 
36
  m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
 
37
  m4_pattern_allow([^gl_ES$])dnl a valid locale name
 
38
  m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
 
39
  m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
 
40
  AC_REQUIRE([gl_PROG_AR_RANLIB])
 
41
  # Code from module crypto/md5:
 
42
  # Code from module include_next:
 
43
  # Code from module multiarch:
 
44
  # Code from module stdalign:
 
45
  # Code from module stdint:
 
46
])
 
47
 
 
48
# This macro should be invoked from ./configure.ac, in the section
 
49
# "Check for header files, types and library functions".
 
50
AC_DEFUN([gl_INIT],
 
51
[
 
52
  AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
 
53
  gl_cond_libtool=false
 
54
  gl_libdeps=
 
55
  gl_ltlibdeps=
 
56
  gl_m4_base='m4'
 
57
  m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
 
58
  m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
 
59
  m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
 
60
  m4_pushdef([gl_LIBSOURCES_LIST], [])
 
61
  m4_pushdef([gl_LIBSOURCES_DIR], [])
 
62
  gl_COMMON
 
63
  gl_source_base='lib/gnu'
 
64
gl_MD5
 
65
gl_MULTIARCH
 
66
gl_STDALIGN_H
 
67
gl_STDINT_H
 
68
  # End of code from modules
 
69
  m4_ifval(gl_LIBSOURCES_LIST, [
 
70
    m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
 
71
      for gl_file in ]gl_LIBSOURCES_LIST[ ; do
 
72
        if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
 
73
          echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
 
74
          exit 1
 
75
        fi
 
76
      done])dnl
 
77
      m4_if(m4_sysval, [0], [],
 
78
        [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
 
79
  ])
 
80
  m4_popdef([gl_LIBSOURCES_DIR])
 
81
  m4_popdef([gl_LIBSOURCES_LIST])
 
82
  m4_popdef([AC_LIBSOURCES])
 
83
  m4_popdef([AC_REPLACE_FUNCS])
 
84
  m4_popdef([AC_LIBOBJ])
 
85
  AC_CONFIG_COMMANDS_PRE([
 
86
    gl_libobjs=
 
87
    gl_ltlibobjs=
 
88
    if test -n "$gl_LIBOBJS"; then
 
89
      # Remove the extension.
 
90
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
91
      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
 
92
        gl_libobjs="$gl_libobjs $i.$ac_objext"
 
93
        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
 
94
      done
 
95
    fi
 
96
    AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
 
97
    AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
 
98
  ])
 
99
  gltests_libdeps=
 
100
  gltests_ltlibdeps=
 
101
  m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
 
102
  m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
 
103
  m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
 
104
  m4_pushdef([gltests_LIBSOURCES_LIST], [])
 
105
  m4_pushdef([gltests_LIBSOURCES_DIR], [])
 
106
  gl_COMMON
 
107
  gl_source_base='tests'
 
108
changequote(,)dnl
 
109
  gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
 
110
changequote([, ])dnl
 
111
  AC_SUBST([gltests_WITNESS])
 
112
  gl_module_indicator_condition=$gltests_WITNESS
 
113
  m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
 
114
  m4_popdef([gl_MODULE_INDICATOR_CONDITION])
 
115
  m4_ifval(gltests_LIBSOURCES_LIST, [
 
116
    m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
 
117
      for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
 
118
        if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
 
119
          echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
 
120
          exit 1
 
121
        fi
 
122
      done])dnl
 
123
      m4_if(m4_sysval, [0], [],
 
124
        [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
 
125
  ])
 
126
  m4_popdef([gltests_LIBSOURCES_DIR])
 
127
  m4_popdef([gltests_LIBSOURCES_LIST])
 
128
  m4_popdef([AC_LIBSOURCES])
 
129
  m4_popdef([AC_REPLACE_FUNCS])
 
130
  m4_popdef([AC_LIBOBJ])
 
131
  AC_CONFIG_COMMANDS_PRE([
 
132
    gltests_libobjs=
 
133
    gltests_ltlibobjs=
 
134
    if test -n "$gltests_LIBOBJS"; then
 
135
      # Remove the extension.
 
136
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
137
      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
 
138
        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
 
139
        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
 
140
      done
 
141
    fi
 
142
    AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
 
143
    AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
 
144
  ])
 
145
  LIBGNU_LIBDEPS="$gl_libdeps"
 
146
  AC_SUBST([LIBGNU_LIBDEPS])
 
147
  LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
 
148
  AC_SUBST([LIBGNU_LTLIBDEPS])
 
149
])
 
150
 
 
151
# Like AC_LIBOBJ, except that the module name goes
 
152
# into gl_LIBOBJS instead of into LIBOBJS.
 
153
AC_DEFUN([gl_LIBOBJ], [
 
154
  AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
 
155
  gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
 
156
])
 
157
 
 
158
# Like AC_REPLACE_FUNCS, except that the module name goes
 
159
# into gl_LIBOBJS instead of into LIBOBJS.
 
160
AC_DEFUN([gl_REPLACE_FUNCS], [
 
161
  m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
 
162
  AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
 
163
])
 
164
 
 
165
# Like AC_LIBSOURCES, except the directory where the source file is
 
166
# expected is derived from the gnulib-tool parameterization,
 
167
# and alloca is special cased (for the alloca-opt module).
 
168
# We could also entirely rely on EXTRA_lib..._SOURCES.
 
169
AC_DEFUN([gl_LIBSOURCES], [
 
170
  m4_foreach([_gl_NAME], [$1], [
 
171
    m4_if(_gl_NAME, [alloca.c], [], [
 
172
      m4_define([gl_LIBSOURCES_DIR], [lib/gnu])
 
173
      m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
 
174
    ])
 
175
  ])
 
176
])
 
177
 
 
178
# Like AC_LIBOBJ, except that the module name goes
 
179
# into gltests_LIBOBJS instead of into LIBOBJS.
 
180
AC_DEFUN([gltests_LIBOBJ], [
 
181
  AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
 
182
  gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
 
183
])
 
184
 
 
185
# Like AC_REPLACE_FUNCS, except that the module name goes
 
186
# into gltests_LIBOBJS instead of into LIBOBJS.
 
187
AC_DEFUN([gltests_REPLACE_FUNCS], [
 
188
  m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
 
189
  AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
 
190
])
 
191
 
 
192
# Like AC_LIBSOURCES, except the directory where the source file is
 
193
# expected is derived from the gnulib-tool parameterization,
 
194
# and alloca is special cased (for the alloca-opt module).
 
195
# We could also entirely rely on EXTRA_lib..._SOURCES.
 
196
AC_DEFUN([gltests_LIBSOURCES], [
 
197
  m4_foreach([_gl_NAME], [$1], [
 
198
    m4_if(_gl_NAME, [alloca.c], [], [
 
199
      m4_define([gltests_LIBSOURCES_DIR], [tests])
 
200
      m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
 
201
    ])
 
202
  ])
 
203
])
 
204
 
 
205
# This macro records the list of files which have been installed by
 
206
# gnulib-tool and may be removed by future gnulib-tool invocations.
 
207
AC_DEFUN([gl_FILE_LIST], [
 
208
  lib/md5.c
 
209
  lib/md5.h
 
210
  lib/stdalign.in.h
 
211
  lib/stdint.in.h
 
212
  m4/00gnulib.m4
 
213
  m4/gnulib-common.m4
 
214
  m4/include_next.m4
 
215
  m4/longlong.m4
 
216
  m4/md5.m4
 
217
  m4/multiarch.m4
 
218
  m4/onceonly.m4
 
219
  m4/stdalign.m4
 
220
  m4/stdint.m4
 
221
])