kopia lustrzana https://gitlab.com/sane-project/backends
Added work-around for asm/io.h problems.
Henning Meier-Geinitz <henning@meier-geinitz.de>DEVEL_2_0_BRANCH-1
rodzic
fb8283b88f
commit
7f316583eb
Plik diff jest za duży
Load Diff
10
configure.in
10
configure.in
|
@ -111,7 +111,7 @@ AC_CHECK_HEADERS(fcntl.h unistd.h libc.h sys/dsreq.h sys/select.h \
|
|||
sys/time.h sys/shm.h \
|
||||
sys/scanio.h scsi.h sys/scsi.h sys/scsicmd.h sys/scsiio.h \
|
||||
bsd/dev/scsireg.h scsi/sg.h /usr/src/linux/include/scsi/sg.h io/cam/cam.h \
|
||||
camlib.h os2.h sys/socket.h sys/io.h asm/io.h gscdds.h sys/hw.h \
|
||||
camlib.h os2.h sys/socket.h sys/io.h gscdds.h sys/hw.h \
|
||||
sys/types.h sys/scsi/scsi.h sys/scsi/sgdefs.h sys/scsi/targets/scgio.h \
|
||||
apollo/scsi.h sys/sdi_comm.h sys/passthrudef.h linux/ppdev.h usb.h \
|
||||
sys/bitypes.h sys/sem.h)
|
||||
|
@ -125,6 +125,14 @@ AC_TYPE_PID_T
|
|||
AC_CHECK_TYPE(ssize_t, long)
|
||||
SANE_CHECK_U_TYPES
|
||||
|
||||
AC_CHECK_HEADER([asm/io.h],[
|
||||
AC_MSG_CHECKING([whether asm/io.h can be included]);
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <asm/io.h>
|
||||
],[outb (0, 0l)],
|
||||
[AC_DEFINE([HAVE_ASM_IO_H]) AC_MSG_RESULT(yes)],AC_MSG_RESULT(no))],)
|
||||
|
||||
AC_MSG_CHECKING([for struct flock in fcntl.h])
|
||||
AC_EGREP_HEADER([struct flock], fcntl.h, [AC_MSG_RESULT(yes) ;
|
||||
AC_DEFINE(HAVE_STRUCT_FLOCK, 1,
|
||||
|
|
Ładowanie…
Reference in New Issue