]> Savannah Git Hosting - gnulib.git/commitdiff
duplocale: Fix Android build of duplocale-tests
authorKevin Cernekee <cernekee@google.com>
Wed, 11 Feb 2015 23:22:58 +0000 (15:22 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Feb 2015 23:47:46 +0000 (15:47 -0800)
* modules/duplocale-tests (Depends-on): Add langinfo, as the header
is included by test-duplocale.c (but not by duplocale.c).
* modules/duplocale-tests (configure.ac): Check for monetary.h.
* tests/test-duplocale.c: Skip test if monetary.h is absent.
* doc/posix-headers/monetary.texi: Add Android to the list of
platforms missing monetary.h.

ChangeLog
doc/posix-headers/monetary.texi
modules/duplocale-tests
tests/test-duplocale.c

index d74ae320d52e00cc93323fd72e704faa931dac31..99a97524c954cfdecdcbefc92f8c490c64c15845 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        * lib/signal.in.h: Add Android to the list of platforms that declare
        pthread_sigmask() in <pthread.h> instead of <signal.h>.
 
+       duplocale: Fix Android build of duplocale-tests
+       * modules/duplocale-tests (Depends-on): Add langinfo, as the header
+       is included by test-duplocale.c (but not by duplocale.c).
+       * modules/duplocale-tests (configure.ac): Check for monetary.h.
+       * tests/test-duplocale.c: Skip test if monetary.h is absent.
+       * doc/posix-headers/monetary.texi: Add Android to the list of
+       platforms missing monetary.h.
+
 2015-02-08  Daiki Ueno  <ueno@gnu.org>
 
        uniname/unimame-tests: don't link with -lunistring
index 95170eb14945412df4a453fe70ec1cd815790717..baf2cd61f0d802d3a0a61539283a6e301d8d1c00 100644 (file)
@@ -13,5 +13,5 @@ Portability problems not fixed by Gnulib:
 @itemize
 @item
 This header file is missing on some platforms:
-NetBSD 3.0, OpenBSD 3.8, Minix 3.1.8, Cygwin, mingw, MSVC 9, BeOS.
+NetBSD 3.0, OpenBSD 3.8, Minix 3.1.8, Cygwin, mingw, MSVC 9, BeOS, Android.
 @end itemize
index af9dc9889d7ff1b4903bf582372e5a4efdcd8d4e..9cd9d44f38d20881ec0d4b37e07463335b14a9db 100644 (file)
@@ -4,9 +4,11 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+langinfo
 
 configure.ac:
 AC_CHECK_FUNCS_ONCE([duplocale])
+AC_CHECK_HEADERS([monetary.h])
 
 Makefile.am:
 TESTS += test-duplocale
index f5da517bf3f855da13bfd89b516caa5dd3935675..18913f1b8b7dfa4761ac56d8949928eb22b14454 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <locale.h>
 
-#if HAVE_DUPLOCALE
+#if HAVE_DUPLOCALE && HAVE_MONETARY_H
 
 #include "signature.h"
 SIGNATURE_CHECK (duplocale, locale_t, (locale_t));