Use GNU libunistring and Gnulib modules needed by R6RS bytevectors and ports.
[bpt/guile.git] / m4 / iconv_h.m4
CommitLineData
24d56127
LC
1# iconv_h.m4 serial 4
2dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved.
6
7AC_DEFUN([gl_ICONV_H],
8[
9 AC_REQUIRE([gl_ICONV_H_DEFAULTS])
10 gl_CHECK_NEXT_HEADERS([iconv.h])
11])
12
13dnl Unconditionally enables the replacement of <iconv.h>.
14AC_DEFUN([gl_REPLACE_ICONV_H],
15[
16 AC_REQUIRE([gl_ICONV_H_DEFAULTS])
17 ICONV_H='iconv.h'
18])
19
20AC_DEFUN([gl_ICONV_MODULE_INDICATOR],
21[
22 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
23 AC_REQUIRE([gl_ICONV_H_DEFAULTS])
24 GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
25])
26
27AC_DEFUN([gl_ICONV_H_DEFAULTS],
28[
29 dnl Assume proper GNU behavior unless another module says otherwise.
30 REPLACE_ICONV=0; AC_SUBST([REPLACE_ICONV])
31 REPLACE_ICONV_OPEN=0; AC_SUBST([REPLACE_ICONV_OPEN])
32 REPLACE_ICONV_UTF=0; AC_SUBST([REPLACE_ICONV_UTF])
33 ICONV_H=''; AC_SUBST([ICONV_H])
34])