annotate m4/vasprintf.m4 @ 269:6cbc409ff09f 2.6

Added asprintf redux
author lost
date Tue, 22 Dec 2009 05:53:05 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
269
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
1 # vasprintf.m4 serial 6
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
2 dnl Copyright (C) 2002-2003, 2006-2007 Free Software Foundation, Inc.
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
6
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
7 AC_DEFUN([gl_FUNC_VASPRINTF],
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
8 [
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
9 AC_CHECK_FUNCS([vasprintf])
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
10 if test $ac_cv_func_vasprintf = no; then
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
11 gl_REPLACE_VASPRINTF
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
12 fi
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
13 ])
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
14
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
15 AC_DEFUN([gl_REPLACE_VASPRINTF],
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
16 [
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
17 AC_LIBOBJ([vasprintf])
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
18 AC_LIBOBJ([asprintf])
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
19 AC_REQUIRE([gl_STDIO_H_DEFAULTS])
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
20 if test $ac_cv_func_vasprintf = yes; then
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
21 REPLACE_VASPRINTF=1
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
22 else
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
23 HAVE_VASPRINTF=0
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
24 fi
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
25 gl_PREREQ_VASPRINTF_H
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
26 gl_PREREQ_VASPRINTF
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
27 gl_PREREQ_ASPRINTF
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
28 ])
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
29
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
30 # Prerequisites of the vasprintf portion of lib/stdio.h.
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
31 AC_DEFUN([gl_PREREQ_VASPRINTF_H],
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
32 [
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
33 dnl Persuade glibc <stdio.h> to declare asprintf() and vasprintf().
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
34 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
35 ])
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
36
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
37 # Prerequisites of lib/vasprintf.c.
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
38 AC_DEFUN([gl_PREREQ_VASPRINTF],
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
39 [
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
40 ])
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
41
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
42 # Prerequisites of lib/asprintf.c.
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
43 AC_DEFUN([gl_PREREQ_ASPRINTF],
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
44 [
6cbc409ff09f Added asprintf redux
lost
parents:
diff changeset
45 ])