| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | dnl Process this file with autoconf to produce a configure script. -*-sh-*- | 
					
						
							|  |  |  | AC_INIT(include/sane/sane.h) | 
					
						
							|  |  |  | AC_CONFIG_HEADER(include/sane/config.h) | 
					
						
							| 
									
										
										
										
											2002-11-13 16:52:46 +00:00
										 |  |  | AC_PREREQ(2.50)dnl		dnl Minimum Autoconf version required. | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | AC_ARG_PROGRAM | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # version code: | 
					
						
							|  |  |  | V_MAJOR=1 | 
					
						
							|  |  |  | V_MINOR=0 | 
					
						
							| 
									
										
										
										
											2002-10-23 14:06:37 +00:00
										 |  |  | V_REV=9 | 
					
						
							| 
									
										
										
										
											2002-10-24 17:51:46 +00:00
										 |  |  | V_EXTRA=-cvs | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-06-07 16:43:07 +00:00
										 |  |  | AC_SUBST(V_MAJOR) | 
					
						
							|  |  |  | AC_SUBST(V_MINOR) | 
					
						
							|  |  |  | AC_SUBST(V_REV) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | PACKAGE=sane-backends | 
					
						
							| 
									
										
										
										
											2002-01-08 18:47:26 +00:00
										 |  |  | VERSION=${V_MAJOR}.${V_MINOR}.${V_REV}${V_EXTRA} | 
					
						
							|  |  |  | NUMBER_VERSION=${V_MAJOR}.${V_MINOR}.${V_REV} | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | PACKAGE_VERSION="$PACKAGE-$VERSION" | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", | 
					
						
							|  |  |  |                    [Define to the name of the distribution.]) | 
					
						
							|  |  |  | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", | 
					
						
							|  |  |  |                    [Define to the version of the distribution.]) | 
					
						
							|  |  |  | AC_DEFINE_UNQUOTED(PACKAGE_VERSION, "$PACKAGE_VERSION", | 
					
						
							|  |  |  |                  [The concatenation of the strings PACKAGE, "-", and VERSION.]) | 
					
						
							|  |  |  | AC_DEFINE_UNQUOTED(SANE_DLL_V_MAJOR, $V_MAJOR, [SANE DLL major number]) | 
					
						
							|  |  |  | AC_DEFINE_UNQUOTED(SANE_DLL_V_MINOR, $V_MINOR, [SANE DLL minor number]) | 
					
						
							|  |  |  | AC_DEFINE_UNQUOTED(SANE_DLL_V_BUILD, $V_REV, [SANE DLL revision number]) | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | AC_SUBST(PACKAGE) | 
					
						
							|  |  |  | AC_SUBST(VERSION) | 
					
						
							| 
									
										
										
										
											2002-01-08 18:47:26 +00:00
										 |  |  | AC_SUBST(NUMBER_VERSION) | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | AC_SUBST(PACKAGE_VERSION) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | dnl Checks for programs. | 
					
						
							|  |  |  | AC_PROG_CC | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | AC_PROG_LD | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | AC_PROG_INSTALL | 
					
						
							|  |  |  | AC_PROG_MAKE_SET | 
					
						
							|  |  |  | AC_PROG_CPP | 
					
						
							|  |  |  | AC_PROG_GCC_TRADITIONAL | 
					
						
							|  |  |  | AC_AIX | 
					
						
							|  |  |  | AC_MINIX | 
					
						
							|  |  |  | AC_ISC_POSIX | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | AM_PROG_CC_STDC | 
					
						
							| 
									
										
										
										
											2002-05-09 13:41:28 +00:00
										 |  |  | AC_C_BIGENDIAN | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | INCLUDES="${INCLUDES} -I/usr/local/include" | 
					
						
							|  |  |  | CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE" | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | if test "${ac_cv_prog_gcc}" = "yes"; then | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |   NORMAL_CFLAGS="\ | 
					
						
							|  |  |  |       -W \ | 
					
						
							|  |  |  |       -Wall" | 
					
						
							|  |  |  |   WARN_CFLAGS="\ | 
					
						
							|  |  |  |       -W \ | 
					
						
							|  |  |  |       -Wall \ | 
					
						
							|  |  |  |       -Wcast-align \ | 
					
						
							|  |  |  |       -Wcast-qual \ | 
					
						
							|  |  |  |       -Wmissing-declarations \ | 
					
						
							|  |  |  |       -Wmissing-prototypes \ | 
					
						
							|  |  |  |       -Wpointer-arith \ | 
					
						
							|  |  |  |       -Wreturn-type \ | 
					
						
							|  |  |  |       -Wstrict-prototypes \ | 
					
						
							|  |  |  |       -pedantic" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-02-13 20:48:29 +00:00
										 |  |  |   # OS/2 and others don't include some headers with -ansi enabled | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |   ANSI_FLAG=-ansi | 
					
						
							|  |  |  |   AC_CHECK_HEADER(os2.h,[ANSI_FLAG=],) | 
					
						
							|  |  |  |   case "${host_os}" in   | 
					
						
							| 
									
										
										
										
											2002-02-04 23:24:36 +00:00
										 |  |  |     solaris* | hpux*) | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |       ANSI_FLAG= | 
					
						
							|  |  |  |       ;; | 
					
						
							|  |  |  |   esac | 
					
						
							|  |  |  |   WARN_CFLAGS="${WARN_CFLAGS} ${ANSI_FLAG}" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # Warnings enabled by default (development) | 
					
						
							|  |  |  |   AC_ARG_ENABLE(warnings, | 
					
						
							|  |  |  |     [  --enable-warnings       turn on tons of compiler warnings (GCC only)  | 
					
						
							|  |  |  |                           [default=yes]], | 
					
						
							|  |  |  |     [ | 
					
						
							|  |  |  |       if eval "test x$enable_warnings = xyes"; then  | 
					
						
							|  |  |  |         for flag in $WARN_CFLAGS; do | 
					
						
							|  |  |  |           JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ]) | 
					
						
							|  |  |  |         done | 
					
						
							|  |  |  |       else | 
					
						
							|  |  |  |         for flag in $NORMAL_CFLAGS; do | 
					
						
							|  |  |  |           JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ]) | 
					
						
							|  |  |  |         done | 
					
						
							|  |  |  |       fi | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2002-10-24 17:51:46 +00:00
										 |  |  |     [if true; then # release (false) or development (true) | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |        # Warnings enabled by default (development) | 
					
						
							|  |  |  |        for flag in $WARN_CFLAGS; do | 
					
						
							|  |  |  |          JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ]) | 
					
						
							|  |  |  |        done | 
					
						
							|  |  |  |     else | 
					
						
							|  |  |  |        # Warnings disabled by default (release) | 
					
						
							|  |  |  |        for flag in $NORMAL_CFLAGS; do | 
					
						
							|  |  |  |          JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ]) | 
					
						
							|  |  |  |        done | 
					
						
							|  |  |  |     fi]) | 
					
						
							|  |  |  | fi # ac_cv_prog_gcc | 
					
						
							| 
									
										
										
										
											2000-12-23 16:06:12 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-03-24 14:19:11 +00:00
										 |  |  | dnl special LDFLAGS | 
					
						
							|  |  |  | case "${host_os}" in   | 
					
						
							|  |  |  |   aix*) #enable .so libraries, disable archives | 
					
						
							|  |  |  |     LDFLAGS="$LDFLAGS -Wl,-brtl" | 
					
						
							|  |  |  |     ;; | 
					
						
							|  |  |  | esac | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | dnl Checks for header files. | 
					
						
							|  |  |  | AC_HEADER_STDC | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | AC_CHECK_HEADERS(fcntl.h unistd.h libc.h sys/dsreq.h sys/select.h \ | 
					
						
							|  |  |  |     sys/time.h sys/shm.h \ | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  |     sys/scanio.h scsi.h sys/scsi.h sys/scsicmd.h sys/scsiio.h \ | 
					
						
							|  |  |  |     bsd/dev/scsireg.h scsi/sg.h /usr/src/linux/include/scsi/sg.h io/cam/cam.h \ | 
					
						
							| 
									
										
										
										
											2002-04-07 14:50:18 +00:00
										 |  |  |     camlib.h os2.h sys/socket.h sys/io.h gscdds.h sys/hw.h \ | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |     sys/types.h sys/scsi/scsi.h sys/scsi/sgdefs.h sys/scsi/targets/scgio.h \ | 
					
						
							|  |  |  |     apollo/scsi.h sys/sdi_comm.h sys/passthrudef.h linux/ppdev.h usb.h \ | 
					
						
							|  |  |  |     sys/bitypes.h sys/sem.h) | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-06-09 09:09:54 +00:00
										 |  |  | dnl Do some sanity checks. It doesn't make sense to proceed if those headers | 
					
						
							|  |  |  | dnl aren't present. | 
					
						
							|  |  |  | MISSING_HEADERS= | 
					
						
							|  |  |  | if test "${ac_cv_header_fcntl_h}" != "yes" ; then | 
					
						
							|  |  |  |   MISSING_HEADERS="${MISSING_HEADERS}\"fcntl.h\" " | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | if test "${ac_cv_header_sys_time_h}" != "yes" ; then | 
					
						
							|  |  |  |   MISSING_HEADERS="${MISSING_HEADERS}\"sys/time.h\" " | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | if test "${ac_cv_header_unistd_h}" != "yes" ; then | 
					
						
							|  |  |  |   MISSING_HEADERS="${MISSING_HEADERS}\"unistd.h\" " | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | if test "${ac_cv_header_stdc}" != "yes" ; then | 
					
						
							|  |  |  |   MISSING_HEADERS="${MISSING_HEADERS}\"ANSI C headers\" " | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | if test "${MISSING_HEADERS}" != "" ; then | 
					
						
							|  |  |  |   echo "*** The following essential header files couldn't be found:" | 
					
						
							|  |  |  |   echo "*** ${MISSING_HEADERS}" | 
					
						
							|  |  |  |   echo "*** Maybe the compiler isn't ANSI C compliant or not properly installed?" | 
					
						
							|  |  |  |   echo "*** For details on what went wrong see config.log." | 
					
						
							|  |  |  |   AC_MSG_ERROR([Exiting now.]) | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | dnl Checks for typedefs, structures, and compiler characteristics. | 
					
						
							|  |  |  | AC_C_CONST | 
					
						
							|  |  |  | AC_C_INLINE | 
					
						
							|  |  |  | AC_TYPE_SIGNAL | 
					
						
							|  |  |  | AC_TYPE_SIZE_T | 
					
						
							|  |  |  | AC_TYPE_PID_T | 
					
						
							|  |  |  | AC_CHECK_TYPE(ssize_t, long) | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | SANE_CHECK_U_TYPES | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-05-29 05:34:11 +00:00
										 |  |  | # from Python, check for "long long" type | 
					
						
							|  |  |  | AC_MSG_CHECKING(for long long support) | 
					
						
							|  |  |  | have_long_long=no | 
					
						
							|  |  |  | AC_TRY_COMPILE([], [long long x; x = (long long)0;], AC_DEFINE(HAVE_LONG_LONG, 1, [Define if the long long type is available.]) have_long_long=yes) | 
					
						
							|  |  |  | AC_MSG_RESULT($have_long_long) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-04-07 14:50:18 +00:00
										 |  |  | AC_CHECK_HEADER([asm/io.h],[ | 
					
						
							|  |  |  |  AC_MSG_CHECKING([whether asm/io.h can be included]); | 
					
						
							|  |  |  |  AC_TRY_COMPILE([ | 
					
						
							|  |  |  |  #include <sys/types.h> | 
					
						
							|  |  |  |  #include <asm/io.h> | 
					
						
							|  |  |  |  ],[outb (0, 0l)], | 
					
						
							| 
									
										
										
										
											2002-05-29 05:34:11 +00:00
										 |  |  |    [AC_DEFINE(HAVE_ASM_IO_H, 1, [Define if you have the <asm/io.h> header file.]) AC_MSG_RESULT(yes)],AC_MSG_RESULT(no))],) | 
					
						
							| 
									
										
										
										
											2002-04-07 14:50:18 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | AC_MSG_CHECKING([for struct flock in fcntl.h]) | 
					
						
							|  |  |  | AC_EGREP_HEADER([struct flock], fcntl.h, [AC_MSG_RESULT(yes) ; | 
					
						
							|  |  |  |                 AC_DEFINE(HAVE_STRUCT_FLOCK, 1, | 
					
						
							|  |  |  |                 [Define if struct flock is available.])], AC_MSG_RESULT(no)) | 
					
						
							| 
									
										
										
										
											2002-01-27 18:24:47 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | if test "$ac_cv_header_sys_scsiio_h" = "yes" \ | 
					
						
							|  |  |  |      -a "$ac_cv_header_scsi_h" = "yes"; | 
					
						
							|  |  |  | then | 
					
						
							|  |  |  |  AC_TRY_COMPILE([ | 
					
						
							|  |  |  | #include <sys/scsiio.h> | 
					
						
							|  |  |  | #include <scsi.h> | 
					
						
							|  |  |  | ],[scsireq_t req],, | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |    AC_DEFINE(scsireq_t, struct scsireq_t, | 
					
						
							|  |  |  |              [Define scsireq_t as \`struct scsireq\' if necessary.])) | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | AC_MSG_CHECKING([for socklen_t in <sys/socket.h>]) | 
					
						
							|  |  |  | AC_TRY_COMPILE([ | 
					
						
							|  |  |  | #include <sys/socket.h> | 
					
						
							|  |  |  | ],[socklen_t len],AC_MSG_RESULT(yes), | 
					
						
							|  |  |  | [AC_MSG_RESULT(no); AC_DEFINE(socklen_t,int, | 
					
						
							|  |  |  | [Define socklen_t as \`int\' if necessary.])]) | 
					
						
							| 
									
										
										
										
											2000-11-24 15:24:55 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-01-27 18:24:47 +00:00
										 |  |  | AC_MSG_CHECKING([for union semun in <sys/sem.h>]) | 
					
						
							|  |  |  | AC_TRY_COMPILE([ | 
					
						
							| 
									
										
										
										
											2002-02-02 17:09:00 +00:00
										 |  |  | #include <sys/types.h> | 
					
						
							|  |  |  | #include <sys/ipc.h> | 
					
						
							| 
									
										
										
										
											2002-01-27 18:24:47 +00:00
										 |  |  | #include <sys/sem.h> | 
					
						
							|  |  |  | ],[union semun test_semun],[AC_MSG_RESULT(yes); | 
					
						
							|  |  |  | AC_DEFINE(HAVE_UNION_SEMUN,1,[Define if union semun is available.])], | 
					
						
							|  |  |  | AC_MSG_RESULT(no)) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-03-10 14:34:11 +00:00
										 |  |  | AC_MSG_CHECKING([for sg_header.target_status in <scsi/sg.h>]) | 
					
						
							|  |  |  | AC_TRY_COMPILE([ | 
					
						
							|  |  |  | #include <sys/types.h> | 
					
						
							|  |  |  | #include <scsi/sg.h> | 
					
						
							|  |  |  | ],[ | 
					
						
							|  |  |  | struct sg_header hdr; | 
					
						
							|  |  |  | hdr.target_status = 1; | 
					
						
							|  |  |  | return 0; | 
					
						
							|  |  |  | ],[AC_MSG_RESULT(yes); | 
					
						
							|  |  |  | AC_DEFINE(HAVE_SG_TARGET_STATUS,1,[Define if sg_header.target_status is | 
					
						
							|  |  |  | available.])], | 
					
						
							|  |  |  | AC_MSG_RESULT(no)) | 
					
						
							| 
									
										
										
										
											2002-01-27 18:24:47 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | SANE_V4L_VERSION | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | dnl Checks for dll libraries: dl | 
					
						
							|  |  |  | if test "${enable_dynamic}" != "no"; then | 
					
						
							|  |  |  |   AC_CHECK_HEADERS(dlfcn.h, | 
					
						
							|  |  |  |   [AC_CHECK_LIB(dl,dlopen, DL_LIB=-ldl) | 
					
						
							|  |  |  |    saved_LIBS="${LIBS}" | 
					
						
							|  |  |  |    LIBS="${LIBS} ${DL_LIB}" | 
					
						
							|  |  |  |    AC_CHECK_FUNCS(dlopen, enable_dynamic=yes,) | 
					
						
							|  |  |  |    LIBS="${saved_LIBS}" | 
					
						
							|  |  |  |   ],) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # HP/UX DLL handling | 
					
						
							|  |  |  |   AC_CHECK_HEADERS(dl.h, | 
					
						
							|  |  |  |   [AC_CHECK_LIB(dld,shl_load, DL_LIB=-ldld) | 
					
						
							|  |  |  |    saved_LIBS="${LIBS}" | 
					
						
							|  |  |  |    LIBS="${LIBS} ${DL_LIB}" | 
					
						
							|  |  |  |    AC_CHECK_FUNCS(shl_load, enable_dynamic=yes,) | 
					
						
							|  |  |  |    LIBS="${saved_LIBS}" | 
					
						
							|  |  |  |   ],) | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | AC_SUBST(DL_LIB) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | dnl Checks for Backend libraries. | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | AC_CHECK_LIB(m,sqrt) | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | AC_CHECK_LIB(scsi, scsireq_enter)	# FreeBSD needs this | 
					
						
							|  |  |  | AC_CHECK_LIB(cam, cam_open_device)      # FreeBSD 3+ needs this | 
					
						
							| 
									
										
										
										
											2002-07-03 09:00:47 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | if test "${ac_cv_header_usb_h}" = "yes" ; then | 
					
						
							| 
									
										
										
										
											2002-07-03 12:09:29 +00:00
										 |  |  |   AC_CHECK_LIB(usb, usb_get_busses) | 
					
						
							|  |  |  |   if test "${ac_cv_lib_usb_usb_get_busses}" = "yes" ; then | 
					
						
							| 
									
										
										
										
											2002-07-03 09:00:47 +00:00
										 |  |  |     HAVE_LIBUSB="yes" | 
					
						
							|  |  |  |   fi | 
					
						
							|  |  |  | fi | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | SANE_CHECK_JPEG | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-04-01 22:49:02 +00:00
										 |  |  | SANE_CHECK_IEEE1284 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | SANE_CHECK_GPHOTO2 | 
					
						
							| 
									
										
										
										
											2001-09-10 23:09:47 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | dnl IRIX sometimes has SYSVR3/4 network DSOs, but we do not need or want | 
					
						
							|  |  |  | dnl to use them! | 
					
						
							|  |  |  | if test "`uname`" != "IRIX" -a "`uname`" != "IRIX64"; then | 
					
						
							|  |  |  |     AC_CHECK_LIB(nsl,gethostbyaddr) | 
					
						
							|  |  |  |     AC_CHECK_LIB(socket,socket) | 
					
						
							| 
									
										
										
										
											2001-12-28 21:16:46 +00:00
										 |  |  | 	AC_CHECK_LIB(syslog, syslog)            # OS/2 needs this | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-09-01 17:47:37 +00:00
										 |  |  | dnl Don't check for PTAL library anymore. | 
					
						
							|  |  |  | dnl Support for HP OfficeJets is now in the external "hpoj" backend. | 
					
						
							|  |  |  | dnl SANE_CHECK_PTAL | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | dnl look for /dev/urandom | 
					
						
							|  |  |  | if test -c /dev/urandom ; then | 
					
						
							|  |  |  |     AC_DEFINE(HAVE_DEV_URANDOM, 1, [Is /dev/urandom available?]) | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | dnl Checks for library functions. | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | AC_FUNC_ALLOCA | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | AC_FUNC_MMAP | 
					
						
							| 
									
										
										
										
											2002-02-14 19:34:52 +00:00
										 |  |  | AC_CHECK_FUNCS(atexit inet_addr inet_aton inet_ntoa ioperm mkdir \ | 
					
						
							|  |  |  |     scsireq_enter strftime strstr strtod  \ | 
					
						
							| 
									
										
										
										
											2002-02-10 18:35:29 +00:00
										 |  |  |     cfmakeraw tcsendbreak strcasecmp strncasecmp _portaccess) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-02-14 19:34:52 +00:00
										 |  |  | AC_REPLACE_FUNCS(getenv inet_ntop inet_pton isfdtype sigprocmask snprintf \ | 
					
						
							| 
									
										
										
										
											2002-02-10 18:35:29 +00:00
										 |  |  |     strdup strndup strsep usleep vsyslog) | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-07-03 12:09:29 +00:00
										 |  |  | if test "$ac_cv_header_os2_h" = "yes" ; then | 
					
						
							| 
									
										
										
										
											2002-07-03 09:00:47 +00:00
										 |  |  |   AC_DEFINE(strncasecmp,strnicmp,[Define for OS/2 only]) | 
					
						
							| 
									
										
										
										
											2002-07-06 21:50:41 +00:00
										 |  |  |   AC_DEFINE(strcasecmp,stricmp,[Define for OS/2 only]) | 
					
						
							| 
									
										
										
										
											2002-07-03 09:00:47 +00:00
										 |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | SANE_LINKER_RPATH | 
					
						
							| 
									
										
										
										
											2001-04-16 17:23:37 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | dnl initialize libtool | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | AC_LIBTOOL_WIN32_DLL | 
					
						
							| 
									
										
										
										
											2002-03-21 20:26:54 +00:00
										 |  |  | AC_DISABLE_STATIC | 
					
						
							| 
									
										
										
										
											2002-02-10 18:35:29 +00:00
										 |  |  | AC_PROG_LIBTOOL | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_SUBST(INCLUDES) | 
					
						
							|  |  |  | CPPFLAGS="${CPPFLAGS} -DPATH_SANE_CONFIG_DIR=\$(configdir) \ | 
					
						
							|  |  |  | 	  -DPATH_SANE_DATA_DIR=\$(datadir) \ | 
					
						
							|  |  |  | 	  -DV_MAJOR=${V_MAJOR} -DV_MINOR=${V_MINOR}" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | if test "${sane_cv_use_libjpeg}" != "yes"; then | 
					
						
							|  |  |  |   echo "disabling DC210/DC240 backends (failed to find JPEG library)" | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  |   DC210= | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |   DC240= | 
					
						
							|  |  |  |   DJPEG= | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | else | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |   echo "enabling DC210/DC240 backends" | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  |   DC210=dc210 | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |   DC240=dc240 | 
					
						
							|  |  |  |   DJPEG=djpeg | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | fi | 
					
						
							|  |  |  | AC_SUBST(DC210) | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | AC_SUBST(DC240) | 
					
						
							|  |  |  | AC_SUBST(DJPEG) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-04-01 22:49:02 +00:00
										 |  |  | if test "${sane_cv_use_libieee1284}" != "yes" | 
					
						
							|  |  |  | then | 
					
						
							| 
									
										
										
										
											2002-04-12 00:29:57 +00:00
										 |  |  |   echo "disabling CANON_PP backend (failed to find required libieee1284 version)" | 
					
						
							| 
									
										
										
										
											2002-04-01 22:49:02 +00:00
										 |  |  |   CANON_PP= | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |   echo "enabling CANON_PP backend" | 
					
						
							|  |  |  |   CANON_PP=canon_pp | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | AC_SUBST(CANON_PP) | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-07-06 09:59:17 +00:00
										 |  |  | if test "${sane_cv_use_libieee1284}" != "yes" | 
					
						
							|  |  |  | then | 
					
						
							|  |  |  |   echo "disabling HPSJ5S backend (failed to find required libieee1284 version)" | 
					
						
							|  |  |  |   HPSJ5S= | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |   echo "enabling HPSJ5S backend" | 
					
						
							|  |  |  |   HPSJ5S=hpsj5s | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | AC_SUBST(HPSJ5S) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-01-16 02:20:02 +00:00
										 |  |  | if test "${HAVE_GPHOTO2}" != "gphoto2-config" \ | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |       -o "${sane_cv_use_libjpeg}" != "yes"; then | 
					
						
							| 
									
										
										
										
											2002-01-17 03:17:23 +00:00
										 |  |  |   echo "disabling GPHOTO2 backend (not requested, or failed to find gphoto2-config or JPEG lib)" | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |   GPHOTO2= | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |   echo "enabling GPHOTO2 backend" | 
					
						
							|  |  |  |   GPHOTO2=gphoto2 | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | AC_SUBST(GPHOTO2) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | if test "${ac_cv_header_sys_scanio_h}" = "no"; then | 
					
						
							|  |  |  |   echo "disabling PINT backend" | 
					
						
							|  |  |  |   PINT= | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |   echo "enabling PINT backend" | 
					
						
							|  |  |  |   PINT=pint | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | AC_SUBST(PINT) | 
					
						
							|  |  |  | if test "${ac_cv_func_ioperm}" = "no" \ | 
					
						
							|  |  |  |     && test "${ac_cv_func__portaccess}" = "no" | 
					
						
							|  |  |  | then | 
					
						
							|  |  |  |   echo "disabling QuickCam backend" | 
					
						
							|  |  |  |   QCAM= | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |   echo "enabling QuickCam backend" | 
					
						
							|  |  |  |   QCAM=qcam | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | AC_SUBST(QCAM) | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | if test "${sane_v4l_version}" = "v4l" | 
					
						
							|  |  |  | then | 
					
						
							|  |  |  |   echo "enabling Video4Linux backend" | 
					
						
							|  |  |  |   V4L=v4l | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |   echo "disabling Video4Linux backend" | 
					
						
							|  |  |  |   V4L= | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | AC_SUBST(V4L) | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | if test "${ac_cv_header_sys_socket_h}" = "no"; then | 
					
						
							|  |  |  |   echo "disabling NET backend" | 
					
						
							|  |  |  |   NET= | 
					
						
							|  |  |  |   SANED= | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |   echo "enabling NET backend" | 
					
						
							|  |  |  |   NET=net | 
					
						
							|  |  |  |   SANED=saned | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | AC_SUBST(NET) | 
					
						
							|  |  |  | AC_SUBST(SANED) | 
					
						
							| 
									
										
										
										
											2002-07-03 09:00:47 +00:00
										 |  |  | if test "${HAVE_LIBUSB}" = "yes" ; then | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |   echo "enabling SM3600 backend" | 
					
						
							|  |  |  |   SM3600=sm3600 | 
					
						
							| 
									
										
										
										
											2002-07-03 09:00:47 +00:00
										 |  |  | else | 
					
						
							|  |  |  |   echo "disabling SM3600 backend" | 
					
						
							|  |  |  |   SM3600= | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | fi | 
					
						
							|  |  |  | AC_SUBST(SM3600) | 
					
						
							|  |  |  | if test "${ac_cv_header_sys_sem_h}" = "no" ; then | 
					
						
							|  |  |  |   echo "disabling SnapScan backend" | 
					
						
							|  |  |  |   SNAPSCAN= | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |   echo "enabling SnapScan backend" | 
					
						
							|  |  |  |   SNAPSCAN=snapscan | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | AC_SUBST(SNAPSCAN) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | if test "${enable_shared}" = "no"; then | 
					
						
							|  |  |  |   enable_preload=yes | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | if test "${enable_dynamic}" != yes || test "${enable_preload}" = "yes"; then | 
					
						
							|  |  |  |   echo "preloading backends into DLL" | 
					
						
							|  |  |  |   DLL_PRELOAD="\$(PRELOADABLE_BACKENDS)" | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |   DLL_PRELOAD="" | 
					
						
							|  |  |  | fi | 
					
						
							| 
									
										
										
										
											2002-06-07 16:43:07 +00:00
										 |  |  | AC_SUBST(DLL_PRELOAD) | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | AC_ARG_ENABLE(pnm-backend,  | 
					
						
							|  |  |  |   [  --enable-pnm-backend    enable the pnm backend for testing frontends. Warning: | 
					
						
							| 
									
										
										
										
											2001-12-28 21:16:46 +00:00
										 |  |  |                           This will be a security risk if used together with | 
					
						
							|  |  |  |                           saned. See PROBLEMS file for details. [default=no]], | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |   [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]], | 
					
						
							|  |  |  |   [set_scsibuffersize="$enableval"], [set_scsibuffersize=131072]) | 
					
						
							|  |  |  | AC_DEFINE_UNQUOTED(SCSIBUFFERSIZE, $set_scsibuffersize, | 
					
						
							|  |  |  |                    [SCSI command buffer size]) | 
					
						
							|  |  |  | echo "scsi buffersize: $set_scsibuffersize" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-12-28 13:26:12 +00:00
										 |  |  | AC_ARG_ENABLE(scsi-directio, | 
					
						
							| 
									
										
										
										
											2001-12-28 21:16:46 +00:00
										 |  |  |   [  --enable-scsi-directio  enable SCSI direct IO (Linux only; can lead to crashes | 
					
						
							|  |  |  |                           with backends using shared memory). [default=no] | 
					
						
							| 
									
										
										
										
											2001-12-28 13:26:12 +00:00
										 |  |  |                           This option is in no way related to | 
					
						
							| 
									
										
										
										
											2001-12-28 21:16:46 +00:00
										 |  |  |                           --enable-parport-directio. See README.linux for more | 
					
						
							|  |  |  |                           information.], | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |   [ | 
					
						
							| 
									
										
										
										
											2001-12-28 13:26:12 +00:00
										 |  |  |     if eval "test x$enable_scsi_directio = xyes"; then | 
					
						
							|  |  |  |       CFLAGS="$CFLAGS -DENABLE_SCSI_DIRECTIO" | 
					
						
							|  |  |  |     fi | 
					
						
							|  |  |  |   ]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_ARG_ENABLE(parport-directio, | 
					
						
							| 
									
										
										
										
											2002-01-08 06:05:11 +00:00
										 |  |  |   [  --enable-parport-directio  enable parallel port direct IO, the backend will | 
					
						
							|  |  |  |                           do direct hardware access to use parallel port, so  | 
					
						
							| 
									
										
										
										
											2002-01-08 18:47:26 +00:00
										 |  |  | 			  frontends will require special permission level. | 
					
						
							|  |  |  |                           [default=no] This option is in no way related to  | 
					
						
							| 
									
										
										
										
											2001-12-28 13:26:12 +00:00
										 |  |  |                           --enable-scsi-directio], | 
					
						
							|  |  |  |   [ | 
					
						
							|  |  |  |     if eval "test x$enable_parport_directio = xyes"; then | 
					
						
							|  |  |  |       CFLAGS="$CFLAGS -DENABLE_PARPORT_DIRECTIO" | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  |     fi | 
					
						
							|  |  |  |   ]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-01-07 22:21:22 +00:00
										 |  |  | AC_ARG_ENABLE(translations, | 
					
						
							| 
									
										
										
										
											2002-11-03 16:14:27 +00:00
										 |  |  |   [  --disable-translations  don't install translations of backend options], | 
					
						
							|  |  |  |   [ | 
					
						
							|  |  |  |       if eval "test x$enable_translation = xno"; then  | 
					
						
							|  |  |  |         INSTALL_TRANSLATIONS= | 
					
						
							|  |  |  |       else | 
					
						
							|  |  |  |         INSTALL_TRANSLATIONS=install-translations | 
					
						
							|  |  |  |       fi | 
					
						
							|  |  |  |   ], | 
					
						
							|  |  |  |   INSTALL_TRANSLATIONS=install-translations | 
					
						
							| 
									
										
										
										
											2002-01-07 22:21:22 +00:00
										 |  |  | ) | 
					
						
							|  |  |  | AC_SUBST(INSTALL_TRANSLATIONS) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-11-03 16:14:27 +00:00
										 |  |  | if eval "test x$INSTALL_TRANSLATIONS = xinstall-translations" ; then | 
					
						
							|  |  |  |   AC_PATH_PROG(MSGFMT, msgfmt, no) | 
					
						
							|  |  |  |   AC_PATH_PROG(XGETTEXT, xgettext, no) | 
					
						
							|  |  |  |   AC_PATH_PROG(MSGMERGE, msgmerge, no) | 
					
						
							|  |  |  |   AC_PATH_PROG(MSGCAT, msgcat, no) | 
					
						
							|  |  |  |   AC_SUBST(MSGFMT) | 
					
						
							|  |  |  |   AC_SUBST(XGETTEXT) | 
					
						
							|  |  |  |   AC_SUBST(MSGMERGE) | 
					
						
							|  |  |  |   AC_SUBST(MSGCAT) | 
					
						
							|  |  |  |   if test x$MSGFMT = xno || test x$XGETTEXT = xno || test $MSGMERGE = no ; then | 
					
						
							|  |  |  |     INSTALL_TRANSLATIONS= | 
					
						
							|  |  |  |     echo "disabling translations" | 
					
						
							|  |  |  |   else | 
					
						
							|  |  |  |     echo "enabling translations" | 
					
						
							|  |  |  |   fi | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |   echo "disabling translations" | 
					
						
							|  |  |  | fi   | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-06-02 18:56:56 +00:00
										 |  |  | AC_ARG_ENABLE(local-backends, | 
					
						
							|  |  |  |     [  --disable-local-backends turns off compilation of all backends but net], | 
					
						
							|  |  |  |     [ | 
					
						
							|  |  |  |       if eval "test x$enable_local_backends = xno"; then  | 
					
						
							|  |  |  |         SELECTED_BACKENDS="net" | 
					
						
							|  |  |  |       fi | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  | , | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | AC_SUBST(SELECTED_BACKENDS) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | AC_PATH_PROG(SANE_CONFIG_PATH, sane-config, no) | 
					
						
							|  |  |  | AC_CHECK_LIB(sane, sane_init, LIBSANE_EXISTS="yes") | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-03-29 16:46:37 +00:00
										 |  |  | DISTCLEAN_FILES="*~ .*~ *.log *.bak *.old *.orig *.out *.rej \"\#\"* \".\\#\"*" | 
					
						
							| 
									
										
										
										
											2002-02-13 20:48:29 +00:00
										 |  |  | AC_SUBST(DISTCLEAN_FILES) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-06-07 16:43:07 +00:00
										 |  |  | echo using CPPFLAGS=\"${CPPFLAGS}\" | 
					
						
							|  |  |  | echo using CFLAGS=\"${CFLAGS}\" | 
					
						
							|  |  |  | echo using LDFLAGS=\"${LDFLAGS}\" | 
					
						
							|  |  |  | echo using LIBS=\"${LIBS}\" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | AC_OUTPUT([Makefile lib/Makefile sanei/Makefile frontend/Makefile | 
					
						
							|  |  |  | 	   japi/Makefile backend/Makefile include/Makefile doc/Makefile | 
					
						
							| 
									
										
										
										
											2002-01-07 22:21:22 +00:00
										 |  |  | 	   po/Makefile testsuite/Makefile | 
					
						
							| 
									
										
										
										
											2002-03-20 22:59:59 +00:00
										 |  |  | 	   tools/sane-desc.el tools/Makefile tools/sane-config],) | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-10-31 17:48:34 +00:00
										 |  |  | echo "Installation directories:" | 
					
						
							|  |  |  | echo "Configuration: `eval eval echo ${sysconfdir}`" | 
					
						
							|  |  |  | echo "Libraries:     `eval eval echo ${libdir}`" | 
					
						
							|  |  |  | echo "Binaries:      `eval eval echo ${bindir}` and `eval eval echo ${sbindir}`" | 
					
						
							|  |  |  | echo "Manpages:      `eval eval echo ${mandir}`" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-04 20:20:48 +00:00
										 |  |  | 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 | 
					
						
							| 
									
										
										
										
											2002-10-27 12:58:51 +00:00
										 |  |  | if eval "test x${sysconfdir} = x/usr/etc" ; then | 
					
						
							|  |  |  |   echo "*** WARNING: Configuration files are stored in /usr/etc. If this is not" | 
					
						
							|  |  |  |   echo "*** intended, use --sysconfdir to set another path (e.g. "/etc")." | 
					
						
							|  |  |  | fi | 
					
						
							| 
									
										
										
										
											2002-06-02 18:56:56 +00:00
										 |  |  | if test "$SELECTED_BACKENDS" != "" ; then | 
					
						
							|  |  |  |   echo "*** Warning: Local backends have been disabled.  This means that scanners" | 
					
						
							|  |  |  |   echo "*** connected to your local computer won't be supported.  Only a network" | 
					
						
							| 
									
										
										
										
											2002-10-27 12:58:51 +00:00
										 |  |  |   echo "*** connection to a remote host is possible." | 
					
						
							| 
									
										
										
										
											2002-06-02 18:56:56 +00:00
										 |  |  | fi | 
					
						
							| 
									
										
										
										
											2001-04-22 20:01:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:05:39 +00:00
										 |  |  | echo "****************************************************************" | 
					
						
							|  |  |  | echo "* Please be sure to read file PROBLEMS in this directory       *" | 
					
						
							|  |  |  | echo "* BEFORE running any of the SANE applications.  Some devices   *" | 
					
						
							|  |  |  | echo "* may be damaged by inproper operation, so please do heed this *" | 
					
						
							|  |  |  | echo "* advice.                                                      *" | 
					
						
							|  |  |  | echo "****************************************************************" |