From 8712d85d40e645029c6b3c2aef71a323232883fa Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Wed, 20 Sep 2000 06:42:50 +0000 Subject: [PATCH] Add check for ieeefp.h. Include it in util.c if present. This is for 'finite' on Solaris 8. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2901 57a11ea4-9604-0410-9ed3-97b8803252fd --- acconfig.h | 3 +++ config.h.in | 3 +++ configure.in | 2 +- src/engine/util.c | 4 ++++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/acconfig.h b/acconfig.h index 42a94dfe50..f691728a46 100644 --- a/acconfig.h +++ b/acconfig.h @@ -38,6 +38,9 @@ /* limits.h header present */ #undef HAVE_LIMITS_H +/* ieeefp.h header present */ +#undef HAVE_IEEEFP_H + /* memcpy present */ #undef HAVE_MEMCPY diff --git a/config.h.in b/config.h.in index 1acc94e433..e935d067cb 100644 --- a/config.h.in +++ b/config.h.in @@ -126,6 +126,9 @@ /* Define if you have the header file. */ #undef HAVE_ARGZ_H +/* Define if you have the header file. */ +#undef HAVE_IEEEFP_H + /* Define if you have the header file. */ #undef HAVE_LIMITS_H diff --git a/configure.in b/configure.in index 71f2c400bc..691b830a63 100644 --- a/configure.in +++ b/configure.in @@ -42,7 +42,7 @@ AC_C_BIGENDIAN AC_PROG_MAKE_SET AC_HEADER_STDC -AC_CHECK_HEADERS(limits.h) +AC_CHECK_HEADERS(limits.h ieeefp.h) AC_CHECK_FUNCS(stpcpy memcpy) AM_PATH_GLIB diff --git a/src/engine/util.c b/src/engine/util.c index 037609573d..414e04adfe 100644 --- a/src/engine/util.c +++ b/src/engine/util.c @@ -27,6 +27,10 @@ #include "config.h" +#ifdef HAVE_IEEEFP_H +# include /* for finite in Solaris 8 */ +#endif + #include #include #include