changeset 29242:41975c374e2f

The localcharset module requires a modified TESTS_ENVIRONMENT; tell the user.
author Bruno Haible <bruno@clisp.org>
date Wed, 26 Dec 2007 16:33:48 +0100
parents 53d8797106ae
children bc19ad176424
files ChangeLog modules/localcharset
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Dec 26 16:31:08 2007 +0100
+++ b/ChangeLog	Wed Dec 26 16:33:48 2007 +0100
@@ -1,3 +1,9 @@
+2007-12-25  Bruno Haible  <bruno@clisp.org>
+
+	* modules/localcharset (Notice): New field.
+	(configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
+	Suggested by Ben Pfaff <blp@cs.stanford.edu>.
+
 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
             Bruno Haible  <bruno@clisp.org>
 
--- a/modules/localcharset	Wed Dec 26 16:31:08 2007 +0100
+++ b/modules/localcharset	Wed Dec 26 16:33:48 2007 +0100
@@ -1,6 +1,12 @@
 Description:
 Return current locale's character encoding.
 
+Notice:
+If your package's tests make use of the locale_charset() function directly or
+indirectly, you may need to define the CHARSETALIASDIR environment variable,
+so that "make check" works before "make install". In Makefile.am syntax:
+TESTS_ENVIRONMENT += @LOCALCHARSET_TESTS_ENVIRONMENT@
+
 Files:
 lib/localcharset.h
 lib/localcharset.c
@@ -16,6 +22,8 @@
 
 configure.ac:
 gl_LOCALCHARSET
+LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
+AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
 
 Makefile.am:
 lib_SOURCES += localcharset.h localcharset.c