diff -uBrN autoconf/lib/autoconf/headers.m4 autoconf_modified/lib/autoconf/headers.m4 --- autoconf/lib/autoconf/headers.m4 2009-07-29 18:28:56.000000000 +0400 +++ autoconf_modified/lib/autoconf/headers.m4 2009-08-04 22:37:39.000000000 +0400 @@ -77,7 +77,7 @@ # only. # # If INCLUDES is empty, then check both via the compiler and preproc. -# If the results are different, issue a warning, but keep the preproc +# If the results are different, issue a warning, but keep the compiler # result. # # If INCLUDES is `-', keep only the old semantics. @@ -101,7 +101,15 @@ [ AS_LINENO_PUSH([$[]1]) AS_VAR_SET_IF([$[]3], [AC_CACHE_CHECK([for $[]2], [$[]3], [])], - [# Is the header compilable? + [# Is the header present? +AC_MSG_CHECKING([$[]2 presence]) +AC_PREPROC_IFELSE([AC_LANG_SOURCE(address@hidden:@include <$[]2>])], + [ac_header_preproc=yes], + [ac_header_preproc=no]) +AC_MSG_RESULT([$ac_header_preproc]) + +# Is the header compilable? + AC_MSG_CHECKING([$[]2 usability]) AC_COMPILE_IFELSE([AC_LANG_SOURCE([$[]4 @%:@include <$[]2>])], @@ -109,13 +117,6 @@ [ac_header_compiler=no]) AC_MSG_RESULT([$ac_header_compiler]) -# Is the header present? -AC_MSG_CHECKING([$[]2 presence]) -AC_PREPROC_IFELSE([AC_LANG_SOURCE(address@hidden:@include <$[]2>])], - [ac_header_preproc=yes], - [ac_header_preproc=no]) -AC_MSG_RESULT([$ac_header_preproc]) - # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_[]_AC_LANG_ABBREV[]_preproc_warn_flag in #(( yes:no: )