summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR. Bernstein <rocky@gnu.org>2012-10-21 17:02:47 -0400
committerR. Bernstein <rocky@gnu.org>2012-10-21 17:02:47 -0400
commit169c9fdd850dd6b0265ace4c8bbd2048e1748d29 (patch)
treee7a7811f7ec477f98620159cff6ac4b35635d0d0
parentd618b3f8bc0d74b860aacd00fdc090e7bec68deb (diff)
Towards getting MinGW and cygwin ddk includes correct.
-rw-r--r--configure.ac13
1 files changed, 9 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 83f66156..f879c141 100644
--- a/configure.ac
+++ b/configure.ac
@@ -172,20 +172,20 @@ AC_CHECK_HEADERS(errno.h fcntl.h glob.h limits.h pwd.h stdbool.h)
AC_CHECK_HEADERS(stdarg.h stdbool.h stdio.h sys/cdio.h sys/param.h \
sys/time.h sys/timeb.h sys/utsname.h)
-# FreeBSD 4 has getopt in unistd.h. So we include that before
-# getopt.h
+## FreeBSD 4 has getopt in unistd.h. So we include that before
+## getopt.h
AC_CHECK_HEADERS(unistd.h getopt.h)
AC_SUBST(SBPCD_H)
AC_SUBST(UCDROM_H)
AC_SUBST(TYPESIZES)
-dnl compiler
+## Check compiler-related things
AC_C_BIGENDIAN
AC_C_CONST
AC_C_INLINE
-dnl ISOC99_PRAGMA
+## ISOC99_PRAGMA
AC_MSG_CHECKING([whether $CC supports ISOC99 _Pragma()])
AC_TRY_COMPILE([],[_Pragma("pack(1)")], [
ISOC99_PRAGMA=yes
@@ -193,6 +193,11 @@ AC_TRY_COMPILE([],[_Pragma("pack(1)")], [
],ISOC99_PRAGMA=no)
AC_MSG_RESULT($ISOC99_PRAGMA)
+## Check for Windows DDK header files
+AC_CHECK_HEADERS([ntdddisk.h ddk/ntdddisk.h], [], [], [AC_INCLUDES_DEFAULT
+#include <windows.h>
+])
+
##
## Check for S_ISSOCK() and S_ISLNK() macros
##