diff options
| author | Marc G. Fournier | 1998-08-01 19:30:29 +0000 |
|---|---|---|
| committer | Marc G. Fournier | 1998-08-01 19:30:29 +0000 |
| commit | 0668aa88179cce20362bad88c9f0be0a461bb699 (patch) | |
| tree | f0886fe02af329b9c4f0244fd53a794938470ecf /src/configure.in | |
| parent | 0d78e8c1124cb7f44f17dec2d313c2ac4b871195 (diff) | |
Adrian Hall reported a problem to me that snprintf() doesn't exist in, at
least, Solaris 2.5.1. We use it in backend/utils/adt/int8.c.
Add a check to configure so that we see if it exists or not, and, if not,
compile in snprintf.c from backend/port, which was taken from, and falls under
the same Berkeley license as us, the FreeBSD libc/stdio ...
Diffstat (limited to 'src/configure.in')
| -rw-r--r-- | src/configure.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/configure.in b/src/configure.in index ad1f34d8f28..08bfe89d681 100644 --- a/src/configure.in +++ b/src/configure.in @@ -533,6 +533,10 @@ AC_FUNC_VPRINTF AC_CHECK_FUNCS(tzset memmove sigsetjmp kill sysconf fpclass) AC_CHECK_FUNCS(fp_class fp_class_d class) AC_CHECK_FUNCS(sigprocmask waitpid setsid fcvt) +AC_CHECK_FUNC(snprintf, + AC_DEFINE(HAVE_SNPRINTF), + ISINF='snprintf.o') +AC_SUBST(SNPRINTF) AC_CHECK_FUNC(isinf, AC_DEFINE(HAVE_ISINF), ISINF='isinf.o') |
