https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66018
--- Comment #10 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #9) > I think the right solution is just to stop using AC_STRUCT_DIRENT_D_TYPE > which expands to the opendir link test. > > The autoconf manual doesn't say anything about it doing a link test, I was > only trying to find whether DIR.d_type exists :-( It links to check which library contains opendir. I'm not sure why it searches this though. Maybe a bug in autoconf? Best regards, Thomas