a4324f96b2975719a0dac4c2a8634b4be1b9d2b7
[gnulib.git] / m4 / iconv_h.m4
1 # iconv_h.m4 serial 1
2 dnl Copyright (C) 2007 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gl_ICONV_H],
8 [
9   AC_REQUIRE([gl_ICONV_H_DEFAULTS])
10   gl_ABSOLUTE_HEADER([iconv.h])
11   ABSOLUTE_ICONV_H=\"$gl_cv_absolute_iconv_h\"
12   AC_SUBST([ABSOLUTE_ICONV_H])
13   ICONV_H=
14   AC_SUBST([ICONV_H])
15 ])
16
17 AC_DEFUN([gl_ICONV_MODULE_INDICATOR],
18 [
19   dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
20   AC_REQUIRE([gl_ICONV_H_DEFAULTS])
21   GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
22 ])
23
24 AC_DEFUN([gl_ICONV_H_DEFAULTS],
25 [
26   dnl Assume proper GNU behavior unless another module says otherwise.
27   REPLACE_ICONV_OPEN=0; AC_SUBST([REPLACE_ICONV_OPEN])
28 ])