Use iconvme from gnulib.
[libidn.git] / lib / gl / m4 / gnulib-comp.m4
blobdfad10976e87bdd6edf14d4c5e284847f9c9a0ec
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2004-2006 Free Software Foundation, Inc.
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.
10 # Generated by gnulib-tool.
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.
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([lgl_EARLY],
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])
30 # This macro should be invoked from ./configure.ac, in the section
31 # "Check for header files, types and library functions".
32 AC_DEFUN([lgl_INIT],
34   m4_pushdef([AC_LIBOBJ], m4_defn([lgl_LIBOBJ]))
35   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([lgl_REPLACE_FUNCS]))
36   AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
37   gl_cond_libtool=true
38   gl_source_base='lib/gl'
39   AM_ICONV
40   gl_ICONVME
41   if test $gl_cond_libtool = false; then
42     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
43     gl_libdeps="$gl_libdeps $LIBICONV"
44   fi
45   gl_FUNC_STRDUP
46   m4_popdef([AC_REPLACE_FUNCS])
47   m4_popdef([AC_LIBOBJ])
48   AC_CONFIG_COMMANDS_PRE([
49     lgl_libobjs=
50     lgl_ltlibobjs=
51     if test -n "$lgl_LIBOBJS"; then
52       for i in $lgl_LIBOBJS; do
53         # Remove the extension.
54         sed_drop_objext='s/\.o$//;s/\.obj$//'
55         i=`echo "$i" | sed "$sed_drop_objext"`
56         lgl_libobjs="$lgl_libobjs $i.$ac_objext"
57         lgl_ltlibobjs="$lgl_ltlibobjs $i.lo"
58       done
59     fi
60     AC_SUBST([lgl_LIBOBJS], [$lgl_libobjs])
61     AC_SUBST([lgl_LTLIBOBJS], [$lgl_ltlibobjs])
62   ])
65 # Like AC_LIBOBJ, except that the module name goes
66 # into lgl_LIBOBJS instead of into LIBOBJS.
67 AC_DEFUN([lgl_LIBOBJ],
68   [lgl_LIBOBJS="$lgl_LIBOBJS $1.$ac_objext"])
70 # Like AC_REPLACE_FUNCS, except that the module name goes
71 # into lgl_LIBOBJS instead of into LIBOBJS.
72 AC_DEFUN([lgl_REPLACE_FUNCS],
73   [AC_CHECK_FUNCS([$1], , [lgl_LIBOBJ($ac_func)])])
75 # This macro records the list of files which have been installed by
76 # gnulib-tool and may be removed by future gnulib-tool invocations.
77 AC_DEFUN([lgl_FILE_LIST], [
78   build-aux/config.rpath
79   lib/gettext.h
80   lib/iconvme.c
81   lib/iconvme.h
82   lib/strdup.c
83   lib/strdup.h
84   m4/iconv.m4
85   m4/iconvme.m4
86   m4/lib-ld.m4
87   m4/lib-link.m4
88   m4/lib-prefix.m4
89   m4/strdup.m4