kopia lustrzana https://gitlab.com/sane-project/backends
2001-04-22 Henning Meier-Geinitz <henning@meier-geinitz.de>
* PROBLEMS: Point to pnm/saned security risks. * TODO: Removed the entries about epson usb mis-detection and check for installed sane versions. * configure configure.in backend/Makefile.in: Added detection of older versions of SANE. The pnm backend is now disabled by default. * backend/dll.c backend/dll.desc: Fixed file descriptor leak (found by Douglas Gilbert). New version: 1.0.2. * backend/net.desc: Added Jochen Eisinger's email address as contact for the net backend. * doc/sane-pnm.man: Point to pnm/saned security risks.DEVEL_2_0_BRANCH-1
rodzic
245fe873a3
commit
f8395cabc5
Plik diff jest za duży
Load Diff
28
configure.in
28
configure.in
|
@ -254,6 +254,13 @@ else
|
|||
DLL_PRELOAD=""
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(pnm-backend,
|
||||
[ --enable-pnm-backend enable the pnm backend for testing frontends. Warning:
|
||||
This will be a security risk if used together with saned.
|
||||
See PROBLEMS file for details. [default=no]],
|
||||
[PNM="pnm"], [PNM=""])
|
||||
AC_SUBST(PNM)
|
||||
|
||||
AC_ARG_ENABLE(scsibuffersize,
|
||||
[ --enable-scsibuffersize=N specify the default size (in bytes) of the buffer
|
||||
for SCSI commands [default=131072]],
|
||||
|
@ -271,6 +278,9 @@ AC_ARG_ENABLE(directio,
|
|||
fi
|
||||
])
|
||||
|
||||
AC_PATH_PROG(SANE_CONFIG_PATH, sane-config, no)
|
||||
AC_CHECK_LIB(sane, sane_init, LIBSANE_EXISTS="yes")
|
||||
|
||||
AC_SUBST(V_MAJOR)
|
||||
AC_SUBST(V_MINOR)
|
||||
AC_SUBST(V_REV)
|
||||
|
@ -281,6 +291,24 @@ AC_OUTPUT([Makefile lib/Makefile sanei/Makefile frontend/Makefile
|
|||
testsuite/Makefile
|
||||
tools/Makefile tools/sane-config],)
|
||||
|
||||
if test "$SANE_CONFIG_PATH" != "no" ; then
|
||||
SANE_INSTALLED_VERSION=`$SANE_CONFIG_PATH --version`
|
||||
SANE_INSTALLED_PREFIX=`$SANE_CONFIG_PATH --prefix`
|
||||
if test "$SANE_INSTALLED_PREFIX" != "$prefix" ; then
|
||||
echo "*** WARNING: SANE is already installed (version $SANE_INSTALLED_VERSION). The old"
|
||||
echo "*** installation is at $SANE_INSTALLED_PREFIX while SANE will now be installed"
|
||||
echo "*** at $prefix. It is recommended to uninstall the old SANE version"
|
||||
echo "*** before installing the new one to avoid problems."
|
||||
fi
|
||||
else
|
||||
if test "$LIBSANE_EXISTS" = "yes" ; then
|
||||
echo "*** Warning: An old version of SANE was detected but the sane-config program"
|
||||
echo "*** couldn't be found. If you encounter any problems with SANE remove the old"
|
||||
echo "*** SANE files and reinstall this version."
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
echo "****************************************************************"
|
||||
echo "* Please be sure to read file PROBLEMS in this directory *"
|
||||
echo "* BEFORE running any of the SANE applications. Some devices *"
|
||||
|
|
Ładowanie…
Reference in New Issue