summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-05-11 13:45:22 +0000
committerBruno Haible <bruno@clisp.org>2001-05-11 13:45:22 +0000
commit7675ef98cea6bfd03a805dbc208ffe8a0a37d9d8 (patch)
tree7804e027f210a07f1c89c404dc0b41b676b205f4
parent501962f9beb3b3bcf9acb7d1f05531921bdd9739 (diff)
downloadexternal_gettext-7675ef98cea6bfd03a805dbc208ffe8a0a37d9d8.zip
external_gettext-7675ef98cea6bfd03a805dbc208ffe8a0a37d9d8.tar.gz
external_gettext-7675ef98cea6bfd03a805dbc208ffe8a0a37d9d8.tar.bz2
Don't install charset.alias on glibc-2.1 systems.
-rw-r--r--doc/ChangeLog4
-rw-r--r--doc/gettext.texi2
-rw-r--r--intl/ChangeLog5
-rw-r--r--intl/Makefile.in19
-rw-r--r--m4/ChangeLog6
-rw-r--r--m4/Makefile.am6
-rw-r--r--m4/gettext.m41
-rw-r--r--m4/glibc21.m426
-rw-r--r--misc/ChangeLog4
-rw-r--r--misc/gettextize.in2
10 files changed, 64 insertions, 11 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 1d466b5..5178123 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,7 @@
+2001-05-11 Bruno Haible <haible@clisp.cons.org>
+
+ * gettext.texi (aclocal): Add glibc21.m4 to the list of needed files.
+
2001-04-19 Bruno Haible <haible@clisp.cons.org>
* gettext-0.10.37 released.
diff --git a/doc/gettext.texi b/doc/gettext.texi
index ef7d6d2..edc6bb8 100644
--- a/doc/gettext.texi
+++ b/doc/gettext.texi
@@ -5149,7 +5149,7 @@ AC_CONFIG_AUX_DIR([@var{subdir}])
If you do not have an @file{aclocal.m4} file in your distribution,
the simplest is to concatenate the files @file{codeset.m4},
-@file{gettext.m4}, @file{iconv.m4}, @file{isc-posix.m4},
+@file{gettext.m4}, @file{glibc21.m4}, @file{iconv.m4}, @file{isc-posix.m4},
@file{lcmessage.m4}, @file{progtest.m4} from GNU @code{gettext}'s
@file{m4/} directory into a single file.
diff --git a/intl/ChangeLog b/intl/ChangeLog
index 88f356d..2599a58 100644
--- a/intl/ChangeLog
+++ b/intl/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-11 Bruno Haible <haible@clisp.cons.org>
+
+ * Makefile.in (install-exec): Don't install charset.alias on glibc 2.1
+ systems.
+
2001-04-30 Bruno Haible <haible@clisp.cons.org>
* dcigettext.c (getuid, getgid, geteuid, getegid): Provide default
diff --git a/intl/Makefile.in b/intl/Makefile.in
index 4ed0a6a..4f1812c 100644
--- a/intl/Makefile.in
+++ b/intl/Makefile.in
@@ -152,14 +152,21 @@ install-exec: all
fi
if test '@USE_INCLUDED_LIBINTL@' = yes; then \
$(mkinstalldirs) $(DESTDIR)$(libdir); \
- test -f $(DESTDIR)$(libdir)/charset.alias \
- && orig=$(DESTDIR)$(libdir)/charset.alias \
- || orig=charset.alias; \
temp=$(DESTDIR)$(libdir)/t-charset.alias; \
dest=$(DESTDIR)$(libdir)/charset.alias; \
- sed -f ref-add.sed $$orig > $$temp; \
- $(INSTALL_DATA) $$temp $$dest; \
- rm -f $$temp; \
+ if test -f $(DESTDIR)$(libdir)/charset.alias; then \
+ orig=$(DESTDIR)$(libdir)/charset.alias; \
+ sed -f ref-add.sed $$orig > $$temp; \
+ $(INSTALL_DATA) $$temp $$dest; \
+ rm -f $$temp; \
+ else \
+ if test @GLIBC21@ = no; then \
+ orig=charset.alias; \
+ sed -f ref-add.sed $$orig > $$temp; \
+ $(INSTALL_DATA) $$temp $$dest; \
+ rm -f $$temp; \
+ fi; \
+ fi; \
$(mkinstalldirs) $(DESTDIR)$(localedir); \
test -f $(DESTDIR)$(localedir)/locale.alias \
&& orig=$(DESTDIR)$(localedir)/locale.alias \
diff --git a/m4/ChangeLog b/m4/ChangeLog
index 7a19b95..2182dad 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,9 @@
+2001-05-11 Bruno Haible <haible@clisp.cons.org>
+
+ * glibc21.m4: New file, from fileutils-4.1.
+ * gettext.m4 (AM_GNU_GETTEXT): Require jm_GLIBC21.
+ * Makefile.am (EXTRA_DIST): Add glibc21.m4.
+
2001-05-04 Bruno Haible <haible@clisp.cons.org>
* gettext.m4 (AM_WITH_NLS): Let the GNU gettext package install its
diff --git a/m4/Makefile.am b/m4/Makefile.am
index cad7a00..d10ca9c 100644
--- a/m4/Makefile.am
+++ b/m4/Makefile.am
@@ -7,6 +7,6 @@ aclocal_DATA = codeset.m4 gettext.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest
# find . -type f -name '*.m4' -printf '%f\n'|sort |fmt |tr '\012' @ \
# |sed 's/@$/%/;s/@/ \\@/g' |tr @% '\012\012'
EXTRA_DIST = README \
-c-bs-a.m4 codeset.m4 getline.m4 gettext.m4 iconv.m4 inttypes_h.m4 \
-isc-posix.m4 lcmessage.m4 libtool.m4 mbrtowc.m4 mbstate_t.m4 mbswidth.m4 \
-progtest.m4 setlocale.m4 signed.m4 uintmax_t.m4 ulonglong.m4
+c-bs-a.m4 codeset.m4 getline.m4 gettext.m4 glibc21.m4 iconv.m4 \
+inttypes_h.m4 isc-posix.m4 lcmessage.m4 libtool.m4 mbrtowc.m4 mbstate_t.m4 \
+mbswidth.m4 progtest.m4 setlocale.m4 signed.m4 uintmax_t.m4 ulonglong.m4
diff --git a/m4/gettext.m4 b/m4/gettext.m4
index a9fce69..b744d77 100644
--- a/m4/gettext.m4
+++ b/m4/gettext.m4
@@ -259,6 +259,7 @@ AC_DEFUN([AM_GNU_GETTEXT],
AC_REQUIRE([AC_TYPE_SIZE_T])dnl
AC_REQUIRE([AC_FUNC_ALLOCA])dnl
AC_REQUIRE([AC_FUNC_MMAP])dnl
+ AC_REQUIRE([jm_GLIBC21])dnl
AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
stdlib.h string.h unistd.h sys/param.h])
diff --git a/m4/glibc21.m4 b/m4/glibc21.m4
new file mode 100644
index 0000000..5b88ef2
--- /dev/null
+++ b/m4/glibc21.m4
@@ -0,0 +1,26 @@
+#serial 2
+
+# Test for the GNU C Library, version 2.1 or newer.
+# From Bruno Haible.
+
+AC_DEFUN([jm_GLIBC21],
+ [
+ AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
+ ac_cv_gnu_library_2_1,
+ [AC_EGREP_CPP([Lucky GNU user],
+ [
+#include <features.h>
+#ifdef __GNU_LIBRARY__
+ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
+ Lucky GNU user
+ #endif
+#endif
+ ],
+ ac_cv_gnu_library_2_1=yes,
+ ac_cv_gnu_library_2_1=no)
+ ]
+ )
+ AC_SUBST(GLIBC21)
+ GLIBC21="$ac_cv_gnu_library_2_1"
+ ]
+)
diff --git a/misc/ChangeLog b/misc/ChangeLog
index 3f95413..22c7609 100644
--- a/misc/ChangeLog
+++ b/misc/ChangeLog
@@ -1,3 +1,7 @@
+2001-05-11 Bruno Haible <haible@clisp.cons.org>
+
+ * gettextize.in: Tell the user about glibc21.m4.
+
2001-05-09 Bruno Haible <haible@clisp.cons.org>
* po-mode.el (po-replace-revision-date): For the timezone, use RFC 822
diff --git a/misc/gettextize.in b/misc/gettextize.in
index 7e498bc..3f3192b 100644
--- a/misc/gettextize.in
+++ b/misc/gettextize.in
@@ -200,7 +200,7 @@ rm -f $srcdir/po/ChangeLog.tmp
echo
echo "Please add the files"
-echo " codeset.m4 gettext.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4"
+echo " codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4"
echo "from the @datadir@/aclocal directory to your autoconf macro directory"
echo "or directly to your aclocal.m4 file."
echo "You will also need config.guess and config.sub, which you can get from"