annotate m4/nls.m4 @ 5659:be44f23226e0

Update from GNU gettext 0.14.2.
author Bruno Haible <bruno@clisp.org>
date Thu, 24 Feb 2005 20:12:45 +0000
parents 3cb468809e1f
children eea92bfb3f7d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4335
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 # nls.m4 serial 1 (gettext-0.12)
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
5659
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 4335
diff changeset
3 dnl This file is free software; the Free Software Foundation
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 4335
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 4335
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
4335
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 dnl
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 dnl This file can can be used in projects which are not available under
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 dnl the GNU General Public License or the GNU Library General Public
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 dnl License but which still want to provide support for the GNU gettext
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 dnl functionality.
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 dnl Please note that the actual code of the GNU gettext library is covered
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 dnl by the GNU Library General Public License, and the rest of the GNU
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 dnl gettext package package is covered by the GNU General Public License.
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 dnl They are *not* in the public domain.
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 dnl Authors:
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 AC_DEFUN([AM_NLS],
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 [
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 AC_MSG_CHECKING([whether NLS is requested])
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 dnl Default is enabled NLS
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 AC_ARG_ENABLE(nls,
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 [ --disable-nls do not use Native Language Support],
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 USE_NLS=$enableval, USE_NLS=yes)
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 AC_MSG_RESULT($USE_NLS)
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 AC_SUBST(USE_NLS)
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 ])
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 AC_DEFUN([AM_MKINSTALLDIRS],
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 [
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 dnl Try to locate it.
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 MKINSTALLDIRS=
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 if test -n "$ac_aux_dir"; then
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 case "$ac_aux_dir" in
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 esac
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 fi
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 if test -z "$MKINSTALLDIRS"; then
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
44 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45 fi
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 AC_SUBST(MKINSTALLDIRS)
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
47 ])