diff options
author | Bruno Haible <bruno@clisp.org> | 2007-05-06 15:29:04 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-05-06 15:29:04 +0000 |
commit | 2bb894abc6dd417e094aa63774a2bc8b04acb965 (patch) | |
tree | 970c0f67597949857ba7f1bc4ecfb628b7eaf13f /m4/vasnprintf-posix.m4 | |
parent | 69868c2282ec566818278b1bc8906439733a94b6 (diff) | |
download | gnulib-2bb894abc6dd417e094aa63774a2bc8b04acb965.tar.gz |
Work around lack of support of grouping flag.
Diffstat (limited to 'm4/vasnprintf-posix.m4')
-rw-r--r-- | m4/vasnprintf-posix.m4 | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/m4/vasnprintf-posix.m4 b/m4/vasnprintf-posix.m4 index b570c1c8a4..34eee29c8a 100644 --- a/m4/vasnprintf-posix.m4 +++ b/m4/vasnprintf-posix.m4 @@ -1,4 +1,4 @@ -# vasnprintf-posix.m4 serial 4 +# vasnprintf-posix.m4 serial 5 dnl Copyright (C) 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, @@ -12,6 +12,7 @@ AC_DEFUN([gl_FUNC_VASNPRINTF_POSIX], AC_REQUIRE([gl_PRINTF_DIRECTIVE_F]) AC_REQUIRE([gl_PRINTF_DIRECTIVE_N]) AC_REQUIRE([gl_PRINTF_POSITIONS]) + AC_REQUIRE([gl_PRINTF_FLAG_GROUPING]) gl_cv_func_vasnprintf_posix=no AC_CHECK_FUNCS_ONCE([vasnprintf]) case "$gl_cv_func_printf_sizes_c99" in @@ -24,10 +25,14 @@ AC_DEFUN([gl_FUNC_VASNPRINTF_POSIX], *yes) case "$gl_cv_func_printf_positions" in *yes) - if test $ac_cv_func_vasnprintf = yes; then - # vasnprintf exists and is already POSIX compliant. - gl_cv_func_vasnprintf_posix=yes - fi + case "$gl_cv_func_printf_flag_grouping" in + *yes) + if test $ac_cv_func_vasnprintf = yes; then + # vasnprintf exists and is already POSIX compliant. + gl_cv_func_vasnprintf_posix=yes + fi + ;; + esac ;; esac ;; @@ -41,6 +46,7 @@ AC_DEFUN([gl_FUNC_VASNPRINTF_POSIX], if test $gl_cv_func_vasnprintf_posix = no; then gl_PREREQ_VASNPRINTF_DIRECTIVE_A gl_PREREQ_VASNPRINTF_DIRECTIVE_F + gl_PREREQ_VASNPRINTF_FLAG_GROUPING gl_REPLACE_VASNPRINTF fi ]) |