]> sjero.net Git - wget/blob - md5/m4/gnulib-comp.m4
Moved md5 stuff out into separate md5/ dir.
[wget] / md5 / m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2004-2007 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   m4_pushdef([AC_LIBOBJ], m4_defn([md5_LIBOBJ]))
35   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([md5_REPLACE_FUNCS]))
36   m4_pushdef([AC_LIBSOURCES], m4_defn([md5_LIBSOURCES]))
37   AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
38   gl_cond_libtool=false
39   gl_libdeps=
40   gl_ltlibdeps=
41   gl_source_base='md5'
42   gl_MD5
43   gl_STDINT_H
44   gl_WCHAR_H
45   LIBMD5_LIBDEPS="$gl_libdeps"
46   AC_SUBST([LIBMD5_LIBDEPS])
47   LIBMD5_LTLIBDEPS="$gl_ltlibdeps"
48   AC_SUBST([LIBMD5_LTLIBDEPS])
49   m4_popdef([AC_LIBSOURCES])
50   m4_popdef([AC_REPLACE_FUNCS])
51   m4_popdef([AC_LIBOBJ])
52   AC_CONFIG_COMMANDS_PRE([
53     md5_libobjs=
54     md5_ltlibobjs=
55     if test -n "$md5_LIBOBJS"; then
56       # Remove the extension.
57       sed_drop_objext='s/\.o$//;s/\.obj$//'
58       for i in `for i in $md5_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
59         md5_libobjs="$md5_libobjs $i.$ac_objext"
60         md5_ltlibobjs="$md5_ltlibobjs $i.lo"
61       done
62     fi
63     AC_SUBST([md5_LIBOBJS], [$md5_libobjs])
64     AC_SUBST([md5_LTLIBOBJS], [$md5_ltlibobjs])
65   ])
66 ])
67
68 # Like AC_LIBOBJ, except that the module name goes
69 # into md5_LIBOBJS instead of into LIBOBJS.
70 AC_DEFUN([md5_LIBOBJ], [
71   AS_LITERAL_IF([$1], [md5_LIBSOURCES([$1.c])])dnl
72   md5_LIBOBJS="$md5_LIBOBJS $1.$ac_objext"
73 ])
74
75 # Like AC_REPLACE_FUNCS, except that the module name goes
76 # into md5_LIBOBJS instead of into LIBOBJS.
77 AC_DEFUN([md5_REPLACE_FUNCS], [
78   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
79   AC_CHECK_FUNCS([$1], , [md5_LIBOBJ($ac_func)])
80 ])
81
82 # Like AC_LIBSOURCES, except the directory where the source file is
83 # expected is derived from the gnulib-tool parametrization,
84 # and alloca is special cased (for the alloca-opt module).
85 # We could also entirely rely on EXTRA_lib..._SOURCES.
86 AC_DEFUN([md5_LIBSOURCES], [
87   m4_foreach([_gl_NAME], [$1], [
88     m4_if(_gl_NAME, [alloca.c], [], [
89       m4_syscmd([test -r md5/]_gl_NAME[ || test ! -d md5])dnl
90       m4_if(m4_sysval, [0], [],
91         [AC_FATAL([missing md5/]_gl_NAME)])
92     ])
93   ])
94 ])
95
96 # This macro records the list of files which have been installed by
97 # gnulib-tool and may be removed by future gnulib-tool invocations.
98 AC_DEFUN([md5_FILE_LIST], [
99   build-aux/link-warning.h
100   lib/dummy.c
101   lib/md5.c
102   lib/md5.h
103   lib/stdint.in.h
104   lib/wchar.in.h
105   m4/gnulib-common.m4
106   m4/include_next.m4
107   m4/longlong.m4
108   m4/md5.m4
109   m4/stdint.m4
110   m4/wchar.m4
111 ])