diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-02-12 11:07:18 (GMT) |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-02-12 11:07:18 (GMT) |
commit | bd7029a99b0c2974265c6665638ef14a052f42ab (patch) | |
tree | f5661ba73366d81ef6e91f889ea7fec5ebe07b6b /gl/m4/vasprintf.m4 | |
parent | f99612320d6eda67644c07be04bb21aa4d7789db (diff) | |
download | monitoring-plugins-bd7029a99b0c2974265c6665638ef14a052f42ab.tar.gz |
Sync to latest Gnulib
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1925 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'gl/m4/vasprintf.m4')
-rw-r--r-- | gl/m4/vasprintf.m4 | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/gl/m4/vasprintf.m4 b/gl/m4/vasprintf.m4 index 18ca632..074b03c 100644 --- a/gl/m4/vasprintf.m4 +++ b/gl/m4/vasprintf.m4 | |||
@@ -1,25 +1,37 @@ | |||
1 | # vasprintf.m4 serial 2 | 1 | # vasprintf.m4 serial 6 |
2 | dnl Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002-2003, 2006-2007 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
6 | 6 | ||
7 | AC_DEFUN([gl_FUNC_VASPRINTF], | 7 | AC_DEFUN([gl_FUNC_VASPRINTF], |
8 | [ | 8 | [ |
9 | AC_REPLACE_FUNCS(vasprintf) | 9 | AC_CHECK_FUNCS([vasprintf]) |
10 | if test $ac_cv_func_vasprintf = no; then | 10 | if test $ac_cv_func_vasprintf = no; then |
11 | AC_LIBOBJ(asprintf) | 11 | gl_REPLACE_VASPRINTF |
12 | gl_PREREQ_VASPRINTF_H | ||
13 | gl_PREREQ_VASPRINTF | ||
14 | gl_PREREQ_ASPRINTF | ||
15 | fi | 12 | fi |
16 | ]) | 13 | ]) |
17 | 14 | ||
18 | # Prerequisites of lib/vasprintf.h. | 15 | AC_DEFUN([gl_REPLACE_VASPRINTF], |
16 | [ | ||
17 | AC_LIBOBJ([vasprintf]) | ||
18 | AC_LIBOBJ([asprintf]) | ||
19 | AC_REQUIRE([gl_STDIO_H_DEFAULTS]) | ||
20 | if test $ac_cv_func_vasprintf = yes; then | ||
21 | REPLACE_VASPRINTF=1 | ||
22 | else | ||
23 | HAVE_VASPRINTF=0 | ||
24 | fi | ||
25 | gl_PREREQ_VASPRINTF_H | ||
26 | gl_PREREQ_VASPRINTF | ||
27 | gl_PREREQ_ASPRINTF | ||
28 | ]) | ||
29 | |||
30 | # Prerequisites of the vasprintf portion of lib/stdio.h. | ||
19 | AC_DEFUN([gl_PREREQ_VASPRINTF_H], | 31 | AC_DEFUN([gl_PREREQ_VASPRINTF_H], |
20 | [ | 32 | [ |
21 | dnl Persuade glibc <stdio.h> to declare asprintf() and vasprintf(). | 33 | dnl Persuade glibc <stdio.h> to declare asprintf() and vasprintf(). |
22 | AC_REQUIRE([AC_GNU_SOURCE]) | 34 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) |
23 | ]) | 35 | ]) |
24 | 36 | ||
25 | # Prerequisites of lib/vasprintf.c. | 37 | # Prerequisites of lib/vasprintf.c. |