On Wed, Apr 4, 2012 at 7:41 PM, Russ Allbery <r...@stanford.edu> wrote: > I think you're assuming a hosted target. I'm not sure that you can make > that assumption. Can't Autoconf be used to cross-compile software for a > free-standing target, where several of those header files are not > required to exist?
Programs that are portable to targets that don't have things like <stdio.h> know they have to take special care. They can list everything they really need to know in an AC_CHECK_HEADERS call. I admit there's a compatibility headache here, but I really do want to change the default behavior of AC_INCLUDES_DEFAULT, because it's buried in dozens of other macros. I've been kludging m4_pushdef([AC_INCLUDES_DEFAULT], [$1]) and some sort of officially-supported way to do that would make me happy. zw