diff options
author | Bruno Haible <bruno@clisp.org> | 2023-01-19 21:55:23 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-01-19 21:55:23 +0100 |
commit | 909873441124b0f80b1427d55d02d8b6b5992890 (patch) | |
tree | b1db63ed7c1fa59b7f02cd00d91f581dcf64749a /m4/log2.m4 | |
parent | dc4c5939bbcf0ba8e86be2246232f7012fcd25dd (diff) | |
download | gnulib-909873441124b0f80b1427d55d02d8b6b5992890.tar.gz |
Fix warnings for functions introduced in Android API level 18.
* m4/getdelim.m4 (gl_FUNC_GETDELIM): Test for getdelim using
gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.
* m4/getline.m4 (gl_FUNC_GETLINE): Test for getline using
gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNC.
* m4/log2.m4 (gl_FUNC_LOG2): Test for log2 using
gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS.
* m4/log2f.m4 (gl_FUNC_LOG2F): Test for log2f using
gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS.
* m4/log2l.m4 (gl_FUNC_LOG2L): Test for log2l using
gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS.
Diffstat (limited to 'm4/log2.m4')
-rw-r--r-- | m4/log2.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/log2.m4 b/m4/log2.m4 index acf092fed1..4e08f48fe8 100644 --- a/m4/log2.m4 +++ b/m4/log2.m4 @@ -1,4 +1,4 @@ -# log2.m4 serial 10 +# log2.m4 serial 11 dnl Copyright (C) 2010-2023 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -18,7 +18,7 @@ AC_DEFUN([gl_FUNC_LOG2], dnl Test whether log2() exists. save_LIBS="$LIBS" LIBS="$LIBS $LOG2_LIBM" - AC_CHECK_FUNCS([log2]) + gl_CHECK_FUNCS_ANDROID([log2], [[#include <math.h>]]) LIBS="$save_LIBS" if test $ac_cv_func_log2 = yes; then HAVE_LOG2=1 |