~ubuntu-branches/ubuntu/utopic/gettext/utopic

« back to all changes in this revision

Viewing changes to gettext-tools/gnulib-m4/iconv_h.m4

  • Committer: Colin Watson
  • Date: 2010-08-01 21:36:08 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: cjwatson@canonical.com-20100801213608-yy7vkm8lpatep3ci
merge from Debian 0.18.1.1-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# iconv_h.m4 serial 3
2
 
dnl Copyright (C) 2007 Free Software Foundation, Inc.
 
1
# iconv_h.m4 serial 6
 
2
dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
7
7
AC_DEFUN([gl_ICONV_H],
8
8
[
9
9
  AC_REQUIRE([gl_ICONV_H_DEFAULTS])
 
10
 
 
11
  dnl Execute this unconditionally, because ICONV_H may be set by other
 
12
  dnl modules, after this code is executed.
10
13
  gl_CHECK_NEXT_HEADERS([iconv.h])
11
 
  ICONV_H=
12
 
  AC_SUBST([ICONV_H])
 
14
])
 
15
 
 
16
dnl Unconditionally enables the replacement of <iconv.h>.
 
17
AC_DEFUN([gl_REPLACE_ICONV_H],
 
18
[
 
19
  AC_REQUIRE([gl_ICONV_H_DEFAULTS])
 
20
  ICONV_H='iconv.h'
13
21
])
14
22
 
15
23
AC_DEFUN([gl_ICONV_MODULE_INDICATOR],
16
24
[
17
25
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
18
26
  AC_REQUIRE([gl_ICONV_H_DEFAULTS])
19
 
  GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
 
27
  gl_MODULE_INDICATOR_SET_VARIABLE([$1])
20
28
])
21
29
 
22
30
AC_DEFUN([gl_ICONV_H_DEFAULTS],
25
33
  REPLACE_ICONV=0;      AC_SUBST([REPLACE_ICONV])
26
34
  REPLACE_ICONV_OPEN=0; AC_SUBST([REPLACE_ICONV_OPEN])
27
35
  REPLACE_ICONV_UTF=0;  AC_SUBST([REPLACE_ICONV_UTF])
 
36
  ICONV_H='';           AC_SUBST([ICONV_H])
28
37
])