diff options
author | Bruno Haible <bruno@clisp.org> | 2006-09-22 20:10:26 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2006-09-22 20:10:26 +0000 |
commit | e1c5c74989afaf386aa8516956aba0a16df777b7 (patch) | |
tree | 7f3809f62779828db74c62b8b36af710ac2c804f /m4/vasprintf.m4 | |
parent | e40cf4e4eb8a15c5982664e9ae8546661e02f4fd (diff) | |
download | gnulib-e1c5c74989afaf386aa8516956aba0a16df777b7.tar.gz |
Avoid warning at configure time with "gcc -Wall".
Diffstat (limited to 'm4/vasprintf.m4')
-rw-r--r-- | m4/vasprintf.m4 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/m4/vasprintf.m4 b/m4/vasprintf.m4 index 385e92edd1..18ca6327b5 100644 --- a/m4/vasprintf.m4 +++ b/m4/vasprintf.m4 @@ -1,5 +1,5 @@ -# vasprintf.m4 serial 1 -dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. +# vasprintf.m4 serial 2 +dnl Copyright (C) 2002-2003, 2006 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. @@ -9,11 +9,19 @@ AC_DEFUN([gl_FUNC_VASPRINTF], AC_REPLACE_FUNCS(vasprintf) if test $ac_cv_func_vasprintf = no; then AC_LIBOBJ(asprintf) + gl_PREREQ_VASPRINTF_H gl_PREREQ_VASPRINTF gl_PREREQ_ASPRINTF fi ]) +# Prerequisites of lib/vasprintf.h. +AC_DEFUN([gl_PREREQ_VASPRINTF_H], +[ + dnl Persuade glibc <stdio.h> to declare asprintf() and vasprintf(). + AC_REQUIRE([AC_GNU_SOURCE]) +]) + # Prerequisites of lib/vasprintf.c. AC_DEFUN([gl_PREREQ_VASPRINTF], [ |