Use Gnulib's `stat-time' module; update Gnulib.
[bpt/guile.git] / m4 / iconv_h.m4
CommitLineData
a927b6c1 1# iconv_h.m4 serial 6
61cd9dc9 2dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
24d56127
LC
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])
414e4441
LC
10
11 dnl Execute this unconditionally, because ICONV_H may be set by other
12 dnl modules, after this code is executed.
24d56127
LC
13 gl_CHECK_NEXT_HEADERS([iconv.h])
14])
15
16dnl Unconditionally enables the replacement of <iconv.h>.
17AC_DEFUN([gl_REPLACE_ICONV_H],
18[
19 AC_REQUIRE([gl_ICONV_H_DEFAULTS])
20 ICONV_H='iconv.h'
21])
22
23AC_DEFUN([gl_ICONV_MODULE_INDICATOR],
24[
25 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
26 AC_REQUIRE([gl_ICONV_H_DEFAULTS])
a927b6c1 27 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
24d56127
LC
28])
29
30AC_DEFUN([gl_ICONV_H_DEFAULTS],
31[
32 dnl Assume proper GNU behavior unless another module says otherwise.
33 REPLACE_ICONV=0; AC_SUBST([REPLACE_ICONV])
34 REPLACE_ICONV_OPEN=0; AC_SUBST([REPLACE_ICONV_OPEN])
35 REPLACE_ICONV_UTF=0; AC_SUBST([REPLACE_ICONV_UTF])
36 ICONV_H=''; AC_SUBST([ICONV_H])
37])