]> git.sur5r.net Git - openldap/commitdiff
Trail fix for MSVC++ vsnprintf problem
authorKurt Zeilenga <kurt@openldap.org>
Fri, 16 Jan 2009 22:05:05 +0000 (22:05 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 16 Jan 2009 22:05:05 +0000 (22:05 +0000)
configure.in

index ce23a79244d658b8efc5ab073ba18242a04f33ad..d8a7e8ed4865f8210e9a5c68928745b976465797 100644 (file)
@@ -2402,9 +2402,12 @@ AC_CHECK_FUNC(_snprintf, [ac_cv_func_snprintf=yes
        AC_DEFINE(snprintf, _snprintf, [define to snprintf routine])
 ])
 
-AC_CHECK_FUNC(_vsnprintf, [ac_cv_func_vsnprintf=yes
+AC_CHECK_FUNCS(vsnprintf _vsnprintf)
+
+if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
+       ac_cv_func_vsnprintf=yes
        AC_DEFINE(vsnprintf, _vsnprintf, [define to vsnprintf routine])
-])
+fi
 
 AC_FUNC_VPRINTF