aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macros/ChangeLog4
-rw-r--r--macros/gnome-support.m45
2 files changed, 9 insertions, 0 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index 84fee605d1..fd53e3e604 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,3 +1,7 @@
+1998-03-09 Raja R Harinath <harinath@cs.umn.edu>
+
+ * gnome-support.m4: Add check for `vsnprintf'.
+
Sun Mar 8 17:04:28 1998 Tom Tromey <tromey@cygnus.com>
* gnome-support.m4: Set need_gnome_support shell variable. Define
diff --git a/macros/gnome-support.m4 b/macros/gnome-support.m4
index 67478a8c1d..71463287c1 100644
--- a/macros/gnome-support.m4
+++ b/macros/gnome-support.m4
@@ -25,6 +25,11 @@ AC_DEFUN([GNOME_SUPPORT_CHECKS],[
AC_TRY_LINK([#include <errno.h>],[
char *foo = program_invocation_name], [
AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME)])
+
+ AC_CHECK_FUNCS(vsnprintf,,[
+ AC_CHECK_FUNCS(__vsnprintf,
+ LIBOBJS="$LIBOBJS easy-vsnprintf.o",LIBOBJS="$LIBOBJS vsnprint.o")])
+
AC_REPLACE_FUNCS(strtok_r strcasecmp strndup strnlen)
if test "$LIBOBJS" != ""; then