7525ed1f50923841da26d45374f2d678e54c18e7
[gnulib.git] / modules / iconv_open
1 Description:
2 Character set conversion.
3
4 Files:
5 lib/iconv_.h
6 lib/iconv_open.c
7 lib/iconv_open-aix.gperf
8 lib/iconv_open-hpux.gperf
9 lib/iconv_open-irix.gperf
10 lib/iconv_open-osf.gperf
11 m4/iconv_h.m4
12 m4/iconv_open.m4
13
14 Depends-on:
15 absolute-header
16 iconv
17 c-ctype
18
19 configure.ac:
20 gl_ICONV_H
21 gl_FUNC_ICONV_OPEN
22
23 Makefile.am:
24 BUILT_SOURCES += $(ICONV_H)
25
26 # We need the following in order to create <iconv.h> when the system
27 # doesn't have one that works with the given compiler.
28 iconv.h: iconv_.h
29         rm -f $@-t $@
30         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
31           sed -e 's|@''ABSOLUTE_ICONV_H''@|$(ABSOLUTE_ICONV_H)|g' \
32               -e 's/@''HAVE_INCLUDE_NEXT''@/$(HAVE_INCLUDE_NEXT)/g' \
33               -e 's|@''REPLACE_ICONV_OPEN''@|$(REPLACE_ICONV_OPEN)|g' \
34               < $(srcdir)/iconv_.h; \
35         } > $@-t
36         mv $@-t $@
37 MOSTLYCLEANFILES += iconv.h iconv.h-t
38
39 GPERF = gperf
40 iconv_open-aix.h: iconv_open-aix.gperf
41         $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $@-t
42         mv $@-t $@
43 iconv_open-hpux.h: iconv_open-hpux.gperf
44         $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $@-t
45         mv $@-t $@
46 iconv_open-irix.h: iconv_open-irix.gperf
47         $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $@-t
48         mv $@-t $@
49 iconv_open-osf.h: iconv_open-osf.gperf
50         $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $@-t
51         mv $@-t $@
52 BUILT_SOURCES        += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h
53 MOSTLYCLEANFILES     += iconv_open-aix.h-t iconv_open-hpux.h-t iconv_open-irix.h-t iconv_open-osf.h-t
54 MAINTAINERCLEANFILES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h
55 EXTRA_DIST           += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h
56
57 Include:
58 <iconv.h>
59
60 License:
61 LGPL
62
63 Maintainer:
64 Bruno Haible