1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
$NetBSD: patch-aa,v 1.1.1.1 2009/03/16 10:49:06 jmcneill Exp $
--- configure.in.orig 2009-03-15 20:47:59.000000000 -0400
+++ configure.in
@@ -82,6 +82,11 @@ AC_CHECK_TYPES([sg_io_hdr_t],[has_sg="ye
[#include <sys/types.h>
#include <scsi/sg.h>])
+dnl ***************** check for netbsd *************************
+AC_CHECK_TYPES([scsireq_t],[has_scsiio="yes"],[has_scsiio="no"],
+[#include <sys/types.h>
+ #include <sys/scsiio.h>])
+
dnl ***************** check for solaris uscsi interface ********
AC_CHECK_TYPES([struct uscsi_cmd],[has_uscsi="yes"],[has_uscsi="no"],
[#include <sys/types.h>
@@ -91,15 +96,18 @@ if test x"$has_cam" = x"yes"; then
BRASERO_SCSI_LIBS="-lcam"
elif test x"$has_sg" = x"yes"; then
:
+elif test x"$has_scsiio" = x"yes"; then
+ :
elif test x"$has_uscsi" = x"yes"; then
:
else
- AC_ERROR([Support Linux SG, FreeBSD CAM, Solaris USCSI. No supported SCSI interface headers could not be found.])
+ AC_ERROR([Support Linux SG, FreeBSD CAM, NetBSD SCSIPI, Solaris USCSI. No supported SCSI interface headers could not be found.])
fi
AM_CONDITIONAL(HAVE_CAM_LIB_H, test x"$has_cam" = "xyes")
AM_CONDITIONAL(HAVE_SG_IO_HDR_T, test x"$has_sg" = "xyes")
AM_CONDITIONAL(HAVE_USCSI_H, test x"$has_uscsi" = "xyes")
+AM_CONDITIONAL(HAVE_SCSIIO_H, test x"$has_scsiio" = "xyes")
dnl ***************** LARGE FILE SUPPORT ***********************
|