AC_CHECK_LIB(elf, elf_begin)
AC_CHECK_LIB(m,sin)
if test "$llvm_cv_os_type" == "MingW" ; then
AC_CHECK_LIB(elf, elf_begin)
AC_CHECK_LIB(m,sin)
if test "$llvm_cv_os_type" == "MingW" ; then
- AC_CHECK_HEADERS([imagehlp.h psapi.h])
+ AC_CHECK_HEADERS([windows.h imagehlp.h psapi.h])
AC_CHECK_LIB(imagehlp,[SymGetOptions])
AC_CHECK_LIB(psapi,[GetProcessMemoryInfo])
fi
AC_CHECK_LIB(imagehlp,[SymGetOptions])
AC_CHECK_LIB(psapi,[GetProcessMemoryInfo])
fi
if test "$llvm_cv_os_type" == "MingW" ; then
if test "$llvm_cv_os_type" == "MingW" ; then
-for ac_header in imagehlp.h psapi.h
+
+for ac_header in windows.h imagehlp.h psapi.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then