m17n-list
[Top][All Lists]
Advanced

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

[PATCH] configure.ac: Add support for zstd-compressed charmaps


From: Thomas Staudinger
Subject: [PATCH] configure.ac: Add support for zstd-compressed charmaps
Date: Fri, 10 May 2024 23:31:58 +0200

Solus, like apparently OpenMandriva and potentially other Linux distros, carries a glibc patch to compress charmaps with zstd instead of gzip. While neat this leads to a build failure for m17n-db. This patch adds support for .zst charmap files to configure.ac by expanding the logic already used for .gz charmaps
---
 configure.ac | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 5abde50..a3fc526 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,7 +65,10 @@ else :
 fi
 
 if test "x$CHARMAPS" != "x"; then
-  if test -r "$CHARMAPS/EUC-JP.gz"; then
+  if test -r "$CHARMAPS/EUC-JP.zst"; then
+    CHARMAP_EXT=".zst"
+    CHARMAP_CAT="zstdcat"
+  elif test -r "$CHARMAPS/EUC-JP.gz"; then
     CHARMAP_EXT=".gz"
     CHARMAP_CAT="zcat"
   elif test -r "$CHARMAPS/EUC-JP"; then

reply via email to

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