3 dnl Copyright (C) 2002-2003, 2006-2007, 2009-2024 Free Software Foundation,
5 dnl This file is free software; the Free Software Foundation
6 dnl gives unlimited permission to copy and/or distribute it,
7 dnl with or without modifications, as long as this notice is preserved.
9 AC_DEFUN([gl_FUNC_VASPRINTF],
11 AC_CHECK_FUNCS([vasprintf])
12 if test $ac_cv_func_vasprintf = no; then
17 AC_DEFUN([gl_REPLACE_VASPRINTF],
19 AC_LIBOBJ([vasprintf])
21 AC_REQUIRE([gl_STDIO_H_DEFAULTS])
22 if test $ac_cv_func_vasprintf = yes; then
32 # Prerequisites of the vasprintf portion of lib/stdio.h.
33 AC_DEFUN([gl_PREREQ_VASPRINTF_H],
35 dnl Persuade glibc <stdio.h> to declare asprintf() and vasprintf().
36 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
39 # Prerequisites of lib/vasprintf.c.
40 AC_DEFUN([gl_PREREQ_VASPRINTF],
44 # Prerequisites of lib/asprintf.c.
45 AC_DEFUN([gl_PREREQ_ASPRINTF],