aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
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