~ubuntu-branches/ubuntu/maverick/texinfo/maverick

« back to all changes in this revision

Viewing changes to m4/iconv.m4

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2005-10-28 15:10:30 UTC
  • mto: (2.1.1 dapper) (3.1.4 hardy)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051028151030-9nsf2s2k2z3fktjt
Tags: upstream-4.8
ImportĀ upstreamĀ versionĀ 4.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# iconv.m4 serial AM3 (gettext-0.11)
 
1
# iconv.m4 serial AM4 (gettext-0.11.3)
2
2
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
3
3
dnl This file is free software, distributed under the terms of the GNU
4
4
dnl General Public License.  As a special exception to the GNU General
8
8
 
9
9
dnl From Bruno Haible.
10
10
 
11
 
AC_DEFUN([AM_ICONV_LINK],
 
11
AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
12
12
[
13
 
  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
14
 
  dnl those with the standalone portable GNU libiconv installed).
15
 
 
16
13
  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
17
14
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
18
15
  AC_REQUIRE([AC_LIB_RPATH])
20
17
  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
21
18
  dnl accordingly.
22
19
  AC_LIB_LINKFLAGS_BODY([iconv])
 
20
])
 
21
 
 
22
AC_DEFUN([AM_ICONV_LINK],
 
23
[
 
24
  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
 
25
  dnl those with the standalone portable GNU libiconv installed).
 
26
 
 
27
  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
 
28
  dnl accordingly.
 
29
  AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
23
30
 
24
31
  dnl Add $INCICONV to CPPFLAGS before performing the following checks,
25
32
  dnl because if the user has installed libiconv and not disabled its use
69
76
 
70
77
AC_DEFUN([AM_ICONV],
71
78
[
72
 
  AC_REQUIRE([AM_ICONV_LINK])
 
79
  AM_ICONV_LINK
73
80
  if test "$am_cv_func_iconv" = yes; then
74
81
    AC_MSG_CHECKING([for iconv declaration])
75
82
    AC_CACHE_VAL(am_cv_proto_iconv, [