summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-04-03 07:48:06 +0000
committerJim Meyering <jim@meyering.net>2000-04-03 07:48:06 +0000
commit1ce828da284b5b729c503bfa554b760b4b8aa95f (patch)
treef946bb3a3b90f9d345db30ec3c0fc2451191ae91 /m4
parent073977f69f76875a7ef3a97b0827f480760abac7 (diff)
downloadcoreutils-1ce828da284b5b729c503bfa554b760b4b8aa95f.tar.xz
(AC_CHECK_HEADERS): Add langinfo.h (moved here from
textutils/configure.in). Suggestion from Paul Eggert. (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
Diffstat (limited to 'm4')
-rw-r--r--m4/codeset.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/codeset.m4 b/m4/codeset.m4
index 6f0b58e09..fbe6a80d3 100644
--- a/m4/codeset.m4
+++ b/m4/codeset.m4
@@ -1,9 +1,12 @@
-#serial 1
+#serial 2
dnl From Bruno Haible.
AC_DEFUN(jm_LANGINFO_CODESET,
[
+ AC_CHECK_HEADERS(langinfo.h)
+ AC_CHECK_FUNCS(nl_langinfo)
+
AC_CACHE_CHECK([for nl_langinfo and CODESET], jm_cv_langinfo_codeset,
[AC_TRY_LINK([#include <langinfo.h>],
[char* cs = nl_langinfo(CODESET);],