Mercurial > hg > octave-lojdl > gnulib-hg
view m4/vasnprintf-posix.m4 @ 8338:557787fcc6cd
Use function name rpl_vasnprintf if vasnprintf already exists.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 04 Mar 2007 23:50:44 +0000 |
parents | 2c9de3b6ba5b |
children | b7fc2d0aaa1e |
line wrap: on
line source
# vasnprintf-posix.m4 serial 1 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, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_VASNPRINTF_POSIX], [ AC_REQUIRE([gl_EOVERFLOW]) AC_REQUIRE([gl_PRINTF_SIZES_C99]) AC_REQUIRE([gl_PRINTF_DIRECTIVE_A]) AC_REQUIRE([gl_PRINTF_DIRECTIVE_N]) AC_REQUIRE([gl_PRINTF_POSITIONS]) AC_CHECK_FUNCS([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 \ && expr "$gl_cv_func_printf_positions" : ".*yes" > /dev/null \ && test $ac_cv_func_vasnprintf = yes; then : # vasnprintf exists and is already POSIX compliant. else if test $ac_cv_func_vasnprintf = yes; then AC_DEFINE([REPLACE_VASNPRINTF], 1, [Define if vasnprintf exists but is overridden by gnulib.]) fi 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 the 'a' and 'A' directives.]) fi gl_REPLACE_VASNPRINTF fi ])