OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [gdb/] [gnulib/] [m4/] [gnulib-comp.m4] - Blame information for rev 853

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
# DO NOT EDIT! GENERATED AUTOMATICALLY!
2
# Copyright (C) 2002-2010 Free Software Foundation, Inc.
3
#
4
# This file is free software, distributed under the terms of the GNU
5
# General Public License.  As a special exception to the GNU General
6
# Public License, this file may be distributed as part of a program
7
# that contains a configuration script generated by Autoconf, under
8
# the same distribution terms as the rest of that program.
9
#
10
# Generated by gnulib-tool.
11
#
12
# This file represents the compiled summary of the specification in
13
# gnulib-cache.m4. It lists the computed macro invocations that need
14
# to be invoked from configure.ac.
15
# In projects using CVS, this file can be treated like other built files.
16
 
17
 
18
# This macro should be invoked from ./configure.ac, in the section
19
# "Checks for programs", right after AC_PROG_CC, and certainly before
20
# any checks for libraries, header files, types and library functions.
21
AC_DEFUN([gl_EARLY],
22
[
23
  m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
24
  m4_pattern_allow([^gl_ES$])dnl a valid locale name
25
  m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
26
  m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
27
  AC_REQUIRE([AC_PROG_RANLIB])
28
  # Code from module arg-nonnull:
29
  # Code from module c++defs:
30
  # Code from module extensions:
31
  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
32
  # Code from module include_next:
33
  # Code from module memchr:
34
  # Code from module memmem:
35
  # Code from module memmem-simple:
36
  # Code from module multiarch:
37
  # Code from module stddef:
38
  # Code from module stdint:
39
  # Code from module string:
40
  # Code from module warn-on-use:
41
  # Code from module wchar:
42
])
43
 
44
# This macro should be invoked from ./configure.ac, in the section
45
# "Check for header files, types and library functions".
46
AC_DEFUN([gl_INIT],
47
[
48
  AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
49
  gl_cond_libtool=false
50
  gl_libdeps=
51
  gl_ltlibdeps=
52
  gl_m4_base='gnulib/m4'
53
  m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
54
  m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
55
  m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
56
  m4_pushdef([gl_LIBSOURCES_LIST], [])
57
  m4_pushdef([gl_LIBSOURCES_DIR], [])
58
  gl_COMMON
59
  gl_source_base='gnulib'
60
  # Code from module arg-nonnull:
61
  # Code from module c++defs:
62
  # Code from module extensions:
63
  # Code from module include_next:
64
  # Code from module memchr:
65
  gl_FUNC_MEMCHR
66
  gl_STRING_MODULE_INDICATOR([memchr])
67
  # Code from module memmem:
68
  gl_FUNC_MEMMEM
69
  # Code from module memmem-simple:
70
  gl_FUNC_MEMMEM_SIMPLE
71
  gl_STRING_MODULE_INDICATOR([memmem])
72
  # Code from module multiarch:
73
  gl_MULTIARCH
74
  # Code from module stddef:
75
  gl_STDDEF_H
76
  # Code from module stdint:
77
  gl_STDINT_H
78
  # Code from module string:
79
  gl_HEADER_STRING_H
80
  # Code from module warn-on-use:
81
  # Code from module wchar:
82
  gl_WCHAR_H
83
  # Code from module dummy:
84
  # End of code from modules
85
  m4_ifval(gl_LIBSOURCES_LIST, [
86
    m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
87
      for gl_file in ]gl_LIBSOURCES_LIST[ ; do
88
        if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
89
          echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
90
          exit 1
91
        fi
92
      done])dnl
93
      m4_if(m4_sysval, [0], [],
94
        [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
95
  ])
96
  m4_popdef([gl_LIBSOURCES_DIR])
97
  m4_popdef([gl_LIBSOURCES_LIST])
98
  m4_popdef([AC_LIBSOURCES])
99
  m4_popdef([AC_REPLACE_FUNCS])
100
  m4_popdef([AC_LIBOBJ])
101
  AC_CONFIG_COMMANDS_PRE([
102
    gl_libobjs=
103
    gl_ltlibobjs=
104
    if test -n "$gl_LIBOBJS"; then
105
      # Remove the extension.
106
      sed_drop_objext='s/\.o$//;s/\.obj$//'
107
      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
108
        gl_libobjs="$gl_libobjs $i.$ac_objext"
109
        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
110
      done
111
    fi
112
    AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
113
    AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
114
  ])
115
  gltests_libdeps=
116
  gltests_ltlibdeps=
117
  m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
118
  m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
119
  m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
120
  m4_pushdef([gltests_LIBSOURCES_LIST], [])
121
  m4_pushdef([gltests_LIBSOURCES_DIR], [])
122
  gl_COMMON
123
  gl_source_base='tests'
124
changequote(,)dnl
125
  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
126
changequote([, ])dnl
127
  AC_SUBST([gltests_WITNESS])
128
  gl_module_indicator_condition=$gltests_WITNESS
129
  m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
130
  m4_popdef([gl_MODULE_INDICATOR_CONDITION])
131
  m4_ifval(gltests_LIBSOURCES_LIST, [
132
    m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
133
      for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
134
        if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
135
          echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
136
          exit 1
137
        fi
138
      done])dnl
139
      m4_if(m4_sysval, [0], [],
140
        [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
141
  ])
142
  m4_popdef([gltests_LIBSOURCES_DIR])
143
  m4_popdef([gltests_LIBSOURCES_LIST])
144
  m4_popdef([AC_LIBSOURCES])
145
  m4_popdef([AC_REPLACE_FUNCS])
146
  m4_popdef([AC_LIBOBJ])
147
  AC_CONFIG_COMMANDS_PRE([
148
    gltests_libobjs=
149
    gltests_ltlibobjs=
150
    if test -n "$gltests_LIBOBJS"; then
151
      # Remove the extension.
152
      sed_drop_objext='s/\.o$//;s/\.obj$//'
153
      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
154
        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
155
        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
156
      done
157
    fi
158
    AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
159
    AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
160
  ])
161
  LIBGNU_LIBDEPS="$gl_libdeps"
162
  AC_SUBST([LIBGNU_LIBDEPS])
163
  LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
164
  AC_SUBST([LIBGNU_LTLIBDEPS])
165
])
166
 
167
# Like AC_LIBOBJ, except that the module name goes
168
# into gl_LIBOBJS instead of into LIBOBJS.
169
AC_DEFUN([gl_LIBOBJ], [
170
  AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
171
  gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
172
])
173
 
174
# Like AC_REPLACE_FUNCS, except that the module name goes
175
# into gl_LIBOBJS instead of into LIBOBJS.
176
AC_DEFUN([gl_REPLACE_FUNCS], [
177
  m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
178
  AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
179
])
180
 
181
# Like AC_LIBSOURCES, except the directory where the source file is
182
# expected is derived from the gnulib-tool parameterization,
183
# and alloca is special cased (for the alloca-opt module).
184
# We could also entirely rely on EXTRA_lib..._SOURCES.
185
AC_DEFUN([gl_LIBSOURCES], [
186
  m4_foreach([_gl_NAME], [$1], [
187
    m4_if(_gl_NAME, [alloca.c], [], [
188
      m4_define([gl_LIBSOURCES_DIR], [gnulib])
189
      m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
190
    ])
191
  ])
192
])
193
 
194
# Like AC_LIBOBJ, except that the module name goes
195
# into gltests_LIBOBJS instead of into LIBOBJS.
196
AC_DEFUN([gltests_LIBOBJ], [
197
  AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
198
  gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
199
])
200
 
201
# Like AC_REPLACE_FUNCS, except that the module name goes
202
# into gltests_LIBOBJS instead of into LIBOBJS.
203
AC_DEFUN([gltests_REPLACE_FUNCS], [
204
  m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
205
  AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
206
])
207
 
208
# Like AC_LIBSOURCES, except the directory where the source file is
209
# expected is derived from the gnulib-tool parameterization,
210
# and alloca is special cased (for the alloca-opt module).
211
# We could also entirely rely on EXTRA_lib..._SOURCES.
212
AC_DEFUN([gltests_LIBSOURCES], [
213
  m4_foreach([_gl_NAME], [$1], [
214
    m4_if(_gl_NAME, [alloca.c], [], [
215
      m4_define([gltests_LIBSOURCES_DIR], [tests])
216
      m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
217
    ])
218
  ])
219
])
220
 
221
# This macro records the list of files which have been installed by
222
# gnulib-tool and may be removed by future gnulib-tool invocations.
223
AC_DEFUN([gl_FILE_LIST], [
224
  build-aux/arg-nonnull.h
225
  build-aux/c++defs.h
226
  build-aux/warn-on-use.h
227
  lib/dummy.c
228
  lib/memchr.c
229
  lib/memchr.valgrind
230
  lib/memmem.c
231
  lib/stddef.in.h
232
  lib/stdint.in.h
233
  lib/str-two-way.h
234
  lib/string.in.h
235
  lib/wchar.in.h
236
  m4/00gnulib.m4
237
  m4/extensions.m4
238
  m4/gnulib-common.m4
239
  m4/include_next.m4
240
  m4/longlong.m4
241
  m4/memchr.m4
242
  m4/memmem.m4
243
  m4/mmap-anon.m4
244
  m4/multiarch.m4
245
  m4/onceonly.m4
246
  m4/stddef_h.m4
247
  m4/stdint.m4
248
  m4/string_h.m4
249
  m4/warn-on-use.m4
250
  m4/wchar_h.m4
251
  m4/wchar_t.m4
252
  m4/wint_t.m4
253
])

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.