[sane-devel] adding dev/ppbus/ppi.h detection to configure

stef stef-listes at wanadoo.fr
Fri Apr 18 15:53:28 BST 2003


	Hello,

	I'd like to have sane configure script detecting the dev/ppbus/ppi.h
file. On freebsd, this file is associated with the /dev/ppi0 device which lets users
accessing the parallel port through a few ioctls, instead of doing inb/outb.

	I have already modified the umax_pp backend to make us of it. But I need 
sane to set HAVE_DEV_PPBUS_PPI_H


	Would be patch for configure.in:
diff -ur --new-file sane-backends-1.0.11/configure.in sane-backends-1.0.11-umax_pp/configure.in
--- sane-backends-1.0.11/configure.in	2003-02-09 13:10:33.000000000 +0000
+++ sane-backends-1.0.11-umax_pp/configure.in	2003-04-11 17:19:02.000000000 +0000
@@ -100,7 +100,7 @@
     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 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 \
+    apollo/scsi.h sys/sdi_comm.h sys/passthrudef.h linux/ppdev.h dev/ppbus/ppi.h usb.h \
     sys/bitypes.h sys/sem.h)
 AC_CHECK_HEADERS([asm/io.h],,,[#include <sys/types.h>])
 SANE_CHECK_MISSING_HEADERS


	And for config.h.in:

diff -ur --new-file sane-backends-1.0.11/include/sane/config.h.in sane-backends-1.0.11-umax_pp/include/sane/config.h.in
--- sane-backends-1.0.11/include/sane/config.h.in	2003-01-24 14:06:08.000000000 +0000
+++ sane-backends-1.0.11-umax_pp/include/sane/config.h.in	2003-04-11 17:37:24.000000000 +0000
@@ -114,6 +114,9 @@
 /* Define to 1 if you have the <linux/ppdev.h> header file. */
 #undef HAVE_LINUX_PPDEV_H
 
+/* Define to 1 if you have the <dev/ppbus/ppi.h> header file. */
+#undef HAVE_DEV_PPBUS_PPI_H
+
 /* Define if the long long type is available. */
 #undef HAVE_LONG_LONG


Regards,
	Stef



More information about the sane-devel mailing list