From e0bfb15dcf40e6d97f67c9e92dbb4de19c720e23 Mon Sep 17 00:00:00 2001 From: Marcus Sundberg Date: Wed, 5 Jan 2000 22:42:06 +0000 Subject: [PATCH] Check for vsnprintf() in libdb if we don't have it elsewhere. --- configure.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.in b/configure.in index e6ecce3..d0ecd10 100644 --- a/configure.in +++ b/configure.in @@ -48,6 +48,13 @@ dnl Checks for stricmp/strcasecmp AC_CHECK_FUNC(stricmp,, AC_CHECK_FUNC(strcasecmp, AC_DEFINE(stricmp,strcasecmp))) +dnl Check for vsnprintf +if test "x$ac_cv_func_vsnprintf" = "xno" -a \ + "x$ac_cv_func__vsnprintf" = "xno"; then + dnl libdb may have this + AC_CHECK_LIB(db,vsnprintf) +fi + dnl Checks for working -lm AC_CHECK_LIB(m, pow,, AC_MSG_ERROR([math library (-lm) appears broken]))