From f6bbcec390f1589af87aef3f9df0be220cad3138 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 12 Nov 2009 13:16:46 +0100 Subject: Use register_printf_specifier instead of deprecated register_printf_function, if available --- configure.in | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 31a524602..ed16e07e9 100644 --- a/configure.in +++ b/configure.in @@ -373,12 +373,18 @@ AC_TRY_RUN( [AC_MSG_RESULT([no])]) AC_CHECK_FUNC( - [register_printf_function], - [AC_DEFINE(HAVE_PRINTF_HOOKS)], - [ - AC_MSG_NOTICE([printf does not support custom format specifiers!]) - vstr=true - ] + [register_printf_specifier], + dnl new specifier functions with argument length + [AC_DEFINE(HAVE_PRINTF_SPECIFIER)], + [AC_CHECK_FUNC( + dnl deprecated function without argument length + [register_printf_function], + [AC_DEFINE(HAVE_PRINTF_FUNCTION)], + [ + AC_MSG_NOTICE([printf does not support custom format specifiers!]) + vstr=true + ] + )] ) if test x$vstr = xtrue; then -- cgit v1.2.3