[sane-devel] [PATCH 1/2] add checks for ntddscsi.h and ddk/ntddscsi.h (to be used for win32)

Ruediger Meier sweet_f_a at gmx.de
Tue Jan 17 17:53:27 UTC 2012


From: Ruediger Meier <ruediger.meier at ga-group.nl>

---
 configure                |   14 ++++++++++++++
 configure.in             |    1 +
 include/sane/config.h.in |    6 ++++++
 3 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index ae60009..ba864b0 100755
--- a/configure
+++ b/configure
@@ -9867,6 +9867,20 @@ fi

 done

+for ac_header in ntddscsi.h ddk/ntddscsi.h
+do :
+  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <windows.h>
+"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+  cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+

 if test "$ac_cv_header_sys_scsiio_h" = "yes" \
   -a "$ac_cv_header_scsi_h" = "yes"; then
diff --git a/configure.in b/configure.in
index ac09173..6fac904 100644
--- a/configure.in
+++ b/configure.in
@@ -421,6 +421,7 @@ AC_CHECK_HEADERS(IOKit/scsi/SCSITaskLib.h IOKit/cdb/IOSCSILib.h \
   sys/scsi/targets/scgio.h apollo/scsi.h sys/sdi_comm.h \
   sys/passthrudef.h)
 AC_CHECK_HEADERS([io/cam/cam.h],,,[#include <io/common/iotypes.h>])
+AC_CHECK_HEADERS([ntddscsi.h ddk/ntddscsi.h],,,[#include <windows.h>])

 dnl FreeBSD < 3
 if test "$ac_cv_header_sys_scsiio_h" = "yes" \
diff --git a/include/sane/config.h.in b/include/sane/config.h.in
index 738a521..00c8669 100644
--- a/include/sane/config.h.in
+++ b/include/sane/config.h.in
@@ -61,6 +61,9 @@
 /* Define to 1 if you have the `cfmakeraw' function. */
 #undef HAVE_CFMAKERAW

+/* Define to 1 if you have the <ddk/ntddscsi.h> header file. */
+#undef HAVE_DDK_NTDDSCSI_H
+
 /* Define to 1 if you have the <dev/ppbus/ppi.h> header file. */
 #undef HAVE_DEV_PPBUS_PPI_H

@@ -210,6 +213,9 @@
 /* Define to 1 if you have the `NSLinkModule' function. */
 #undef HAVE_NSLINKMODULE

+/* Define to 1 if you have the <ntddscsi.h> header file. */
+#undef HAVE_NTDDSCSI_H
+
 /* Define to 1 if you have the <os2.h> header file. */
 #undef HAVE_OS2_H

--
1.7.6.1



More information about the sane-devel mailing list