diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-10-08 12:32:49 +0200 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-10-08 12:32:49 +0200 | 
| commit | cfd27ef2ad8b005fd47ab41ef29b71d9e3d48201 (patch) | |
| tree | 56cb8849a5df91b19b72fd4f48c79c343cd9bc5e /configure | |
| parent | ba8d09abe681600aad991f4a75e904615b7ed29f (diff) | |
Imported Upstream version 1.0.25upstream/1.0.25
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 581 | 
1 files changed, 413 insertions, 168 deletions
| @@ -1,6 +1,6 @@  #! /bin/sh  # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for sane-backends 1.0.24. +# Generated by GNU Autoconf 2.69 for sane-backends 1.0.25.  #  # Report bugs to <sane-devel@lists.alioth.debian.org>.  # @@ -590,8 +590,8 @@ MAKEFLAGS=  # Identity of this package.  PACKAGE_NAME='sane-backends'  PACKAGE_TARNAME='sane-backends' -PACKAGE_VERSION='1.0.24' -PACKAGE_STRING='sane-backends 1.0.24' +PACKAGE_VERSION='1.0.25' +PACKAGE_STRING='sane-backends 1.0.25'  PACKAGE_BUGREPORT='sane-devel@lists.alioth.debian.org'  PACKAGE_URL='' @@ -644,6 +644,8 @@ BACKEND_MANS_ENABLED  BACKEND_CONFS_ENABLED  PRELOADABLE_BACKENDS_ENABLED  PRELOADABLE_BACKENDS +INSTALL_UMAX_PP_TOOLS_FALSE +INSTALL_UMAX_PP_TOOLS_TRUE  BACKEND_LIBS_ENABLED  SANEI_SANEI_JPEG_LO  HAVE_JPEG_FALSE @@ -678,10 +680,13 @@ USB_LIBS  LIBUSB_1_0_LIBS  LIBUSB_1_0_CFLAGS  SYSTEMD_LIBS +SYSTEMD_CFLAGS  ALLOCA  LIBOBJS  SOCKET_LIBS  RESMGR_LIBS +SNMP_CFLAGS +SNMP_LIBS  SNMP_CONFIG_PATH  AVAHI_LIBS  AVAHI_CFLAGS @@ -695,6 +700,7 @@ LOCKPATH_GROUP  INSTALL_LOCKPATH  PTHREAD_LIBS  IEEE1284_LIBS +PNG_LIBS  TIFF_LIBS  JPEG_LIBS  SYSLOG_LIBS @@ -834,6 +840,7 @@ with_gphoto2  with_v4l  enable_avahi  with_snmp +with_systemd  enable_libusb_1_0  enable_libusb  enable_scsibuffersize @@ -870,6 +877,8 @@ LIBV4L_CFLAGS  LIBV4L_LIBS  AVAHI_CFLAGS  AVAHI_LIBS +SYSTEMD_CFLAGS +SYSTEMD_LIBS  LIBUSB_1_0_CFLAGS  LIBUSB_1_0_LIBS  BACKENDS @@ -1414,7 +1423,7 @@ if test "$ac_init_help" = "long"; then    # Omit some internal or obsolete options to make the list less imposing.    # This message is too long to be a string in the A/UX 3.1 sh.    cat <<_ACEOF -\`configure' configures sane-backends 1.0.24 to adapt to many kinds of systems. +\`configure' configures sane-backends 1.0.25 to adapt to many kinds of systems.  Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1484,7 +1493,7 @@ fi  if test -n "$ac_init_help"; then    case $ac_init_help in -     short | recursive ) echo "Configuration of sane-backends 1.0.24:";; +     short | recursive ) echo "Configuration of sane-backends 1.0.25:";;     esac    cat <<\_ACEOF @@ -1542,6 +1551,7 @@ Optional Packages:    --with-gphoto2          include the gphoto2 backend [default=yes]    --with-v4l              include the v4l backend [default=yes]    --with-snmp             enable SNMP support [default=yes] +  --with-systemd          enable systemd support [default=yes]    --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use                            both]    --with-gnu-ld           assume the C compiler uses GNU ld [default=no] @@ -1569,6 +1579,10 @@ Some influential environment variables:    AVAHI_CFLAGS                C compiler flags for AVAHI, overriding pkg-config    AVAHI_LIBS  linker flags for AVAHI, overriding pkg-config +  SYSTEMD_CFLAGS +              C compiler flags for SYSTEMD, overriding pkg-config +  SYSTEMD_LIBS +              linker flags for SYSTEMD, overriding pkg-config    LIBUSB_1_0_CFLAGS                C compiler flags for LIBUSB_1_0, overriding pkg-config    LIBUSB_1_0_LIBS @@ -1643,7 +1657,7 @@ fi  test -n "$ac_init_help" && exit $ac_status  if $ac_init_version; then    cat <<\_ACEOF -sane-backends configure 1.0.24 +sane-backends configure 1.0.25  generated by GNU Autoconf 2.69  Copyright (C) 2012 Free Software Foundation, Inc. @@ -2249,7 +2263,7 @@ cat >config.log <<_ACEOF  This file contains any messages produced by compilers while  running configure, to aid debugging if configure makes a mistake. -It was created by sane-backends $as_me 1.0.24, which was +It was created by sane-backends $as_me 1.0.25, which was  generated by GNU Autoconf 2.69.  Invocation command line was    $ $0 $@ @@ -2602,12 +2616,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu  V_MAJOR=1  V_MINOR=0 -V_REV=24 +V_REV=25  is_release=yes -am__api_version='1.13' +am__api_version='1.14'  ac_aux_dir=  for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do @@ -3122,7 +3136,7 @@ fi  # Define the identity of the package.   PACKAGE='sane-backends' - VERSION='1.0.24' + VERSION='1.0.25'  cat >>confdefs.h <<_ACEOF @@ -3173,6 +3187,47 @@ am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes.  So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else +  cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present.  This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message.  This +can help us improve future automake versions. + +END +  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then +    echo 'Configuration will proceed anyway, since you have set the' >&2 +    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 +    echo >&2 +  else +    cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: <http://www.gnu.org/software/coreutils/>. + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END +    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 +  fi +fi  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5  $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } @@ -3201,7 +3256,7 @@ ac_config_headers="$ac_config_headers include/sane/config.h"  PACKAGE=sane-backends -VERSION=1.0.24 +VERSION=1.0.25  NUMBER_VERSION=${V_MAJOR}.${V_MINOR}.${V_REV}  cat >>confdefs.h <<_ACEOF @@ -4107,6 +4162,65 @@ ac_cpp='$CPP $CPPFLAGS'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 +$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } +if ${am_cv_prog_cc_c_o+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ + +  ; +  return 0; +} +_ACEOF +  # Make sure it works both with $CC and with simple cc. +  # Following AC_PROG_CC_C_O, we do the test twice because some +  # compilers refuse to overwrite an existing .o file with -o, +  # though they will create one. +  am_cv_prog_cc_c_o=yes +  for am_i in 1 2; do +    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 +   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 +   ac_status=$? +   echo "$as_me:$LINENO: \$? = $ac_status" >&5 +   (exit $ac_status); } \ +         && test -f conftest2.$ac_objext; then +      : OK +    else +      am_cv_prog_cc_c_o=no +      break +    fi +  done +  rm -f core conftest* +  unset am_i +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 +$as_echo "$am_cv_prog_cc_c_o" >&6; } +if test "$am_cv_prog_cc_c_o" != yes; then +   # Losing compiler, so override with the script. +   # FIXME: It is wrong to rewrite CC. +   # But if we don't then we get into trouble of one sort or another. +   # A longer-term fix would be to have automake use am__CC in this case, +   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" +   CC="$am_aux_dir/compile $CC" +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +  DEPDIR="${am__leading_dot}deps"  ac_config_commands="$ac_config_commands depfiles" @@ -4299,131 +4413,6 @@ else  fi -if test "x$CC" != xcc; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 -$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 -$as_echo_n "checking whether cc understands -c and -o together... " >&6; } -fi -set dummy $CC; ac_cc=`$as_echo "$2" | -		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` -if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -int -main () -{ - -  ; -  return 0; -} -_ACEOF -# Make sure it works both with $CC and with simple cc. -# We do the test twice because some compilers refuse to overwrite an -# existing .o file with -o, though they will create one. -ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' -rm -f conftest2.* -if { { case "(($ac_try" in -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -  *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 -  (eval "$ac_try") 2>&5 -  ac_status=$? -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; } && -   test -f conftest2.$ac_objext && { { case "(($ac_try" in -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -  *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 -  (eval "$ac_try") 2>&5 -  ac_status=$? -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; }; -then -  eval ac_cv_prog_cc_${ac_cc}_c_o=yes -  if test "x$CC" != xcc; then -    # Test first that cc exists at all. -    if { ac_try='cc -c conftest.$ac_ext >&5' -  { { case "(($ac_try" in -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -  *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 -  (eval "$ac_try") 2>&5 -  ac_status=$? -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; }; }; then -      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' -      rm -f conftest2.* -      if { { case "(($ac_try" in -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -  *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 -  (eval "$ac_try") 2>&5 -  ac_status=$? -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; } && -	 test -f conftest2.$ac_objext && { { case "(($ac_try" in -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -  *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 -  (eval "$ac_try") 2>&5 -  ac_status=$? -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; }; -      then -	# cc works too. -	: -      else -	# cc exists but doesn't like -o. -	eval ac_cv_prog_cc_${ac_cc}_c_o=no -      fi -    fi -  fi -else -  eval ac_cv_prog_cc_${ac_cc}_c_o=no -fi -rm -f core conftest* - -fi -if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h - -fi - -# FIXME: we rely on the cache variable name because -# there is no other way. -set dummy $CC -am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` -eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o -if test "$am_t" != yes; then -   # Losing compiler, so override with the script. -   # FIXME: It is wrong to rewrite CC. -   # But if we don't then we get into trouble of one sort or another. -   # A longer-term fix would be to have automake use am__CC in this case, -   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" -   CC="$am_aux_dir/compile $CC" -fi -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 @@ -5192,7 +5181,6 @@ else  fi -INCLUDES="${INCLUDES} -I/usr/local/include"  if test "${ac_cv_c_compiler_gnu}" = "yes"; then @@ -5218,6 +5206,7 @@ if test "${ac_cv_c_compiler_gnu}" = "yes"; then        ANSI_FLAG=        ;;    esac +  NORMAL_CFLAGS="${NORMAL_CFLAGS} ${ANSI_FLAG}"    WARN_CFLAGS="${WARN_CFLAGS} ${ANSI_FLAG}"    # Check whether --enable-warnings was given. @@ -7252,6 +7241,61 @@ fi +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_init_io in -lpng" >&5 +$as_echo_n "checking for png_init_io in -lpng... " >&6; } +if ${ac_cv_lib_png_png_init_io+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpng  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char png_init_io (); +int +main () +{ +return png_init_io (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_png_png_init_io=yes +else +  ac_cv_lib_png_png_init_io=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_init_io" >&5 +$as_echo "$ac_cv_lib_png_png_init_io" >&6; } +if test "x$ac_cv_lib_png_png_init_io" = xyes; then : + +    ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" +if test "x$ac_cv_header_png_h" = xyes; then : +  sane_cv_use_libpng="yes"; PNG_LIBS="-lpng" +fi + + + +fi + +  if test "$sane_cv_use_libpng" = "yes" ; then + +$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h + +  fi + + +    ac_fn_c_check_header_mongrel "$LINENO" "ieee1284.h" "ac_cv_header_ieee1284_h" "$ac_includes_default"  if test "x$ac_cv_header_ieee1284_h" = xyes; then : @@ -7988,8 +8032,8 @@ $as_echo "no" >&6; }  fi  if test "$with_snmp" = "yes" -a "${LIBSNMP_EXISTS}x" = "yesx"; then -	LIBS="$LIBS $SNMP_LIBS" -	CFLAGS="$CFLAGS $SNMP_CFLAGS" + +  $as_echo "#define HAVE_LIBSNMP 1" >>confdefs.h @@ -9616,6 +9660,42 @@ fi +if test "${ac_cv_header_sys_io_h}" = "yes"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inb,outb (provided by sys/io.h)" >&5 +$as_echo_n "checking for inb,outb (provided by sys/io.h)... " >&6; } +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <sys/io.h> +int +main () +{ +inb(0);outb(0,0); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +      sane_cv_have_sys_io_h_with_inb_outb="yes" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +      sane_cv_have_sys_io_h_with_inb_outb="no" +      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sys/io.h does not provide inb,outb (non i386/x32/x86_64 arch?)" >&5 +$as_echo "$as_me: WARNING: sys/io.h does not provide inb,outb (non i386/x32/x86_64 arch?)" >&2;} +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +  if test "$sane_cv_have_sys_io_h_with_inb_outb" = "yes"; then + +$as_echo "#define SANE_HAVE_SYS_IO_H_WITH_INB_OUTB 1" >>confdefs.h + +  fi +else +  sane_cv_have_sys_io_h_with_inb_outb="no" +fi + @@ -9649,31 +9729,168 @@ $as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h  fi -$as_echo "checking for cups" -if test -e /usr/include/cups/cups.h ; then -$as_echo "#define HAVE_CUPS 1" >>confdefs.h -	with_cups="yes" -	LIBS="-lcups  $LIBS" +# Check whether --with-systemd was given. +if test "${with_systemd+set}" = set; then : +  withval=$with_systemd; +fi + +if test "x$with_systemd" != xno ; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 +$as_echo_n "checking for SYSTEMD... " >&6; } + +if test -n "$SYSTEMD_CFLAGS"; then +    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi +if test -n "$SYSTEMD_LIBS"; then +    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes  else -	$as_echo "cups.h not found, you may want to install a cups development package" -	$as_echo "in order to autodetect network scanners in kodakaio." -	with_cups="no" +  pkg_failed=yes +fi + else +    pkg_failed=untried  fi -$as_echo_n "Checking for systemd..." -if test -e /usr/include/systemd/sd-daemon.h ; then -$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h -    with_systemd="yes" -    SYSTEMD_LIBS=" -lsystemd-daemon" +if test $pkg_failed = yes; then +   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +        _pkg_short_errors_supported=yes +else +        _pkg_short_errors_supported=no +fi +        if test $_pkg_short_errors_supported = yes; then +	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` +        else +	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` +        fi +	# Put the nasty error message in config.log where it belongs +	echo "$SYSTEMD_PKG_ERRORS" >&5 + +	have_systemd=no +elif test $pkg_failed = untried; then +     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +	have_systemd=no +else +	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS +	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +	have_systemd=yes +fi +  if test "x$have_systemd" = xno; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 +$as_echo_n "checking for SYSTEMD... " >&6; } -    $as_echo "yes" +if test -n "$SYSTEMD_CFLAGS"; then +    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes  else -    with_systemd="no" -    $as_echo "no" +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi +if test -n "$SYSTEMD_LIBS"; then +    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then +   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +        _pkg_short_errors_supported=yes +else +        _pkg_short_errors_supported=no +fi +        if test $_pkg_short_errors_supported = yes; then +	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` +        else +	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` +        fi +	# Put the nasty error message in config.log where it belongs +	echo "$SYSTEMD_PKG_ERRORS" >&5 + +	have_systemd=no +elif test $pkg_failed = untried; then +     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +	have_systemd=no +else +	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS +	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +	have_systemd=yes +fi +  fi +  if test "x$have_systemd" = xyes; then + +$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h + + +  else +    if test "x$with_systemd" = xyes; then +      as_fn_error $? "Systemd support was requested but systemd was not found" "$LINENO" 5 +    fi +  fi  fi @@ -17857,12 +18074,12 @@ fi  ALL_BACKENDS="abaton agfafocus apple artec artec_eplus48u as6e \          avision bh canon canon630u canon_dr canon_pp cardscan \          coolscan coolscan2 coolscan3 dc25 dc210 dc240 \ -        dell1600n_net dmc epjitsu epson epson2 fujitsu genesys \ +        dell1600n_net dmc epjitsu epson epson2 epsonds fujitsu genesys \          gphoto2 gt68xx hp hp3500 hp3900 hp4200 hp5400 \          hp5590 hpsj5s hpljm1005 hs2p ibm kodak kodakaio kvs1025 kvs20xx \          kvs40xx leo lexmark ma1509 magicolor \          matsushita microtek microtek2 mustek mustek_pp \ -        mustek_usb mustek_usb2 nec net niash pie pint \ +        mustek_usb mustek_usb2 nec net niash pie pieusb pint \          pixma plustek plustek_pp qcam ricoh rts8891 s9036 \          sceptre sharp sm3600 sm3840 snapscan sp15c st400 \          stv680 tamarack teco1 teco2 teco3 test u12 umax @@ -17922,14 +18139,21 @@ for be in ${BACKENDS}; do      mustek_pp)      if test "${sane_cv_use_libieee1284}" != "yes" && test "${enable_parport_directio}" != "yes"; then -      echo "*** $be backend requires libieee1284 and paraport-directio libraries - $DISABLE_MSG" +      echo "*** $be backend requires libieee1284 or parport-directio libraries - $DISABLE_MSG"        backend_supported="no"      fi      ;;      dell1600n_net)      if test "${sane_cv_use_libjpeg}" != "yes" || test "${sane_cv_use_libtiff}" != "yes"; then -      echo "*** $be backend requires JPEG and/or TIFF library - $DISABLE_MSG" +      echo "*** $be backend requires JPEG and TIFF library - $DISABLE_MSG" +      backend_supported="no" +    fi +    ;; + +    epsonds) +    if test "${sane_cv_use_libjpeg}" != "yes"; then +      echo "*** $be backend requires JPEG library - $DISABLE_MSG"        backend_supported="no"      fi      ;; @@ -17950,9 +18174,9 @@ for be in ${BACKENDS}; do      ;;      qcam) -    if test "${ac_cv_func_ioperm}" = "no" \ +    if ( test "${ac_cv_func_ioperm}" = "no" || test "${sane_cv_have_sys_io_h_with_inb_outb}" = "no" )\        && test "${ac_cv_func__portaccess}" = "no"; then -      echo "*** $be backend requires ioperm and portaccess functions - $DISABLE_MSG" +      echo "*** $be backend requires (ioperm, inb and outb) or portaccess functions - $DISABLE_MSG"        backend_supported="no"      fi      ;; @@ -18021,8 +18245,19 @@ for backend in ${BACKENDS} ; do    BACKEND_LIBS_ENABLED="${BACKEND_LIBS_ENABLED} libsane-${backend}.la"    BACKEND_CONFS_ENABLED="${BACKEND_CONFS_ENABLED} ${backend}.conf"    BACKEND_MANS_ENABLED="${BACKEND_MANS_ENABLED} sane-${backend}.5" +  if test x$backend = xumax_pp; then +    install_umax_pp_tools=yes +  fi  done + if test xyes = x$install_umax_pp_tools; then +  INSTALL_UMAX_PP_TOOLS_TRUE= +  INSTALL_UMAX_PP_TOOLS_FALSE='#' +else +  INSTALL_UMAX_PP_TOOLS_TRUE='#' +  INSTALL_UMAX_PP_TOOLS_FALSE= +fi +  if test "${enable_preload}" = "auto"; then @@ -18089,14 +18324,21 @@ for be in ${BACKENDS}; do      mustek_pp)      if test "${sane_cv_use_libieee1284}" != "yes" && test "${enable_parport_directio}" != "yes"; then -      echo "*** $be backend requires libieee1284 and paraport-directio libraries - $DISABLE_MSG" +      echo "*** $be backend requires libieee1284 or parport-directio libraries - $DISABLE_MSG"        backend_supported="no"      fi      ;;      dell1600n_net)      if test "${sane_cv_use_libjpeg}" != "yes" || test "${sane_cv_use_libtiff}" != "yes"; then -      echo "*** $be backend requires JPEG and/or TIFF library - $DISABLE_MSG" +      echo "*** $be backend requires JPEG and TIFF library - $DISABLE_MSG" +      backend_supported="no" +    fi +    ;; + +    epsonds) +    if test "${sane_cv_use_libjpeg}" != "yes"; then +      echo "*** $be backend requires JPEG library - $DISABLE_MSG"        backend_supported="no"      fi      ;; @@ -18117,9 +18359,9 @@ for be in ${BACKENDS}; do      ;;      qcam) -    if test "${ac_cv_func_ioperm}" = "no" \ +    if ( test "${ac_cv_func_ioperm}" = "no" || test "${sane_cv_have_sys_io_h_with_inb_outb}" = "no" )\        && test "${ac_cv_func__portaccess}" = "no"; then -      echo "*** $be backend requires ioperm and portaccess functions - $DISABLE_MSG" +      echo "*** $be backend requires (ioperm, inb and outb) or portaccess functions - $DISABLE_MSG"        backend_supported="no"      fi      ;; @@ -18411,6 +18653,10 @@ if test -z "${HAVE_JPEG_TRUE}" && test -z "${HAVE_JPEG_FALSE}"; then    as_fn_error $? "conditional \"HAVE_JPEG\" was never defined.  Usually this means the macro was only invoked conditionally." "$LINENO" 5  fi +if test -z "${INSTALL_UMAX_PP_TOOLS_TRUE}" && test -z "${INSTALL_UMAX_PP_TOOLS_FALSE}"; then +  as_fn_error $? "conditional \"INSTALL_UMAX_PP_TOOLS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi  if test -z "${ENABLE_TRANSLATIONS_TRUE}" && test -z "${ENABLE_TRANSLATIONS_FALSE}"; then    as_fn_error $? "conditional \"ENABLE_TRANSLATIONS\" was never defined.  Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -18816,7 +19062,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1  # report actual input values of CONFIG_FILES etc. instead of their  # values after options handling.  ac_log=" -This file was extended by sane-backends $as_me 1.0.24, which was +This file was extended by sane-backends $as_me 1.0.25, which was  generated by GNU Autoconf 2.69.  Invocation command line was    CONFIG_FILES    = $CONFIG_FILES @@ -18882,7 +19128,7 @@ _ACEOF  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1  ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"  ac_cs_version="\\ -sane-backends config.status 1.0.24 +sane-backends config.status 1.0.25  configured by $0, generated by GNU Autoconf 2.69,    with options \\"\$ac_cs_config\\" @@ -21180,7 +21426,6 @@ fi  echo "IPv6 support:  `eval eval echo ${ipv6}`"  echo "Avahi support: `eval eval echo ${enable_avahi}`"  echo "SNMP support:  `eval eval echo ${with_snmp}`" -echo "CUPS support:  `eval eval echo ${with_cups}`"  echo "-> The following backends will be built:"  for backend in ${BACKENDS} ; do    echo $ECHO_N "${backend} " | 
