]> Savannah Git Hosting - gnulib.git/commitdiff
Assume unbroken ungetc() on Android
authorKevin Cernekee <cernekee@google.com>
Wed, 11 Feb 2015 23:22:50 +0000 (15:22 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Feb 2015 23:47:44 +0000 (15:47 -0800)
* m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
test case passed when running on an Android host, and the code
hasn't really changed since 2009.

ChangeLog
m4/ungetc.m4

index c4cb47f8803ac556621734be5f21d788ea89e2a3..35e9e4da19435c61b7fb4bf16b057d4c56a8064d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        Therefore don't enable by default.
        * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
 
+       Assume unbroken ungetc() on Android
+       * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
+       test case passed when running on an Android host, and the code
+       hasn't really changed since 2009.
+
 2015-02-08  Daiki Ueno  <ueno@gnu.org>
 
        uniname/unimame-tests: don't link with -lunistring
index c5c90f6d9cd03a25c0c3c405f19ffaaef6c09aca..2a34b3019f5ae196d130ffea3bb9f030d07dfdd0 100644 (file)
@@ -29,8 +29,9 @@ AC_DEFUN_ONCE([gl_FUNC_UNGETC_WORKS],
            fclose (f); remove ("conftest.tmp");])],
         [gl_cv_func_ungetc_works=yes], [gl_cv_func_ungetc_works=no],
         [case "$host_os" in
-                   # Guess yes on glibc systems.
-           *-gnu*) gl_cv_func_ungetc_works="guessing yes" ;;
+                   # Guess yes on glibc and bionic systems.
+           *-gnu*|*-android*)
+                   gl_cv_func_ungetc_works="guessing yes" ;;
                    # If we don't know, assume the worst.
            *)      gl_cv_func_ungetc_works="guessing no" ;;
          esac