+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.
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.
+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
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 \
+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
# 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
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])
--- /dev/null
+#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"
+ ]
+)
+2001-05-11 Bruno Haible <haible@clisp.cons.org>
+
+ * gettextize.in: Tell the user about glibc21.m4.
+
2001-04-19 Bruno Haible <haible@clisp.cons.org>
* gettext-0.10.37 released.
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"