[PATCH] fortran: use fpu-glibc on powerpc*-unknown-freebsd

FX fxcoudert@gmail.com
Wed Apr 13 15:27:11 GMT 2022


Hi,

> the problem is that configure checks for feenableexcept() in libm:
> AC_CHECK_LIB([m],[feenableexcept],[have_feenableexcept=yes AC_DEFINE([HAVE_FEENABLEEXCEPT],[1],[libm includes feenableexcept])])
> 
> FreeBSD doesn't have this function in libm, it's implemented in /usr/include/fenv.h.

I see. Then we probably can use AC_CHECK_FUNCS, or design a specific check, so that it gives the right value on both glibc and FreeBSD targets.

Could you test something on your end?

FX


More information about the Fortran mailing list