]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Respect the configure option --localedir.
authorBruno Haible <bruno@clisp.org>
Mon, 15 May 2017 16:22:29 +0000 (18:22 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 15 May 2017 16:27:13 +0000 (18:27 +0200)
Reported by Markus Gothe at https://savannah.gnu.org/bugs/index.php?49862 .

The AC_SUBSTed variable @localedir@ is supported since Autoconf 2.60.

* gettext-runtime/intl/Makefile.in (localedir): Set to @localedir@. Suggested
by Markus Gothe <nietzsche@lysator.liu.se>.
* gettext-runtime/m4/intldir.m4: Require Autoconf 2.60 or newer.
* gettext-tools/doc/gettext.texi (src/Makefile): Assume Autoconf 2.60 or newer.

gettext-runtime/intl/Makefile.in
gettext-runtime/m4/intldir.m4
gettext-tools/doc/gettext.texi

index 961a04287fcc07c6fa86728cbb9a3fdd7d8ba0ee..3f2b185beccb7d86d6e3844965a259993cd1ba7a 100644 (file)
@@ -1,5 +1,5 @@
 # Makefile for directory with message catalog handling library of GNU gettext
-# Copyright (C) 1995-1998, 2000-2007, 2009-2016 Free Software Foundation, Inc.
+# Copyright (C) 1995-1998, 2000-2007, 2009-2017 Free Software Foundation, Inc.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published by
@@ -42,7 +42,7 @@ libdir = @libdir@
 includedir = @includedir@
 datarootdir = @datarootdir@
 datadir = @datadir@
-localedir = $(datadir)/locale
+localedir = @localedir@
 gettextsrcdir = $(datadir)/gettext/intl
 aliaspath = $(localedir)
 subdir = intl
index c688f4695683b5af0b114f4c52c96979a4bcb2d5..8d74bda4c058dbe6241d113ae0b2cb81234d9598 100644 (file)
@@ -1,5 +1,5 @@
-# intldir.m4 serial 2 (gettext-0.18)
-dnl Copyright (C) 2006, 2009-2014, 2016 Free Software Foundation, Inc.
+# intldir.m4 serial 3 (gettext-0.19.9)
+dnl Copyright (C) 2006, 2009-2014, 2016-2017 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -13,7 +13,7 @@ dnl by the GNU Library General Public License, and the rest of the GNU
 dnl gettext package is covered by the GNU General Public License.
 dnl They are *not* in the public domain.
 
-AC_PREREQ([2.52])
+AC_PREREQ([2.60])
 
 dnl Tells the AM_GNU_GETTEXT macro to consider an intl/ directory.
 AC_DEFUN([AM_GNU_GETTEXT_INTL_SUBDIR], [])
index 2b5e29535e373dd595a7192939cbaa520a54b89a..03bdf1d5782d8901b4f38a4fe10738c32f81e53d 100644 (file)
@@ -79,7 +79,7 @@ This file provides documentation for GNU @code{gettext} utilities.
 It also serves as a reference for the free Translation Project.
 
 @copying
-Copyright (C) 1995-1998, 2001-2016 Free Software Foundation, Inc.
+Copyright (C) 1995-1998, 2001-2017 Free Software Foundation, Inc.
 
 This manual is free documentation.  It is dually licensed under the
 GNU FDL and the GNU GPL.  This means that you can redistribute this
@@ -8233,7 +8233,7 @@ textdomain (@var{PACKAGE});
 @end example
 
 To make LOCALEDIR known to the program, add the following lines to
-@file{Makefile.in} if you are using Autoconf version 2.60 or newer:
+@file{Makefile.in}:
 
 @example
 datadir = @@datadir@@
@@ -8242,15 +8242,7 @@ localedir = @@localedir@@
 DEFS = -DLOCALEDIR=\"$(localedir)\" @@DEFS@@
 @end example
 
-or these lines if your version of Autoconf is older than 2.60:
-
-@example
-datadir = @@datadir@@
-localedir = $(datadir)/locale
-DEFS = -DLOCALEDIR=\"$(localedir)\" @@DEFS@@
-@end example
-
-Note that @code{@@datadir@@} defaults to @samp{$(prefix)/share}, thus
+Note that @code{@@datadir@@} defaults to @samp{$(prefix)/share}, and
 @code{$(localedir)} defaults to @samp{$(prefix)/share/locale}.
 
 @item