summaryrefslogtreecommitdiff
path: root/m4/wcrtomb.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/wcrtomb.m4
parentec062d7a2671739dd977ebde3965fc93f8678a2e (diff)
downloadgnulib-64865499c9cf8748356a0857a8481d74b394bd79.tar.gz
Modernize AC_TRY_RUN invocations.
Diffstat (limited to 'm4/wcrtomb.m4')
-rw-r--r--m4/wcrtomb.m47
1 files changed, 4 insertions, 3 deletions
diff --git a/m4/wcrtomb.m4 b/m4/wcrtomb.m4
index 6a2d772a32..0de262e612 100644
--- a/m4/wcrtomb.m4
+++ b/m4/wcrtomb.m4
@@ -1,4 +1,4 @@
-# wcrtomb.m4 serial 5
+# wcrtomb.m4 serial 6
dnl Copyright (C) 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,
@@ -40,7 +40,8 @@ changequote(,)dnl
esac
changequote([,])dnl
if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
- AC_TRY_RUN([
+ AC_RUN_IFELSE(
+ [AC_LANG_SOURCE([[
#include <locale.h>
#include <stdio.h>
#include <string.h>
@@ -68,7 +69,7 @@ int main ()
return 1;
}
return 0;
-}],
+}]])],
[gl_cv_func_wcrtomb_retval=yes],
[gl_cv_func_wcrtomb_retval=no],
[:])