libctf: Add configure check for asprintf (for MinGW)
authorEli Zaretskii <eliz@gnu.org>
Sun, 5 Jan 2020 05:50:27 +0000 (09:50 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Sun, 5 Jan 2020 05:54:55 +0000 (09:54 +0400)
commit84baa6a51500a6e6faf422ab12f61c5c9857cfd0
tree171822d4789edc8d7c27c7ca6581ff62432d61fc
parent6f6d0a077876bd097c00f3e4757aeb3e99b583be
libctf: Add configure check for asprintf (for MinGW)

This commit fixes a compilation warning when compiling libctf
on MinGW:

    libctf/ctf-dump.c:118:8: warning: implicit declaration of function
    'asprintf'; did you mean 'vasprintf'? [-Wimplicit-function-declaration]

 if (asprintf (&bit, " %lx: [slice 0x%x:0x%x]",
     ^~~~~~~~
     vasprintf

MinGW doesn't provide that function, so we depend on the one provided
by libiberty. However, the declaration is guarded by HAVE_DECL_ASPRINTF,
which we do not have in libctf's config.h.

libctf/ChangeLog:

PR binutils/25155:
* configure.ac: Add AC_CHECK_DECLS([asprintf]).
* configure, config.h.in: Regenerate.

(cherry picked from commit 3a657c600bde2d3bd84870f75968622bbdb69ce8)
libctf/ChangeLog
libctf/config.h.in
libctf/configure
libctf/configure.ac
This page took 0.030691 seconds and 4 git commands to generate.