diff m4/mbiter.m4 @ 6301:015760832874

Deal with the fact that mbchar.h, mbfile.h, mbiter.h, mbuiter.h can only be #included conditionally.
author Bruno Haible <bruno@clisp.org>
date Mon, 26 Sep 2005 13:58:51 +0000
parents 283b5e8d287a
children 45e1c3577b49
line wrap: on
line diff
--- a/m4/mbiter.m4
+++ b/m4/mbiter.m4
@@ -1,4 +1,4 @@
-# mbiter.m4 serial 1
+# mbiter.m4 serial 2
 dnl Copyright (C) 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -10,5 +10,8 @@
 AC_DEFUN([gl_MBITER],
 [
   AC_REQUIRE([AC_TYPE_MBSTATE_T])
+  dnl The following line is that so the user can test HAVE_MBRTOWC before
+  dnl #include "mbiter.h" or "mbuiter.h".
+  AC_REQUIRE([gl_FUNC_MBRTOWC])
   :
 ])