texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Gavin D. Smith
Date: Sat, 19 Aug 2023 07:20:18 -0400 (EDT)

branch: master
commit 16b208e80004e73b7934f8799510c57b68894e09
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Aug 19 12:19:39 2023 +0100

    * configure.ac: Check for Unicode::Collate and issue a warning
    if not found.  Report from Bruno Haible on CentOS 8-stream.
---
 ChangeLog    |  5 +++++
 configure.ac | 15 +++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 6db83cec46..fcf902d532 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-08-19  Gavin Smith <gavinsmith0123@gmail.com>
+
+       * configure.ac: Check for Unicode::Collate and issue a warning
+       if not found.  Report from Bruno Haible on CentOS 8-stream.
+
 2023-08-19  Gavin Smith <gavinsmith0123@gmail.com>
 
        * tp/Texinfo/Structuring.pm (sort_indices):
diff --git a/configure.ac b/configure.ac
index 1c7f337400..f50ea37508 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,6 +71,16 @@ if test z"$perl_version_requirement" = 'zno' ; then
   AC_MSG_ERROR([perl >= 5.8.1 with Encode and Data::Dumper required by 
Texinfo.])
 fi
 
+AC_MSG_CHECKING([Unicode::Collate])
+if $PERL -e "use 5.008_001; use Unicode::Collate;" >/dev/null 2>&1; then
+  unicode_collate='yes'
+else
+  unicode_collate='no'
+fi
+AC_MSG_RESULT($unicode_collate)
+if test z"$unicode_collate" = 'zno' ; then
+  AC_MSG_WARN([Unicode::Collate not present; indices may be sorted 
incorrectly])
+fi
 
 AC_REQUIRE_AUX_FILE([tap-driver.sh])
 
@@ -608,3 +618,8 @@ if test $have_termlib = no; then
   AC_MSG_WARN([Could not find a terminal library among ${TERMLIB_VARIANTS}])
   AC_MSG_WARN([The programs from `info' directory will not be built.])
 fi
+
+if test $unicode_collate = no; then
+  AC_MSG_WARN([Perl module Unicode::Collate was not found.])
+  AC_MSG_WARN([texi2any may sort document indices incorrectly.])
+fi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]