#if defined(HAVE_FENV_H) && defined(HAVE_FEENABLEEXCEPT)
/* _GNU_SOURCE is needed for feenableexcept to be defined in fenv.h on GNU
* systems. Presumably it will do no harm on other systems. */
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
# include <fenv.h>
#elif HAVE_FPU_CONTROL_H
# include <fpu_control.h>
exit (gvFreeContext(Gvc));
}
+#ifndef NO_FPERR
static void fperr(int s)
{
fprintf(stderr, "caught SIGFPE %d\n", s);
#endif
}
#endif
+#endif
static graph_t *create_test_graph(void)
{
# -ffast-math is incompatible with FP error trapping
# ref: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=175793
if `echo ${CFLAGS} | grep -q ffast-math`; then
- CFLAGS="${CFLAGS} -DNO_FPERR"
+ AC_DEFINE_UNQUOTED(NO_FPERR,1,[Define if no fpu error exception handling is required.])
fi
dnl -----------------------------------