File: 0001-Add-codeset.m4-to-m4-to-prevent-build-failure-with-g.patch

package info (click to toggle)
gnokii 0.6.30%2Bdfsg-1.3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 10,052 kB
  • sloc: ansic: 66,256; sh: 11,369; makefile: 646; sql: 61
file content (44 lines) | stat: -rw-r--r-- 1,374 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From 4dd198d121ca366c9881d022a56394c2e56936d0 Mon Sep 17 00:00:00 2001
From: Pawel Kot <gnokii@gmail.com>
Date: Thu, 2 Jan 2020 13:13:45 +0100
Subject: Add codeset.m4 to m4/ to prevent build failure with gettext >= 0.20

Add codeset.m4 to m4/ as it is missing from gettext distribution from
version 0.20.

Fixes: https://savannah.nongnu.org/bugs/?57509

diff --git a/m4/codeset.m4 b/m4/codeset.m4
new file mode 100644
index 00000000..da1b2aef
--- /dev/null
+++ b/m4/codeset.m4
@@ -0,0 +1,25 @@
+# codeset.m4 serial 5 (gettext-0.18.2)
+dnl Copyright (C) 2000-2002, 2006, 2008-2014, 2016 Free Software Foundation,
+dnl Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+
+AC_DEFUN([AM_LANGINFO_CODESET],
+[
+  AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
+    [AC_LINK_IFELSE(
+       [AC_LANG_PROGRAM(
+          [[#include <langinfo.h>]],
+          [[char* cs = nl_langinfo(CODESET); return !cs;]])],
+       [am_cv_langinfo_codeset=yes],
+       [am_cv_langinfo_codeset=no])
+    ])
+  if test $am_cv_langinfo_codeset = yes; then
+    AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
+      [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
+  fi
+])
+
-- 
2.20.1