summaryrefslogtreecommitdiffstats
path: root/gettext-runtime/m4/codeset.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-07-19 23:36:41 +0200
committerBruno Haible <bruno@clisp.org>2010-08-30 22:58:34 +0200
commit6adfd11ac958a11340174d4b016d45e3b5d4b55a (patch)
tree6194f4055c9d8fb52e03ca615eab213f25d165d0 /gettext-runtime/m4/codeset.m4
parenta70dbe527164d7ba8e3e3803cea18c5da1e2b996 (diff)
downloadexternal_gettext-6adfd11ac958a11340174d4b016d45e3b5d4b55a.zip
external_gettext-6adfd11ac958a11340174d4b016d45e3b5d4b55a.tar.gz
external_gettext-6adfd11ac958a11340174d4b016d45e3b5d4b55a.tar.bz2
Modernize AC_TRY_LINK invocations.
Diffstat (limited to 'gettext-runtime/m4/codeset.m4')
-rw-r--r--gettext-runtime/m4/codeset.m412
1 files changed, 7 insertions, 5 deletions
diff --git a/gettext-runtime/m4/codeset.m4 b/gettext-runtime/m4/codeset.m4
index a53c042..f722b2e 100644
--- a/gettext-runtime/m4/codeset.m4
+++ b/gettext-runtime/m4/codeset.m4
@@ -1,4 +1,4 @@
-# codeset.m4 serial 4 (gettext-0.18)
+# codeset.m4 serial 5 (gettext-0.18.2)
dnl Copyright (C) 2000-2002, 2006, 2008-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -9,10 +9,12 @@ dnl From Bruno Haible.
AC_DEFUN([AM_LANGINFO_CODESET],
[
AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
- [AC_TRY_LINK([#include <langinfo.h>],
- [char* cs = nl_langinfo(CODESET); return !cs;],
- [am_cv_langinfo_codeset=yes],
- [am_cv_langinfo_codeset=no])
+ [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],