~ubuntu-branches/ubuntu/trusty/gnutls26/trusty

« back to all changes in this revision

Viewing changes to lib/gl/m4/vsnprintf.m4

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2011-10-01 15:28:13 UTC
  • mfrom: (12.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20111001152813-yygm1c4cxonfxhzy
* New upstream version.
  + Allow CA importing of 0 certificates to succeed. Closes: #640639
* Add libp11-kit-dev to libgnutls-dev dependencies. (see #643811)
* [20_guiledocstring.diff] guile: Fix docstring extraction with CPP 4.5+.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# vsnprintf.m4 serial 5
2
 
dnl Copyright (C) 2002-2004, 2007-2010 Free Software Foundation, Inc.
 
1
# vsnprintf.m4 serial 6
 
2
dnl Copyright (C) 2002-2004, 2007-2011 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
6
6
 
 
7
dnl Libintl 0.17 will replace vsnprintf only if it does not support %1$s,
 
8
dnl but defers to any gnulib vsnprintf replacements.  Therefore, gnulib
 
9
dnl must guarantee that the decision for replacing vsnprintf is a superset
 
10
dnl of the reasons checked by libintl.
7
11
AC_DEFUN([gl_FUNC_VSNPRINTF],
8
12
[
9
13
  AC_REQUIRE([gl_STDIO_H_DEFAULTS])
13
17
    gl_SNPRINTF_SIZE1
14
18
    case "$gl_cv_func_snprintf_size1" in
15
19
      *yes)
16
 
        gl_cv_func_vsnprintf_usable=yes
 
20
        gl_SNPRINTF_RETVAL_C99
 
21
        case "$gl_cv_func_snprintf_retval_c99" in
 
22
          *yes)
 
23
            gl_PRINTF_POSITIONS
 
24
            case "$gl_cv_func_printf_positions" in
 
25
              *yes)
 
26
                gl_cv_func_vsnprintf_usable=yes
 
27
                ;;
 
28
            esac
 
29
            ;;
 
30
        esac
17
31
        ;;
18
32
    esac
19
33
  fi