summaryrefslogtreecommitdiff
path: root/m4/vasnprintf.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-05-06 23:02:10 +0000
committerBruno Haible <bruno@clisp.org>2007-05-06 23:02:10 +0000
commite9bb23084ab2af1b2792808165335e6daebebfa9 (patch)
treead4573065fde7b7dcd78444593cd1e4897d153ea /m4/vasnprintf.m4
parent2bb894abc6dd417e094aa63774a2bc8b04acb965 (diff)
downloadgnulib-e9bb23084ab2af1b2792808165335e6daebebfa9.tar.gz
Work around an incorrect implementation of the 0 flag on most platforms.
Diffstat (limited to 'm4/vasnprintf.m4')
-rw-r--r--m4/vasnprintf.m417
1 files changed, 16 insertions, 1 deletions
diff --git a/m4/vasnprintf.m4 b/m4/vasnprintf.m4
index 773c92f961..41a5ce1800 100644
--- a/m4/vasnprintf.m4
+++ b/m4/vasnprintf.m4
@@ -1,4 +1,4 @@
-# vasnprintf.m4 serial 14
+# vasnprintf.m4 serial 15
dnl Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -105,6 +105,21 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_GROUPING],
esac
])
+# Extra prerequisites of lib/vasnprintf.c for supporting the 0 flag.
+AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_ZERO],
+[
+ AC_REQUIRE([gl_PRINTF_FLAG_ZERO])
+ case "$gl_cv_func_printf_flag_zero" in
+ *yes)
+ ;;
+ *)
+ AC_DEFINE([NEED_PRINTF_FLAG_ZERO], 1,
+ [Define if the vasnprintf implementation needs special code for the
+ 0 flag.])
+ ;;
+ esac
+])
+
# Prerequisites of lib/asnprintf.c.
AC_DEFUN([gl_PREREQ_ASNPRINTF],
[