[AC_MSG_RESULT(no)])])])
AC_CHECK_FUNCS(isinf, ,
[AC_MSG_CHECKING(for isinf with )
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[float f = 0.0; int
x = isinf(f)]])],[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_ISINF)],[AC_MSG_RESULT(no)])])
--
Hiroshi Fujishima
ake it a global variable, to guard against dead code elimination.
Oops, the configure script compiling with -O2 optimization. The
compilation of the following code still suceesss.
#include
int a;
int
main ()
{
float f = 0.0;
a = isinf (f);
return 0;
}
Do I misunderstand? Since I am the newbie of C, I consulted this page:
http://www.phim.unibe.ch/comp_doc/c_manual/C/SYNTAX/glo_int_vars.html
--
Hiroshi Fujishima
urn 0;
>> }
>
> The test is clearly fragile. Assigning the return value of isinf to a
> variable should be sufficient for 4.0.x at -O0.
Yes, I contact rrdtool maintainer. Thank you.
--
Hiroshi Fujishima
't
have isinf().
/* Solaris */
#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
# define HAVE_ISINF 1
# define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
#endif
Is this gcc's problem? Or should I contact rrdtool's developer?
Regards.
[1] http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/>
--
Hiroshi Fujishima
returned 1 exit status
a.c
Description: Binary data
b.c
Description: Binary data
--
Hiroshi Fujishima