]> sjero.net Git - wget/blob - md5/m4/gnulib-comp.m4
Use gnulib's getpass-gnu module for password prompting.
[wget] / md5 / m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2008 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([md5_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 ])
29
30 # This macro should be invoked from ./configure.ac, in the section
31 # "Check for header files, types and library functions".
32 AC_DEFUN([md5_INIT],
33 [
34   AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
35   gl_cond_libtool=false
36   gl_libdeps=
37   gl_ltlibdeps=
38   m4_pushdef([AC_LIBOBJ], m4_defn([md5_LIBOBJ]))
39   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([md5_REPLACE_FUNCS]))
40   m4_pushdef([AC_LIBSOURCES], m4_defn([md5_LIBSOURCES]))
41   gl_COMMON
42   gl_source_base='md5'
43   gl_MD5
44   gl_STDINT_H
45   gl_WCHAR_H
46   m4_popdef([AC_LIBSOURCES])
47   m4_popdef([AC_REPLACE_FUNCS])
48   m4_popdef([AC_LIBOBJ])
49   AC_CONFIG_COMMANDS_PRE([
50     md5_libobjs=
51     md5_ltlibobjs=
52     if test -n "$md5_LIBOBJS"; then
53       # Remove the extension.
54       sed_drop_objext='s/\.o$//;s/\.obj$//'
55       for i in `for i in $md5_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
56         md5_libobjs="$md5_libobjs $i.$ac_objext"
57         md5_ltlibobjs="$md5_ltlibobjs $i.lo"
58       done
59     fi
60     AC_SUBST([md5_LIBOBJS], [$md5_libobjs])
61     AC_SUBST([md5_LTLIBOBJS], [$md5_ltlibobjs])
62   ])
63   gltests_libdeps=
64   gltests_ltlibdeps=
65   m4_pushdef([AC_LIBOBJ], m4_defn([md5tests_LIBOBJ]))
66   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([md5tests_REPLACE_FUNCS]))
67   m4_pushdef([AC_LIBSOURCES], m4_defn([md5tests_LIBSOURCES]))
68   gl_COMMON
69   gl_source_base='tests'
70   m4_popdef([AC_LIBSOURCES])
71   m4_popdef([AC_REPLACE_FUNCS])
72   m4_popdef([AC_LIBOBJ])
73   AC_CONFIG_COMMANDS_PRE([
74     md5tests_libobjs=
75     md5tests_ltlibobjs=
76     if test -n "$md5tests_LIBOBJS"; then
77       # Remove the extension.
78       sed_drop_objext='s/\.o$//;s/\.obj$//'
79       for i in `for i in $md5tests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
80         md5tests_libobjs="$md5tests_libobjs $i.$ac_objext"
81         md5tests_ltlibobjs="$md5tests_ltlibobjs $i.lo"
82       done
83     fi
84     AC_SUBST([md5tests_LIBOBJS], [$md5tests_libobjs])
85     AC_SUBST([md5tests_LTLIBOBJS], [$md5tests_ltlibobjs])
86   ])
87   LIBMD5_LIBDEPS="$gl_libdeps"
88   AC_SUBST([LIBMD5_LIBDEPS])
89   LIBMD5_LTLIBDEPS="$gl_ltlibdeps"
90   AC_SUBST([LIBMD5_LTLIBDEPS])
91 ])
92
93 # Like AC_LIBOBJ, except that the module name goes
94 # into md5_LIBOBJS instead of into LIBOBJS.
95 AC_DEFUN([md5_LIBOBJ], [
96   AS_LITERAL_IF([$1], [md5_LIBSOURCES([$1.c])])dnl
97   md5_LIBOBJS="$md5_LIBOBJS $1.$ac_objext"
98 ])
99
100 # m4_foreach_w is provided by autoconf-2.59c and later.
101 # This definition is to accommodate developers using versions
102 # of autoconf older than that.
103 m4_ifndef([m4_foreach_w],
104   [m4_define([m4_foreach_w],
105     [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
106
107 # Like AC_REPLACE_FUNCS, except that the module name goes
108 # into md5_LIBOBJS instead of into LIBOBJS.
109 AC_DEFUN([md5_REPLACE_FUNCS], [
110   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
111   AC_CHECK_FUNCS([$1], , [md5_LIBOBJ($ac_func)])
112 ])
113
114 # Like AC_LIBSOURCES, except the directory where the source file is
115 # expected is derived from the gnulib-tool parametrization,
116 # and alloca is special cased (for the alloca-opt module).
117 # We could also entirely rely on EXTRA_lib..._SOURCES.
118 AC_DEFUN([md5_LIBSOURCES], [
119   m4_foreach([_gl_NAME], [$1], [
120     m4_if(_gl_NAME, [alloca.c], [], [
121       m4_syscmd([test -r md5/]_gl_NAME[ || test ! -d md5])dnl
122       m4_if(m4_sysval, [0], [],
123         [AC_FATAL([missing md5/]_gl_NAME)])
124     ])
125   ])
126 ])
127
128 # Like AC_LIBOBJ, except that the module name goes
129 # into md5tests_LIBOBJS instead of into LIBOBJS.
130 AC_DEFUN([md5tests_LIBOBJ], [
131   AS_LITERAL_IF([$1], [md5tests_LIBSOURCES([$1.c])])dnl
132   md5tests_LIBOBJS="$md5tests_LIBOBJS $1.$ac_objext"
133 ])
134
135 # m4_foreach_w is provided by autoconf-2.59c and later.
136 # This definition is to accommodate developers using versions
137 # of autoconf older than that.
138 m4_ifndef([m4_foreach_w],
139   [m4_define([m4_foreach_w],
140     [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
141
142 # Like AC_REPLACE_FUNCS, except that the module name goes
143 # into md5tests_LIBOBJS instead of into LIBOBJS.
144 AC_DEFUN([md5tests_REPLACE_FUNCS], [
145   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
146   AC_CHECK_FUNCS([$1], , [md5tests_LIBOBJ($ac_func)])
147 ])
148
149 # Like AC_LIBSOURCES, except the directory where the source file is
150 # expected is derived from the gnulib-tool parametrization,
151 # and alloca is special cased (for the alloca-opt module).
152 # We could also entirely rely on EXTRA_lib..._SOURCES.
153 AC_DEFUN([md5tests_LIBSOURCES], [
154   m4_foreach([_gl_NAME], [$1], [
155     m4_if(_gl_NAME, [alloca.c], [], [
156       m4_syscmd([test -r tests/]_gl_NAME[ || test ! -d tests])dnl
157       m4_if(m4_sysval, [0], [],
158         [AC_FATAL([missing tests/]_gl_NAME)])
159     ])
160   ])
161 ])
162
163 # This macro records the list of files which have been installed by
164 # gnulib-tool and may be removed by future gnulib-tool invocations.
165 AC_DEFUN([md5_FILE_LIST], [
166   build-aux/link-warning.h
167   lib/dummy.c
168   lib/md5.c
169   lib/md5.h
170   lib/stdint.in.h
171   lib/wchar.in.h
172   m4/gnulib-common.m4
173   m4/include_next.m4
174   m4/longlong.m4
175   m4/md5.m4
176   m4/stdint.m4
177   m4/wchar.m4
178 ])