summaryrefslogtreecommitdiff
path: root/modules/duplocale-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2018-12-18 09:59:41 +0100
committerBruno Haible <bruno@clisp.org>2018-12-18 09:59:41 +0100
commit0d6e3307bbdb8df4d56043d5f373eeeffe4cbef3 (patch)
tree109c837f9a3d434b2c83f06e4cdf8efea4d4dd15 /modules/duplocale-tests
parent55e1fc818eed5ce14c76e366685e29b163f23684 (diff)
downloadgnulib-0d6e3307bbdb8df4d56043d5f373eeeffe4cbef3.tar.gz
duplocale: Avoid test failure on AIX 7.
* modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4. (configure.ac): Invoke gt_FUNC_USELOCALE. * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale works.
Diffstat (limited to 'modules/duplocale-tests')
-rw-r--r--modules/duplocale-tests4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/duplocale-tests b/modules/duplocale-tests
index baa9a63102..29b2a1a02d 100644
--- a/modules/duplocale-tests
+++ b/modules/duplocale-tests
@@ -2,13 +2,15 @@ Files:
tests/test-duplocale.c
tests/signature.h
tests/macros.h
+m4/intl-thread-locale.m4
Depends-on:
langinfo
configure.ac:
-AC_CHECK_FUNCS_ONCE([duplocale uselocale strfmon_l snprintf_l nl_langinfo_l])
+AC_CHECK_FUNCS_ONCE([duplocale strfmon_l snprintf_l nl_langinfo_l])
AC_CHECK_HEADERS_ONCE([monetary.h])
+gt_FUNC_USELOCALE
Makefile.am:
TESTS += test-duplocale