summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorGergely Nagy <algernon@balabit.hu>2012-07-19 13:34:49 +0200
committerGergely Nagy <algernon@balabit.hu>2012-07-19 13:34:49 +0200
commit841f531dd0e1a95a9ce08c78b85d388806229394 (patch)
tree66fca2c17e43c02bec5c5c99cfd2b96690d4d8b8 /configure.ac
parentcd7703d466b98e9eb45df97b5d91794ef5bdeb90 (diff)
downloadlibumberlog-841f531dd0e1a95a9ce08c78b85d388806229394.tar.gz
libumberlog-841f531dd0e1a95a9ce08c78b85d388806229394.tar.xz
libumberlog-841f531dd0e1a95a9ce08c78b85d388806229394.zip
Leave printf format parsing to glibc if possible.
Call glibc's parse_printf_format() to gather information about argument types. This automatically handles positional parameters and user-defined printf formats for ordinary parameter types; it doesn't handle user-defined printf parameter types (such as defined by libdfp for decimal floating-point). Also add a (non-comprehensive) test. Signed-off-by: Miloslav Trmač <mitr@redhat.com> Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 749534f..7500e00 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,7 +40,7 @@ AC_CHECK_HEADERS([syslog.h dlfcn.h limits.h wchar.h])
dnl ***************************************************************************
dnl Checks for libraries
-AC_CHECK_FUNCS([gethostname strdup memset __syslog_chk])
+AC_CHECK_FUNCS([gethostname strdup memset __syslog_chk parse_printf_format])
dnl The dlopen() function is in the C library for *BSD and in
dnl libdl on GLIBC-based systems