Make sure that when checking for MINGW32 libraries we ask for windows.h
authorReid Spencer <rspencer@reidspencer.com>
Thu, 1 Jun 2006 17:16:20 +0000 (17:16 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 1 Jun 2006 17:16:20 +0000 (17:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28631 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/configure.ac
configure

index 677164faa23adfac2161f89d5a08423741723ad0..8ad313d5fe0f4709f478fb3bd7563fcfdde94273 100644 (file)
@@ -487,7 +487,7 @@ dnl libelf is for sparc only; we can ignore it if we don't have it
 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
index 1f275da6df8d8c688bcb968bb8f92da26f136d33..7b8ccb40d32dedc2b559b51cbbc85cc78ae8a3c2 100755 (executable)
--- a/configure
+++ b/configure
@@ -25148,7 +25148,8 @@ fi
 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