1*a7c91847Schristos# vasnprintf.m4 serial 5 2*a7c91847Schristosdnl Copyright (C) 2002-2004 Free Software Foundation, Inc. 3*a7c91847Schristosdnl This file is free software; the Free Software Foundation 4*a7c91847Schristosdnl gives unlimited permission to copy and/or distribute it, 5*a7c91847Schristosdnl with or without modifications, as long as this notice is preserved. 6*a7c91847Schristos 7*a7c91847SchristosAC_DEFUN([gl_FUNC_VASNPRINTF], 8*a7c91847Schristos[ 9*a7c91847Schristos AC_REQUIRE([gl_EOVERFLOW]) 10*a7c91847Schristos AC_REPLACE_FUNCS(vasnprintf) 11*a7c91847Schristos if test $ac_cv_func_vasnprintf = no; then 12*a7c91847Schristos AC_LIBOBJ(printf-args) 13*a7c91847Schristos AC_LIBOBJ(printf-parse) 14*a7c91847Schristos AC_LIBOBJ(asnprintf) 15*a7c91847Schristos gl_PREREQ_PRINTF_ARGS 16*a7c91847Schristos gl_PREREQ_PRINTF_PARSE 17*a7c91847Schristos gl_PREREQ_VASNPRINTF 18*a7c91847Schristos gl_PREREQ_ASNPRINTF 19*a7c91847Schristos fi 20*a7c91847Schristos]) 21*a7c91847Schristos 22*a7c91847Schristos# Prequisites of lib/printf-args.h, lib/printf-args.c. 23*a7c91847SchristosAC_DEFUN([gl_PREREQ_PRINTF_ARGS], 24*a7c91847Schristos[ 25*a7c91847Schristos AC_REQUIRE([bh_C_SIGNED]) 26*a7c91847Schristos AC_REQUIRE([gl_AC_TYPE_LONG_LONG]) 27*a7c91847Schristos AC_REQUIRE([gt_TYPE_LONGDOUBLE]) 28*a7c91847Schristos AC_REQUIRE([gt_TYPE_WCHAR_T]) 29*a7c91847Schristos AC_REQUIRE([gt_TYPE_WINT_T]) 30*a7c91847Schristos]) 31*a7c91847Schristos 32*a7c91847Schristos# Prequisites of lib/printf-parse.h, lib/printf-parse.c. 33*a7c91847SchristosAC_DEFUN([gl_PREREQ_PRINTF_PARSE], 34*a7c91847Schristos[ 35*a7c91847Schristos AC_REQUIRE([gl_AC_TYPE_LONG_LONG]) 36*a7c91847Schristos AC_REQUIRE([gt_TYPE_LONGDOUBLE]) 37*a7c91847Schristos AC_REQUIRE([gt_TYPE_WCHAR_T]) 38*a7c91847Schristos AC_REQUIRE([gt_TYPE_WINT_T]) 39*a7c91847Schristos AC_REQUIRE([AC_TYPE_SIZE_T]) 40*a7c91847Schristos AC_CHECK_TYPES(ptrdiff_t) 41*a7c91847Schristos AC_REQUIRE([gt_AC_TYPE_INTMAX_T]) 42*a7c91847Schristos]) 43*a7c91847Schristos 44*a7c91847Schristos# Prerequisites of lib/vasnprintf.c. 45*a7c91847SchristosAC_DEFUN([gl_PREREQ_VASNPRINTF], 46*a7c91847Schristos[ 47*a7c91847Schristos AC_REQUIRE([AC_FUNC_ALLOCA]) 48*a7c91847Schristos AC_REQUIRE([gl_AC_TYPE_LONG_LONG]) 49*a7c91847Schristos AC_REQUIRE([gt_TYPE_LONGDOUBLE]) 50*a7c91847Schristos AC_REQUIRE([gt_TYPE_WCHAR_T]) 51*a7c91847Schristos AC_REQUIRE([gt_TYPE_WINT_T]) 52*a7c91847Schristos AC_CHECK_FUNCS(snprintf wcslen) 53*a7c91847Schristos]) 54*a7c91847Schristos 55*a7c91847Schristos# Prerequisites of lib/asnprintf.c. 56*a7c91847SchristosAC_DEFUN([gl_PREREQ_ASNPRINTF], 57*a7c91847Schristos[ 58*a7c91847Schristos]) 59