Mercurial > hg > octave-nkf > gnulib-hg
comparison m4/vsnprintf-posix.m4 @ 8840:792e05ae7ac8
Fix *printf result for NaN, Inf, -0.0 on mingw.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 19 May 2007 14:52:36 +0000 |
parents | 1466c973f476 |
children | 771a56a41b5b |
comparison
equal
deleted
inserted
replaced
8839:5efc1d668039 | 8840:792e05ae7ac8 |
---|---|
1 # vsnprintf-posix.m4 serial 7 | 1 # vsnprintf-posix.m4 serial 8 |
2 dnl Copyright (C) 2007 Free Software Foundation, Inc. | 2 dnl Copyright (C) 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_VSNPRINTF_POSIX], | 7 AC_DEFUN([gl_FUNC_VSNPRINTF_POSIX], |
8 [ | 8 [ |
9 AC_REQUIRE([gl_EOVERFLOW]) | 9 AC_REQUIRE([gl_EOVERFLOW]) |
10 AC_REQUIRE([gl_PRINTF_SIZES_C99]) | 10 AC_REQUIRE([gl_PRINTF_SIZES_C99]) |
11 AC_REQUIRE([gl_PRINTF_INFINITE]) | |
11 AC_REQUIRE([gl_PRINTF_LONG_DOUBLE]) | 12 AC_REQUIRE([gl_PRINTF_LONG_DOUBLE]) |
12 AC_REQUIRE([gl_PRINTF_DIRECTIVE_A]) | 13 AC_REQUIRE([gl_PRINTF_DIRECTIVE_A]) |
13 AC_REQUIRE([gl_PRINTF_DIRECTIVE_F]) | 14 AC_REQUIRE([gl_PRINTF_DIRECTIVE_F]) |
14 AC_REQUIRE([gl_PRINTF_DIRECTIVE_N]) | 15 AC_REQUIRE([gl_PRINTF_DIRECTIVE_N]) |
15 AC_REQUIRE([gl_PRINTF_POSITIONS]) | 16 AC_REQUIRE([gl_PRINTF_POSITIONS]) |
23 gl_SNPRINTF_RETVAL_C99 | 24 gl_SNPRINTF_RETVAL_C99 |
24 gl_SNPRINTF_DIRECTIVE_N | 25 gl_SNPRINTF_DIRECTIVE_N |
25 gl_VSNPRINTF_ZEROSIZE_C99 | 26 gl_VSNPRINTF_ZEROSIZE_C99 |
26 case "$gl_cv_func_printf_sizes_c99" in | 27 case "$gl_cv_func_printf_sizes_c99" in |
27 *yes) | 28 *yes) |
28 case "$gl_cv_func_printf_long_double" in | 29 case "$gl_cv_func_printf_infinite" in |
29 *yes) | 30 *yes) |
30 case "$gl_cv_func_printf_directive_a" in | 31 case "$gl_cv_func_printf_long_double" in |
31 *yes) | 32 *yes) |
32 case "$gl_cv_func_printf_directive_f" in | 33 case "$gl_cv_func_printf_directive_a" in |
33 *yes) | 34 *yes) |
34 case "$gl_cv_func_printf_directive_n" in | 35 case "$gl_cv_func_printf_directive_f" in |
35 *yes) | 36 *yes) |
36 case "$gl_cv_func_printf_positions" in | 37 case "$gl_cv_func_printf_directive_n" in |
37 *yes) | 38 *yes) |
38 case "$gl_cv_func_printf_flag_grouping" in | 39 case "$gl_cv_func_printf_positions" in |
39 *yes) | 40 *yes) |
40 case "$gl_cv_func_printf_flag_zero" in | 41 case "$gl_cv_func_printf_flag_grouping" in |
41 *yes) | 42 *yes) |
42 case "$gl_cv_func_snprintf_truncation_c99" in | 43 case "$gl_cv_func_printf_flag_zero" in |
43 *yes) | 44 *yes) |
44 case "$gl_cv_func_snprintf_retval_c99" in | 45 case "$gl_cv_func_snprintf_truncation_c99" in |
45 *yes) | 46 *yes) |
46 case "$gl_cv_func_snprintf_directive_n" in | 47 case "$gl_cv_func_snprintf_retval_c99" in |
47 *yes) | 48 *yes) |
48 case "$gl_cv_func_vsnprintf_zerosize_c99" in | 49 case "$gl_cv_func_snprintf_directive_n" in |
49 *yes) | 50 *yes) |
50 # vsnprintf exists and is | 51 case "$gl_cv_func_vsnprintf_zerosize_c99" in |
51 # already POSIX compliant. | 52 *yes) |
52 gl_cv_func_vsnprintf_posix=yes | 53 # vsnprintf exists and is |
54 # already POSIX compliant. | |
55 gl_cv_func_vsnprintf_posix=yes | |
56 ;; | |
57 esac | |
53 ;; | 58 ;; |
54 esac | 59 esac |
55 ;; | 60 ;; |
56 esac | 61 esac |
57 ;; | 62 ;; |
74 esac | 79 esac |
75 ;; | 80 ;; |
76 esac | 81 esac |
77 fi | 82 fi |
78 if test $gl_cv_func_vsnprintf_posix = no; then | 83 if test $gl_cv_func_vsnprintf_posix = no; then |
84 gl_PREREQ_VASNPRINTF_INFINITE | |
79 gl_PREREQ_VASNPRINTF_LONG_DOUBLE | 85 gl_PREREQ_VASNPRINTF_LONG_DOUBLE |
80 gl_PREREQ_VASNPRINTF_DIRECTIVE_A | 86 gl_PREREQ_VASNPRINTF_DIRECTIVE_A |
81 gl_PREREQ_VASNPRINTF_DIRECTIVE_F | 87 gl_PREREQ_VASNPRINTF_DIRECTIVE_F |
82 gl_PREREQ_VASNPRINTF_FLAG_GROUPING | 88 gl_PREREQ_VASNPRINTF_FLAG_GROUPING |
83 gl_PREREQ_VASNPRINTF_FLAG_ZERO | 89 gl_PREREQ_VASNPRINTF_FLAG_ZERO |