https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109926
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- Comment on attachment 55135 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55135 config configure:18893: checking fenv.h usability configure:18893: i586-msdosdjgpp-c++ -c -g -O2 -std=c++11 -fno-exceptions conftest.cpp >&5 configure:18893: $? = 0 configure:18893: result: yes configure:18893: checking fenv.h presence configure:18893: i586-msdosdjgpp-c++ -E conftest.cpp configure:18893: $? = 0 configure:18893: result: yes configure:18893: checking for fenv.h configure:18893: result: yes This means configure is finding fenv.h in your sysroot.