Mercurial > hg > octave-nkf > gnulib-hg
changeset 8361:78cd6ce7fa16
Test for vasnprintf in the macro that need it.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 07 Mar 2007 01:34:55 +0000 |
parents | 31ccbcac6809 |
children | cc0be4662687 |
files | ChangeLog m4/vasnprintf-posix.m4 m4/vasnprintf.m4 m4/vasprintf-posix.m4 |
diffstat | 4 files changed, 11 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-06 Bruno Haible <bruno@clisp.org> + + * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here. + * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here. + 2007-03-06 Bruno Haible <bruno@clisp.org> * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
--- a/m4/vasnprintf-posix.m4 +++ b/m4/vasnprintf-posix.m4 @@ -1,4 +1,4 @@ -# vasnprintf-posix.m4 serial 1 +# vasnprintf-posix.m4 serial 2 dnl Copyright (C) 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -11,7 +11,7 @@ AC_REQUIRE([gl_PRINTF_DIRECTIVE_A]) AC_REQUIRE([gl_PRINTF_DIRECTIVE_N]) AC_REQUIRE([gl_PRINTF_POSITIONS]) - AC_CHECK_FUNCS([vasnprintf]) + AC_CHECK_FUNCS_ONCE([vasnprintf]) if expr "$gl_cv_func_printf_sizes_c99" : ".*yes" > /dev/null \ && expr "$gl_cv_func_printf_directive_a" : ".*yes" > /dev/null \ && expr "$gl_cv_func_printf_directive_n" : ".*yes" > /dev/null \
--- a/m4/vasnprintf.m4 +++ b/m4/vasnprintf.m4 @@ -1,4 +1,4 @@ -# vasnprintf.m4 serial 8 +# vasnprintf.m4 serial 9 dnl Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -7,7 +7,7 @@ AC_DEFUN([gl_FUNC_VASNPRINTF], [ AC_REQUIRE([gl_EOVERFLOW]) - AC_CHECK_FUNCS([vasnprintf]) + AC_CHECK_FUNCS_ONCE([vasnprintf]) if test $ac_cv_func_vasnprintf = no; then gl_REPLACE_VASNPRINTF fi @@ -15,6 +15,7 @@ AC_DEFUN([gl_REPLACE_VASNPRINTF], [ + AC_CHECK_FUNCS_ONCE([vasnprintf]) AC_LIBOBJ([vasnprintf]) AC_LIBOBJ([printf-args]) AC_LIBOBJ([printf-parse])
--- a/m4/vasprintf-posix.m4 +++ b/m4/vasprintf-posix.m4 @@ -1,4 +1,4 @@ -# vasprintf-posix.m4 serial 1 +# vasprintf-posix.m4 serial 2 dnl Copyright (C) 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -19,7 +19,6 @@ && test $ac_cv_func_vasprintf = yes; then : # vasprintf exists and is already POSIX compliant. else - AC_CHECK_FUNCS([vasnprintf]) if ! expr "$gl_cv_func_printf_directive_a" : ".*yes" > /dev/null; then AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], 1, [Define if the vasnprintf implementation needs special code for