aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2019-01-11 06:11:25 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2019-01-11 06:11:25 +0000
commit2433a22138f1b508c2765aa8499456cd6138a200 (patch)
treecf41a311a4230b908c6c14726bcfeae431bfdb48 /configure
parent284fbfc7e0eb7b53b3ab7a9872aa1416685de785 (diff)
downloadsg3_utils-2433a22138f1b508c2765aa8499456cd6138a200.tar.gz
spc5r20 updates; fixes for FreeBSD 12.0 release
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@804 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure24
1 files changed, 24 insertions, 0 deletions
diff --git a/configure b/configure
index b73d8102..83e174e0 100755
--- a/configure
+++ b/configure
@@ -12588,6 +12588,28 @@ done
}
+check_for_linux_sg_v4_hdr() {
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+ # include <scsi/sg.h>
+ #ifdef SG_IOSUBMIT
+ found
+ #endif
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "found" >/dev/null 2>&1; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LINUX_SG_V4_HDR 1
+_ACEOF
+
+fi
+rm -f conftest*
+
+
+}
+
case "${host}" in
*-*-android*)
@@ -12600,6 +12622,7 @@ cat >>confdefs.h <<_ACEOF
#define SG_LIB_LINUX 1
_ACEOF
+ check_for_linux_sg_v4_hdr
check_for_linux_nvme_headers;;
*-*-freebsd*|*-*-kfreebsd*-gnu*)
@@ -12662,6 +12685,7 @@ cat >>confdefs.h <<_ACEOF
#define SG_LIB_LINUX 1
_ACEOF
+ check_for_linux_sg_v4_hdr
check_for_linux_nvme_headers;;
esac