Browse Source

Detecting Linux systems without generic SCSI support by scsi/scsi.h

tags/release-1.4.8
Thomas Schmitt 3 years ago
parent
commit
6b020a3ab7
3 changed files with 26 additions and 1 deletions
  1. +1
    -1
      COPYRIGHT
  2. +21
    -0
      acinclude.m4
  3. +4
    -0
      configure.ac

+ 1
- 1
COPYRIGHT View File

@@ -1,7 +1,7 @@
Derek Foreman <derek@signalmarketing.com> and Ben Jansens <xor@orodu.net>
Copyright (C) 2002-2006 Derek Foreman and Ben Jansens
Mario Danic <mario.danic@gmail.com>, Thomas Schmitt <scdbackup@gmx.net>
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


+ 21
- 0
acinclude.m4 View File

@@ -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 <scsi/scsi.h>
#endif
],
[return;],
[AC_MSG_RESULT([no])],
[AC_DEFINE([Libburn_use_sg_dummY], [yes])
AC_MSG_RESULT([yes])]
)
])


+ 4
- 0
configure.ac View File

@@ -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


Loading…
Cancel
Save