summaryrefslogtreecommitdiff
path: root/m4/wcwidth.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-07-20 01:06:56 +0200
committerBruno Haible <bruno@clisp.org>2010-08-26 22:57:54 +0200
commit64865499c9cf8748356a0857a8481d74b394bd79 (patch)
tree4a05b4eb597b3f1042c085e4eb202f3736f1e088 /m4/wcwidth.m4
parentec062d7a2671739dd977ebde3965fc93f8678a2e (diff)
downloadgnulib-64865499c9cf8748356a0857a8481d74b394bd79.tar.gz
Modernize AC_TRY_RUN invocations.
Diffstat (limited to 'm4/wcwidth.m4')
-rw-r--r--m4/wcwidth.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/wcwidth.m4 b/m4/wcwidth.m4
index ad5c6cc8e9..ac357f372e 100644
--- a/m4/wcwidth.m4
+++ b/m4/wcwidth.m4
@@ -41,7 +41,8 @@ AC_DEFUN([gl_FUNC_WCWIDTH],
AC_CACHE_CHECK([whether wcwidth works reasonably in UTF-8 locales],
[gl_cv_func_wcwidth_works],
[
- AC_TRY_RUN([
+ AC_RUN_IFELSE(
+ [AC_LANG_SOURCE([[
#include <locale.h>
/* AIX 3.2.5 declares wcwidth in <string.h>. */
#include <string.h>
@@ -66,7 +67,9 @@ int main ()
if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
return 1;
return 0;
-}], [gl_cv_func_wcwidth_works=yes], [gl_cv_func_wcwidth_works=no],
+}]])],
+ [gl_cv_func_wcwidth_works=yes],
+ [gl_cv_func_wcwidth_works=no],
[
changequote(,)dnl
case "$host_os" in