~ubuntu-branches/debian/experimental/lftp/experimental

« back to all changes in this revision

Viewing changes to m4/vasnprintf.m4

  • Committer: Package Import Robot
  • Author(s): Noël Köthe
  • Date: 2015-08-21 16:06:22 UTC
  • mfrom: (1.1.20) (24.1.38 sid)
  • Revision ID: package-import@ubuntu.com-20150821160622-lckdmbiqx16wefgy
Tags: 4.6.4-1
new upstream release 2015-08-21

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# vasnprintf.m4 serial 29
2
 
dnl Copyright (C) 2002-2004, 2006-2009 Free Software Foundation, Inc.
 
1
# vasnprintf.m4 serial 36
 
2
dnl Copyright (C) 2002-2004, 2006-2015 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.
29
29
  gl_PREREQ_ASNPRINTF
30
30
])
31
31
 
32
 
# Prequisites of lib/printf-args.h, lib/printf-args.c.
 
32
# Prerequisites of lib/printf-args.h, lib/printf-args.c.
33
33
AC_DEFUN([gl_PREREQ_PRINTF_ARGS],
34
34
[
35
35
  AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
37
37
  AC_REQUIRE([gt_TYPE_WINT_T])
38
38
])
39
39
 
40
 
# Prequisites of lib/printf-parse.h, lib/printf-parse.c.
 
40
# Prerequisites of lib/printf-parse.h, lib/printf-parse.c.
41
41
AC_DEFUN([gl_PREREQ_PRINTF_PARSE],
42
42
[
 
43
  AC_REQUIRE([gl_FEATURES_H])
43
44
  AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
44
45
  AC_REQUIRE([gt_TYPE_WCHAR_T])
45
46
  AC_REQUIRE([gt_TYPE_WINT_T])
61
62
  AC_CHECK_FUNCS([snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb])
62
63
  dnl Use the _snprintf function only if it is declared (because on NetBSD it
63
64
  dnl is defined as a weak alias of snprintf; we prefer to use the latter).
64
 
  AC_CHECK_DECLS([_snprintf], , , [#include <stdio.h>])
 
65
  AC_CHECK_DECLS([_snprintf], , , [[#include <stdio.h>]])
 
66
  dnl Knowing DBL_EXPBIT0_WORD and DBL_EXPBIT0_BIT enables an optimization
 
67
  dnl in the code for NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE.
 
68
  AC_REQUIRE([gl_DOUBLE_EXPONENT_LOCATION])
 
69
  dnl We can avoid a lot of code by assuming that snprintf's return value
 
70
  dnl conforms to ISO C99. So check that.
 
71
  AC_REQUIRE([gl_SNPRINTF_RETVAL_C99])
 
72
  case "$gl_cv_func_snprintf_retval_c99" in
 
73
    *yes)
 
74
      AC_DEFINE([HAVE_SNPRINTF_RETVAL_C99], [1],
 
75
        [Define if the return value of the snprintf function is the number of
 
76
         of bytes (excluding the terminating NUL) that would have been produced
 
77
         if the buffer had been large enough.])
 
78
      ;;
 
79
  esac
65
80
])
66
81
 
67
82
# Extra prerequisites of lib/vasnprintf.c for supporting 'long double'