patch-sane.sh don't set LDFLAGS, CPPFLAGS and
CFLAGS, when make sane-backend, the niash device
is ignored or segmentation faults error.
I work arround with exports before configure.
example:
#!/bin/sh
##################### LIBUSB USB ACCESS
METHOD #######################
#Some influential environment variables:
# CFLAGS C compiler flags
# LDFLAGS linker flags, e.g. -L<lib dir> if you
have libraries in a
# nonstandard directory <lib dir>
# CPPFLAGS C/C++ preprocessor flags, e.g.
-I<include dir> if you have
# headers in a nonstandard directory
<include dir>
# CPP C preprocessor
#
##################### LIBUSB USB ACCESS
METHOD #######################
# If you're having trouble with a missing usb.h file
although libusb
# is installed, try uncommenting the following
export USBDIR=/usr/local/libusb
export USBINCDIR=${USBDIR}/include
export USBLIBDIR=${USBDIR}/lib
##### use -ggdb3 if you want debug information(run
with gdb) #########
export CFLAGS=" -ggdb3 -DLIBUSB_SUPPORT"
export LDFLAGS=" -lusb -L${USBLIBDIR}"
export CPPFLAGS=" -I${USBINCDIR}"
######################################################################
Logged In: YES
user_id=282107
I don't understand what you mean.
What is exactly the problem?
Why would the patch script need to set LDFLAGS, CPPFLAGS or
CFLAGS?
Anyway, this should not be a problem anymore, since the
latest versions don't use libusb explicitly but instead rely
on the built-in USB support from the sane framework.