X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/cb8a7b870ba2f2f6c7c23152a4482132e59f678e..45274379ba9b2e9bb165a213bca5e5682c64cba0:/configure.in?ds=inline diff --git a/configure.in b/configure.in index 35c22129..1910558d 100644 --- a/configure.in +++ b/configure.in @@ -377,6 +377,15 @@ AC_TRY_LINK([#include ], [sigsetjmp((void *)0, 0);], AC_REPLACE_FUNCS(snprintf strerror strdup) +dnl On AIX 4.1, snprintf() is defined in libc.a but there's no prototype in +dnl or elsewhere. Apparently it's not officially supported (though it +dnl seems to work perfectly and IBM apparently uses it in internal code). +dnl Anyhow, if we omit our own snprintf() and vsnprintf() prototypes when we +dnl HAVE_SNPRINTF, we get a billion warnings at compile time. Use the C +dnl preprocessor to preprocess stdio.h and make sure that there's actually a +dnl prototype. +AC_EGREP_HEADER(snprintf, stdio.h, AC_DEFINE(HAVE_SNPRINTF_PROTOTYPE)) + dnl ------------------- dnl CHECK FOR LIBRARIES dnl -------------------