[sane-devel] Adding extra header detection to configure

stef stef-listes at wanadoo.fr
Sun Sep 14 11:00:02 BST 2003


	Hello,

	to get the umax_pp backend work with direct I/O on FreeBSD, it needs
that configure checks for machine/cpufunc.h include and i386_set_ioperm
function.
	Added this will have the following impact on configure.in and 
config.h.in . configure will be regenerated by autoconf.

stefdev:/home/stefdev/cvs/sane.sane_directio/sane-backends>diff ~/cvs/sane/sane-backends/configure.in configure.in
109c109
<     dev/ppbus/ppi.h usb.h sys/bitypes.h sys/sem.h sys/poll.h IOKit/IOKitLib.h)---
>     dev/ppbus/ppi.h machine/cpufunc.h usb.h sys/bitypes.h sys/sem.h sys/poll.h IOKit/IOKitLib.h)
186c186
< AC_CHECK_FUNCS(atexit inet_addr inet_aton inet_ntoa ioperm mkdir \
---
> AC_CHECK_FUNCS(atexit inet_addr inet_aton inet_ntoa ioperm i386_set_ioperm mkdir \


stefdev:/home/stefdev/cvs/sane.sane_directio/sane-backends>diff ~/cvs/sane/sane-backends/include/sane/config.h.in include/sane/config.h.in
51a52,54
> /* Define to 1 if you have the <machine/cpufunc.h> header file. */
> #undef HAVE_MACHINE_CPUFUNC_H
>
105a109,111
> /* Define to 1 if you have the `i386_set_ioperm' function. */
> #undef HAVE_I386_SET_IOPERM
>



	Would it be OK to commit this to CVS ?

Regards,
	Stef



More information about the sane-devel mailing list