sane-config --cflags shouldn't say '-I/usr/include', since that's the default include path anyway; similarly, sane-config --libs shouldn't say '-lc' (and it doesn't).
Here is a patch to fix the output of sane-config --cflags. Tim. */ --- sane-backends-1.0.7/tools/sane-config.in.defaultincl Mon Feb 11 09:38:25 2002 +++ sane-backends-1.0.7/tools/sane-config.in Mon Feb 11 09:39:37 2002 @@ -92,7 +92,10 @@ echo "-lsane ${LIBS}" ;; --cflags) - unique_cflags="-I${includedir}" + unique_cflags= + if test "${includedir}" != "/usr/include"; then + unique_cflags="${unique_cflags} -I${includedir}" + fi for i in $cflags; do if test $i != $includedir; then unique_cflags="${unique_cflags} $i"