From 6b020a3ab7a3206c8e5030d1cc647508350c0e43 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 27 Jan 2017 12:05:35 +0100 Subject: [PATCH] Detecting Linux systems without generic SCSI support by scsi/scsi.h --- COPYRIGHT | 2 +- acinclude.m4 | 21 +++++++++++++++++++++ configure.ac | 4 ++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/COPYRIGHT b/COPYRIGHT index 8cd566d..f6a6a23 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -1,7 +1,7 @@ Derek Foreman and Ben Jansens Copyright (C) 2002-2006 Derek Foreman and Ben Jansens Mario Danic , Thomas Schmitt -Copyright (C) 2006-2014 Mario Danic, Thomas Schmitt +Copyright (C) 2006-2017 Mario Danic, Thomas Schmitt This program is free software; you can redistribute it and/or modify diff --git a/acinclude.m4 b/acinclude.m4 index ba7fcad..7093b8d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -149,3 +149,24 @@ AC_DEFUN([LIBBURNIA_CHECK_ARCH_LIBS], fi ]) + +dnl LIBBURNIA_CHECK_LINUX_SCSI is by Thomas Schmitt, libburnia project +dnl +AC_DEFUN([LIBBURNIA_CHECK_LINUX_SCSI], +[ + dnl Check whether it is a Linux without scsi/scsi.h + AH_TEMPLATE([Libburn_use_sg_dummY], + [Define to compile without OS specific SCSI features]) + AC_MSG_CHECKING([for missing scsi/scsi.h on Linux]) + AC_TRY_COMPILE([ +#ifdef __linux +#include +#endif + ], + [return;], + [AC_MSG_RESULT([no])], + [AC_DEFINE([Libburn_use_sg_dummY], [yes]) + AC_MSG_RESULT([yes])] + ) +]) + diff --git a/configure.ac b/configure.ac index c9dd4be..19e3a90 100644 --- a/configure.ac +++ b/configure.ac @@ -298,6 +298,10 @@ else fi fi +dnl ts B70127 +# There are Linuxes with no public generic SCSI interface +LIBBURNIA_CHECK_LINUX_SCSI + dnl ts B00704 # Library versioning normally serves a complex purpose. # Since libburn obeys strict ABI backward compatibility, it needs only the