aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-06-01 17:16:20 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-06-01 17:16:20 +0000
commitb66925bb18bedf9ec4c7f821106038998720604b (patch)
tree634e4e016aee5a5529298bc0ca188514514cae33
parent078d1826d2c516fa15d3ead55c84af39b2becea3 (diff)
Make sure that when checking for MINGW32 libraries we ask for windows.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28631 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--autoconf/configure.ac2
-rwxr-xr-xconfigure3
2 files changed, 3 insertions, 2 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 677164faa2..8ad313d5fe 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -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
diff --git a/configure b/configure
index 1f275da6df..7b8ccb40d3 100755
--- 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